@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.
Files changed (48) hide show
  1. package/dist/_official/index.d.mts +1 -1
  2. package/dist/_official/index.mjs +1 -1
  3. package/dist/_runtime/index.d.mts +1 -2
  4. package/dist/_runtime/index.mjs +1 -1
  5. package/dist/actions.d.mts +13 -13
  6. package/dist/actions.mjs +6 -6
  7. package/dist/annotations.d.mts +6 -6
  8. package/dist/annotations.mjs +6 -6
  9. package/dist/capture.d.mts +8 -8
  10. package/dist/capture.mjs +8 -8
  11. package/dist/client.d.mts +1 -2
  12. package/dist/client.mjs +1 -1
  13. package/dist/cohorts.d.mts +9 -9
  14. package/dist/cohorts.mjs +9 -9
  15. package/dist/connection.d.mts +1 -1
  16. package/dist/connection.mjs +1 -1
  17. package/dist/dashboards.d.mts +17 -17
  18. package/dist/dashboards.mjs +17 -17
  19. package/dist/decide.d.mts +3 -3
  20. package/dist/decide.mjs +3 -3
  21. package/dist/events-management.d.mts +11 -11
  22. package/dist/events-management.mjs +11 -11
  23. package/dist/factory-C3ssyfSy.mjs +7 -0
  24. package/dist/feature-flags.d.mts +16 -16
  25. package/dist/feature-flags.mjs +16 -16
  26. package/dist/http-BYcjqxPi.mjs +84 -0
  27. package/dist/insights.d.mts +17 -17
  28. package/dist/insights.mjs +17 -17
  29. package/dist/{integration-Td6D39_E.d.mts → integration-BN7xcpga.d.mts} +15 -5
  30. package/dist/integration-D0HdrI0T.mjs +120 -0
  31. package/dist/organizations.d.mts +12 -12
  32. package/dist/organizations.mjs +12 -12
  33. package/dist/persons.d.mts +16 -16
  34. package/dist/persons.mjs +16 -16
  35. package/dist/projects.d.mts +14 -14
  36. package/dist/projects.mjs +14 -14
  37. package/dist/schemas.d.mts +3 -3
  38. package/dist/session-recordings.d.mts +15 -15
  39. package/dist/session-recordings.mjs +15 -15
  40. package/dist/surveys.d.mts +16 -16
  41. package/dist/surveys.mjs +10 -10
  42. package/dist/triggers.d.mts +5 -3
  43. package/dist/triggers.mjs +52 -3
  44. package/dist/webhook-management.d.mts +10 -10
  45. package/dist/webhook-management.mjs +7 -7
  46. package/package.json +4 -4
  47. package/dist/factory-DYDvHOGb.mjs +0 -8
  48. package/dist/integration-Doy2Dwli.mjs +0 -30
@@ -1,2 +1,2 @@
1
- import { i as posthogOfficialIntegration, r as posthogBundle } from "../integration-Td6D39_E.mjs";
1
+ import { i as posthogOfficialIntegration, r as posthogBundle } from "../integration-BN7xcpga.mjs";
2
2
  export { posthogBundle, posthogOfficialIntegration };
@@ -1,3 +1,3 @@
1
- import { n as posthogBundle, r as posthogOfficialIntegration } from "../integration-Doy2Dwli.mjs";
1
+ import { n as posthogBundle, r as posthogOfficialIntegration } from "../integration-D0HdrI0T.mjs";
2
2
 
3
3
  export { posthogBundle, posthogOfficialIntegration };
@@ -1,5 +1,4 @@
1
- import { n as posthog } from "../integration-Td6D39_E.mjs";
2
- import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
1
+ import { a as createOfficialOperationFactory, n as posthog } from "../integration-BN7xcpga.mjs";
3
2
 
4
3
  //#region src/factory.d.ts
5
4
  declare const posthogOperation: ReturnType<typeof createOfficialOperationFactory<typeof posthog>>;
@@ -1,3 +1,3 @@
1
- import { t as posthogOperation } from "../factory-DYDvHOGb.mjs";
1
+ import { t as posthogOperation } from "../factory-C3ssyfSy.mjs";
2
2
 
3
3
  export { posthogOperation };
@@ -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/actions.d.ts
6
6
  declare const listActions: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -22,9 +22,9 @@ declare const listActions: _keystrokehq_core0.Operation<z.ZodObject<{
22
22
  event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  url_matching: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
25
+ exact: "exact";
25
26
  contains: "contains";
26
27
  regex: "regex";
27
- exact: "exact";
28
28
  }>>>;
29
29
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
30
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -36,7 +36,7 @@ declare const listActions: _keystrokehq_core0.Operation<z.ZodObject<{
36
36
  deleted: z.ZodOptional<z.ZodBoolean>;
37
37
  is_calculating: z.ZodOptional<z.ZodBoolean>;
38
38
  }, z.core.$strip>>;
39
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
39
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
40
40
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
41
41
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
42
42
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -62,9 +62,9 @@ declare const getAction: _keystrokehq_core0.Operation<z.ZodObject<{
62
62
  event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
63
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
64
  url_matching: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
65
+ exact: "exact";
65
66
  contains: "contains";
66
67
  regex: "regex";
67
- exact: "exact";
68
68
  }>>>;
69
69
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
70
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -75,7 +75,7 @@ declare const getAction: _keystrokehq_core0.Operation<z.ZodObject<{
75
75
  created_by: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
76
76
  deleted: z.ZodOptional<z.ZodBoolean>;
77
77
  is_calculating: z.ZodOptional<z.ZodBoolean>;
78
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
78
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
79
79
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
80
80
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
81
81
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -95,9 +95,9 @@ declare const createAction: _keystrokehq_core0.Operation<z.ZodObject<{
95
95
  event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
96
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
97
  url_matching: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
98
+ exact: "exact";
98
99
  contains: "contains";
99
100
  regex: "regex";
100
- exact: "exact";
101
101
  }>>>;
102
102
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
103
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -118,9 +118,9 @@ declare const createAction: _keystrokehq_core0.Operation<z.ZodObject<{
118
118
  event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
119
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
120
  url_matching: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
121
+ exact: "exact";
121
122
  contains: "contains";
122
123
  regex: "regex";
123
- exact: "exact";
124
124
  }>>>;
125
125
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
126
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -131,7 +131,7 @@ declare const createAction: _keystrokehq_core0.Operation<z.ZodObject<{
131
131
  created_by: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
132
132
  deleted: z.ZodOptional<z.ZodBoolean>;
133
133
  is_calculating: z.ZodOptional<z.ZodBoolean>;
134
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
134
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
135
135
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
136
136
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
137
137
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -151,9 +151,9 @@ declare const updateAction: _keystrokehq_core0.Operation<z.ZodObject<{
151
151
  event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
152
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
153
  url_matching: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
154
+ exact: "exact";
154
155
  contains: "contains";
155
156
  regex: "regex";
156
- exact: "exact";
157
157
  }>>>;
158
158
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
159
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -175,9 +175,9 @@ declare const updateAction: _keystrokehq_core0.Operation<z.ZodObject<{
175
175
  event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
176
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
177
  url_matching: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
178
+ exact: "exact";
178
179
  contains: "contains";
179
180
  regex: "regex";
180
- exact: "exact";
181
181
  }>>>;
182
182
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
183
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -188,7 +188,7 @@ declare const updateAction: _keystrokehq_core0.Operation<z.ZodObject<{
188
188
  created_by: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
189
189
  deleted: z.ZodOptional<z.ZodBoolean>;
190
190
  is_calculating: z.ZodOptional<z.ZodBoolean>;
191
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
191
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
192
192
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
193
193
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
194
194
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -214,9 +214,9 @@ declare const deleteAction: _keystrokehq_core0.Operation<z.ZodObject<{
214
214
  event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
215
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
216
  url_matching: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
217
+ exact: "exact";
217
218
  contains: "contains";
218
219
  regex: "regex";
219
- exact: "exact";
220
220
  }>>>;
221
221
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
222
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -227,7 +227,7 @@ declare const deleteAction: _keystrokehq_core0.Operation<z.ZodObject<{
227
227
  created_by: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
228
228
  deleted: z.ZodOptional<z.ZodBoolean>;
229
229
  is_calculating: z.ZodOptional<z.ZodBoolean>;
230
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
230
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
231
231
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
232
232
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
233
233
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
package/dist/actions.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createPosthogManagementClient } from "./client.mjs";
2
2
  import { actionSchema, actionStepSchema, paginatedResponseSchema, projectIdInputShape } from "./schemas.mjs";
3
- import { t as posthogOperation } from "./factory-DYDvHOGb.mjs";
3
+ import { t as posthogOperation } from "./factory-C3ssyfSy.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/actions.ts
@@ -25,7 +25,7 @@ const writeShape = {
25
25
  deleted: z.boolean().optional()
26
26
  };
27
27
  const listActions = posthogOperation({
28
- id: "posthog_actions_list",
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: "posthog_actions_get",
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: "posthog_actions_create",
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: "posthog_actions_update",
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: "posthog_actions_delete",
111
+ id: "posthog.actions-delete",
112
112
  name: "PostHog Delete Action",
113
113
  description: "Soft-delete an action",
114
114
  input: z.object(idInput),
@@ -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/annotations.d.ts
6
6
  declare const listAnnotations: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -35,7 +35,7 @@ declare const listAnnotations: _keystrokehq_core0.Operation<z.ZodObject<{
35
35
  }>>;
36
36
  deleted: z.ZodOptional<z.ZodBoolean>;
37
37
  }, z.core.$strip>>;
38
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
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>;
@@ -67,7 +67,7 @@ declare const getAnnotation: _keystrokehq_core0.Operation<z.ZodObject<{
67
67
  organization: "organization";
68
68
  }>>;
69
69
  deleted: z.ZodOptional<z.ZodBoolean>;
70
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
70
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
71
71
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
72
72
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
73
73
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -108,7 +108,7 @@ declare const createAnnotation: _keystrokehq_core0.Operation<z.ZodObject<{
108
108
  organization: "organization";
109
109
  }>>;
110
110
  deleted: z.ZodOptional<z.ZodBoolean>;
111
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
111
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
112
112
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
113
113
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
114
114
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -150,7 +150,7 @@ declare const updateAnnotation: _keystrokehq_core0.Operation<z.ZodObject<{
150
150
  organization: "organization";
151
151
  }>>;
152
152
  deleted: z.ZodOptional<z.ZodBoolean>;
153
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
153
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
154
154
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
155
155
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
156
156
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -168,7 +168,7 @@ declare const deleteAnnotation: _keystrokehq_core0.Operation<z.ZodObject<{
168
168
  projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
169
169
  }, z.core.$strip>, z.ZodObject<{
170
170
  success: z.ZodBoolean;
171
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
171
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
172
172
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
173
173
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
174
174
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -1,6 +1,6 @@
1
1
  import { createPosthogManagementClient } from "./client.mjs";
2
2
  import { annotationSchema, paginatedResponseSchema, projectIdInputShape } from "./schemas.mjs";
3
- import { t as posthogOperation } from "./factory-DYDvHOGb.mjs";
3
+ import { t as posthogOperation } from "./factory-C3ssyfSy.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/annotations.ts
@@ -28,7 +28,7 @@ const writeShape = {
28
28
  deleted: z.boolean().optional()
29
29
  };
30
30
  const listAnnotations = posthogOperation({
31
- id: "posthog_annotations_list",
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: "posthog_annotations_get",
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: "posthog_annotations_create",
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: "posthog_annotations_update",
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: "posthog_annotations_delete",
123
+ id: "posthog.annotations-delete",
124
124
  name: "PostHog Delete Annotation",
125
125
  description: "Delete an annotation",
126
126
  input: z.object(idInput),
@@ -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/capture.d.ts
6
6
  /**
@@ -15,7 +15,7 @@ declare const captureEvent: _keystrokehq_core0.Operation<z.ZodObject<{
15
15
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
16
  }, z.core.$strip>, z.ZodObject<{
17
17
  status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<"ok">, z.ZodNumber, z.ZodString]>>;
18
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
18
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
19
19
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
20
20
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
21
21
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -42,7 +42,7 @@ declare const captureBatch: _keystrokehq_core0.Operation<z.ZodObject<{
42
42
  }, z.core.$strip>>;
43
43
  }, z.core.$strip>, z.ZodObject<{
44
44
  status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<"ok">, z.ZodNumber, z.ZodString]>>;
45
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
45
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
46
46
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
47
47
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
48
48
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -66,7 +66,7 @@ declare const identifyPerson: _keystrokehq_core0.Operation<z.ZodObject<{
66
66
  timestamp: z.ZodOptional<z.ZodISODateTime>;
67
67
  }, z.core.$strip>, z.ZodObject<{
68
68
  status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<"ok">, z.ZodNumber, z.ZodString]>>;
69
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
69
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
70
70
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
71
71
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
72
72
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -89,7 +89,7 @@ declare const aliasPerson: _keystrokehq_core0.Operation<z.ZodObject<{
89
89
  timestamp: z.ZodOptional<z.ZodISODateTime>;
90
90
  }, z.core.$strip>, z.ZodObject<{
91
91
  status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<"ok">, z.ZodNumber, z.ZodString]>>;
92
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
92
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
93
93
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
94
94
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
95
95
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -114,7 +114,7 @@ declare const groupIdentify: _keystrokehq_core0.Operation<z.ZodObject<{
114
114
  timestamp: z.ZodOptional<z.ZodISODateTime>;
115
115
  }, z.core.$strip>, z.ZodObject<{
116
116
  status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<"ok">, z.ZodNumber, z.ZodString]>>;
117
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
117
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
118
118
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
119
119
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
120
120
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -137,7 +137,7 @@ declare const setPersonProperties: _keystrokehq_core0.Operation<z.ZodObject<{
137
137
  timestamp: z.ZodOptional<z.ZodISODateTime>;
138
138
  }, z.core.$strip>, z.ZodObject<{
139
139
  status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<"ok">, z.ZodNumber, z.ZodString]>>;
140
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
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>;
@@ -160,7 +160,7 @@ declare const setPersonPropertiesOnce: _keystrokehq_core0.Operation<z.ZodObject<
160
160
  timestamp: z.ZodOptional<z.ZodISODateTime>;
161
161
  }, z.core.$strip>, z.ZodObject<{
162
162
  status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<"ok">, z.ZodNumber, z.ZodString]>>;
163
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
163
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
164
164
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
165
165
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
166
166
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
package/dist/capture.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createPosthogIngestClient } from "./client.mjs";
2
2
  import { captureResponseSchema, propertiesBagSchema } from "./schemas.mjs";
3
- import { t as posthogOperation } from "./factory-DYDvHOGb.mjs";
3
+ import { t as posthogOperation } from "./factory-C3ssyfSy.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/capture.ts
@@ -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: "posthog_capture_event",
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: "posthog_capture_batch_events",
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: "posthog_identify_person",
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: "posthog_alias_person",
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: "posthog_group_identify",
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: "posthog_set_person_properties",
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: "posthog_set_person_properties_once",
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/client.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import { t as PosthogCredentials } from "./integration-Td6D39_E.mjs";
2
- import { JsonRestMethod, JsonRestQueryValue } from "@keystrokehq/integration-authoring/http";
1
+ import { t as PosthogCredentials } from "./integration-BN7xcpga.mjs";
3
2
 
4
3
  //#region src/client.d.ts
5
4
  /**
package/dist/client.mjs CHANGED
@@ -1,5 +1,5 @@
1
+ import { n as isJsonRestError, t as createJsonRestClient } from "./http-BYcjqxPi.mjs";
1
2
  import { PosthogClientError, classifyHttpFailure } from "./errors.mjs";
2
- import { createJsonRestClient, isJsonRestError } from "@keystrokehq/integration-authoring/http";
3
3
 
4
4
  //#region src/client.ts
5
5
  /**
@@ -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/cohorts.d.ts
6
6
  declare const listCohorts: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -23,7 +23,7 @@ declare const listCohorts: _keystrokehq_core0.Operation<z.ZodObject<{
23
23
  created_at: z.ZodOptional<z.ZodString>;
24
24
  deleted: z.ZodOptional<z.ZodBoolean>;
25
25
  }, z.core.$strip>>;
26
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
26
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
27
27
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
28
28
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
29
29
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -49,7 +49,7 @@ declare const getCohort: _keystrokehq_core0.Operation<z.ZodObject<{
49
49
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
50
  created_at: z.ZodOptional<z.ZodString>;
51
51
  deleted: z.ZodOptional<z.ZodBoolean>;
52
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
52
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
53
53
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
54
54
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
55
55
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -79,7 +79,7 @@ declare const createCohort: _keystrokehq_core0.Operation<z.ZodObject<{
79
79
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
80
80
  created_at: z.ZodOptional<z.ZodString>;
81
81
  deleted: z.ZodOptional<z.ZodBoolean>;
82
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
82
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
83
83
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
84
84
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
85
85
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -110,7 +110,7 @@ declare const updateCohort: _keystrokehq_core0.Operation<z.ZodObject<{
110
110
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
111
111
  created_at: z.ZodOptional<z.ZodString>;
112
112
  deleted: z.ZodOptional<z.ZodBoolean>;
113
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
113
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
114
114
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
115
115
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
116
116
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -136,7 +136,7 @@ declare const deleteCohort: _keystrokehq_core0.Operation<z.ZodObject<{
136
136
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
137
137
  created_at: z.ZodOptional<z.ZodString>;
138
138
  deleted: z.ZodOptional<z.ZodBoolean>;
139
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
139
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
140
140
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
141
141
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
142
142
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -167,7 +167,7 @@ declare const getCohortPersons: _keystrokehq_core0.Operation<z.ZodObject<{
167
167
  created_at: z.ZodOptional<z.ZodString>;
168
168
  is_identified: z.ZodOptional<z.ZodBoolean>;
169
169
  }, z.core.$strip>>;
170
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
170
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
171
171
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
172
172
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
173
173
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -186,7 +186,7 @@ declare const getCohortActivity: _keystrokehq_core0.Operation<z.ZodObject<{
186
186
  projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
187
187
  }, z.core.$strip>, z.ZodObject<{
188
188
  results: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
189
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
189
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
190
190
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
191
191
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
192
192
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
@@ -212,7 +212,7 @@ declare const duplicateCohortAsStatic: _keystrokehq_core0.Operation<z.ZodObject<
212
212
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
213
213
  created_at: z.ZodOptional<z.ZodString>;
214
214
  deleted: z.ZodOptional<z.ZodBoolean>;
215
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
215
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
216
216
  POSTHOG_PERSONAL_API_KEY: z.ZodString;
217
217
  POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
218
218
  POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
package/dist/cohorts.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createPosthogManagementClient } from "./client.mjs";
2
2
  import { cohortSchema, paginatedResponseSchema, personSchema, projectIdInputShape } from "./schemas.mjs";
3
- import { t as posthogOperation } from "./factory-DYDvHOGb.mjs";
3
+ import { t as posthogOperation } from "./factory-C3ssyfSy.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/cohorts.ts
@@ -23,7 +23,7 @@ const writeShape = {
23
23
  deleted: z.boolean().optional()
24
24
  };
25
25
  const listCohorts = posthogOperation({
26
- id: "posthog_cohorts_list",
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: "posthog_cohorts_get",
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: "posthog_cohorts_create",
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: "posthog_cohorts_update",
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: "posthog_cohorts_delete",
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: "posthog_cohorts_persons",
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: "posthog_cohorts_activity",
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: "posthog_cohorts_duplicate_as_static",
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),
@@ -1,2 +1,2 @@
1
- import { n as posthog, t as PosthogCredentials } from "./integration-Td6D39_E.mjs";
1
+ import { n as posthog, t as PosthogCredentials } from "./integration-BN7xcpga.mjs";
2
2
  export { type PosthogCredentials, posthog };
@@ -1,3 +1,3 @@
1
- import { t as posthog } from "./integration-Doy2Dwli.mjs";
1
+ import { t as posthog } from "./integration-D0HdrI0T.mjs";
2
2
 
3
3
  export { posthog };