@keystrokehq/posthog 0.0.8 → 0.0.15
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 -1
- package/dist/_runtime/index.mjs +1 -1
- package/dist/actions.d.mts +5 -36
- package/dist/actions.mjs +1 -1
- package/dist/annotations.d.mts +5 -36
- package/dist/annotations.mjs +1 -1
- package/dist/capture.d.mts +7 -50
- package/dist/capture.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/cohorts.d.mts +8 -57
- package/dist/cohorts.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/dashboards.d.mts +16 -113
- package/dist/dashboards.mjs +1 -1
- package/dist/decide.d.mts +2 -15
- package/dist/decide.mjs +1 -1
- package/dist/events-management.d.mts +10 -71
- package/dist/events-management.mjs +1 -1
- package/dist/{factory-DYDvHOGb.mjs → factory-D4Ve2fJ-.mjs} +1 -1
- package/dist/feature-flags.d.mts +15 -106
- package/dist/feature-flags.mjs +1 -1
- package/dist/insights.d.mts +16 -113
- package/dist/insights.mjs +1 -1
- package/dist/{integration-Doy2Dwli.mjs → integration-BHWIx2Lw.mjs} +1 -0
- package/dist/{integration-Td6D39_E.d.mts → integration-Dv7fVIxG.d.mts} +3 -9
- package/dist/organizations.d.mts +11 -78
- package/dist/organizations.mjs +1 -1
- package/dist/persons.d.mts +15 -106
- package/dist/persons.mjs +1 -1
- package/dist/projects.d.mts +13 -92
- package/dist/projects.mjs +1 -1
- package/dist/session-recordings.d.mts +14 -99
- package/dist/session-recordings.mjs +1 -1
- package/dist/surveys.d.mts +9 -64
- package/dist/surveys.mjs +1 -1
- package/dist/triggers.d.mts +1 -1
- package/dist/triggers.mjs +1 -1
- package/dist/webhook-management.d.mts +6 -43
- package/dist/webhook-management.mjs +1 -1
- package/package.json +4 -4
package/dist/feature-flags.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
2
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/feature-flags.d.ts
|
|
@@ -38,13 +37,7 @@ declare const listFeatureFlags: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
38
37
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
39
38
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
40
39
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
-
}, z.core.$strip
|
|
42
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
43
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
44
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
45
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
46
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
40
|
+
}, z.core.$strip>>], undefined>;
|
|
48
41
|
declare const getFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
49
42
|
id: z.ZodNumber;
|
|
50
43
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -70,13 +63,7 @@ declare const getFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
70
63
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
71
64
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
72
65
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
|
-
}, z.core.$strip
|
|
74
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
75
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
76
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
77
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
78
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
66
|
+
}, z.core.$strip>>], undefined>;
|
|
80
67
|
declare const createFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
81
68
|
key: z.ZodString;
|
|
82
69
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -113,13 +100,7 @@ declare const createFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
113
100
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
114
101
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
115
102
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
116
|
-
}, z.core.$strip
|
|
117
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
118
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
119
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
120
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
121
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
122
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
103
|
+
}, z.core.$strip>>], undefined>;
|
|
123
104
|
declare const updateFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
124
105
|
key: z.ZodOptional<z.ZodString>;
|
|
125
106
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -157,13 +138,7 @@ declare const updateFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
157
138
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
158
139
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
159
140
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
160
|
-
}, z.core.$strip
|
|
161
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
162
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
163
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
164
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
165
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
166
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
141
|
+
}, z.core.$strip>>], undefined>;
|
|
167
142
|
declare const deleteFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
168
143
|
id: z.ZodNumber;
|
|
169
144
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -189,13 +164,7 @@ declare const deleteFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
189
164
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
190
165
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
191
166
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
|
-
}, z.core.$strip
|
|
193
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
194
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
195
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
196
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
197
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
198
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
167
|
+
}, z.core.$strip>>], undefined>;
|
|
199
168
|
declare const enableFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
200
169
|
id: z.ZodNumber;
|
|
201
170
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -221,13 +190,7 @@ declare const enableFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
221
190
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
222
191
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
223
192
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
224
|
-
}, z.core.$strip
|
|
225
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
226
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
227
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
228
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
229
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
230
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
193
|
+
}, z.core.$strip>>], undefined>;
|
|
231
194
|
declare const disableFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
232
195
|
id: z.ZodNumber;
|
|
233
196
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -253,13 +216,7 @@ declare const disableFeatureFlag: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
253
216
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
254
217
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
255
218
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
256
|
-
}, z.core.$strip
|
|
257
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
258
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
259
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
260
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
261
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
262
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
219
|
+
}, z.core.$strip>>], undefined>;
|
|
263
220
|
declare const getFeatureFlagActivity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
264
221
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
265
222
|
id: z.ZodNumber;
|
|
@@ -272,13 +229,7 @@ declare const getFeatureFlagActivity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
272
229
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
273
230
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
274
231
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
275
|
-
}, z.core.$strip
|
|
276
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
277
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
278
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
279
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
280
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
281
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
232
|
+
}, z.core.$strip>>], undefined>;
|
|
282
233
|
declare const getMyFeatureFlags: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
283
234
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
284
235
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:posthog", z.ZodObject<{
|
|
@@ -287,13 +238,7 @@ declare const getMyFeatureFlags: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
287
238
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
288
239
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
289
240
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
290
|
-
}, z.core.$strip
|
|
291
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
292
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
293
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
294
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
295
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
296
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
241
|
+
}, z.core.$strip>>], undefined>;
|
|
297
242
|
declare const getFeatureFlagRoleAccess: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
298
243
|
id: z.ZodNumber;
|
|
299
244
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -313,13 +258,7 @@ declare const getFeatureFlagRoleAccess: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
313
258
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
314
259
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
315
260
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
316
|
-
}, z.core.$strip
|
|
317
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
318
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
319
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
320
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
321
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
322
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
261
|
+
}, z.core.$strip>>], undefined>;
|
|
323
262
|
declare const createFeatureFlagRoleAccess: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
324
263
|
role: z.ZodNumber;
|
|
325
264
|
id: z.ZodNumber;
|
|
@@ -335,13 +274,7 @@ declare const createFeatureFlagRoleAccess: _keystrokehq_core0.Operation<z.ZodObj
|
|
|
335
274
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
336
275
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
337
276
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
338
|
-
}, z.core.$strip
|
|
339
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
340
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
341
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
342
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
343
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
344
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
277
|
+
}, z.core.$strip>>], undefined>;
|
|
345
278
|
declare const deleteFeatureFlagRoleAccess: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
346
279
|
roleAccessId: z.ZodNumber;
|
|
347
280
|
id: z.ZodNumber;
|
|
@@ -354,13 +287,7 @@ declare const deleteFeatureFlagRoleAccess: _keystrokehq_core0.Operation<z.ZodObj
|
|
|
354
287
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
355
288
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
356
289
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
357
|
-
}, z.core.$strip
|
|
358
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
359
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
360
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
361
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
362
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
363
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
290
|
+
}, z.core.$strip>>], undefined>;
|
|
364
291
|
declare const getFeatureFlagDashboards: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
365
292
|
id: z.ZodNumber;
|
|
366
293
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -372,13 +299,7 @@ declare const getFeatureFlagDashboards: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
372
299
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
373
300
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
374
301
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
375
|
-
}, z.core.$strip
|
|
376
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
377
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
378
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
379
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
380
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
381
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
302
|
+
}, z.core.$strip>>], undefined>;
|
|
382
303
|
declare const getFeatureFlagRemoteConfig: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
383
304
|
distinctId: z.ZodString;
|
|
384
305
|
id: z.ZodNumber;
|
|
@@ -389,13 +310,7 @@ declare const getFeatureFlagRemoteConfig: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
389
310
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
390
311
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
391
312
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
392
|
-
}, z.core.$strip
|
|
393
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
394
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
395
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
396
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
397
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
398
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
313
|
+
}, z.core.$strip>>], undefined>;
|
|
399
314
|
declare const getFeatureFlagStatus: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
400
315
|
id: z.ZodNumber;
|
|
401
316
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -405,12 +320,6 @@ declare const getFeatureFlagStatus: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
405
320
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
406
321
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
407
322
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
408
|
-
}, z.core.$strip
|
|
409
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
410
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
411
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
412
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
413
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
414
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
323
|
+
}, z.core.$strip>>], undefined>;
|
|
415
324
|
//#endregion
|
|
416
325
|
export { createFeatureFlag, createFeatureFlagRoleAccess, deleteFeatureFlag, deleteFeatureFlagRoleAccess, disableFeatureFlag, enableFeatureFlag, getFeatureFlag, getFeatureFlagActivity, getFeatureFlagDashboards, getFeatureFlagRemoteConfig, getFeatureFlagRoleAccess, getFeatureFlagStatus, getMyFeatureFlags, listFeatureFlags, updateFeatureFlag };
|
package/dist/feature-flags.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPosthogManagementClient } from "./client.mjs";
|
|
2
2
|
import { featureFlagFiltersSchema, featureFlagRoleAccessSchema, featureFlagSchema, paginatedResponseSchema, projectIdInputShape } from "./schemas.mjs";
|
|
3
|
-
import { t as posthogOperation } from "./factory-
|
|
3
|
+
import { t as posthogOperation } from "./factory-D4Ve2fJ-.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/feature-flags.ts
|
package/dist/insights.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
2
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/insights.d.ts
|
|
@@ -39,13 +38,7 @@ declare const listInsights: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
39
38
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
40
39
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
41
40
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
-
}, z.core.$strip
|
|
43
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
44
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
45
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
46
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
47
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
41
|
+
}, z.core.$strip>>], undefined>;
|
|
49
42
|
declare const getInsight: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
50
43
|
id: z.ZodNumber;
|
|
51
44
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -71,13 +64,7 @@ declare const getInsight: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
71
64
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
72
65
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
73
66
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
-
}, z.core.$strip
|
|
75
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
76
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
77
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
78
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
79
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
67
|
+
}, z.core.$strip>>], undefined>;
|
|
81
68
|
declare const createInsight: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
82
69
|
name: z.ZodOptional<z.ZodString>;
|
|
83
70
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -111,13 +98,7 @@ declare const createInsight: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
111
98
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
112
99
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
113
100
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
|
-
}, z.core.$strip
|
|
115
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
116
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
117
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
118
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
119
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
120
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
101
|
+
}, z.core.$strip>>], undefined>;
|
|
121
102
|
declare const updateInsight: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
122
103
|
name: z.ZodOptional<z.ZodString>;
|
|
123
104
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -152,13 +133,7 @@ declare const updateInsight: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
152
133
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
153
134
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
154
135
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
155
|
-
}, z.core.$strip
|
|
156
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
157
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
158
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
159
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
160
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
136
|
+
}, z.core.$strip>>], undefined>;
|
|
162
137
|
declare const deleteInsight: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
163
138
|
id: z.ZodNumber;
|
|
164
139
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -184,13 +159,7 @@ declare const deleteInsight: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
184
159
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
185
160
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
186
161
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
187
|
-
}, z.core.$strip
|
|
188
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
189
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
190
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
191
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
192
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
193
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
162
|
+
}, z.core.$strip>>], undefined>;
|
|
194
163
|
declare const getInsightActivity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
195
164
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
196
165
|
id: z.ZodNumber;
|
|
@@ -203,13 +172,7 @@ declare const getInsightActivity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
203
172
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
204
173
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
205
174
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
206
|
-
}, z.core.$strip
|
|
207
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
208
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
209
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
210
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
211
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
212
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
175
|
+
}, z.core.$strip>>], undefined>;
|
|
213
176
|
declare const getInsightsActivityFeed: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
214
177
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
215
178
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -221,13 +184,7 @@ declare const getInsightsActivityFeed: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
221
184
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
222
185
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
223
186
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
224
|
-
}, z.core.$strip
|
|
225
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
226
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
227
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
228
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
229
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
230
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
187
|
+
}, z.core.$strip>>], undefined>;
|
|
231
188
|
declare const getInsightSharing: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
232
189
|
id: z.ZodNumber;
|
|
233
190
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -241,13 +198,7 @@ declare const getInsightSharing: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
241
198
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
242
199
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
243
200
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
244
|
-
}, z.core.$strip
|
|
245
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
246
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
247
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
248
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
249
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
250
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
201
|
+
}, z.core.$strip>>], undefined>;
|
|
251
202
|
declare const updateInsightSharing: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
252
203
|
enabled: z.ZodBoolean;
|
|
253
204
|
id: z.ZodNumber;
|
|
@@ -262,13 +213,7 @@ declare const updateInsightSharing: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
262
213
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
263
214
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
264
215
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
265
|
-
}, z.core.$strip
|
|
266
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
267
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
268
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
269
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
270
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
271
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
216
|
+
}, z.core.$strip>>], undefined>;
|
|
272
217
|
declare const getMyInsights: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
273
218
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
274
219
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -299,13 +244,7 @@ declare const getMyInsights: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
299
244
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
300
245
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
301
246
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
302
|
-
}, z.core.$strip
|
|
303
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
304
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
305
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
306
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
307
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
308
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
247
|
+
}, z.core.$strip>>], undefined>;
|
|
309
248
|
declare const markInsightViewed: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
310
249
|
id: z.ZodNumber;
|
|
311
250
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -317,13 +256,7 @@ declare const markInsightViewed: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
317
256
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
318
257
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
319
258
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
320
|
-
}, z.core.$strip
|
|
321
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
322
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
323
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
324
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
325
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
326
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
259
|
+
}, z.core.$strip>>], undefined>;
|
|
327
260
|
declare const executeInsightQuery: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
328
261
|
query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
329
262
|
refresh: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -334,13 +267,7 @@ declare const executeInsightQuery: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
334
267
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
335
268
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
336
269
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
337
|
-
}, z.core.$strip
|
|
338
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
339
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
340
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
341
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
342
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
343
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
270
|
+
}, z.core.$strip>>], undefined>;
|
|
344
271
|
declare const getInsightRetention: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
345
272
|
query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
346
273
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -350,13 +277,7 @@ declare const getInsightRetention: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
350
277
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
351
278
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
352
279
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
353
|
-
}, z.core.$strip
|
|
354
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
355
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
356
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
357
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
358
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
359
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
280
|
+
}, z.core.$strip>>], undefined>;
|
|
360
281
|
declare const getInsightFunnel: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
361
282
|
query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
362
283
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -366,13 +287,7 @@ declare const getInsightFunnel: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
366
287
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
367
288
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
368
289
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
369
|
-
}, z.core.$strip
|
|
370
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
371
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
372
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
373
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
374
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
375
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
290
|
+
}, z.core.$strip>>], undefined>;
|
|
376
291
|
declare const getInsightPath: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
377
292
|
query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
378
293
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -382,13 +297,7 @@ declare const getInsightPath: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
382
297
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
383
298
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
384
299
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
385
|
-
}, z.core.$strip
|
|
386
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
387
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
388
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
389
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
390
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
391
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
300
|
+
}, z.core.$strip>>], undefined>;
|
|
392
301
|
declare const getInsightTrend: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
393
302
|
query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
394
303
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -398,12 +307,6 @@ declare const getInsightTrend: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
398
307
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
399
308
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
400
309
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
401
|
-
}, z.core.$strip
|
|
402
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
403
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
404
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
405
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
406
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
407
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
310
|
+
}, z.core.$strip>>], undefined>;
|
|
408
311
|
//#endregion
|
|
409
312
|
export { createInsight, deleteInsight, executeInsightQuery, getInsight, getInsightActivity, getInsightFunnel, getInsightPath, getInsightRetention, getInsightSharing, getInsightTrend, getInsightsActivityFeed, getMyInsights, listInsights, markInsightViewed, updateInsight, updateInsightSharing };
|
package/dist/insights.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPosthogManagementClient } from "./client.mjs";
|
|
2
2
|
import { insightSchema, paginatedResponseSchema, projectIdInputShape, sharingConfigurationSchema } from "./schemas.mjs";
|
|
3
|
-
import { t as posthogOperation } from "./factory-
|
|
3
|
+
import { t as posthogOperation } from "./factory-D4Ve2fJ-.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/insights.ts
|
|
@@ -21,6 +21,7 @@ const posthogOfficialIntegration = {
|
|
|
21
21
|
id: "posthog",
|
|
22
22
|
name: "PostHog",
|
|
23
23
|
description: "PostHog product analytics, feature flags, experiments, session replay, surveys, and data-platform management",
|
|
24
|
+
credentialType: "manual",
|
|
24
25
|
auth: posthogAuthSchema
|
|
25
26
|
};
|
|
26
27
|
const posthogBundle = defineOfficialIntegration(posthogOfficialIntegration);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
5
3
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
|
+
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
6
5
|
|
|
7
6
|
//#region src/integration.d.ts
|
|
8
7
|
/**
|
|
@@ -17,6 +16,7 @@ declare const posthogOfficialIntegration: {
|
|
|
17
16
|
id: "posthog";
|
|
18
17
|
name: string;
|
|
19
18
|
description: string;
|
|
19
|
+
credentialType: "manual";
|
|
20
20
|
auth: z.ZodObject<{
|
|
21
21
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
22
22
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -38,13 +38,7 @@ declare const posthog: _keystrokehq_core0.CredentialSet<"keystroke:posthog", z.Z
|
|
|
38
38
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
39
39
|
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
40
40
|
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
-
}, z.core.$strip
|
|
42
|
-
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
43
|
-
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
44
|
-
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
45
|
-
POSTHOG_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
46
|
-
POSTHOG_SCOPES: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
-
}, z.core.$strip>>[] | undefined>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
48
42
|
/**
|
|
49
43
|
* Credentials injected into steps. Derived from the integration definition.
|
|
50
44
|
*/
|