@tool-bridge/server 0.21.1 → 0.23.0
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/admin.js +170 -0
- package/dist/airtable-VMQVXLHK.js +790 -0
- package/dist/{alt_text_generator_ai-W7O34SNG.js → alt_text_generator_ai-FTWY4RU4.js} +12 -11
- package/dist/{amap-VOX4T2AW.js → amap-OK5VBHYC.js} +221 -220
- package/dist/anthropic-S67AZFZ3.js +203 -0
- package/dist/apify-ZE6MYQI3.js +248 -0
- package/dist/brave_search-TG2M2KOD.js +302 -0
- package/dist/chunk-2JNAI4OC.js +161 -0
- package/dist/{chunk-KMTT3I6D.js → chunk-4XJPN3DY.js} +19392 -26136
- package/dist/chunk-5ICRY3VU.js +8432 -0
- package/dist/chunk-7CTWGTDU.js +302 -0
- package/dist/chunk-BADVCN6K.js +378 -0
- package/dist/{chunk-XYBU3WZH.js → chunk-TDAWLMDE.js} +3 -3
- package/dist/chunk-U7PTOA3U.js +7320 -0
- package/dist/{chunk-E6JCVKW6.js → chunk-VWRUGUSU.js} +3 -3
- package/dist/{chunk-ATK45BXV.js → chunk-WJHG6OK7.js} +4 -2
- package/dist/circleci-3L3WJVSK.js +389 -0
- package/dist/clerk-EZPF2V7T.js +1019 -0
- package/dist/cohere-U27DPO64.js +185 -0
- package/dist/{confluence-B3EWPZVE.js → confluence-G2KL6ERH.js} +105 -104
- package/dist/{convertapi-EUWSQYPF.js → convertapi-L4CLJ2M3.js} +32 -31
- package/dist/{currencyapi-KVTIK3GL.js → currencyapi-YPYXG7YY.js} +71 -71
- package/dist/deepseek-6HT6WF3M.js +210 -0
- package/dist/docker_hub-LPE3PCVB.js +933 -0
- package/dist/dropbox-V56ABHTA.js +1305 -0
- package/dist/dub-6OKQ7MHT.js +680 -0
- package/dist/e2b-JS2U2QFU.js +278 -0
- package/dist/exa-DPWVYXSP.js +332 -0
- package/dist/{fal_ai-23E7JPNT.js → fal_ai-DK6Y27ZF.js} +81 -80
- package/dist/{feishu-7QRIDUV6.js → feishu-K7EGSRF3.js} +528 -572
- package/dist/{feishu_custom_bot-TJ4K7QNJ.js → feishu_custom_bot-2JUGFYNG.js} +57 -53
- package/dist/figma-FT5I7ITD.js +777 -0
- package/dist/firehydrant-EIKLKHX2.js +563 -0
- package/dist/{fixer-BWON27UO.js → fixer-U5QXIAKD.js} +34 -33
- package/dist/fly-T3JYFZ2M.js +469 -0
- package/dist/{front-QCGXYEDJ.js → front-D72MGVOR.js} +104 -104
- package/dist/geocodio-BOTD5TI5.js +213 -0
- package/dist/ghost-KYP7SZGB.js +338 -0
- package/dist/github-AGMZT3VY.js +5421 -0
- package/dist/gmail-BLJNJOBG.js +1887 -0
- package/dist/googlecalendar-GTHWNCF6.js +2524 -0
- package/dist/{googledocs-BUHL4J2H.js → googledocs-6EEDMEBQ.js} +341 -340
- package/dist/{grafana-GLU2DWF2.js → grafana-GMW6EKSQ.js} +221 -220
- package/dist/graphhopper-6OLGBDGB.js +325 -0
- package/dist/index.d.ts +1132 -332
- package/dist/index.js +31 -14
- package/dist/{ip2proxy-EZ64Y4ZH.js → ip2proxy-4QN42E6T.js} +28 -27
- package/dist/ipgeolocation_io-SK4XKDA2.js +315 -0
- package/dist/ipqualityscore-6ANBPXKT.js +279 -0
- package/dist/{jina_ai-EFBHTBXL.js → jina_ai-IHPSVRM5.js} +23 -23
- package/dist/{jira-HQSHAA5K.js → jira-46KKM4LC.js} +118 -117
- package/dist/langsmith-JZA345I5.js +593 -0
- package/dist/lemlist-43IV7DK6.js +289 -0
- package/dist/{linear-K7RYFYAD.js → linear-5LFH7XNL.js} +327 -326
- package/dist/logsnag-5RMYAHIL.js +150 -0
- package/dist/main.js +57 -280
- package/dist/{mattermost-S2BRCWLQ.js → mattermost-XFL6SHGG.js} +59 -58
- package/dist/mem0-NYO4DTP6.js +544 -0
- package/dist/memos-37MPQOLV.js +744 -0
- package/dist/{metabase-MMSEPCOF.js → metabase-KYBKZFMG.js} +90 -89
- package/dist/mistral_ai-6PL3K4PM.js +1196 -0
- package/dist/{mother_duck-H7PCQNZ2.js → mother_duck-2NH7W5M5.js} +94 -93
- package/dist/ngrok-UO6CDYCA.js +356 -0
- package/dist/{notes-PFMKRO33.js → notes-I3P32WP4.js} +11 -9
- package/dist/notion-BEAJFUOE.js +940 -0
- package/dist/open_exchange_rates-CMF62JB4.js +215 -0
- package/dist/openai-IHOMKVND.js +800 -0
- package/dist/opengraph_io-ZQ2FGLHX.js +362 -0
- package/dist/openrouter-HXLW3NR5.js +441 -0
- package/dist/outline-ELCP4NEU.js +599 -0
- package/dist/paddle-O77LALVN.js +454 -0
- package/dist/perplexity-JCU654QV.js +220 -0
- package/dist/pinecone-W5W4LRKL.js +571 -0
- package/dist/{pipedrive-Y2O7QGFF.js → pipedrive-ITMJLLPZ.js} +99 -98
- package/dist/polar-R33XU4L3.js +395 -0
- package/dist/posthog-JVNTOLTV.js +3464 -0
- package/dist/postmark-6SBG7HWV.js +427 -0
- package/dist/{prerender-MENYM2TY.js → prerender-GPNKTNFC.js} +31 -30
- package/dist/{pubmed-GOXUVVH5.js → pubmed-UP6ZEEIH.js} +239 -238
- package/dist/{railway-V2SID4WV.js → railway-KWEWXHTY.js} +118 -117
- package/dist/readwise-BLATSMC3.js +470 -0
- package/dist/render-QYRVIXII.js +461 -0
- package/dist/{replicate-756MXPYX.js → replicate-JYTWH4NF.js} +81 -80
- package/dist/{resend-ZKH3BTBI.js → resend-L5N75SZM.js} +20 -16
- package/dist/rootly-MHCPEQ26.js +336 -0
- package/dist/{scrapfly-NSRHFDIQ.js → scrapfly-PTPGYSJM.js} +62 -61
- package/dist/{scrapingbee-OQHLAVEY.js → scrapingbee-JN6UH5PY.js} +56 -56
- package/dist/{screenshot_fyi-DVWG3AXC.js → screenshot_fyi-4QRVSV55.js} +16 -16
- package/dist/semantic_scholar-LRSWA2GE.js +611 -0
- package/dist/{sentry-546MNDJG.js → sentry-2G6PF5W6.js} +208 -207
- package/dist/{shodan-C3OON3Z3.js → shodan-WKKPP5C6.js} +62 -61
- package/dist/shopify-64YDK5T2.js +610 -0
- package/dist/stripe-QAIGGOTF.js +585 -0
- package/dist/{supabase-U2SL4D63.js → supabase-WHTGR6ND.js} +245 -244
- package/dist/tavily-QIXCDDWO.js +326 -0
- package/dist/telegram-E6G7CWI6.js +1767 -0
- package/dist/{telnyx-CXQ4EZUX.js → telnyx-ZDVVS7PK.js} +57 -56
- package/dist/todoist-DMYF3G7J.js +664 -0
- package/dist/trello-HY2RYIRP.js +1080 -0
- package/dist/turso-HAQWMGRP.js +416 -0
- package/dist/{twilio-4PDBJKWX.js → twilio-MLXYPHJE.js} +70 -69
- package/dist/umami-DZHBLPVG.js +389 -0
- package/dist/unsplash-GS2OPXKE.js +351 -0
- package/dist/{upstash_redis-G4LQBYHA.js → upstash_redis-XMXWTNAJ.js} +51 -50
- package/dist/uptimerobot-TF5WRZ4G.js +483 -0
- package/dist/v2ex-2BVXAPDF.js +667 -0
- package/dist/vercel-YMJGQYJE.js +1076 -0
- package/dist/{wolfram_alpha_api-3G4PUJWB.js → wolfram_alpha_api-I56SXWFZ.js} +36 -35
- package/dist/wordpress-R7TDFZ2P.js +812 -0
- package/dist/workos-HDNHWVMS.js +664 -0
- package/dist/zhihu-LX6AGGDS.js +254 -0
- package/package.json +18 -9
- package/dist/airtable-LLZDFN7M.js +0 -789
- package/dist/anthropic-G23NN3X5.js +0 -202
- package/dist/apify-Y3SS734K.js +0 -247
- package/dist/brave_search-ZC7OAPSZ.js +0 -301
- package/dist/chunk-R6P4XAE5.js +0 -248
- package/dist/chunk-U7B6DS2O.js +0 -977
- package/dist/chunk-UZM2RXZH.js +0 -23436
- package/dist/circleci-3BAX5FCG.js +0 -388
- package/dist/clerk-6LEM6TNU.js +0 -1019
- package/dist/cloudflare_dns-KINYTJUD.js +0 -588
- package/dist/cohere-XCJ5AJ6B.js +0 -185
- package/dist/deepseek-PC5YGNC5.js +0 -209
- package/dist/docker_hub-C3MA5FU6.js +0 -932
- package/dist/dropbox-XBV7Z2IR.js +0 -1304
- package/dist/dub-LDOFG3HC.js +0 -679
- package/dist/e2b-JMCPSVBW.js +0 -277
- package/dist/exa-RAK7O7RD.js +0 -331
- package/dist/figma-E6IX5DTH.js +0 -773
- package/dist/firehydrant-ZBLPQREE.js +0 -562
- package/dist/fly-ZH3HFCZJ.js +0 -468
- package/dist/geocodio-YGNI7DA4.js +0 -212
- package/dist/ghost-EVSGKH2Q.js +0 -337
- package/dist/github-MA2BGRCJ.js +0 -5420
- package/dist/gmail-E5E6AADE.js +0 -1886
- package/dist/googlecalendar-BTLFPXTD.js +0 -2523
- package/dist/graphhopper-WSMB3TCD.js +0 -324
- package/dist/ipgeolocation_io-AA7HAS22.js +0 -315
- package/dist/ipqualityscore-BHJXVTJT.js +0 -277
- package/dist/langsmith-5W6SCT6F.js +0 -592
- package/dist/lemlist-HJWH6UMK.js +0 -288
- package/dist/logsnag-4KFOHL37.js +0 -150
- package/dist/mem0-CAW43CIC.js +0 -543
- package/dist/memos-TWEGPKFM.js +0 -740
- package/dist/mistral_ai-64BGZQHP.js +0 -1195
- package/dist/ngrok-GQCUGZKJ.js +0 -356
- package/dist/notion-DQWZWP4N.js +0 -936
- package/dist/open_exchange_rates-QMMD735E.js +0 -214
- package/dist/openai-W6PX32NZ.js +0 -799
- package/dist/opengraph_io-HNDBXYNW.js +0 -361
- package/dist/openrouter-JJYMEAUL.js +0 -437
- package/dist/outline-MCBNQZYY.js +0 -595
- package/dist/paddle-D2SKLUDN.js +0 -453
- package/dist/perplexity-XIFMKUAE.js +0 -219
- package/dist/pinecone-HUFTALV2.js +0 -570
- package/dist/polar-TYTOMOSR.js +0 -394
- package/dist/posthog-43JAR3VW.js +0 -3463
- package/dist/postmark-KL2QJYSG.js +0 -426
- package/dist/readwise-CI4GIMMJ.js +0 -469
- package/dist/render-SUBJ6YRZ.js +0 -460
- package/dist/rootly-CD2LJHPI.js +0 -336
- package/dist/semantic_scholar-T4A252KW.js +0 -610
- package/dist/shopify-Y2HN2MCQ.js +0 -609
- package/dist/stripe-VE3CD3AY.js +0 -584
- package/dist/tavily-KCZHK6HE.js +0 -326
- package/dist/telegram-3URFBCMY.js +0 -1766
- package/dist/todoist-HNPWNYTD.js +0 -663
- package/dist/trello-3W2MIXRP.js +0 -1079
- package/dist/turso-2EQF7C2Z.js +0 -415
- package/dist/umami-5REN7TGP.js +0 -388
- package/dist/unsplash-EIXL424F.js +0 -350
- package/dist/uptimerobot-KNJ3EYLY.js +0 -482
- package/dist/v2ex-RHJ234PZ.js +0 -666
- package/dist/vercel-AS6NCIC7.js +0 -1075
- package/dist/wordpress-KNDAAUV7.js +0 -811
- package/dist/workos-R6UITSJ7.js +0 -663
- package/dist/zhihu-AGK4HILK.js +0 -253
package/dist/posthog-43JAR3VW.js
DELETED
|
@@ -1,3463 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createAuthedClient
|
|
3
|
-
} from "./chunk-XYBU3WZH.js";
|
|
4
|
-
import "./chunk-E6JCVKW6.js";
|
|
5
|
-
import {
|
|
6
|
-
booleanValue,
|
|
7
|
-
compactDefined
|
|
8
|
-
} from "./chunk-JXHMDBAY.js";
|
|
9
|
-
import {
|
|
10
|
-
createProviderPlugin,
|
|
11
|
-
requireApiKey,
|
|
12
|
-
upstreamError
|
|
13
|
-
} from "./chunk-ATK45BXV.js";
|
|
14
|
-
import {
|
|
15
|
-
assertPublicHttpUrl
|
|
16
|
-
} from "./chunk-U7B6DS2O.js";
|
|
17
|
-
import {
|
|
18
|
-
TBError,
|
|
19
|
-
external_exports
|
|
20
|
-
} from "./chunk-UZM2RXZH.js";
|
|
21
|
-
import "./chunk-U67V476Y.js";
|
|
22
|
-
|
|
23
|
-
// ../plugins/src/posthog/api.ts
|
|
24
|
-
var SERVICE = "posthog";
|
|
25
|
-
var CURRENT_USER_PATH = "/api/users/@me/";
|
|
26
|
-
function str(value) {
|
|
27
|
-
return typeof value === "string" ? value : void 0;
|
|
28
|
-
}
|
|
29
|
-
function num(value) {
|
|
30
|
-
return typeof value === "number" ? value : void 0;
|
|
31
|
-
}
|
|
32
|
-
function nullableStr(value) {
|
|
33
|
-
return value === null ? null : str(value);
|
|
34
|
-
}
|
|
35
|
-
function nullableNum(value) {
|
|
36
|
-
return value === null ? null : num(value);
|
|
37
|
-
}
|
|
38
|
-
function nullableBool(value) {
|
|
39
|
-
return value === null ? null : booleanValue(value);
|
|
40
|
-
}
|
|
41
|
-
function nullableRecord(value) {
|
|
42
|
-
if (value === null) return null;
|
|
43
|
-
if (typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
function looseRecord(value) {
|
|
47
|
-
return nullableRecord(value) ?? {};
|
|
48
|
-
}
|
|
49
|
-
function list(value) {
|
|
50
|
-
return Array.isArray(value) ? value : [];
|
|
51
|
-
}
|
|
52
|
-
function stringList(value) {
|
|
53
|
-
return list(value).filter((item) => typeof item === "string");
|
|
54
|
-
}
|
|
55
|
-
function stringListOrUndefined(value) {
|
|
56
|
-
return Array.isArray(value) ? stringList(value) : void 0;
|
|
57
|
-
}
|
|
58
|
-
function numberList(value) {
|
|
59
|
-
return list(value).filter((item) => typeof item === "number");
|
|
60
|
-
}
|
|
61
|
-
function looseId(value) {
|
|
62
|
-
if (typeof value === "string" && value.trim() !== "") return value;
|
|
63
|
-
if (typeof value === "number" && Number.isFinite(value)) return String(value);
|
|
64
|
-
return void 0;
|
|
65
|
-
}
|
|
66
|
-
function optionalSegment(value) {
|
|
67
|
-
if (typeof value === "number" && Number.isFinite(value)) return String(value);
|
|
68
|
-
if (typeof value === "string") {
|
|
69
|
-
const trimmed = value.trim();
|
|
70
|
-
return trimmed === "" ? void 0 : trimmed;
|
|
71
|
-
}
|
|
72
|
-
return void 0;
|
|
73
|
-
}
|
|
74
|
-
function segment(value, field) {
|
|
75
|
-
const normalized = optionalSegment(value);
|
|
76
|
-
if (normalized === void 0) throw new TBError("invalid_argument", `${field} \u662F\u5FC5\u586B`);
|
|
77
|
-
return normalized;
|
|
78
|
-
}
|
|
79
|
-
function requireNonEmptyStrings(value, field) {
|
|
80
|
-
if (!Array.isArray(value)) throw new TBError("invalid_argument", `${field} \u5FC5\u987B\u662F\u975E\u7A7A\u6570\u7EC4`);
|
|
81
|
-
const items = value.filter((item) => typeof item === "string" && item !== "");
|
|
82
|
-
if (items.length === 0) throw new TBError("invalid_argument", `${field} \u5FC5\u987B\u662F\u975E\u7A7A\u6570\u7EC4`);
|
|
83
|
-
return items;
|
|
84
|
-
}
|
|
85
|
-
function joinStrings(value) {
|
|
86
|
-
const items = stringList(value);
|
|
87
|
-
return items.length > 0 ? items.join(",") : void 0;
|
|
88
|
-
}
|
|
89
|
-
function stringifyQuery(value) {
|
|
90
|
-
const object = nullableRecord(value);
|
|
91
|
-
if (object === null || object === void 0) return void 0;
|
|
92
|
-
return JSON.stringify(object);
|
|
93
|
-
}
|
|
94
|
-
function resolveBaseUrl(ctx) {
|
|
95
|
-
const raw = str(ctx.config?.baseUrl)?.trim();
|
|
96
|
-
if (raw === void 0 || raw === "") {
|
|
97
|
-
throw new TBError(
|
|
98
|
-
"invalid_argument",
|
|
99
|
-
`${SERVICE} \u9700\u8981\u6302\u8F7D\u914D\u7F6E providerConfig.baseUrl(\u5982 https://us.posthog.com\u3001https://eu.posthog.com \u6216\u81EA\u6258\u7BA1\u57DF\u540D)`
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
const parsed = assertPublicHttpUrl(raw);
|
|
103
|
-
if (parsed.protocol !== "https:") {
|
|
104
|
-
throw new TBError("invalid_argument", "providerConfig.baseUrl \u5FC5\u987B\u662F https");
|
|
105
|
-
}
|
|
106
|
-
if (parsed.username !== "" || parsed.password !== "") {
|
|
107
|
-
throw new TBError("invalid_argument", "providerConfig.baseUrl \u4E0D\u80FD\u5E26\u7528\u6237\u540D\u6216\u5BC6\u7801");
|
|
108
|
-
}
|
|
109
|
-
let path = parsed.pathname;
|
|
110
|
-
while (path.endsWith("/")) path = path.slice(0, -1);
|
|
111
|
-
return `${parsed.origin}${path}`;
|
|
112
|
-
}
|
|
113
|
-
function resolveAuth(ctx) {
|
|
114
|
-
requireApiKey(ctx, SERVICE);
|
|
115
|
-
return resolveBaseUrl(ctx);
|
|
116
|
-
}
|
|
117
|
-
function posthogError(status, payload, fallback) {
|
|
118
|
-
const body = nullableRecord(payload);
|
|
119
|
-
const detail = str(body?.detail) ?? str(body?.message) ?? fallback;
|
|
120
|
-
const attr = str(body?.attr);
|
|
121
|
-
return upstreamError(status, attr === void 0 || attr === "" ? detail : `${detail} (${attr})`);
|
|
122
|
-
}
|
|
123
|
-
function responsePayload(data, bodyKind) {
|
|
124
|
-
return bodyKind === "json" ? data : void 0;
|
|
125
|
-
}
|
|
126
|
-
var http = createAuthedClient({
|
|
127
|
-
service: SERVICE,
|
|
128
|
-
auth: { kind: "bearer" },
|
|
129
|
-
// 迁移前 GET 也带 content-type,保留真实 wire。
|
|
130
|
-
headers: { "content-type": "application/json" },
|
|
131
|
-
// DRF 的 attr 要拼进消息尾巴,标准键序提取表达不了,整段覆写。
|
|
132
|
-
mapError: ({ bodyKind, data, status }) => posthogError(
|
|
133
|
-
status,
|
|
134
|
-
bodyKind === "json" ? data : void 0,
|
|
135
|
-
bodyKind === "empty" ? `${SERVICE} \u8FD4\u56DE HTTP ${status}` : String(data)
|
|
136
|
-
),
|
|
137
|
-
mapTransportError: ({ message }) => new TBError(
|
|
138
|
-
"unavailable",
|
|
139
|
-
`${SERVICE} \u8BF7\u6C42\u5931\u8D25:${message ?? "undefined"}`,
|
|
140
|
-
{ retryable: true }
|
|
141
|
-
)
|
|
142
|
-
});
|
|
143
|
-
async function request(ctx, options) {
|
|
144
|
-
const baseUrl = resolveAuth(ctx);
|
|
145
|
-
const result = await http.request(ctx, {
|
|
146
|
-
baseUrl: `${baseUrl}/`,
|
|
147
|
-
path: options.path,
|
|
148
|
-
method: options.method ?? "GET",
|
|
149
|
-
query: Object.entries(options.query ?? {}),
|
|
150
|
-
...options.body === void 0 ? {} : { json: options.body },
|
|
151
|
-
invalidJson: "text"
|
|
152
|
-
});
|
|
153
|
-
return responsePayload(result.data, result.bodyKind);
|
|
154
|
-
}
|
|
155
|
-
async function requestObject(ctx, options) {
|
|
156
|
-
return looseRecord(await request(ctx, options));
|
|
157
|
-
}
|
|
158
|
-
function requireId(payload, label) {
|
|
159
|
-
const id = num(payload.id);
|
|
160
|
-
if (id === void 0) {
|
|
161
|
-
throw new TBError("unavailable", `${SERVICE} \u7684 ${label} \u54CD\u5E94\u7F3A id`, { retryable: true });
|
|
162
|
-
}
|
|
163
|
-
return id;
|
|
164
|
-
}
|
|
165
|
-
function currentOrganizationId(user) {
|
|
166
|
-
const explicit = str(nullableRecord(user.organization)?.id)?.trim();
|
|
167
|
-
if (explicit !== void 0 && explicit !== "") return explicit;
|
|
168
|
-
const organizations = list(user.organizations);
|
|
169
|
-
if (organizations.length !== 1) return void 0;
|
|
170
|
-
const only = str(looseRecord(organizations[0]).id)?.trim();
|
|
171
|
-
return only === "" ? void 0 : only;
|
|
172
|
-
}
|
|
173
|
-
async function resolveOrganizationId(ctx, explicit) {
|
|
174
|
-
const fromInput = optionalSegment(explicit);
|
|
175
|
-
if (fromInput !== void 0) return fromInput;
|
|
176
|
-
const fromConfig = optionalSegment(ctx.config?.organizationId);
|
|
177
|
-
if (fromConfig !== void 0) return fromConfig;
|
|
178
|
-
const user = await requestObject(ctx, { path: CURRENT_USER_PATH });
|
|
179
|
-
const resolved = currentOrganizationId(user);
|
|
180
|
-
if (resolved !== void 0) return resolved;
|
|
181
|
-
throw new TBError(
|
|
182
|
-
"invalid_argument",
|
|
183
|
-
"organization_id \u662F\u5FC5\u586B:\u5F53\u524D\u51ED\u8BC1\u63A8\u65AD\u4E0D\u51FA\u552F\u4E00\u7684\u7EC4\u7EC7,\u8BF7\u7ED9\u5165\u53C2 organization_id \u6216\u6302\u8F7D\u914D\u7F6E providerConfig.organizationId"
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
function eventDefinitionBody(input) {
|
|
187
|
-
return compactDefined({
|
|
188
|
-
name: input.name,
|
|
189
|
-
owner: input.owner,
|
|
190
|
-
description: input.description,
|
|
191
|
-
tags: input.tags,
|
|
192
|
-
verified: input.verified,
|
|
193
|
-
hidden: input.hidden,
|
|
194
|
-
enforcement_mode: input.enforcement_mode,
|
|
195
|
-
primary_property: input.primary_property,
|
|
196
|
-
post_to_slack: input.post_to_slack,
|
|
197
|
-
default_columns: input.default_columns
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
function propertyDefinitionBody(input) {
|
|
201
|
-
return compactDefined({
|
|
202
|
-
description: input.description,
|
|
203
|
-
tags: input.tags,
|
|
204
|
-
verified: input.verified,
|
|
205
|
-
hidden: input.hidden,
|
|
206
|
-
property_type: input.property_type
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
function bulkUpdateTagsBody(input) {
|
|
210
|
-
return {
|
|
211
|
-
ids: numberList(input.ids),
|
|
212
|
-
action: input.action,
|
|
213
|
-
tags: stringList(input.tags)
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
function annotationBody(input) {
|
|
217
|
-
return compactDefined({
|
|
218
|
-
content: input.content,
|
|
219
|
-
date_marker: input.date_marker,
|
|
220
|
-
creation_type: input.creation_type,
|
|
221
|
-
dashboard_item: input.dashboard_item,
|
|
222
|
-
dashboard_id: input.dashboard_id,
|
|
223
|
-
deleted: input.deleted,
|
|
224
|
-
scope: input.scope
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
function cohortBody(input) {
|
|
228
|
-
return compactDefined({
|
|
229
|
-
name: input.name,
|
|
230
|
-
description: input.description,
|
|
231
|
-
groups: input.groups,
|
|
232
|
-
deleted: input.deleted,
|
|
233
|
-
filters: input.filters,
|
|
234
|
-
query: input.query,
|
|
235
|
-
is_static: input.is_static,
|
|
236
|
-
_create_in_folder: input._create_in_folder,
|
|
237
|
-
_create_static_person_ids: input._create_static_person_ids
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
function insightBody(input) {
|
|
241
|
-
return compactDefined({
|
|
242
|
-
name: input.name,
|
|
243
|
-
description: input.description,
|
|
244
|
-
query: input.query,
|
|
245
|
-
filters: input.filters,
|
|
246
|
-
dashboards: input.dashboards,
|
|
247
|
-
tags: input.tags,
|
|
248
|
-
refresh: input.refresh,
|
|
249
|
-
saved: input.saved,
|
|
250
|
-
favorited: input.favorited
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
function dashboardBody(input) {
|
|
254
|
-
return compactDefined({
|
|
255
|
-
name: input.name,
|
|
256
|
-
description: input.description,
|
|
257
|
-
pinned: input.pinned,
|
|
258
|
-
deleted: input.deleted,
|
|
259
|
-
breakdown_colors: input.breakdown_colors,
|
|
260
|
-
data_color_theme_id: input.data_color_theme_id,
|
|
261
|
-
tags: input.tags,
|
|
262
|
-
restriction_level: input.restriction_level,
|
|
263
|
-
quick_filter_ids: input.quick_filter_ids,
|
|
264
|
-
use_template: input.use_template,
|
|
265
|
-
use_dashboard: input.use_dashboard,
|
|
266
|
-
delete_insights: input.delete_insights,
|
|
267
|
-
_create_in_folder: input._create_in_folder
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
function featureFlagBody(input) {
|
|
271
|
-
return compactDefined({
|
|
272
|
-
key: input.key,
|
|
273
|
-
name: input.name,
|
|
274
|
-
filters: input.filters,
|
|
275
|
-
active: input.active,
|
|
276
|
-
tags: stringListOrUndefined(input.tags),
|
|
277
|
-
evaluation_contexts: stringListOrUndefined(input.evaluation_contexts)
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
function mapAnnotation(value) {
|
|
281
|
-
const payload = looseRecord(value);
|
|
282
|
-
return {
|
|
283
|
-
id: requireId(payload, "annotation"),
|
|
284
|
-
content: nullableStr(payload.content),
|
|
285
|
-
date_marker: nullableStr(payload.date_marker),
|
|
286
|
-
creation_type: str(payload.creation_type),
|
|
287
|
-
dashboard_item: nullableNum(payload.dashboard_item),
|
|
288
|
-
dashboard_id: nullableNum(payload.dashboard_id),
|
|
289
|
-
dashboard_name: nullableStr(payload.dashboard_name),
|
|
290
|
-
insight_short_id: nullableStr(payload.insight_short_id),
|
|
291
|
-
insight_name: nullableStr(payload.insight_name),
|
|
292
|
-
insight_derived_name: nullableStr(payload.insight_derived_name),
|
|
293
|
-
created_by: nullableRecord(payload.created_by),
|
|
294
|
-
created_at: nullableStr(payload.created_at),
|
|
295
|
-
updated_at: str(payload.updated_at),
|
|
296
|
-
deleted: booleanValue(payload.deleted),
|
|
297
|
-
scope: str(payload.scope),
|
|
298
|
-
raw: payload
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
function mapAnnotationList(payload) {
|
|
302
|
-
const results = list(payload.results).map((item) => mapAnnotation(item));
|
|
303
|
-
return {
|
|
304
|
-
count: num(payload.count) ?? results.length,
|
|
305
|
-
next: nullableStr(payload.next),
|
|
306
|
-
previous: nullableStr(payload.previous),
|
|
307
|
-
results,
|
|
308
|
-
raw: payload
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
function mapBulkUpdateTags(payload) {
|
|
312
|
-
return {
|
|
313
|
-
updated: list(payload.updated),
|
|
314
|
-
skipped: list(payload.skipped),
|
|
315
|
-
raw: payload
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
function mapInsight(value) {
|
|
319
|
-
const payload = looseRecord(value);
|
|
320
|
-
return {
|
|
321
|
-
id: requireId(payload, "insight"),
|
|
322
|
-
short_id: str(payload.short_id),
|
|
323
|
-
name: nullableStr(payload.name),
|
|
324
|
-
derived_name: nullableStr(payload.derived_name),
|
|
325
|
-
query: nullableRecord(payload.query),
|
|
326
|
-
order: num(payload.order),
|
|
327
|
-
deleted: booleanValue(payload.deleted),
|
|
328
|
-
dashboards: list(payload.dashboards),
|
|
329
|
-
dashboard_tiles: list(payload.dashboard_tiles).map((item) => looseRecord(item)),
|
|
330
|
-
last_refresh: nullableStr(payload.last_refresh),
|
|
331
|
-
cache_target_age: nullableStr(payload.cache_target_age),
|
|
332
|
-
next_allowed_client_refresh: nullableStr(payload.next_allowed_client_refresh),
|
|
333
|
-
result: payload.result,
|
|
334
|
-
hasMore: nullableBool(payload.hasMore),
|
|
335
|
-
columns: Array.isArray(payload.columns) ? stringList(payload.columns) : void 0,
|
|
336
|
-
created_at: nullableStr(payload.created_at),
|
|
337
|
-
created_by: nullableRecord(payload.created_by),
|
|
338
|
-
description: nullableStr(payload.description),
|
|
339
|
-
updated_at: str(payload.updated_at),
|
|
340
|
-
tags: list(payload.tags),
|
|
341
|
-
favorited: booleanValue(payload.favorited),
|
|
342
|
-
last_modified_at: str(payload.last_modified_at),
|
|
343
|
-
last_modified_by: nullableRecord(payload.last_modified_by),
|
|
344
|
-
is_sample: booleanValue(payload.is_sample),
|
|
345
|
-
effective_restriction_level: num(payload.effective_restriction_level),
|
|
346
|
-
effective_privilege_level: num(payload.effective_privilege_level),
|
|
347
|
-
user_access_level: nullableStr(payload.user_access_level),
|
|
348
|
-
timezone: nullableStr(payload.timezone),
|
|
349
|
-
is_cached: booleanValue(payload.is_cached),
|
|
350
|
-
query_status: nullableRecord(payload.query_status),
|
|
351
|
-
hogql: nullableStr(payload.hogql),
|
|
352
|
-
types: Array.isArray(payload.types) ? payload.types : void 0,
|
|
353
|
-
resolved_date_range: nullableRecord(payload.resolved_date_range),
|
|
354
|
-
alerts: list(payload.alerts),
|
|
355
|
-
last_viewed_at: nullableStr(payload.last_viewed_at),
|
|
356
|
-
raw: payload
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
function mapDashboardBasic(payload) {
|
|
360
|
-
return {
|
|
361
|
-
id: requireId(payload, "dashboard"),
|
|
362
|
-
name: nullableStr(payload.name),
|
|
363
|
-
description: str(payload.description),
|
|
364
|
-
pinned: booleanValue(payload.pinned),
|
|
365
|
-
created_at: str(payload.created_at),
|
|
366
|
-
created_by: nullableRecord(payload.created_by),
|
|
367
|
-
last_accessed_at: nullableStr(payload.last_accessed_at),
|
|
368
|
-
last_viewed_at: nullableStr(payload.last_viewed_at),
|
|
369
|
-
is_shared: booleanValue(payload.is_shared),
|
|
370
|
-
deleted: booleanValue(payload.deleted),
|
|
371
|
-
creation_mode: str(payload.creation_mode),
|
|
372
|
-
tags: list(payload.tags),
|
|
373
|
-
restriction_level: num(payload.restriction_level),
|
|
374
|
-
effective_restriction_level: num(payload.effective_restriction_level),
|
|
375
|
-
effective_privilege_level: num(payload.effective_privilege_level),
|
|
376
|
-
user_access_level: nullableStr(payload.user_access_level),
|
|
377
|
-
access_control_version: str(payload.access_control_version),
|
|
378
|
-
last_refresh: nullableStr(payload.last_refresh),
|
|
379
|
-
team_id: num(payload.team_id)
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
function mapDashboard(value) {
|
|
383
|
-
const payload = looseRecord(value);
|
|
384
|
-
return {
|
|
385
|
-
...mapDashboardBasic(payload),
|
|
386
|
-
filters: nullableRecord(payload.filters),
|
|
387
|
-
variables: nullableRecord(payload.variables),
|
|
388
|
-
breakdown_colors: payload.breakdown_colors,
|
|
389
|
-
data_color_theme_id: nullableNum(payload.data_color_theme_id),
|
|
390
|
-
persisted_filters: nullableRecord(payload.persisted_filters),
|
|
391
|
-
persisted_variables: nullableRecord(payload.persisted_variables),
|
|
392
|
-
quick_filter_ids: Array.isArray(payload.quick_filter_ids) ? stringList(payload.quick_filter_ids) : void 0,
|
|
393
|
-
tiles: Array.isArray(payload.tiles) ? payload.tiles.map((item) => looseRecord(item)) : null,
|
|
394
|
-
raw: payload
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
function mapDashboardCollaborator(value) {
|
|
398
|
-
const payload = looseRecord(value);
|
|
399
|
-
return {
|
|
400
|
-
id: str(payload.id),
|
|
401
|
-
dashboard_id: num(payload.dashboard_id),
|
|
402
|
-
user: nullableRecord(payload.user) ?? {},
|
|
403
|
-
level: num(payload.level),
|
|
404
|
-
added_at: str(payload.added_at),
|
|
405
|
-
updated_at: str(payload.updated_at),
|
|
406
|
-
raw: payload
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
function mapFeatureFlag(value) {
|
|
410
|
-
const payload = looseRecord(value);
|
|
411
|
-
return {
|
|
412
|
-
id: requireId(payload, "feature flag"),
|
|
413
|
-
key: str(payload.key),
|
|
414
|
-
name: str(payload.name),
|
|
415
|
-
active: booleanValue(payload.active),
|
|
416
|
-
filters: nullableRecord(payload.filters) ?? {},
|
|
417
|
-
deleted: booleanValue(payload.deleted),
|
|
418
|
-
created_at: nullableStr(payload.created_at),
|
|
419
|
-
updated_at: nullableStr(payload.updated_at),
|
|
420
|
-
created_by: nullableRecord(payload.created_by),
|
|
421
|
-
last_modified_by: nullableRecord(payload.last_modified_by),
|
|
422
|
-
version: num(payload.version),
|
|
423
|
-
ensure_experience_continuity: nullableBool(payload.ensure_experience_continuity),
|
|
424
|
-
experiment_set: numberList(payload.experiment_set),
|
|
425
|
-
experiment_set_metadata: list(payload.experiment_set_metadata).map((item) => looseRecord(item)),
|
|
426
|
-
surveys: nullableRecord(payload.surveys),
|
|
427
|
-
features: nullableRecord(payload.features),
|
|
428
|
-
rollback_conditions: payload.rollback_conditions,
|
|
429
|
-
performed_rollback: nullableBool(payload.performed_rollback),
|
|
430
|
-
can_edit: nullableBool(payload.can_edit),
|
|
431
|
-
status: nullableStr(payload.status),
|
|
432
|
-
evaluation_runtime: nullableStr(payload.evaluation_runtime),
|
|
433
|
-
bucketing_identifier: nullableStr(payload.bucketing_identifier),
|
|
434
|
-
last_called_at: nullableStr(payload.last_called_at),
|
|
435
|
-
user_access_level: nullableStr(payload.user_access_level),
|
|
436
|
-
rollout_percentage: nullableNum(payload.rollout_percentage),
|
|
437
|
-
tags: list(payload.tags),
|
|
438
|
-
evaluation_contexts: stringList(payload.evaluation_contexts),
|
|
439
|
-
usage_dashboard: num(payload.usage_dashboard),
|
|
440
|
-
analytics_dashboards: numberList(payload.analytics_dashboards),
|
|
441
|
-
has_enriched_analytics: nullableBool(payload.has_enriched_analytics),
|
|
442
|
-
is_remote_configuration: nullableBool(payload.is_remote_configuration),
|
|
443
|
-
has_encrypted_payloads: nullableBool(payload.has_encrypted_payloads),
|
|
444
|
-
is_used_in_replay_settings: nullableBool(payload.is_used_in_replay_settings),
|
|
445
|
-
raw: payload
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
function mapFeatureFlagList(payload) {
|
|
449
|
-
const results = list(payload.results).map((item) => mapFeatureFlag(item));
|
|
450
|
-
return {
|
|
451
|
-
count: num(payload.count) ?? results.length,
|
|
452
|
-
next: nullableStr(payload.next),
|
|
453
|
-
previous: nullableStr(payload.previous),
|
|
454
|
-
results,
|
|
455
|
-
raw: payload
|
|
456
|
-
};
|
|
457
|
-
}
|
|
458
|
-
function mapMinimalFeatureFlag(value) {
|
|
459
|
-
const payload = looseRecord(value);
|
|
460
|
-
return {
|
|
461
|
-
id: requireId(payload, "feature flag"),
|
|
462
|
-
team_id: num(payload.team_id),
|
|
463
|
-
name: str(payload.name),
|
|
464
|
-
key: str(payload.key),
|
|
465
|
-
filters: nullableRecord(payload.filters) ?? {},
|
|
466
|
-
deleted: booleanValue(payload.deleted),
|
|
467
|
-
active: booleanValue(payload.active),
|
|
468
|
-
ensure_experience_continuity: nullableBool(payload.ensure_experience_continuity),
|
|
469
|
-
version: num(payload.version),
|
|
470
|
-
evaluation_runtime: nullableStr(payload.evaluation_runtime),
|
|
471
|
-
bucketing_identifier: nullableStr(payload.bucketing_identifier),
|
|
472
|
-
evaluation_contexts: stringList(payload.evaluation_contexts),
|
|
473
|
-
raw: payload
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
function mapQueryStatus(payload) {
|
|
477
|
-
return {
|
|
478
|
-
id: looseId(payload.id) ?? looseId(payload.query_id),
|
|
479
|
-
query_status: nullableRecord(payload.query_status) ?? payload,
|
|
480
|
-
complete: booleanValue(payload.complete),
|
|
481
|
-
results: Array.isArray(payload.results) ? payload.results : void 0,
|
|
482
|
-
error: payload.error,
|
|
483
|
-
raw: payload
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
async function getCurrentUser(_input, ctx) {
|
|
487
|
-
return requestObject(ctx, { path: CURRENT_USER_PATH });
|
|
488
|
-
}
|
|
489
|
-
async function listProjects(input, ctx) {
|
|
490
|
-
const organizationId = await resolveOrganizationId(ctx, input.organization_id);
|
|
491
|
-
return requestObject(ctx, {
|
|
492
|
-
path: `/api/organizations/${encodeURIComponent(organizationId)}/projects/`,
|
|
493
|
-
query: { limit: input.limit, offset: input.offset, search: input.search }
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
async function getProject(input, ctx) {
|
|
497
|
-
const organizationId = await resolveOrganizationId(ctx, input.organization_id);
|
|
498
|
-
const id = segment(input.id, "id");
|
|
499
|
-
return requestObject(ctx, {
|
|
500
|
-
path: `/api/organizations/${encodeURIComponent(organizationId)}/projects/${encodeURIComponent(id)}/`
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
async function listEventDefinitions(input, ctx) {
|
|
504
|
-
const projectId = segment(input.project_id, "project_id");
|
|
505
|
-
return requestObject(ctx, {
|
|
506
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/event_definitions/`,
|
|
507
|
-
query: { limit: input.limit, offset: input.offset }
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
async function getEventDefinition(input, ctx) {
|
|
511
|
-
const projectId = segment(input.project_id, "project_id");
|
|
512
|
-
const id = segment(input.id, "id");
|
|
513
|
-
return requestObject(ctx, {
|
|
514
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/event_definitions/${encodeURIComponent(id)}/`
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
async function createEventDefinition(input, ctx) {
|
|
518
|
-
const projectId = segment(input.project_id, "project_id");
|
|
519
|
-
return requestObject(ctx, {
|
|
520
|
-
method: "POST",
|
|
521
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/event_definitions/`,
|
|
522
|
-
body: eventDefinitionBody(input)
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
async function updateEventDefinition(input, ctx) {
|
|
526
|
-
const projectId = segment(input.project_id, "project_id");
|
|
527
|
-
const id = segment(input.id, "id");
|
|
528
|
-
return requestObject(ctx, {
|
|
529
|
-
method: "PATCH",
|
|
530
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/event_definitions/${encodeURIComponent(id)}/`,
|
|
531
|
-
body: eventDefinitionBody(input)
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
async function deleteEventDefinition(input, ctx) {
|
|
535
|
-
const projectId = segment(input.project_id, "project_id");
|
|
536
|
-
const id = segment(input.id, "id");
|
|
537
|
-
const payload = await requestObject(ctx, {
|
|
538
|
-
method: "DELETE",
|
|
539
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/event_definitions/${encodeURIComponent(id)}/`
|
|
540
|
-
});
|
|
541
|
-
return { deleted: true, id, raw: payload };
|
|
542
|
-
}
|
|
543
|
-
async function getEventDefinitionByName(input, ctx) {
|
|
544
|
-
const projectId = segment(input.project_id, "project_id");
|
|
545
|
-
return requestObject(ctx, {
|
|
546
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/event_definitions/by_name/`,
|
|
547
|
-
query: { name: segment(input.name, "name") }
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
async function getEventDefinitionPrimaryProperties(input, ctx) {
|
|
551
|
-
const projectId = segment(input.project_id, "project_id");
|
|
552
|
-
const payload = await request(ctx, {
|
|
553
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/event_definitions/primary_properties/`,
|
|
554
|
-
query: { names: joinStrings(input.names) }
|
|
555
|
-
});
|
|
556
|
-
return { results: nullableRecord(payload) ?? {}, raw: payload };
|
|
557
|
-
}
|
|
558
|
-
async function bulkUpdateEventDefinitionTags(input, ctx) {
|
|
559
|
-
const projectId = segment(input.project_id, "project_id");
|
|
560
|
-
return mapBulkUpdateTags(await requestObject(ctx, {
|
|
561
|
-
method: "POST",
|
|
562
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/event_definitions/bulk_update_tags/`,
|
|
563
|
-
body: bulkUpdateTagsBody(input)
|
|
564
|
-
}));
|
|
565
|
-
}
|
|
566
|
-
async function listPropertyDefinitions(input, ctx) {
|
|
567
|
-
const projectId = segment(input.project_id, "project_id");
|
|
568
|
-
return requestObject(ctx, {
|
|
569
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/property_definitions/`,
|
|
570
|
-
query: {
|
|
571
|
-
event_names: input.event_names,
|
|
572
|
-
exclude_core_properties: input.exclude_core_properties,
|
|
573
|
-
exclude_hidden: input.exclude_hidden,
|
|
574
|
-
excluded_properties: input.excluded_properties,
|
|
575
|
-
filter_by_event_names: input.filter_by_event_names,
|
|
576
|
-
group_type_index: input.group_type_index,
|
|
577
|
-
is_feature_flag: input.is_feature_flag,
|
|
578
|
-
is_numerical: input.is_numerical,
|
|
579
|
-
limit: input.limit,
|
|
580
|
-
offset: input.offset,
|
|
581
|
-
properties: input.properties,
|
|
582
|
-
search: input.search,
|
|
583
|
-
type: input.type,
|
|
584
|
-
verified: input.verified
|
|
585
|
-
}
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
async function getPropertyDefinition(input, ctx) {
|
|
589
|
-
const projectId = segment(input.project_id, "project_id");
|
|
590
|
-
const id = segment(input.id, "id");
|
|
591
|
-
return requestObject(ctx, {
|
|
592
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/property_definitions/${encodeURIComponent(id)}/`
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
async function updatePropertyDefinition(input, ctx) {
|
|
596
|
-
const projectId = segment(input.project_id, "project_id");
|
|
597
|
-
const id = segment(input.id, "id");
|
|
598
|
-
return requestObject(ctx, {
|
|
599
|
-
method: "PATCH",
|
|
600
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/property_definitions/${encodeURIComponent(id)}/`,
|
|
601
|
-
body: propertyDefinitionBody(input)
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
async function deletePropertyDefinition(input, ctx) {
|
|
605
|
-
const projectId = segment(input.project_id, "project_id");
|
|
606
|
-
const id = segment(input.id, "id");
|
|
607
|
-
const payload = await requestObject(ctx, {
|
|
608
|
-
method: "DELETE",
|
|
609
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/property_definitions/${encodeURIComponent(id)}/`
|
|
610
|
-
});
|
|
611
|
-
return { deleted: true, id, raw: payload };
|
|
612
|
-
}
|
|
613
|
-
async function bulkUpdatePropertyDefinitionTags(input, ctx) {
|
|
614
|
-
const projectId = segment(input.project_id, "project_id");
|
|
615
|
-
return mapBulkUpdateTags(await requestObject(ctx, {
|
|
616
|
-
method: "POST",
|
|
617
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/property_definitions/bulk_update_tags/`,
|
|
618
|
-
body: bulkUpdateTagsBody(input)
|
|
619
|
-
}));
|
|
620
|
-
}
|
|
621
|
-
async function listAnnotations(input, ctx) {
|
|
622
|
-
const projectId = segment(input.project_id, "project_id");
|
|
623
|
-
return mapAnnotationList(await requestObject(ctx, {
|
|
624
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/annotations/`,
|
|
625
|
-
query: { limit: input.limit, offset: input.offset, search: input.search }
|
|
626
|
-
}));
|
|
627
|
-
}
|
|
628
|
-
async function getAnnotation(input, ctx) {
|
|
629
|
-
const projectId = segment(input.project_id, "project_id");
|
|
630
|
-
const id = segment(input.id, "id");
|
|
631
|
-
return mapAnnotation(await requestObject(ctx, {
|
|
632
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/annotations/${encodeURIComponent(id)}/`
|
|
633
|
-
}));
|
|
634
|
-
}
|
|
635
|
-
async function createAnnotation(input, ctx) {
|
|
636
|
-
const projectId = segment(input.project_id, "project_id");
|
|
637
|
-
return mapAnnotation(await requestObject(ctx, {
|
|
638
|
-
method: "POST",
|
|
639
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/annotations/`,
|
|
640
|
-
body: annotationBody(input)
|
|
641
|
-
}));
|
|
642
|
-
}
|
|
643
|
-
async function updateAnnotation(input, ctx) {
|
|
644
|
-
const projectId = segment(input.project_id, "project_id");
|
|
645
|
-
const id = segment(input.id, "id");
|
|
646
|
-
return mapAnnotation(await requestObject(ctx, {
|
|
647
|
-
method: "PATCH",
|
|
648
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/annotations/${encodeURIComponent(id)}/`,
|
|
649
|
-
body: annotationBody(input)
|
|
650
|
-
}));
|
|
651
|
-
}
|
|
652
|
-
async function deleteAnnotation(input, ctx) {
|
|
653
|
-
const projectId = segment(input.project_id, "project_id");
|
|
654
|
-
const id = segment(input.id, "id");
|
|
655
|
-
const payload = await requestObject(ctx, {
|
|
656
|
-
method: "PATCH",
|
|
657
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/annotations/${encodeURIComponent(id)}/`,
|
|
658
|
-
body: { deleted: true }
|
|
659
|
-
});
|
|
660
|
-
return { deleted: true, id, annotation: mapAnnotation(payload), raw: payload };
|
|
661
|
-
}
|
|
662
|
-
async function listCohorts(input, ctx) {
|
|
663
|
-
const projectId = segment(input.project_id, "project_id");
|
|
664
|
-
return requestObject(ctx, {
|
|
665
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/cohorts/`,
|
|
666
|
-
query: { limit: input.limit, offset: input.offset }
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
async function getCohort(input, ctx) {
|
|
670
|
-
const projectId = segment(input.project_id, "project_id");
|
|
671
|
-
const id = segment(input.id, "id");
|
|
672
|
-
return requestObject(ctx, {
|
|
673
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/cohorts/${encodeURIComponent(id)}/`
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
async function createCohort(input, ctx) {
|
|
677
|
-
const projectId = segment(input.project_id, "project_id");
|
|
678
|
-
return requestObject(ctx, {
|
|
679
|
-
method: "POST",
|
|
680
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/cohorts/`,
|
|
681
|
-
body: cohortBody(input)
|
|
682
|
-
});
|
|
683
|
-
}
|
|
684
|
-
async function updateCohort(input, ctx) {
|
|
685
|
-
const projectId = segment(input.project_id, "project_id");
|
|
686
|
-
const id = segment(input.id, "id");
|
|
687
|
-
return requestObject(ctx, {
|
|
688
|
-
method: "PATCH",
|
|
689
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/cohorts/${encodeURIComponent(id)}/`,
|
|
690
|
-
body: cohortBody(input)
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
async function deleteCohort(input, ctx) {
|
|
694
|
-
const projectId = segment(input.project_id, "project_id");
|
|
695
|
-
const id = segment(input.id, "id");
|
|
696
|
-
const payload = await requestObject(ctx, {
|
|
697
|
-
method: "PATCH",
|
|
698
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/cohorts/${encodeURIComponent(id)}/`,
|
|
699
|
-
body: { deleted: true }
|
|
700
|
-
});
|
|
701
|
-
return { deleted: true, id, cohort: payload, raw: payload };
|
|
702
|
-
}
|
|
703
|
-
async function addPersonsToStaticCohort(input, ctx) {
|
|
704
|
-
const projectId = segment(input.project_id, "project_id");
|
|
705
|
-
const id = segment(input.id, "id");
|
|
706
|
-
const payload = await requestObject(ctx, {
|
|
707
|
-
method: "PATCH",
|
|
708
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/cohorts/${encodeURIComponent(id)}/add_persons_to_static_cohort/`,
|
|
709
|
-
body: { person_ids: requireNonEmptyStrings(input.person_ids, "person_ids") }
|
|
710
|
-
});
|
|
711
|
-
return { raw: payload };
|
|
712
|
-
}
|
|
713
|
-
async function getCohortPersons(input, ctx) {
|
|
714
|
-
const projectId = segment(input.project_id, "project_id");
|
|
715
|
-
const id = segment(input.id, "id");
|
|
716
|
-
const payload = await requestObject(ctx, {
|
|
717
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/cohorts/${encodeURIComponent(id)}/persons/`,
|
|
718
|
-
query: { format: input.format, limit: input.limit, offset: input.offset }
|
|
719
|
-
});
|
|
720
|
-
return {
|
|
721
|
-
next: nullableStr(payload.next),
|
|
722
|
-
previous: nullableStr(payload.previous),
|
|
723
|
-
results: list(payload.results).map((item) => looseRecord(item)),
|
|
724
|
-
raw: payload
|
|
725
|
-
};
|
|
726
|
-
}
|
|
727
|
-
async function getCohortCalculationHistory(input, ctx) {
|
|
728
|
-
const projectId = segment(input.project_id, "project_id");
|
|
729
|
-
const id = segment(input.id, "id");
|
|
730
|
-
const payload = await requestObject(ctx, {
|
|
731
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/cohorts/${encodeURIComponent(id)}/calculation_history/`
|
|
732
|
-
});
|
|
733
|
-
return { raw: payload };
|
|
734
|
-
}
|
|
735
|
-
async function listInsights(input, ctx) {
|
|
736
|
-
const projectId = segment(input.project_id, "project_id");
|
|
737
|
-
const payload = await requestObject(ctx, {
|
|
738
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/insights/`,
|
|
739
|
-
query: {
|
|
740
|
-
basic: input.basic,
|
|
741
|
-
limit: input.limit,
|
|
742
|
-
offset: input.offset,
|
|
743
|
-
refresh: input.refresh,
|
|
744
|
-
short_id: input.short_id
|
|
745
|
-
}
|
|
746
|
-
});
|
|
747
|
-
return {
|
|
748
|
-
count: num(payload.count) ?? 0,
|
|
749
|
-
next: nullableStr(payload.next),
|
|
750
|
-
previous: nullableStr(payload.previous),
|
|
751
|
-
results: list(payload.results).map((item) => mapInsight(item)),
|
|
752
|
-
raw: payload
|
|
753
|
-
};
|
|
754
|
-
}
|
|
755
|
-
async function getInsight(input, ctx) {
|
|
756
|
-
const projectId = segment(input.project_id, "project_id");
|
|
757
|
-
const id = segment(input.id, "id");
|
|
758
|
-
return mapInsight(await requestObject(ctx, {
|
|
759
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/insights/${encodeURIComponent(id)}/`,
|
|
760
|
-
query: { from_dashboard: input.from_dashboard, refresh: input.refresh }
|
|
761
|
-
}));
|
|
762
|
-
}
|
|
763
|
-
async function runQuery(input, ctx) {
|
|
764
|
-
const projectId = segment(input.project_id, "project_id");
|
|
765
|
-
const payload = await requestObject(ctx, {
|
|
766
|
-
method: "POST",
|
|
767
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/query/`,
|
|
768
|
-
body: compactDefined({
|
|
769
|
-
query: input.query,
|
|
770
|
-
async: input.async,
|
|
771
|
-
client_query_id: input.client_query_id,
|
|
772
|
-
filters_override: input.filters_override,
|
|
773
|
-
limit_context: input.limit_context,
|
|
774
|
-
name: input.name,
|
|
775
|
-
refresh: input.refresh,
|
|
776
|
-
variables_override: input.variables_override
|
|
777
|
-
})
|
|
778
|
-
});
|
|
779
|
-
return {
|
|
780
|
-
results: list(payload.results),
|
|
781
|
-
columns: Array.isArray(payload.columns) ? stringList(payload.columns) : void 0,
|
|
782
|
-
types: Array.isArray(payload.types) ? payload.types : void 0,
|
|
783
|
-
hasMore: nullableBool(payload.hasMore),
|
|
784
|
-
limit: num(payload.limit),
|
|
785
|
-
offset: num(payload.offset),
|
|
786
|
-
query: nullableRecord(payload.query),
|
|
787
|
-
error: payload.error,
|
|
788
|
-
is_cached: nullableBool(payload.is_cached),
|
|
789
|
-
timings: list(payload.timings).map((item) => looseRecord(item)),
|
|
790
|
-
query_status: nullableRecord(payload.query_status),
|
|
791
|
-
hogql: nullableStr(payload.hogql),
|
|
792
|
-
cache_target_age: nullableStr(payload.cache_target_age),
|
|
793
|
-
last_refresh: nullableStr(payload.last_refresh),
|
|
794
|
-
next_allowed_client_refresh: nullableStr(payload.next_allowed_client_refresh),
|
|
795
|
-
resolved_date_range: nullableRecord(payload.resolved_date_range),
|
|
796
|
-
raw: payload
|
|
797
|
-
};
|
|
798
|
-
}
|
|
799
|
-
async function getAsyncQueryStatus(input, ctx) {
|
|
800
|
-
const projectId = segment(input.project_id, "project_id");
|
|
801
|
-
const queryId = segment(input.query_id, "query_id");
|
|
802
|
-
return mapQueryStatus(await requestObject(ctx, {
|
|
803
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/query/${encodeURIComponent(queryId)}/`
|
|
804
|
-
}));
|
|
805
|
-
}
|
|
806
|
-
async function cancelQuery(input, ctx) {
|
|
807
|
-
const projectId = segment(input.project_id, "project_id");
|
|
808
|
-
const queryId = segment(input.query_id, "query_id");
|
|
809
|
-
const payload = await requestObject(ctx, {
|
|
810
|
-
method: "DELETE",
|
|
811
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/query/${encodeURIComponent(queryId)}/`
|
|
812
|
-
});
|
|
813
|
-
return { cancelled: true, query_id: queryId, raw: payload };
|
|
814
|
-
}
|
|
815
|
-
async function createInsight(input, ctx) {
|
|
816
|
-
const projectId = segment(input.project_id, "project_id");
|
|
817
|
-
return mapInsight(await requestObject(ctx, {
|
|
818
|
-
method: "POST",
|
|
819
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/insights/`,
|
|
820
|
-
body: insightBody(input)
|
|
821
|
-
}));
|
|
822
|
-
}
|
|
823
|
-
async function updateInsight(input, ctx) {
|
|
824
|
-
const projectId = segment(input.project_id, "project_id");
|
|
825
|
-
const id = segment(input.id, "id");
|
|
826
|
-
return mapInsight(await requestObject(ctx, {
|
|
827
|
-
method: "PATCH",
|
|
828
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/insights/${encodeURIComponent(id)}/`,
|
|
829
|
-
body: insightBody(input)
|
|
830
|
-
}));
|
|
831
|
-
}
|
|
832
|
-
async function deleteInsight(input, ctx) {
|
|
833
|
-
const projectId = segment(input.project_id, "project_id");
|
|
834
|
-
const id = segment(input.id, "id");
|
|
835
|
-
const payload = await requestObject(ctx, {
|
|
836
|
-
method: "DELETE",
|
|
837
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/insights/${encodeURIComponent(id)}/`
|
|
838
|
-
});
|
|
839
|
-
return { deleted: true, id, raw: payload };
|
|
840
|
-
}
|
|
841
|
-
async function listDashboards(input, ctx) {
|
|
842
|
-
const projectId = segment(input.project_id, "project_id");
|
|
843
|
-
const payload = await requestObject(ctx, {
|
|
844
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/`,
|
|
845
|
-
query: { limit: input.limit, offset: input.offset, search: input.search }
|
|
846
|
-
});
|
|
847
|
-
return {
|
|
848
|
-
count: num(payload.count) ?? 0,
|
|
849
|
-
next: nullableStr(payload.next),
|
|
850
|
-
previous: nullableStr(payload.previous),
|
|
851
|
-
results: list(payload.results).map((item) => mapDashboardBasic(looseRecord(item))),
|
|
852
|
-
raw: payload
|
|
853
|
-
};
|
|
854
|
-
}
|
|
855
|
-
async function getDashboard(input, ctx) {
|
|
856
|
-
const projectId = segment(input.project_id, "project_id");
|
|
857
|
-
const id = segment(input.id, "id");
|
|
858
|
-
return mapDashboard(await requestObject(ctx, {
|
|
859
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/${encodeURIComponent(id)}/`,
|
|
860
|
-
query: {
|
|
861
|
-
filters_override: stringifyQuery(input.filters_override),
|
|
862
|
-
variables_override: stringifyQuery(input.variables_override)
|
|
863
|
-
}
|
|
864
|
-
}));
|
|
865
|
-
}
|
|
866
|
-
async function createDashboard(input, ctx) {
|
|
867
|
-
const projectId = segment(input.project_id, "project_id");
|
|
868
|
-
return mapDashboard(await requestObject(ctx, {
|
|
869
|
-
method: "POST",
|
|
870
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/`,
|
|
871
|
-
body: dashboardBody(input)
|
|
872
|
-
}));
|
|
873
|
-
}
|
|
874
|
-
async function updateDashboard(input, ctx) {
|
|
875
|
-
const projectId = segment(input.project_id, "project_id");
|
|
876
|
-
const id = segment(input.id, "id");
|
|
877
|
-
return mapDashboard(await requestObject(ctx, {
|
|
878
|
-
method: "PATCH",
|
|
879
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/${encodeURIComponent(id)}/`,
|
|
880
|
-
body: dashboardBody(input)
|
|
881
|
-
}));
|
|
882
|
-
}
|
|
883
|
-
async function deleteDashboard(input, ctx) {
|
|
884
|
-
const projectId = segment(input.project_id, "project_id");
|
|
885
|
-
const id = segment(input.id, "id");
|
|
886
|
-
const payload = await requestObject(ctx, {
|
|
887
|
-
method: "PATCH",
|
|
888
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/${encodeURIComponent(id)}/`,
|
|
889
|
-
body: compactDefined({ deleted: true, delete_insights: input.delete_insights })
|
|
890
|
-
});
|
|
891
|
-
return { deleted: true, id, dashboard: mapDashboard(payload), raw: payload };
|
|
892
|
-
}
|
|
893
|
-
async function runDashboardInsights(input, ctx) {
|
|
894
|
-
const projectId = segment(input.project_id, "project_id");
|
|
895
|
-
const id = segment(input.id, "id");
|
|
896
|
-
const payload = await requestObject(ctx, {
|
|
897
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/${encodeURIComponent(id)}/run_insights/`,
|
|
898
|
-
query: {
|
|
899
|
-
filters_override: stringifyQuery(input.filters_override),
|
|
900
|
-
variables_override: stringifyQuery(input.variables_override),
|
|
901
|
-
output_format: input.output_format,
|
|
902
|
-
refresh: input.refresh
|
|
903
|
-
}
|
|
904
|
-
});
|
|
905
|
-
return { results: list(payload.results), raw: payload };
|
|
906
|
-
}
|
|
907
|
-
async function copyDashboardTile(input, ctx) {
|
|
908
|
-
const projectId = segment(input.project_id, "project_id");
|
|
909
|
-
const id = segment(input.id, "id");
|
|
910
|
-
return mapDashboard(await requestObject(ctx, {
|
|
911
|
-
method: "POST",
|
|
912
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/${encodeURIComponent(id)}/copy_tile/`,
|
|
913
|
-
body: { fromDashboardId: input.fromDashboardId, tileId: input.tileId }
|
|
914
|
-
}));
|
|
915
|
-
}
|
|
916
|
-
async function moveDashboardTile(input, ctx) {
|
|
917
|
-
const projectId = segment(input.project_id, "project_id");
|
|
918
|
-
const id = segment(input.id, "id");
|
|
919
|
-
const payload = await requestObject(ctx, {
|
|
920
|
-
method: "PATCH",
|
|
921
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/${encodeURIComponent(id)}/move_tile/`,
|
|
922
|
-
// tile 缺席时发 `{}` 而不是省略键:PostHog 的 move_tile 要求这个键存在。
|
|
923
|
-
body: { tile: input.tile ?? {}, toDashboard: input.toDashboard }
|
|
924
|
-
});
|
|
925
|
-
return { raw: payload };
|
|
926
|
-
}
|
|
927
|
-
async function reorderDashboardTiles(input, ctx) {
|
|
928
|
-
const projectId = segment(input.project_id, "project_id");
|
|
929
|
-
const id = segment(input.id, "id");
|
|
930
|
-
return mapDashboard(await requestObject(ctx, {
|
|
931
|
-
method: "POST",
|
|
932
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/${encodeURIComponent(id)}/reorder_tiles/`,
|
|
933
|
-
body: { tile_order: numberList(input.tile_order) }
|
|
934
|
-
}));
|
|
935
|
-
}
|
|
936
|
-
async function listDashboardCollaborators(input, ctx) {
|
|
937
|
-
const projectId = segment(input.project_id, "project_id");
|
|
938
|
-
const dashboardId = segment(input.dashboard_id, "dashboard_id");
|
|
939
|
-
const payload = await request(ctx, {
|
|
940
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/${encodeURIComponent(dashboardId)}/collaborators/`
|
|
941
|
-
});
|
|
942
|
-
return { results: list(payload).map((item) => mapDashboardCollaborator(item)), raw: payload };
|
|
943
|
-
}
|
|
944
|
-
async function addDashboardCollaborator(input, ctx) {
|
|
945
|
-
const projectId = segment(input.project_id, "project_id");
|
|
946
|
-
const dashboardId = segment(input.dashboard_id, "dashboard_id");
|
|
947
|
-
return mapDashboardCollaborator(await requestObject(ctx, {
|
|
948
|
-
method: "POST",
|
|
949
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/${encodeURIComponent(dashboardId)}/collaborators/`,
|
|
950
|
-
body: { user_uuid: segment(input.user_uuid, "user_uuid"), level: input.level }
|
|
951
|
-
}));
|
|
952
|
-
}
|
|
953
|
-
async function removeDashboardCollaborator(input, ctx) {
|
|
954
|
-
const projectId = segment(input.project_id, "project_id");
|
|
955
|
-
const dashboardId = segment(input.dashboard_id, "dashboard_id");
|
|
956
|
-
const userUuid = segment(input.user_uuid, "user_uuid");
|
|
957
|
-
const payload = await requestObject(ctx, {
|
|
958
|
-
method: "DELETE",
|
|
959
|
-
path: `/api/environments/${encodeURIComponent(projectId)}/dashboards/${encodeURIComponent(dashboardId)}/collaborators/${encodeURIComponent(userUuid)}/`
|
|
960
|
-
});
|
|
961
|
-
return { deleted: true, dashboard_id: dashboardId, user_uuid: userUuid, raw: payload };
|
|
962
|
-
}
|
|
963
|
-
async function listFeatureFlags(input, ctx) {
|
|
964
|
-
const projectId = segment(input.project_id, "project_id");
|
|
965
|
-
return mapFeatureFlagList(await requestObject(ctx, {
|
|
966
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/feature_flags/`,
|
|
967
|
-
query: {
|
|
968
|
-
active: input.active,
|
|
969
|
-
created_by_id: input.created_by_id,
|
|
970
|
-
evaluation_runtime: input.evaluation_runtime,
|
|
971
|
-
excluded_properties: input.excluded_properties,
|
|
972
|
-
has_evaluation_contexts: input.has_evaluation_contexts,
|
|
973
|
-
limit: input.limit,
|
|
974
|
-
offset: input.offset,
|
|
975
|
-
search: input.search,
|
|
976
|
-
tags: input.tags,
|
|
977
|
-
type: input.type
|
|
978
|
-
}
|
|
979
|
-
}));
|
|
980
|
-
}
|
|
981
|
-
async function getFeatureFlag(input, ctx) {
|
|
982
|
-
const projectId = segment(input.project_id, "project_id");
|
|
983
|
-
const id = segment(input.id, "id");
|
|
984
|
-
return mapFeatureFlag(await requestObject(ctx, {
|
|
985
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/feature_flags/${encodeURIComponent(id)}/`
|
|
986
|
-
}));
|
|
987
|
-
}
|
|
988
|
-
async function createFeatureFlag(input, ctx) {
|
|
989
|
-
const projectId = segment(input.project_id, "project_id");
|
|
990
|
-
return mapFeatureFlag(await requestObject(ctx, {
|
|
991
|
-
method: "POST",
|
|
992
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/feature_flags/`,
|
|
993
|
-
body: featureFlagBody(input)
|
|
994
|
-
}));
|
|
995
|
-
}
|
|
996
|
-
async function updateFeatureFlag(input, ctx) {
|
|
997
|
-
const projectId = segment(input.project_id, "project_id");
|
|
998
|
-
const id = segment(input.id, "id");
|
|
999
|
-
return mapFeatureFlag(await requestObject(ctx, {
|
|
1000
|
-
method: "PATCH",
|
|
1001
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/feature_flags/${encodeURIComponent(id)}/`,
|
|
1002
|
-
body: featureFlagBody(input)
|
|
1003
|
-
}));
|
|
1004
|
-
}
|
|
1005
|
-
async function deleteFeatureFlag(input, ctx) {
|
|
1006
|
-
const projectId = segment(input.project_id, "project_id");
|
|
1007
|
-
const id = segment(input.id, "id");
|
|
1008
|
-
const payload = await requestObject(ctx, {
|
|
1009
|
-
method: "PATCH",
|
|
1010
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/feature_flags/${encodeURIComponent(id)}/`,
|
|
1011
|
-
body: { deleted: true }
|
|
1012
|
-
});
|
|
1013
|
-
return { deleted: true, id, feature_flag: mapFeatureFlag(payload), raw: payload };
|
|
1014
|
-
}
|
|
1015
|
-
async function getFeatureFlagStatus(input, ctx) {
|
|
1016
|
-
const projectId = segment(input.project_id, "project_id");
|
|
1017
|
-
const id = segment(input.id, "id");
|
|
1018
|
-
const payload = await requestObject(ctx, {
|
|
1019
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/feature_flags/${encodeURIComponent(id)}/status/`
|
|
1020
|
-
});
|
|
1021
|
-
return {
|
|
1022
|
-
status: str(payload.status),
|
|
1023
|
-
reason: str(payload.reason),
|
|
1024
|
-
active: nullableBool(payload.active),
|
|
1025
|
-
deleted: nullableBool(payload.deleted),
|
|
1026
|
-
last_called_at: nullableStr(payload.last_called_at),
|
|
1027
|
-
status_code: nullableNum(payload.status_code),
|
|
1028
|
-
raw: payload
|
|
1029
|
-
};
|
|
1030
|
-
}
|
|
1031
|
-
async function getFeatureFlagDependentFlags(input, ctx) {
|
|
1032
|
-
const projectId = segment(input.project_id, "project_id");
|
|
1033
|
-
const id = segment(input.id, "id");
|
|
1034
|
-
const payload = await request(ctx, {
|
|
1035
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/feature_flags/${encodeURIComponent(id)}/dependent_flags/`
|
|
1036
|
-
});
|
|
1037
|
-
return {
|
|
1038
|
-
results: list(payload).map((item) => {
|
|
1039
|
-
const flag = looseRecord(item);
|
|
1040
|
-
return { id: requireId(flag, "feature flag"), key: str(flag.key), name: str(flag.name) };
|
|
1041
|
-
}),
|
|
1042
|
-
raw: Array.isArray(payload) ? payload : {}
|
|
1043
|
-
};
|
|
1044
|
-
}
|
|
1045
|
-
async function getFeatureFlagsLocalEvaluation(input, ctx) {
|
|
1046
|
-
const projectId = segment(input.project_id, "project_id");
|
|
1047
|
-
const payload = await requestObject(ctx, {
|
|
1048
|
-
path: `/api/projects/${encodeURIComponent(projectId)}/feature_flags/local_evaluation/`,
|
|
1049
|
-
query: { send_cohorts: input.send_cohorts }
|
|
1050
|
-
});
|
|
1051
|
-
return {
|
|
1052
|
-
flags: list(payload.flags).map((item) => mapMinimalFeatureFlag(item)),
|
|
1053
|
-
group_type_mapping: nullableRecord(payload.group_type_mapping) ?? {},
|
|
1054
|
-
cohorts: nullableRecord(payload.cohorts) ?? {},
|
|
1055
|
-
raw: payload
|
|
1056
|
-
};
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
// ../plugins/src/posthog/schema.ts
|
|
1060
|
-
var getCurrentUserInput = external_exports.strictObject({}).describe("No input is required for the current PostHog user lookup.");
|
|
1061
|
-
var getCurrentUserOutput = external_exports.looseObject({
|
|
1062
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1063
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1064
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1065
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1066
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1067
|
-
email: external_exports.string().describe("User email address."),
|
|
1068
|
-
pending_email: external_exports.string().describe("Pending email address awaiting verification.").nullable().optional(),
|
|
1069
|
-
is_email_verified: external_exports.boolean().describe("Whether the email address is verified.").nullable().optional(),
|
|
1070
|
-
is_staff: external_exports.boolean().describe("Whether the user has staff access.").optional(),
|
|
1071
|
-
role_at_organization: external_exports.string().describe("Declared role for the user within the organization.").optional(),
|
|
1072
|
-
date_joined: external_exports.string().describe("Datetime when the user joined PostHog.").optional(),
|
|
1073
|
-
team: external_exports.looseObject({
|
|
1074
|
-
id: external_exports.int().describe("Numeric team identifier."),
|
|
1075
|
-
uuid: external_exports.string().describe("Team UUID.").optional(),
|
|
1076
|
-
organization: external_exports.string().describe("Owning organization UUID.").optional(),
|
|
1077
|
-
project_id: external_exports.number().describe("Numeric project identifier.").optional(),
|
|
1078
|
-
name: external_exports.string().describe("Team or project name.").optional(),
|
|
1079
|
-
api_token: external_exports.string().describe("Project API token.").optional(),
|
|
1080
|
-
timezone: external_exports.string().describe("Project timezone.").optional()
|
|
1081
|
-
}).describe("PostHog current team summary.").nullable().optional(),
|
|
1082
|
-
organization: external_exports.looseObject({
|
|
1083
|
-
id: external_exports.string().describe("Organization UUID."),
|
|
1084
|
-
name: external_exports.string().describe("Organization name."),
|
|
1085
|
-
slug: external_exports.string().describe("Organization slug.").optional(),
|
|
1086
|
-
membership_level: external_exports.number().describe("Membership level for the current user in this organization.").nullable().optional()
|
|
1087
|
-
}).describe("PostHog organization summary.").nullable().optional(),
|
|
1088
|
-
organizations: external_exports.array(external_exports.looseObject({
|
|
1089
|
-
id: external_exports.string().describe("Organization UUID."),
|
|
1090
|
-
name: external_exports.string().describe("Organization name."),
|
|
1091
|
-
slug: external_exports.string().describe("Organization slug.").optional(),
|
|
1092
|
-
membership_level: external_exports.number().describe("Membership level for the current user in this organization.").nullable().optional()
|
|
1093
|
-
}).describe("PostHog organization summary.")).describe("Organizations accessible to the user.").optional(),
|
|
1094
|
-
hedgehog_config: external_exports.looseObject({}).describe("User hedgehog configuration returned by PostHog.").nullable().optional(),
|
|
1095
|
-
notification_settings: external_exports.looseObject({}).describe("Notification settings for the user.").optional()
|
|
1096
|
-
}).describe("PostHog current user.");
|
|
1097
|
-
var listProjectsInput = external_exports.strictObject({
|
|
1098
|
-
organization_id: external_exports.union([external_exports.string().min(1).describe("String organization ID accepted by the official PostHog API path."), external_exports.int().describe("Numeric organization ID accepted by the official PostHog API path.")]).describe("Organization ID. When omitted, the provider falls back to the current organization from the connected user.").optional(),
|
|
1099
|
-
limit: external_exports.int().min(1).describe("Number of results to return per page.").optional(),
|
|
1100
|
-
offset: external_exports.int().min(0).describe("Initial index from which to return the results.").optional(),
|
|
1101
|
-
search: external_exports.string().describe("A search term used to filter projects.").optional()
|
|
1102
|
-
}).describe("Input for listing PostHog projects.");
|
|
1103
|
-
var listProjectsOutput = external_exports.strictObject({
|
|
1104
|
-
count: external_exports.int().describe("Total number of results available.").optional(),
|
|
1105
|
-
next: external_exports.string().describe("URL for the next page of results, or null when there is no next page.").nullable().optional(),
|
|
1106
|
-
previous: external_exports.string().describe("URL for the previous page of results, or null when there is no previous page.").nullable().optional(),
|
|
1107
|
-
results: external_exports.array(external_exports.looseObject({
|
|
1108
|
-
id: external_exports.int().describe("Numeric project identifier."),
|
|
1109
|
-
organization: external_exports.string().describe("Owning organization UUID."),
|
|
1110
|
-
uuid: external_exports.string().describe("Project UUID."),
|
|
1111
|
-
name: external_exports.string().describe("Project name."),
|
|
1112
|
-
api_token: external_exports.string().describe("Project API token.").optional(),
|
|
1113
|
-
created_at: external_exports.string().describe("Project creation datetime.").optional(),
|
|
1114
|
-
updated_at: external_exports.string().describe("Project update datetime.").optional(),
|
|
1115
|
-
product_description: external_exports.string().describe("Description configured for the product.").nullable().optional(),
|
|
1116
|
-
timezone: external_exports.string().describe("Project timezone.").optional(),
|
|
1117
|
-
is_demo: external_exports.boolean().describe("Whether the project is a demo project.").optional(),
|
|
1118
|
-
ingested_event: external_exports.boolean().describe("Whether the project has ingested at least one event.").optional(),
|
|
1119
|
-
access_control: external_exports.boolean().describe("Whether access control is enabled.").optional(),
|
|
1120
|
-
app_urls: external_exports.array(external_exports.string().describe("Configured application URL.").nullable()).describe("Configured application URLs.").optional(),
|
|
1121
|
-
group_types: external_exports.array(external_exports.looseObject({}).describe("Configured group type returned by PostHog.")).describe("Configured group types.").optional(),
|
|
1122
|
-
product_intents: external_exports.array(external_exports.looseObject({}).describe("Product intent summary returned by PostHog.")).describe("Product intent summaries for the project.").optional(),
|
|
1123
|
-
secret_api_token: external_exports.string().describe("Project secret API token when available.").nullable().optional(),
|
|
1124
|
-
secret_api_token_backup: external_exports.string().describe("Project secret API token backup when available.").nullable().optional()
|
|
1125
|
-
}).describe("PostHog project.")).describe("Projects returned by PostHog.").optional()
|
|
1126
|
-
}).describe("Paginated PostHog project list.");
|
|
1127
|
-
var getProjectInput = external_exports.strictObject({
|
|
1128
|
-
organization_id: external_exports.union([external_exports.string().min(1).describe("String organization ID accepted by the official PostHog API path."), external_exports.int().describe("Numeric organization ID accepted by the official PostHog API path.")]).describe("Organization ID. When omitted, the provider falls back to the current organization from the connected user.").optional(),
|
|
1129
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.")
|
|
1130
|
-
}).describe("Input for getting a PostHog project.");
|
|
1131
|
-
var getProjectOutput = external_exports.looseObject({
|
|
1132
|
-
id: external_exports.int().describe("Numeric project identifier."),
|
|
1133
|
-
organization: external_exports.string().describe("Owning organization UUID."),
|
|
1134
|
-
uuid: external_exports.string().describe("Project UUID."),
|
|
1135
|
-
name: external_exports.string().describe("Project name."),
|
|
1136
|
-
api_token: external_exports.string().describe("Project API token.").optional(),
|
|
1137
|
-
created_at: external_exports.string().describe("Project creation datetime.").optional(),
|
|
1138
|
-
updated_at: external_exports.string().describe("Project update datetime.").optional(),
|
|
1139
|
-
product_description: external_exports.string().describe("Description configured for the product.").nullable().optional(),
|
|
1140
|
-
timezone: external_exports.string().describe("Project timezone.").optional(),
|
|
1141
|
-
is_demo: external_exports.boolean().describe("Whether the project is a demo project.").optional(),
|
|
1142
|
-
ingested_event: external_exports.boolean().describe("Whether the project has ingested at least one event.").optional(),
|
|
1143
|
-
access_control: external_exports.boolean().describe("Whether access control is enabled.").optional(),
|
|
1144
|
-
app_urls: external_exports.array(external_exports.string().describe("Configured application URL.").nullable()).describe("Configured application URLs.").optional(),
|
|
1145
|
-
group_types: external_exports.array(external_exports.looseObject({}).describe("Configured group type returned by PostHog.")).describe("Configured group types.").optional(),
|
|
1146
|
-
product_intents: external_exports.array(external_exports.looseObject({}).describe("Product intent summary returned by PostHog.")).describe("Product intent summaries for the project.").optional(),
|
|
1147
|
-
secret_api_token: external_exports.string().describe("Project secret API token when available.").nullable().optional(),
|
|
1148
|
-
secret_api_token_backup: external_exports.string().describe("Project secret API token backup when available.").nullable().optional()
|
|
1149
|
-
}).describe("PostHog project.");
|
|
1150
|
-
var listEventDefinitionsInput = external_exports.strictObject({
|
|
1151
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1152
|
-
limit: external_exports.int().min(1).describe("Number of results to return per page.").optional(),
|
|
1153
|
-
offset: external_exports.int().min(0).describe("Initial index from which to return the results.").optional()
|
|
1154
|
-
}).describe("Input for listing PostHog event definitions.");
|
|
1155
|
-
var listEventDefinitionsOutput = external_exports.strictObject({
|
|
1156
|
-
count: external_exports.int().describe("Total number of results available.").optional(),
|
|
1157
|
-
next: external_exports.string().describe("URL for the next page of results, or null when there is no next page.").nullable().optional(),
|
|
1158
|
-
previous: external_exports.string().describe("URL for the previous page of results, or null when there is no previous page.").nullable().optional(),
|
|
1159
|
-
results: external_exports.array(external_exports.looseObject({
|
|
1160
|
-
id: external_exports.string().describe("Event definition UUID."),
|
|
1161
|
-
name: external_exports.string().describe("Event definition name."),
|
|
1162
|
-
owner: external_exports.number().describe("Owner user ID.").nullable().optional(),
|
|
1163
|
-
description: external_exports.string().describe("Description for the event definition.").nullable().optional(),
|
|
1164
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the event definition.").optional(),
|
|
1165
|
-
created_at: external_exports.string().describe("Creation datetime for the event definition.").nullable().optional(),
|
|
1166
|
-
updated_at: external_exports.string().describe("Update datetime for the event definition.").optional(),
|
|
1167
|
-
updated_by: external_exports.looseObject({
|
|
1168
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1169
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1170
|
-
email: external_exports.string().describe("User email address."),
|
|
1171
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1172
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1173
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1174
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1175
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1176
|
-
last_seen_at: external_exports.string().describe("Datetime when the event was last seen.").nullable().optional(),
|
|
1177
|
-
last_updated_at: external_exports.string().describe("Datetime of the last upstream update.").optional(),
|
|
1178
|
-
verified: external_exports.boolean().describe("Whether the event definition is verified.").optional(),
|
|
1179
|
-
verified_at: external_exports.string().describe("Datetime when the event definition was verified.").nullable().optional(),
|
|
1180
|
-
verified_by: external_exports.looseObject({
|
|
1181
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1182
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1183
|
-
email: external_exports.string().describe("User email address."),
|
|
1184
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1185
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1186
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1187
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1188
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1189
|
-
hidden: external_exports.boolean().describe("Whether the event definition is hidden.").nullable().optional(),
|
|
1190
|
-
enforcement_mode: external_exports.string().describe("Enforcement mode for this event definition.").optional(),
|
|
1191
|
-
primary_property: external_exports.string().describe("Primary property displayed alongside this event.").nullable().optional(),
|
|
1192
|
-
is_action: external_exports.boolean().describe("Whether the definition represents an action.").optional(),
|
|
1193
|
-
action_id: external_exports.number().describe("Action ID if this definition is an action.").optional(),
|
|
1194
|
-
is_calculating: external_exports.boolean().describe("Whether PostHog is calculating related metadata.").optional(),
|
|
1195
|
-
last_calculated_at: external_exports.string().describe("Last calculation datetime.").optional(),
|
|
1196
|
-
created_by: external_exports.looseObject({
|
|
1197
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1198
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1199
|
-
email: external_exports.string().describe("User email address."),
|
|
1200
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1201
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1202
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1203
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1204
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1205
|
-
post_to_slack: external_exports.boolean().describe("Whether new events post to Slack.").optional(),
|
|
1206
|
-
default_columns: external_exports.array(external_exports.string().describe("Default column name.")).describe("Default columns configured for this event definition.").optional(),
|
|
1207
|
-
media_preview_urls: external_exports.array(external_exports.string().describe("Media preview URL.")).describe("Media preview URLs returned by PostHog.").optional()
|
|
1208
|
-
}).describe("PostHog event definition.")).describe("Event definitions returned by PostHog.").optional()
|
|
1209
|
-
}).describe("Paginated PostHog event definition list.");
|
|
1210
|
-
var getEventDefinitionInput = external_exports.strictObject({
|
|
1211
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1212
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
1213
|
-
}).describe("Input for a PostHog event definition.");
|
|
1214
|
-
var getEventDefinitionOutput = external_exports.looseObject({
|
|
1215
|
-
id: external_exports.string().describe("Event definition UUID."),
|
|
1216
|
-
name: external_exports.string().describe("Event definition name."),
|
|
1217
|
-
owner: external_exports.number().describe("Owner user ID.").nullable().optional(),
|
|
1218
|
-
description: external_exports.string().describe("Description for the event definition.").nullable().optional(),
|
|
1219
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the event definition.").optional(),
|
|
1220
|
-
created_at: external_exports.string().describe("Creation datetime for the event definition.").nullable().optional(),
|
|
1221
|
-
updated_at: external_exports.string().describe("Update datetime for the event definition.").optional(),
|
|
1222
|
-
updated_by: external_exports.looseObject({
|
|
1223
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1224
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1225
|
-
email: external_exports.string().describe("User email address."),
|
|
1226
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1227
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1228
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1229
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1230
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1231
|
-
last_seen_at: external_exports.string().describe("Datetime when the event was last seen.").nullable().optional(),
|
|
1232
|
-
last_updated_at: external_exports.string().describe("Datetime of the last upstream update.").optional(),
|
|
1233
|
-
verified: external_exports.boolean().describe("Whether the event definition is verified.").optional(),
|
|
1234
|
-
verified_at: external_exports.string().describe("Datetime when the event definition was verified.").nullable().optional(),
|
|
1235
|
-
verified_by: external_exports.looseObject({
|
|
1236
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1237
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1238
|
-
email: external_exports.string().describe("User email address."),
|
|
1239
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1240
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1241
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1242
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1243
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1244
|
-
hidden: external_exports.boolean().describe("Whether the event definition is hidden.").nullable().optional(),
|
|
1245
|
-
enforcement_mode: external_exports.string().describe("Enforcement mode for this event definition.").optional(),
|
|
1246
|
-
primary_property: external_exports.string().describe("Primary property displayed alongside this event.").nullable().optional(),
|
|
1247
|
-
is_action: external_exports.boolean().describe("Whether the definition represents an action.").optional(),
|
|
1248
|
-
action_id: external_exports.number().describe("Action ID if this definition is an action.").optional(),
|
|
1249
|
-
is_calculating: external_exports.boolean().describe("Whether PostHog is calculating related metadata.").optional(),
|
|
1250
|
-
last_calculated_at: external_exports.string().describe("Last calculation datetime.").optional(),
|
|
1251
|
-
created_by: external_exports.looseObject({
|
|
1252
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1253
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1254
|
-
email: external_exports.string().describe("User email address."),
|
|
1255
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1256
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1257
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1258
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1259
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1260
|
-
post_to_slack: external_exports.boolean().describe("Whether new events post to Slack.").optional(),
|
|
1261
|
-
default_columns: external_exports.array(external_exports.string().describe("Default column name.")).describe("Default columns configured for this event definition.").optional(),
|
|
1262
|
-
media_preview_urls: external_exports.array(external_exports.string().describe("Media preview URL.")).describe("Media preview URLs returned by PostHog.").optional()
|
|
1263
|
-
}).describe("PostHog event definition.");
|
|
1264
|
-
var createEventDefinitionInput = external_exports.strictObject({
|
|
1265
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1266
|
-
name: external_exports.string().max(400).describe("Event definition name."),
|
|
1267
|
-
owner: external_exports.int().describe("Owner user ID.").nullable().optional(),
|
|
1268
|
-
description: external_exports.string().describe("Description for the event definition.").nullable().optional(),
|
|
1269
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the event definition.").optional(),
|
|
1270
|
-
verified: external_exports.boolean().describe("Whether the event definition is verified.").optional(),
|
|
1271
|
-
hidden: external_exports.boolean().describe("Whether the event definition is hidden.").nullable().optional(),
|
|
1272
|
-
enforcement_mode: external_exports.string().describe("Enforcement mode for this event definition.").optional(),
|
|
1273
|
-
primary_property: external_exports.string().describe("Primary property displayed alongside this event.").nullable().optional(),
|
|
1274
|
-
post_to_slack: external_exports.boolean().describe("Whether new events should post to Slack.").optional(),
|
|
1275
|
-
default_columns: external_exports.array(external_exports.string().describe("Default column name.")).describe("Default columns configured for this event definition.").optional()
|
|
1276
|
-
}).describe("Input for creating a PostHog event definition.");
|
|
1277
|
-
var createEventDefinitionOutput = external_exports.looseObject({
|
|
1278
|
-
id: external_exports.string().describe("Event definition UUID."),
|
|
1279
|
-
name: external_exports.string().describe("Event definition name."),
|
|
1280
|
-
owner: external_exports.number().describe("Owner user ID.").nullable().optional(),
|
|
1281
|
-
description: external_exports.string().describe("Description for the event definition.").nullable().optional(),
|
|
1282
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the event definition.").optional(),
|
|
1283
|
-
created_at: external_exports.string().describe("Creation datetime for the event definition.").nullable().optional(),
|
|
1284
|
-
updated_at: external_exports.string().describe("Update datetime for the event definition.").optional(),
|
|
1285
|
-
updated_by: external_exports.looseObject({
|
|
1286
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1287
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1288
|
-
email: external_exports.string().describe("User email address."),
|
|
1289
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1290
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1291
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1292
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1293
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1294
|
-
last_seen_at: external_exports.string().describe("Datetime when the event was last seen.").nullable().optional(),
|
|
1295
|
-
last_updated_at: external_exports.string().describe("Datetime of the last upstream update.").optional(),
|
|
1296
|
-
verified: external_exports.boolean().describe("Whether the event definition is verified.").optional(),
|
|
1297
|
-
verified_at: external_exports.string().describe("Datetime when the event definition was verified.").nullable().optional(),
|
|
1298
|
-
verified_by: external_exports.looseObject({
|
|
1299
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1300
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1301
|
-
email: external_exports.string().describe("User email address."),
|
|
1302
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1303
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1304
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1305
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1306
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1307
|
-
hidden: external_exports.boolean().describe("Whether the event definition is hidden.").nullable().optional(),
|
|
1308
|
-
enforcement_mode: external_exports.string().describe("Enforcement mode for this event definition.").optional(),
|
|
1309
|
-
primary_property: external_exports.string().describe("Primary property displayed alongside this event.").nullable().optional(),
|
|
1310
|
-
is_action: external_exports.boolean().describe("Whether the definition represents an action.").optional(),
|
|
1311
|
-
action_id: external_exports.number().describe("Action ID if this definition is an action.").optional(),
|
|
1312
|
-
is_calculating: external_exports.boolean().describe("Whether PostHog is calculating related metadata.").optional(),
|
|
1313
|
-
last_calculated_at: external_exports.string().describe("Last calculation datetime.").optional(),
|
|
1314
|
-
created_by: external_exports.looseObject({
|
|
1315
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1316
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1317
|
-
email: external_exports.string().describe("User email address."),
|
|
1318
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1319
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1320
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1321
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1322
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1323
|
-
post_to_slack: external_exports.boolean().describe("Whether new events post to Slack.").optional(),
|
|
1324
|
-
default_columns: external_exports.array(external_exports.string().describe("Default column name.")).describe("Default columns configured for this event definition.").optional(),
|
|
1325
|
-
media_preview_urls: external_exports.array(external_exports.string().describe("Media preview URL.")).describe("Media preview URLs returned by PostHog.").optional()
|
|
1326
|
-
}).describe("PostHog event definition.");
|
|
1327
|
-
var updateEventDefinitionInput = external_exports.strictObject({
|
|
1328
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1329
|
-
name: external_exports.string().max(400).describe("Event definition name.").optional(),
|
|
1330
|
-
owner: external_exports.int().describe("Owner user ID.").nullable().optional(),
|
|
1331
|
-
description: external_exports.string().describe("Description for the event definition.").nullable().optional(),
|
|
1332
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the event definition.").optional(),
|
|
1333
|
-
verified: external_exports.boolean().describe("Whether the event definition is verified.").optional(),
|
|
1334
|
-
hidden: external_exports.boolean().describe("Whether the event definition is hidden.").nullable().optional(),
|
|
1335
|
-
enforcement_mode: external_exports.string().describe("Enforcement mode for this event definition.").optional(),
|
|
1336
|
-
primary_property: external_exports.string().describe("Primary property displayed alongside this event.").nullable().optional(),
|
|
1337
|
-
post_to_slack: external_exports.boolean().describe("Whether new events should post to Slack.").optional(),
|
|
1338
|
-
default_columns: external_exports.array(external_exports.string().describe("Default column name.")).describe("Default columns configured for this event definition.").optional(),
|
|
1339
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.")
|
|
1340
|
-
}).describe("Input for updating a PostHog event definition.");
|
|
1341
|
-
var updateEventDefinitionOutput = external_exports.looseObject({
|
|
1342
|
-
id: external_exports.string().describe("Event definition UUID."),
|
|
1343
|
-
name: external_exports.string().describe("Event definition name."),
|
|
1344
|
-
owner: external_exports.number().describe("Owner user ID.").nullable().optional(),
|
|
1345
|
-
description: external_exports.string().describe("Description for the event definition.").nullable().optional(),
|
|
1346
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the event definition.").optional(),
|
|
1347
|
-
created_at: external_exports.string().describe("Creation datetime for the event definition.").nullable().optional(),
|
|
1348
|
-
updated_at: external_exports.string().describe("Update datetime for the event definition.").optional(),
|
|
1349
|
-
updated_by: external_exports.looseObject({
|
|
1350
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1351
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1352
|
-
email: external_exports.string().describe("User email address."),
|
|
1353
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1354
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1355
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1356
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1357
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1358
|
-
last_seen_at: external_exports.string().describe("Datetime when the event was last seen.").nullable().optional(),
|
|
1359
|
-
last_updated_at: external_exports.string().describe("Datetime of the last upstream update.").optional(),
|
|
1360
|
-
verified: external_exports.boolean().describe("Whether the event definition is verified.").optional(),
|
|
1361
|
-
verified_at: external_exports.string().describe("Datetime when the event definition was verified.").nullable().optional(),
|
|
1362
|
-
verified_by: external_exports.looseObject({
|
|
1363
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1364
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1365
|
-
email: external_exports.string().describe("User email address."),
|
|
1366
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1367
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1368
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1369
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1370
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1371
|
-
hidden: external_exports.boolean().describe("Whether the event definition is hidden.").nullable().optional(),
|
|
1372
|
-
enforcement_mode: external_exports.string().describe("Enforcement mode for this event definition.").optional(),
|
|
1373
|
-
primary_property: external_exports.string().describe("Primary property displayed alongside this event.").nullable().optional(),
|
|
1374
|
-
is_action: external_exports.boolean().describe("Whether the definition represents an action.").optional(),
|
|
1375
|
-
action_id: external_exports.number().describe("Action ID if this definition is an action.").optional(),
|
|
1376
|
-
is_calculating: external_exports.boolean().describe("Whether PostHog is calculating related metadata.").optional(),
|
|
1377
|
-
last_calculated_at: external_exports.string().describe("Last calculation datetime.").optional(),
|
|
1378
|
-
created_by: external_exports.looseObject({
|
|
1379
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1380
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1381
|
-
email: external_exports.string().describe("User email address."),
|
|
1382
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1383
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1384
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1385
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1386
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1387
|
-
post_to_slack: external_exports.boolean().describe("Whether new events post to Slack.").optional(),
|
|
1388
|
-
default_columns: external_exports.array(external_exports.string().describe("Default column name.")).describe("Default columns configured for this event definition.").optional(),
|
|
1389
|
-
media_preview_urls: external_exports.array(external_exports.string().describe("Media preview URL.")).describe("Media preview URLs returned by PostHog.").optional()
|
|
1390
|
-
}).describe("PostHog event definition.");
|
|
1391
|
-
var deleteEventDefinitionInput = external_exports.strictObject({
|
|
1392
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1393
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
1394
|
-
}).describe("Input for a PostHog event definition.");
|
|
1395
|
-
var deleteEventDefinitionOutput = external_exports.strictObject({
|
|
1396
|
-
deleted: external_exports.boolean().describe("Whether the delete request succeeded.").optional(),
|
|
1397
|
-
id: external_exports.string().describe("Deleted definition identifier.").optional(),
|
|
1398
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
1399
|
-
}).describe("Result returned after deleting a definition.");
|
|
1400
|
-
var getEventDefinitionByNameInput = external_exports.strictObject({
|
|
1401
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1402
|
-
name: external_exports.string().min(1).describe("Exact event name to look up.").optional()
|
|
1403
|
-
}).describe("Input for getting a PostHog event definition by exact name.");
|
|
1404
|
-
var getEventDefinitionByNameOutput = external_exports.looseObject({
|
|
1405
|
-
id: external_exports.string().describe("Event definition UUID."),
|
|
1406
|
-
name: external_exports.string().describe("Event definition name."),
|
|
1407
|
-
owner: external_exports.number().describe("Owner user ID.").nullable().optional(),
|
|
1408
|
-
description: external_exports.string().describe("Description for the event definition.").nullable().optional(),
|
|
1409
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the event definition.").optional(),
|
|
1410
|
-
created_at: external_exports.string().describe("Creation datetime for the event definition.").nullable().optional(),
|
|
1411
|
-
updated_at: external_exports.string().describe("Update datetime for the event definition.").optional(),
|
|
1412
|
-
updated_by: external_exports.looseObject({
|
|
1413
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1414
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1415
|
-
email: external_exports.string().describe("User email address."),
|
|
1416
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1417
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1418
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1419
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1420
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1421
|
-
last_seen_at: external_exports.string().describe("Datetime when the event was last seen.").nullable().optional(),
|
|
1422
|
-
last_updated_at: external_exports.string().describe("Datetime of the last upstream update.").optional(),
|
|
1423
|
-
verified: external_exports.boolean().describe("Whether the event definition is verified.").optional(),
|
|
1424
|
-
verified_at: external_exports.string().describe("Datetime when the event definition was verified.").nullable().optional(),
|
|
1425
|
-
verified_by: external_exports.looseObject({
|
|
1426
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1427
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1428
|
-
email: external_exports.string().describe("User email address."),
|
|
1429
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1430
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1431
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1432
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1433
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1434
|
-
hidden: external_exports.boolean().describe("Whether the event definition is hidden.").nullable().optional(),
|
|
1435
|
-
enforcement_mode: external_exports.string().describe("Enforcement mode for this event definition.").optional(),
|
|
1436
|
-
primary_property: external_exports.string().describe("Primary property displayed alongside this event.").nullable().optional(),
|
|
1437
|
-
is_action: external_exports.boolean().describe("Whether the definition represents an action.").optional(),
|
|
1438
|
-
action_id: external_exports.number().describe("Action ID if this definition is an action.").optional(),
|
|
1439
|
-
is_calculating: external_exports.boolean().describe("Whether PostHog is calculating related metadata.").optional(),
|
|
1440
|
-
last_calculated_at: external_exports.string().describe("Last calculation datetime.").optional(),
|
|
1441
|
-
created_by: external_exports.looseObject({
|
|
1442
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1443
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1444
|
-
email: external_exports.string().describe("User email address."),
|
|
1445
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1446
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1447
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1448
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1449
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1450
|
-
post_to_slack: external_exports.boolean().describe("Whether new events post to Slack.").optional(),
|
|
1451
|
-
default_columns: external_exports.array(external_exports.string().describe("Default column name.")).describe("Default columns configured for this event definition.").optional(),
|
|
1452
|
-
media_preview_urls: external_exports.array(external_exports.string().describe("Media preview URL.")).describe("Media preview URLs returned by PostHog.").optional()
|
|
1453
|
-
}).describe("PostHog event definition.");
|
|
1454
|
-
var getEventDefinitionPrimaryPropertiesInput = external_exports.strictObject({
|
|
1455
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1456
|
-
names: external_exports.array(external_exports.string().describe("Event name.")).min(1).describe("Event names to restrict the response to.").optional()
|
|
1457
|
-
}).describe("Input for getting PostHog event definition primary properties.");
|
|
1458
|
-
var getEventDefinitionPrimaryPropertiesOutput = external_exports.strictObject({
|
|
1459
|
-
results: external_exports.record(external_exports.string(), external_exports.unknown().describe("Primary property value returned by PostHog.")).describe("Primary properties keyed by event name.").optional(),
|
|
1460
|
-
raw: external_exports.unknown().describe("Full raw primary properties payload returned by PostHog.").optional()
|
|
1461
|
-
}).describe("Primary properties configured for PostHog event definitions.");
|
|
1462
|
-
var bulkUpdateEventDefinitionTagsInput = external_exports.strictObject({
|
|
1463
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1464
|
-
ids: external_exports.array(external_exports.int().describe("Object ID.")).min(1).max(500).describe("Object IDs to update tags on.").optional(),
|
|
1465
|
-
action: external_exports.enum(["add", "remove", "set"]).describe("Bulk tag action to perform.").optional(),
|
|
1466
|
-
tags: external_exports.array(external_exports.string().describe("Tag name.")).min(1).describe("Tag names to add, remove, or set.").optional()
|
|
1467
|
-
}).describe("Input for bulk updating tags on PostHog definitions.");
|
|
1468
|
-
var bulkUpdateEventDefinitionTagsOutput = external_exports.strictObject({
|
|
1469
|
-
updated: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Objects whose tags were updated.").optional(),
|
|
1470
|
-
skipped: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Objects skipped by PostHog during tag update.").optional(),
|
|
1471
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
1472
|
-
}).describe("PostHog bulk tag update response.");
|
|
1473
|
-
var listPropertyDefinitionsInput = external_exports.strictObject({
|
|
1474
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1475
|
-
event_names: external_exports.string().describe("JSON-encoded event names used by PostHog to populate filtered event visibility.").optional(),
|
|
1476
|
-
exclude_core_properties: external_exports.boolean().describe("Whether to exclude core properties.").optional(),
|
|
1477
|
-
exclude_hidden: external_exports.boolean().describe("Whether to exclude hidden properties.").optional(),
|
|
1478
|
-
excluded_properties: external_exports.string().describe("JSON-encoded list of excluded properties.").optional(),
|
|
1479
|
-
filter_by_event_names: external_exports.boolean().describe("Whether to return only properties seen on the supplied event names.").nullable().optional(),
|
|
1480
|
-
group_type_index: external_exports.int().describe("Group type index to use when type is group.").optional(),
|
|
1481
|
-
is_feature_flag: external_exports.boolean().describe("Whether to include only or exclude feature flag properties.").nullable().optional(),
|
|
1482
|
-
is_numerical: external_exports.boolean().describe("Whether to include only or exclude numerical properties.").nullable().optional(),
|
|
1483
|
-
limit: external_exports.int().min(1).describe("Number of results to return per page.").optional(),
|
|
1484
|
-
offset: external_exports.int().min(0).describe("Initial index from which to return the results.").optional(),
|
|
1485
|
-
properties: external_exports.string().describe("Comma-separated list of properties to filter.").optional(),
|
|
1486
|
-
search: external_exports.string().describe("Search term used to match property names.").optional(),
|
|
1487
|
-
type: external_exports.enum(["event", "person", "group", "session"]).describe("Property definition type to return.").optional(),
|
|
1488
|
-
verified: external_exports.boolean().describe("Whether to filter by verified state.").nullable().optional()
|
|
1489
|
-
}).describe("Input for listing PostHog property definitions.");
|
|
1490
|
-
var listPropertyDefinitionsOutput = external_exports.strictObject({
|
|
1491
|
-
count: external_exports.int().describe("Total number of results available.").optional(),
|
|
1492
|
-
next: external_exports.string().describe("URL for the next page of results, or null when there is no next page.").nullable().optional(),
|
|
1493
|
-
previous: external_exports.string().describe("URL for the previous page of results, or null when there is no previous page.").nullable().optional(),
|
|
1494
|
-
results: external_exports.array(external_exports.looseObject({
|
|
1495
|
-
id: external_exports.string().describe("Property definition UUID."),
|
|
1496
|
-
name: external_exports.string().describe("Property name."),
|
|
1497
|
-
description: external_exports.string().describe("Description for the property definition.").nullable().optional(),
|
|
1498
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the property definition.").optional(),
|
|
1499
|
-
is_numerical: external_exports.boolean().describe("Whether the property is numerical."),
|
|
1500
|
-
updated_at: external_exports.string().describe("Datetime when the property definition was updated."),
|
|
1501
|
-
updated_by: external_exports.looseObject({
|
|
1502
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1503
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1504
|
-
email: external_exports.string().describe("User email address."),
|
|
1505
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1506
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1507
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1508
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1509
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1510
|
-
is_seen_on_filtered_events: external_exports.boolean().describe("Whether the property was seen on the filtered events.").nullable().optional(),
|
|
1511
|
-
property_type: external_exports.string().describe("Property type inferred by PostHog.").nullable().optional(),
|
|
1512
|
-
verified: external_exports.boolean().describe("Whether the property definition is verified.").optional(),
|
|
1513
|
-
verified_at: external_exports.string().describe("Datetime when the property definition was verified.").nullable().optional(),
|
|
1514
|
-
verified_by: external_exports.looseObject({
|
|
1515
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1516
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1517
|
-
email: external_exports.string().describe("User email address."),
|
|
1518
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1519
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1520
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1521
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1522
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1523
|
-
hidden: external_exports.boolean().describe("Whether the property definition is hidden.").nullable().optional()
|
|
1524
|
-
}).describe("PostHog property definition.")).describe("Property definitions returned by PostHog.").optional()
|
|
1525
|
-
}).describe("Paginated PostHog property definition list.");
|
|
1526
|
-
var getPropertyDefinitionInput = external_exports.strictObject({
|
|
1527
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1528
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
1529
|
-
}).describe("Input for a PostHog property definition.");
|
|
1530
|
-
var getPropertyDefinitionOutput = external_exports.looseObject({
|
|
1531
|
-
id: external_exports.string().describe("Property definition UUID."),
|
|
1532
|
-
name: external_exports.string().describe("Property name."),
|
|
1533
|
-
description: external_exports.string().describe("Description for the property definition.").nullable().optional(),
|
|
1534
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the property definition.").optional(),
|
|
1535
|
-
is_numerical: external_exports.boolean().describe("Whether the property is numerical."),
|
|
1536
|
-
updated_at: external_exports.string().describe("Datetime when the property definition was updated."),
|
|
1537
|
-
updated_by: external_exports.looseObject({
|
|
1538
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1539
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1540
|
-
email: external_exports.string().describe("User email address."),
|
|
1541
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1542
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1543
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1544
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1545
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1546
|
-
is_seen_on_filtered_events: external_exports.boolean().describe("Whether the property was seen on the filtered events.").nullable().optional(),
|
|
1547
|
-
property_type: external_exports.string().describe("Property type inferred by PostHog.").nullable().optional(),
|
|
1548
|
-
verified: external_exports.boolean().describe("Whether the property definition is verified.").optional(),
|
|
1549
|
-
verified_at: external_exports.string().describe("Datetime when the property definition was verified.").nullable().optional(),
|
|
1550
|
-
verified_by: external_exports.looseObject({
|
|
1551
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1552
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1553
|
-
email: external_exports.string().describe("User email address."),
|
|
1554
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1555
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1556
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1557
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1558
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1559
|
-
hidden: external_exports.boolean().describe("Whether the property definition is hidden.").nullable().optional()
|
|
1560
|
-
}).describe("PostHog property definition.");
|
|
1561
|
-
var updatePropertyDefinitionInput = external_exports.strictObject({
|
|
1562
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1563
|
-
description: external_exports.string().describe("Description for the property definition.").nullable().optional(),
|
|
1564
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the property definition.").optional(),
|
|
1565
|
-
verified: external_exports.boolean().describe("Whether the property definition is verified.").optional(),
|
|
1566
|
-
hidden: external_exports.boolean().describe("Whether the property definition is hidden.").nullable().optional(),
|
|
1567
|
-
property_type: external_exports.string().describe("Property type classified by PostHog.").nullable().optional(),
|
|
1568
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.")
|
|
1569
|
-
}).describe("Input for updating a PostHog property definition.");
|
|
1570
|
-
var updatePropertyDefinitionOutput = external_exports.looseObject({
|
|
1571
|
-
id: external_exports.string().describe("Property definition UUID."),
|
|
1572
|
-
name: external_exports.string().describe("Property name."),
|
|
1573
|
-
description: external_exports.string().describe("Description for the property definition.").nullable().optional(),
|
|
1574
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the property definition.").optional(),
|
|
1575
|
-
is_numerical: external_exports.boolean().describe("Whether the property is numerical."),
|
|
1576
|
-
updated_at: external_exports.string().describe("Datetime when the property definition was updated."),
|
|
1577
|
-
updated_by: external_exports.looseObject({
|
|
1578
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1579
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1580
|
-
email: external_exports.string().describe("User email address."),
|
|
1581
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1582
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1583
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1584
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1585
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1586
|
-
is_seen_on_filtered_events: external_exports.boolean().describe("Whether the property was seen on the filtered events.").nullable().optional(),
|
|
1587
|
-
property_type: external_exports.string().describe("Property type inferred by PostHog.").nullable().optional(),
|
|
1588
|
-
verified: external_exports.boolean().describe("Whether the property definition is verified.").optional(),
|
|
1589
|
-
verified_at: external_exports.string().describe("Datetime when the property definition was verified.").nullable().optional(),
|
|
1590
|
-
verified_by: external_exports.looseObject({
|
|
1591
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1592
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1593
|
-
email: external_exports.string().describe("User email address."),
|
|
1594
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1595
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1596
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1597
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1598
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1599
|
-
hidden: external_exports.boolean().describe("Whether the property definition is hidden.").nullable().optional()
|
|
1600
|
-
}).describe("PostHog property definition.");
|
|
1601
|
-
var deletePropertyDefinitionInput = external_exports.strictObject({
|
|
1602
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1603
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
1604
|
-
}).describe("Input for a PostHog property definition.");
|
|
1605
|
-
var deletePropertyDefinitionOutput = external_exports.strictObject({
|
|
1606
|
-
deleted: external_exports.boolean().describe("Whether the delete request succeeded.").optional(),
|
|
1607
|
-
id: external_exports.string().describe("Deleted definition identifier.").optional(),
|
|
1608
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
1609
|
-
}).describe("Result returned after deleting a definition.");
|
|
1610
|
-
var bulkUpdatePropertyDefinitionTagsInput = external_exports.strictObject({
|
|
1611
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1612
|
-
ids: external_exports.array(external_exports.int().describe("Object ID.")).min(1).max(500).describe("Object IDs to update tags on.").optional(),
|
|
1613
|
-
action: external_exports.enum(["add", "remove", "set"]).describe("Bulk tag action to perform.").optional(),
|
|
1614
|
-
tags: external_exports.array(external_exports.string().describe("Tag name.")).min(1).describe("Tag names to add, remove, or set.").optional()
|
|
1615
|
-
}).describe("Input for bulk updating tags on PostHog definitions.");
|
|
1616
|
-
var bulkUpdatePropertyDefinitionTagsOutput = external_exports.strictObject({
|
|
1617
|
-
updated: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Objects whose tags were updated.").optional(),
|
|
1618
|
-
skipped: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Objects skipped by PostHog during tag update.").optional(),
|
|
1619
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
1620
|
-
}).describe("PostHog bulk tag update response.");
|
|
1621
|
-
var listAnnotationsInput = external_exports.strictObject({
|
|
1622
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1623
|
-
limit: external_exports.int().min(1).describe("Number of results to return per page.").optional(),
|
|
1624
|
-
offset: external_exports.int().min(0).describe("Initial index from which to return the results.").optional(),
|
|
1625
|
-
search: external_exports.string().describe("Search term used to match annotations.").optional()
|
|
1626
|
-
}).describe("Input for listing PostHog annotations.");
|
|
1627
|
-
var listAnnotationsOutput = external_exports.strictObject({
|
|
1628
|
-
count: external_exports.int().describe("Total number of results available.").optional(),
|
|
1629
|
-
next: external_exports.string().describe("URL for the next page of results, or null when there is no next page.").nullable().optional(),
|
|
1630
|
-
previous: external_exports.string().describe("URL for the previous page of results, or null when there is no previous page.").nullable().optional(),
|
|
1631
|
-
results: external_exports.array(external_exports.looseObject({
|
|
1632
|
-
id: external_exports.int().describe("Numeric annotation identifier."),
|
|
1633
|
-
content: external_exports.string().describe("Annotation text shown on charts.").nullable().optional(),
|
|
1634
|
-
date_marker: external_exports.string().describe("ISO 8601 timestamp when this annotation happened.").nullable().optional(),
|
|
1635
|
-
creation_type: external_exports.string().describe("Annotation creation type returned by PostHog.").optional(),
|
|
1636
|
-
dashboard_item: external_exports.number().describe("Dashboard tile or insight identifier attached to the annotation.").nullable().optional(),
|
|
1637
|
-
dashboard_id: external_exports.number().describe("Dashboard identifier attached to the annotation.").nullable().optional(),
|
|
1638
|
-
dashboard_name: external_exports.string().describe("Dashboard name attached to the annotation.").nullable().optional(),
|
|
1639
|
-
insight_short_id: external_exports.string().describe("Insight short ID attached to the annotation.").nullable().optional(),
|
|
1640
|
-
insight_name: external_exports.string().describe("Insight name attached to the annotation.").nullable().optional(),
|
|
1641
|
-
insight_derived_name: external_exports.string().describe("Derived insight name attached to the annotation.").nullable().optional(),
|
|
1642
|
-
created_by: external_exports.looseObject({
|
|
1643
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1644
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1645
|
-
email: external_exports.string().describe("User email address."),
|
|
1646
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1647
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1648
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1649
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1650
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1651
|
-
created_at: external_exports.string().describe("Datetime when the annotation was created.").nullable().optional(),
|
|
1652
|
-
updated_at: external_exports.string().describe("Datetime when the annotation was updated.").optional(),
|
|
1653
|
-
deleted: external_exports.boolean().describe("Whether the annotation is marked as deleted.").optional(),
|
|
1654
|
-
scope: external_exports.string().describe("Annotation visibility scope.").optional(),
|
|
1655
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
1656
|
-
}).describe("PostHog annotation.")).describe("Annotations returned by PostHog.").optional(),
|
|
1657
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
1658
|
-
}).describe("Paginated PostHog annotation list.");
|
|
1659
|
-
var getAnnotationInput = external_exports.strictObject({
|
|
1660
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1661
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
1662
|
-
}).describe("Input for a PostHog annotation.");
|
|
1663
|
-
var getAnnotationOutput = external_exports.looseObject({
|
|
1664
|
-
id: external_exports.int().describe("Numeric annotation identifier."),
|
|
1665
|
-
content: external_exports.string().describe("Annotation text shown on charts.").nullable().optional(),
|
|
1666
|
-
date_marker: external_exports.string().describe("ISO 8601 timestamp when this annotation happened.").nullable().optional(),
|
|
1667
|
-
creation_type: external_exports.string().describe("Annotation creation type returned by PostHog.").optional(),
|
|
1668
|
-
dashboard_item: external_exports.number().describe("Dashboard tile or insight identifier attached to the annotation.").nullable().optional(),
|
|
1669
|
-
dashboard_id: external_exports.number().describe("Dashboard identifier attached to the annotation.").nullable().optional(),
|
|
1670
|
-
dashboard_name: external_exports.string().describe("Dashboard name attached to the annotation.").nullable().optional(),
|
|
1671
|
-
insight_short_id: external_exports.string().describe("Insight short ID attached to the annotation.").nullable().optional(),
|
|
1672
|
-
insight_name: external_exports.string().describe("Insight name attached to the annotation.").nullable().optional(),
|
|
1673
|
-
insight_derived_name: external_exports.string().describe("Derived insight name attached to the annotation.").nullable().optional(),
|
|
1674
|
-
created_by: external_exports.looseObject({
|
|
1675
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1676
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1677
|
-
email: external_exports.string().describe("User email address."),
|
|
1678
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1679
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1680
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1681
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1682
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1683
|
-
created_at: external_exports.string().describe("Datetime when the annotation was created.").nullable().optional(),
|
|
1684
|
-
updated_at: external_exports.string().describe("Datetime when the annotation was updated.").optional(),
|
|
1685
|
-
deleted: external_exports.boolean().describe("Whether the annotation is marked as deleted.").optional(),
|
|
1686
|
-
scope: external_exports.string().describe("Annotation visibility scope.").optional(),
|
|
1687
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
1688
|
-
}).describe("PostHog annotation.");
|
|
1689
|
-
var createAnnotationInput = external_exports.strictObject({
|
|
1690
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1691
|
-
content: external_exports.string().describe("Annotation text shown on charts.").nullable().optional(),
|
|
1692
|
-
date_marker: external_exports.string().describe("ISO 8601 timestamp when this annotation happened.").nullable().optional(),
|
|
1693
|
-
creation_type: external_exports.enum(["USR", "GIT"]).describe("Annotation creation type.").optional(),
|
|
1694
|
-
dashboard_item: external_exports.number().describe("Dashboard tile or insight identifier attached to the annotation.").nullable().optional(),
|
|
1695
|
-
dashboard_id: external_exports.number().describe("Dashboard identifier attached to the annotation.").nullable().optional(),
|
|
1696
|
-
deleted: external_exports.boolean().describe("Whether the annotation should be marked as deleted.").optional(),
|
|
1697
|
-
scope: external_exports.enum(["dashboard_item", "dashboard", "project", "organization"]).describe("Annotation visibility scope.").optional()
|
|
1698
|
-
}).describe("Input for creating a PostHog annotation.");
|
|
1699
|
-
var createAnnotationOutput = external_exports.looseObject({
|
|
1700
|
-
id: external_exports.int().describe("Numeric annotation identifier."),
|
|
1701
|
-
content: external_exports.string().describe("Annotation text shown on charts.").nullable().optional(),
|
|
1702
|
-
date_marker: external_exports.string().describe("ISO 8601 timestamp when this annotation happened.").nullable().optional(),
|
|
1703
|
-
creation_type: external_exports.string().describe("Annotation creation type returned by PostHog.").optional(),
|
|
1704
|
-
dashboard_item: external_exports.number().describe("Dashboard tile or insight identifier attached to the annotation.").nullable().optional(),
|
|
1705
|
-
dashboard_id: external_exports.number().describe("Dashboard identifier attached to the annotation.").nullable().optional(),
|
|
1706
|
-
dashboard_name: external_exports.string().describe("Dashboard name attached to the annotation.").nullable().optional(),
|
|
1707
|
-
insight_short_id: external_exports.string().describe("Insight short ID attached to the annotation.").nullable().optional(),
|
|
1708
|
-
insight_name: external_exports.string().describe("Insight name attached to the annotation.").nullable().optional(),
|
|
1709
|
-
insight_derived_name: external_exports.string().describe("Derived insight name attached to the annotation.").nullable().optional(),
|
|
1710
|
-
created_by: external_exports.looseObject({
|
|
1711
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1712
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1713
|
-
email: external_exports.string().describe("User email address."),
|
|
1714
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1715
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1716
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1717
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1718
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1719
|
-
created_at: external_exports.string().describe("Datetime when the annotation was created.").nullable().optional(),
|
|
1720
|
-
updated_at: external_exports.string().describe("Datetime when the annotation was updated.").optional(),
|
|
1721
|
-
deleted: external_exports.boolean().describe("Whether the annotation is marked as deleted.").optional(),
|
|
1722
|
-
scope: external_exports.string().describe("Annotation visibility scope.").optional(),
|
|
1723
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
1724
|
-
}).describe("PostHog annotation.");
|
|
1725
|
-
var updateAnnotationInput = external_exports.strictObject({
|
|
1726
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1727
|
-
content: external_exports.string().describe("Annotation text shown on charts.").nullable().optional(),
|
|
1728
|
-
date_marker: external_exports.string().describe("ISO 8601 timestamp when this annotation happened.").nullable().optional(),
|
|
1729
|
-
creation_type: external_exports.enum(["USR", "GIT"]).describe("Annotation creation type.").optional(),
|
|
1730
|
-
dashboard_item: external_exports.number().describe("Dashboard tile or insight identifier attached to the annotation.").nullable().optional(),
|
|
1731
|
-
dashboard_id: external_exports.number().describe("Dashboard identifier attached to the annotation.").nullable().optional(),
|
|
1732
|
-
deleted: external_exports.boolean().describe("Whether the annotation should be marked as deleted.").optional(),
|
|
1733
|
-
scope: external_exports.enum(["dashboard_item", "dashboard", "project", "organization"]).describe("Annotation visibility scope.").optional(),
|
|
1734
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.")
|
|
1735
|
-
}).describe("Input for updating a PostHog annotation.");
|
|
1736
|
-
var updateAnnotationOutput = external_exports.looseObject({
|
|
1737
|
-
id: external_exports.int().describe("Numeric annotation identifier."),
|
|
1738
|
-
content: external_exports.string().describe("Annotation text shown on charts.").nullable().optional(),
|
|
1739
|
-
date_marker: external_exports.string().describe("ISO 8601 timestamp when this annotation happened.").nullable().optional(),
|
|
1740
|
-
creation_type: external_exports.string().describe("Annotation creation type returned by PostHog.").optional(),
|
|
1741
|
-
dashboard_item: external_exports.number().describe("Dashboard tile or insight identifier attached to the annotation.").nullable().optional(),
|
|
1742
|
-
dashboard_id: external_exports.number().describe("Dashboard identifier attached to the annotation.").nullable().optional(),
|
|
1743
|
-
dashboard_name: external_exports.string().describe("Dashboard name attached to the annotation.").nullable().optional(),
|
|
1744
|
-
insight_short_id: external_exports.string().describe("Insight short ID attached to the annotation.").nullable().optional(),
|
|
1745
|
-
insight_name: external_exports.string().describe("Insight name attached to the annotation.").nullable().optional(),
|
|
1746
|
-
insight_derived_name: external_exports.string().describe("Derived insight name attached to the annotation.").nullable().optional(),
|
|
1747
|
-
created_by: external_exports.looseObject({
|
|
1748
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1749
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1750
|
-
email: external_exports.string().describe("User email address."),
|
|
1751
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1752
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1753
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1754
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1755
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1756
|
-
created_at: external_exports.string().describe("Datetime when the annotation was created.").nullable().optional(),
|
|
1757
|
-
updated_at: external_exports.string().describe("Datetime when the annotation was updated.").optional(),
|
|
1758
|
-
deleted: external_exports.boolean().describe("Whether the annotation is marked as deleted.").optional(),
|
|
1759
|
-
scope: external_exports.string().describe("Annotation visibility scope.").optional(),
|
|
1760
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
1761
|
-
}).describe("PostHog annotation.");
|
|
1762
|
-
var deleteAnnotationInput = external_exports.strictObject({
|
|
1763
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1764
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
1765
|
-
}).describe("Input for a PostHog annotation.");
|
|
1766
|
-
var deleteAnnotationOutput = external_exports.strictObject({
|
|
1767
|
-
deleted: external_exports.boolean().describe("Whether the annotation was marked as deleted.").optional(),
|
|
1768
|
-
id: external_exports.string().describe("Deleted annotation identifier.").optional(),
|
|
1769
|
-
annotation: external_exports.looseObject({
|
|
1770
|
-
id: external_exports.int().describe("Numeric annotation identifier."),
|
|
1771
|
-
content: external_exports.string().describe("Annotation text shown on charts.").nullable().optional(),
|
|
1772
|
-
date_marker: external_exports.string().describe("ISO 8601 timestamp when this annotation happened.").nullable().optional(),
|
|
1773
|
-
creation_type: external_exports.string().describe("Annotation creation type returned by PostHog.").optional(),
|
|
1774
|
-
dashboard_item: external_exports.number().describe("Dashboard tile or insight identifier attached to the annotation.").nullable().optional(),
|
|
1775
|
-
dashboard_id: external_exports.number().describe("Dashboard identifier attached to the annotation.").nullable().optional(),
|
|
1776
|
-
dashboard_name: external_exports.string().describe("Dashboard name attached to the annotation.").nullable().optional(),
|
|
1777
|
-
insight_short_id: external_exports.string().describe("Insight short ID attached to the annotation.").nullable().optional(),
|
|
1778
|
-
insight_name: external_exports.string().describe("Insight name attached to the annotation.").nullable().optional(),
|
|
1779
|
-
insight_derived_name: external_exports.string().describe("Derived insight name attached to the annotation.").nullable().optional(),
|
|
1780
|
-
created_by: external_exports.looseObject({
|
|
1781
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1782
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1783
|
-
email: external_exports.string().describe("User email address."),
|
|
1784
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1785
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1786
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1787
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1788
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1789
|
-
created_at: external_exports.string().describe("Datetime when the annotation was created.").nullable().optional(),
|
|
1790
|
-
updated_at: external_exports.string().describe("Datetime when the annotation was updated.").optional(),
|
|
1791
|
-
deleted: external_exports.boolean().describe("Whether the annotation is marked as deleted.").optional(),
|
|
1792
|
-
scope: external_exports.string().describe("Annotation visibility scope.").optional(),
|
|
1793
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
1794
|
-
}).describe("PostHog annotation.").optional(),
|
|
1795
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
1796
|
-
}).describe("Result returned after marking a PostHog annotation as deleted.");
|
|
1797
|
-
var listCohortsInput = external_exports.strictObject({
|
|
1798
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1799
|
-
limit: external_exports.int().min(1).describe("Number of results to return per page.").optional(),
|
|
1800
|
-
offset: external_exports.int().min(0).describe("Initial index from which to return the results.").optional()
|
|
1801
|
-
}).describe("Input for listing PostHog cohorts.");
|
|
1802
|
-
var listCohortsOutput = external_exports.strictObject({
|
|
1803
|
-
count: external_exports.int().describe("Total number of results available.").optional(),
|
|
1804
|
-
next: external_exports.string().describe("URL for the next page of results, or null when there is no next page.").nullable().optional(),
|
|
1805
|
-
previous: external_exports.string().describe("URL for the previous page of results, or null when there is no previous page.").nullable().optional(),
|
|
1806
|
-
results: external_exports.array(external_exports.looseObject({
|
|
1807
|
-
id: external_exports.int().describe("Numeric cohort identifier."),
|
|
1808
|
-
name: external_exports.string().describe("Cohort name.").nullable().optional(),
|
|
1809
|
-
description: external_exports.string().describe("Description for the cohort.").optional(),
|
|
1810
|
-
groups: external_exports.looseObject({}).describe("Raw group configuration returned by PostHog.").optional(),
|
|
1811
|
-
deleted: external_exports.boolean().describe("Whether the cohort is marked as deleted.").optional(),
|
|
1812
|
-
filters: external_exports.looseObject({}).describe("Cohort filters returned by PostHog.").nullable().optional(),
|
|
1813
|
-
query: external_exports.looseObject({}).describe("Query payload returned by PostHog for this cohort.").nullable().optional(),
|
|
1814
|
-
version: external_exports.number().describe("Current cohort version.").nullable().optional(),
|
|
1815
|
-
pending_version: external_exports.number().describe("Pending cohort version.").nullable().optional(),
|
|
1816
|
-
is_calculating: external_exports.boolean().describe("Whether the cohort is being recalculated.").optional(),
|
|
1817
|
-
created_by: external_exports.looseObject({
|
|
1818
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1819
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1820
|
-
email: external_exports.string().describe("User email address."),
|
|
1821
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1822
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1823
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1824
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1825
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1826
|
-
created_at: external_exports.string().describe("Datetime when the cohort was created.").nullable().optional(),
|
|
1827
|
-
last_calculation: external_exports.string().describe("Datetime when the cohort was last calculated.").nullable().optional(),
|
|
1828
|
-
last_backfill_person_properties_at: external_exports.string().describe("Datetime when person properties were last backfilled.").nullable().optional(),
|
|
1829
|
-
errors_calculating: external_exports.number().describe("Number of calculation errors recorded for the cohort.").optional(),
|
|
1830
|
-
last_error_message: external_exports.string().describe("Most recent cohort calculation error message.").nullable().optional(),
|
|
1831
|
-
count: external_exports.number().describe("Number of persons in the cohort.").nullable().optional(),
|
|
1832
|
-
is_static: external_exports.boolean().describe("Whether the cohort is static.").optional(),
|
|
1833
|
-
cohort_type: external_exports.string().describe("Cohort type classified by PostHog.").nullable().optional(),
|
|
1834
|
-
experiment_set: external_exports.array(external_exports.number().describe("Experiment identifier.")).describe("Experiment IDs attached to the cohort.").optional()
|
|
1835
|
-
}).describe("PostHog cohort.")).describe("Cohorts returned by PostHog.").optional()
|
|
1836
|
-
}).describe("Paginated PostHog cohort list.");
|
|
1837
|
-
var getCohortInput = external_exports.strictObject({
|
|
1838
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1839
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
1840
|
-
}).describe("Input for getting a PostHog cohort.");
|
|
1841
|
-
var getCohortOutput = external_exports.looseObject({
|
|
1842
|
-
id: external_exports.int().describe("Numeric cohort identifier."),
|
|
1843
|
-
name: external_exports.string().describe("Cohort name.").nullable().optional(),
|
|
1844
|
-
description: external_exports.string().describe("Description for the cohort.").optional(),
|
|
1845
|
-
groups: external_exports.looseObject({}).describe("Raw group configuration returned by PostHog.").optional(),
|
|
1846
|
-
deleted: external_exports.boolean().describe("Whether the cohort is marked as deleted.").optional(),
|
|
1847
|
-
filters: external_exports.looseObject({}).describe("Cohort filters returned by PostHog.").nullable().optional(),
|
|
1848
|
-
query: external_exports.looseObject({}).describe("Query payload returned by PostHog for this cohort.").nullable().optional(),
|
|
1849
|
-
version: external_exports.number().describe("Current cohort version.").nullable().optional(),
|
|
1850
|
-
pending_version: external_exports.number().describe("Pending cohort version.").nullable().optional(),
|
|
1851
|
-
is_calculating: external_exports.boolean().describe("Whether the cohort is being recalculated.").optional(),
|
|
1852
|
-
created_by: external_exports.looseObject({
|
|
1853
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1854
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1855
|
-
email: external_exports.string().describe("User email address."),
|
|
1856
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1857
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1858
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1859
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1860
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1861
|
-
created_at: external_exports.string().describe("Datetime when the cohort was created.").nullable().optional(),
|
|
1862
|
-
last_calculation: external_exports.string().describe("Datetime when the cohort was last calculated.").nullable().optional(),
|
|
1863
|
-
last_backfill_person_properties_at: external_exports.string().describe("Datetime when person properties were last backfilled.").nullable().optional(),
|
|
1864
|
-
errors_calculating: external_exports.number().describe("Number of calculation errors recorded for the cohort.").optional(),
|
|
1865
|
-
last_error_message: external_exports.string().describe("Most recent cohort calculation error message.").nullable().optional(),
|
|
1866
|
-
count: external_exports.number().describe("Number of persons in the cohort.").nullable().optional(),
|
|
1867
|
-
is_static: external_exports.boolean().describe("Whether the cohort is static.").optional(),
|
|
1868
|
-
cohort_type: external_exports.string().describe("Cohort type classified by PostHog.").nullable().optional(),
|
|
1869
|
-
experiment_set: external_exports.array(external_exports.number().describe("Experiment identifier.")).describe("Experiment IDs attached to the cohort.").optional()
|
|
1870
|
-
}).describe("PostHog cohort.");
|
|
1871
|
-
var createCohortInput = external_exports.strictObject({
|
|
1872
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1873
|
-
name: external_exports.string().max(400).describe("Cohort name.").nullable(),
|
|
1874
|
-
description: external_exports.string().max(1e3).describe("Description for the cohort.").optional(),
|
|
1875
|
-
groups: external_exports.unknown().describe("Group configuration defining cohort criteria.").optional(),
|
|
1876
|
-
deleted: external_exports.boolean().describe("Whether the cohort should be marked as deleted.").optional(),
|
|
1877
|
-
filters: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
1878
|
-
query: external_exports.unknown().describe("Query payload defining this cohort.").nullable().optional(),
|
|
1879
|
-
is_static: external_exports.boolean().describe("Whether the cohort is static.").optional(),
|
|
1880
|
-
_create_in_folder: external_exports.string().describe("Folder identifier where PostHog should create the cohort.").optional(),
|
|
1881
|
-
_create_static_person_ids: external_exports.array(external_exports.string().describe("Person UUID.")).min(1).describe("Person UUIDs to seed when creating a static cohort.").optional()
|
|
1882
|
-
}).describe("Input for creating a PostHog cohort.");
|
|
1883
|
-
var createCohortOutput = external_exports.looseObject({
|
|
1884
|
-
id: external_exports.int().describe("Numeric cohort identifier."),
|
|
1885
|
-
name: external_exports.string().describe("Cohort name.").nullable().optional(),
|
|
1886
|
-
description: external_exports.string().describe("Description for the cohort.").optional(),
|
|
1887
|
-
groups: external_exports.looseObject({}).describe("Raw group configuration returned by PostHog.").optional(),
|
|
1888
|
-
deleted: external_exports.boolean().describe("Whether the cohort is marked as deleted.").optional(),
|
|
1889
|
-
filters: external_exports.looseObject({}).describe("Cohort filters returned by PostHog.").nullable().optional(),
|
|
1890
|
-
query: external_exports.looseObject({}).describe("Query payload returned by PostHog for this cohort.").nullable().optional(),
|
|
1891
|
-
version: external_exports.number().describe("Current cohort version.").nullable().optional(),
|
|
1892
|
-
pending_version: external_exports.number().describe("Pending cohort version.").nullable().optional(),
|
|
1893
|
-
is_calculating: external_exports.boolean().describe("Whether the cohort is being recalculated.").optional(),
|
|
1894
|
-
created_by: external_exports.looseObject({
|
|
1895
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1896
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1897
|
-
email: external_exports.string().describe("User email address."),
|
|
1898
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1899
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1900
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1901
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1902
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1903
|
-
created_at: external_exports.string().describe("Datetime when the cohort was created.").nullable().optional(),
|
|
1904
|
-
last_calculation: external_exports.string().describe("Datetime when the cohort was last calculated.").nullable().optional(),
|
|
1905
|
-
last_backfill_person_properties_at: external_exports.string().describe("Datetime when person properties were last backfilled.").nullable().optional(),
|
|
1906
|
-
errors_calculating: external_exports.number().describe("Number of calculation errors recorded for the cohort.").optional(),
|
|
1907
|
-
last_error_message: external_exports.string().describe("Most recent cohort calculation error message.").nullable().optional(),
|
|
1908
|
-
count: external_exports.number().describe("Number of persons in the cohort.").nullable().optional(),
|
|
1909
|
-
is_static: external_exports.boolean().describe("Whether the cohort is static.").optional(),
|
|
1910
|
-
cohort_type: external_exports.string().describe("Cohort type classified by PostHog.").nullable().optional(),
|
|
1911
|
-
experiment_set: external_exports.array(external_exports.number().describe("Experiment identifier.")).describe("Experiment IDs attached to the cohort.").optional()
|
|
1912
|
-
}).describe("PostHog cohort.");
|
|
1913
|
-
var updateCohortInput = external_exports.strictObject({
|
|
1914
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
1915
|
-
name: external_exports.string().max(400).describe("Cohort name.").nullable().optional(),
|
|
1916
|
-
description: external_exports.string().max(1e3).describe("Description for the cohort.").optional(),
|
|
1917
|
-
groups: external_exports.unknown().describe("Group configuration defining cohort criteria.").optional(),
|
|
1918
|
-
deleted: external_exports.boolean().describe("Whether the cohort should be marked as deleted.").optional(),
|
|
1919
|
-
filters: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
1920
|
-
query: external_exports.unknown().describe("Query payload defining this cohort.").nullable().optional(),
|
|
1921
|
-
is_static: external_exports.boolean().describe("Whether the cohort is static.").optional(),
|
|
1922
|
-
_create_in_folder: external_exports.string().describe("Folder identifier where PostHog should create the cohort.").optional(),
|
|
1923
|
-
_create_static_person_ids: external_exports.array(external_exports.string().describe("Person UUID.")).min(1).describe("Person UUIDs to seed when creating a static cohort.").optional(),
|
|
1924
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.")
|
|
1925
|
-
}).describe("Input for updating a PostHog cohort.");
|
|
1926
|
-
var updateCohortOutput = external_exports.looseObject({
|
|
1927
|
-
id: external_exports.int().describe("Numeric cohort identifier."),
|
|
1928
|
-
name: external_exports.string().describe("Cohort name.").nullable().optional(),
|
|
1929
|
-
description: external_exports.string().describe("Description for the cohort.").optional(),
|
|
1930
|
-
groups: external_exports.looseObject({}).describe("Raw group configuration returned by PostHog.").optional(),
|
|
1931
|
-
deleted: external_exports.boolean().describe("Whether the cohort is marked as deleted.").optional(),
|
|
1932
|
-
filters: external_exports.looseObject({}).describe("Cohort filters returned by PostHog.").nullable().optional(),
|
|
1933
|
-
query: external_exports.looseObject({}).describe("Query payload returned by PostHog for this cohort.").nullable().optional(),
|
|
1934
|
-
version: external_exports.number().describe("Current cohort version.").nullable().optional(),
|
|
1935
|
-
pending_version: external_exports.number().describe("Pending cohort version.").nullable().optional(),
|
|
1936
|
-
is_calculating: external_exports.boolean().describe("Whether the cohort is being recalculated.").optional(),
|
|
1937
|
-
created_by: external_exports.looseObject({
|
|
1938
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1939
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1940
|
-
email: external_exports.string().describe("User email address."),
|
|
1941
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1942
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1943
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1944
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1945
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1946
|
-
created_at: external_exports.string().describe("Datetime when the cohort was created.").nullable().optional(),
|
|
1947
|
-
last_calculation: external_exports.string().describe("Datetime when the cohort was last calculated.").nullable().optional(),
|
|
1948
|
-
last_backfill_person_properties_at: external_exports.string().describe("Datetime when person properties were last backfilled.").nullable().optional(),
|
|
1949
|
-
errors_calculating: external_exports.number().describe("Number of calculation errors recorded for the cohort.").optional(),
|
|
1950
|
-
last_error_message: external_exports.string().describe("Most recent cohort calculation error message.").nullable().optional(),
|
|
1951
|
-
count: external_exports.number().describe("Number of persons in the cohort.").nullable().optional(),
|
|
1952
|
-
is_static: external_exports.boolean().describe("Whether the cohort is static.").optional(),
|
|
1953
|
-
cohort_type: external_exports.string().describe("Cohort type classified by PostHog.").nullable().optional(),
|
|
1954
|
-
experiment_set: external_exports.array(external_exports.number().describe("Experiment identifier.")).describe("Experiment IDs attached to the cohort.").optional()
|
|
1955
|
-
}).describe("PostHog cohort.");
|
|
1956
|
-
var deleteCohortInput = external_exports.strictObject({
|
|
1957
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1958
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
1959
|
-
}).describe("Input for deleting a PostHog cohort.");
|
|
1960
|
-
var deleteCohortOutput = external_exports.strictObject({
|
|
1961
|
-
deleted: external_exports.boolean().describe("Whether the cohort was marked as deleted.").optional(),
|
|
1962
|
-
id: external_exports.string().describe("Deleted cohort identifier.").optional(),
|
|
1963
|
-
cohort: external_exports.looseObject({
|
|
1964
|
-
id: external_exports.int().describe("Numeric cohort identifier."),
|
|
1965
|
-
name: external_exports.string().describe("Cohort name.").nullable().optional(),
|
|
1966
|
-
description: external_exports.string().describe("Description for the cohort.").optional(),
|
|
1967
|
-
groups: external_exports.looseObject({}).describe("Raw group configuration returned by PostHog.").optional(),
|
|
1968
|
-
deleted: external_exports.boolean().describe("Whether the cohort is marked as deleted.").optional(),
|
|
1969
|
-
filters: external_exports.looseObject({}).describe("Cohort filters returned by PostHog.").nullable().optional(),
|
|
1970
|
-
query: external_exports.looseObject({}).describe("Query payload returned by PostHog for this cohort.").nullable().optional(),
|
|
1971
|
-
version: external_exports.number().describe("Current cohort version.").nullable().optional(),
|
|
1972
|
-
pending_version: external_exports.number().describe("Pending cohort version.").nullable().optional(),
|
|
1973
|
-
is_calculating: external_exports.boolean().describe("Whether the cohort is being recalculated.").optional(),
|
|
1974
|
-
created_by: external_exports.looseObject({
|
|
1975
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
1976
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
1977
|
-
email: external_exports.string().describe("User email address."),
|
|
1978
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
1979
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
1980
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
1981
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
1982
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
1983
|
-
created_at: external_exports.string().describe("Datetime when the cohort was created.").nullable().optional(),
|
|
1984
|
-
last_calculation: external_exports.string().describe("Datetime when the cohort was last calculated.").nullable().optional(),
|
|
1985
|
-
last_backfill_person_properties_at: external_exports.string().describe("Datetime when person properties were last backfilled.").nullable().optional(),
|
|
1986
|
-
errors_calculating: external_exports.number().describe("Number of calculation errors recorded for the cohort.").optional(),
|
|
1987
|
-
last_error_message: external_exports.string().describe("Most recent cohort calculation error message.").nullable().optional(),
|
|
1988
|
-
count: external_exports.number().describe("Number of persons in the cohort.").nullable().optional(),
|
|
1989
|
-
is_static: external_exports.boolean().describe("Whether the cohort is static.").optional(),
|
|
1990
|
-
cohort_type: external_exports.string().describe("Cohort type classified by PostHog.").nullable().optional(),
|
|
1991
|
-
experiment_set: external_exports.array(external_exports.number().describe("Experiment identifier.")).describe("Experiment IDs attached to the cohort.").optional()
|
|
1992
|
-
}).describe("PostHog cohort.").optional(),
|
|
1993
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
1994
|
-
}).describe("Result returned after marking a PostHog cohort as deleted.");
|
|
1995
|
-
var addPersonsToStaticCohortInput = external_exports.strictObject({
|
|
1996
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
1997
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional(),
|
|
1998
|
-
person_ids: external_exports.array(external_exports.string().describe("Person UUID.")).min(1).describe("Person UUIDs to add to the static cohort.").optional()
|
|
1999
|
-
}).describe("Input for adding persons to a static PostHog cohort.");
|
|
2000
|
-
var addPersonsToStaticCohortOutput = external_exports.strictObject({
|
|
2001
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2002
|
-
}).describe("Raw PostHog cohort endpoint payload.");
|
|
2003
|
-
var getCohortPersonsInput = external_exports.strictObject({
|
|
2004
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2005
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path."),
|
|
2006
|
-
limit: external_exports.int().min(1).describe("Number of results to return per page.").optional(),
|
|
2007
|
-
offset: external_exports.int().min(0).describe("Initial index from which to return the results.").optional(),
|
|
2008
|
-
format: external_exports.enum(["json"]).describe("Response format requested from PostHog.").optional()
|
|
2009
|
-
}).describe("Input for listing persons in a PostHog cohort.");
|
|
2010
|
-
var getCohortPersonsOutput = external_exports.strictObject({
|
|
2011
|
-
next: external_exports.string().describe("URL for the next page of results, or null when there is no next page.").nullable().optional(),
|
|
2012
|
-
previous: external_exports.string().describe("URL for the previous page of results, or null when there is no previous page.").nullable().optional(),
|
|
2013
|
-
results: external_exports.array(external_exports.looseObject({
|
|
2014
|
-
type: external_exports.string().describe("Result type returned by PostHog.").optional(),
|
|
2015
|
-
id: external_exports.string().describe("Person identifier returned by PostHog.").optional(),
|
|
2016
|
-
uuid: external_exports.string().describe("Person UUID returned by PostHog.").optional(),
|
|
2017
|
-
distinct_ids: external_exports.array(external_exports.string().describe("Person distinct ID.")).describe("Distinct IDs associated with this person.").optional(),
|
|
2018
|
-
properties: external_exports.looseObject({}).describe("Person properties returned by PostHog.").optional()
|
|
2019
|
-
}).describe("Person row returned by PostHog for a cohort.")).describe("Persons returned by PostHog for this cohort.").optional(),
|
|
2020
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2021
|
-
}).describe("Paginated PostHog cohort person list.");
|
|
2022
|
-
var getCohortCalculationHistoryInput = external_exports.strictObject({
|
|
2023
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2024
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
2025
|
-
}).describe("Input for getting PostHog cohort calculation history.");
|
|
2026
|
-
var getCohortCalculationHistoryOutput = external_exports.strictObject({
|
|
2027
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2028
|
-
}).describe("Raw PostHog cohort endpoint payload.");
|
|
2029
|
-
var listInsightsInput = external_exports.strictObject({
|
|
2030
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2031
|
-
basic: external_exports.boolean().describe("Whether to return basic insight metadata without results.").optional(),
|
|
2032
|
-
limit: external_exports.int().min(1).describe("Number of results to return per page.").optional(),
|
|
2033
|
-
offset: external_exports.int().min(0).describe("Initial index from which to return the results.").optional(),
|
|
2034
|
-
refresh: external_exports.enum(["async", "async_except_on_cache_miss", "blocking", "force_async", "force_blocking", "force_cache", "lazy_async"]).describe("Refresh mode used by the PostHog API.").optional(),
|
|
2035
|
-
short_id: external_exports.string().describe("Short insight identifier to filter by.").optional()
|
|
2036
|
-
}).describe("Input for listing PostHog insights.");
|
|
2037
|
-
var listInsightsOutput = external_exports.strictObject({
|
|
2038
|
-
count: external_exports.int().describe("Total number of results available.").optional(),
|
|
2039
|
-
next: external_exports.string().describe("URL for the next page of results, or null when there is no next page.").nullable().optional(),
|
|
2040
|
-
previous: external_exports.string().describe("URL for the previous page of results, or null when there is no previous page.").nullable().optional(),
|
|
2041
|
-
results: external_exports.array(external_exports.looseObject({
|
|
2042
|
-
id: external_exports.int().describe("Numeric insight identifier."),
|
|
2043
|
-
short_id: external_exports.string().describe("Short insight identifier.").optional(),
|
|
2044
|
-
name: external_exports.string().describe("Insight name.").nullable().optional(),
|
|
2045
|
-
derived_name: external_exports.string().describe("Derived insight name.").nullable().optional(),
|
|
2046
|
-
query: external_exports.looseObject({}).describe("Insight query definition returned by PostHog.").nullable().optional(),
|
|
2047
|
-
order: external_exports.number().describe("Display order for the insight.").nullable().optional(),
|
|
2048
|
-
deleted: external_exports.boolean().describe("Whether the insight is marked as deleted.").optional(),
|
|
2049
|
-
dashboards: external_exports.array(external_exports.number().describe("Dashboard ID.")).describe("Dashboard IDs referencing the insight.").optional(),
|
|
2050
|
-
dashboard_tiles: external_exports.array(external_exports.looseObject({}).describe("Dashboard tile summary returned by PostHog.")).describe("Dashboard tile summaries referencing the insight.").optional(),
|
|
2051
|
-
last_refresh: external_exports.string().describe("Datetime when the insight results were last refreshed.").nullable().optional(),
|
|
2052
|
-
cache_target_age: external_exports.string().describe("Target age timestamp for cached insight results.").nullable().optional(),
|
|
2053
|
-
next_allowed_client_refresh: external_exports.string().describe("Earliest datetime when a client may refresh the insight.").nullable().optional(),
|
|
2054
|
-
result: external_exports.unknown().describe("Insight result payload returned by PostHog.").optional(),
|
|
2055
|
-
hasMore: external_exports.boolean().describe("Whether the insight has more result rows.").nullable().optional(),
|
|
2056
|
-
columns: external_exports.array(external_exports.string().describe("Column name.")).describe("Column names for the result.").nullable().optional(),
|
|
2057
|
-
created_at: external_exports.string().describe("Datetime when the insight was created.").nullable().optional(),
|
|
2058
|
-
created_by: external_exports.looseObject({
|
|
2059
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2060
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2061
|
-
email: external_exports.string().describe("User email address."),
|
|
2062
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2063
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2064
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2065
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2066
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2067
|
-
description: external_exports.string().describe("Insight description.").nullable().optional(),
|
|
2068
|
-
updated_at: external_exports.string().describe("Datetime when the insight was updated.").optional(),
|
|
2069
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the insight.").optional(),
|
|
2070
|
-
favorited: external_exports.boolean().describe("Whether the insight is favorited.").optional(),
|
|
2071
|
-
last_modified_at: external_exports.string().describe("Datetime when the insight was last modified.").optional(),
|
|
2072
|
-
last_modified_by: external_exports.looseObject({
|
|
2073
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2074
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2075
|
-
email: external_exports.string().describe("User email address."),
|
|
2076
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2077
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2078
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2079
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2080
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2081
|
-
is_sample: external_exports.boolean().describe("Whether the insight is a sample insight.").optional(),
|
|
2082
|
-
effective_restriction_level: external_exports.number().describe("Effective restriction level for the current user.").optional(),
|
|
2083
|
-
effective_privilege_level: external_exports.number().describe("Effective privilege level for the current user.").optional(),
|
|
2084
|
-
user_access_level: external_exports.string().describe("Effective user access level for the insight.").nullable().optional(),
|
|
2085
|
-
timezone: external_exports.string().describe("Timezone used to display the insight.").nullable().optional(),
|
|
2086
|
-
is_cached: external_exports.boolean().describe("Whether the returned insight result is cached.").optional(),
|
|
2087
|
-
query_status: external_exports.looseObject({}).describe("Query status returned with the insight.").nullable().optional(),
|
|
2088
|
-
hogql: external_exports.string().describe("Generated HogQL query for the insight.").nullable().optional(),
|
|
2089
|
-
types: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Types returned for the insight.").nullable().optional(),
|
|
2090
|
-
resolved_date_range: external_exports.looseObject({
|
|
2091
|
-
date_from: external_exports.string().describe("Resolved start datetime for the date range.").optional(),
|
|
2092
|
-
date_to: external_exports.string().describe("Resolved end datetime for the date range.").optional()
|
|
2093
|
-
}).describe("Resolved date range returned by PostHog.").nullable().optional(),
|
|
2094
|
-
alerts: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Alerts attached to the insight.").optional(),
|
|
2095
|
-
last_viewed_at: external_exports.string().describe("Datetime when the insight was last viewed.").nullable().optional(),
|
|
2096
|
-
raw: external_exports.looseObject({}).describe("Full raw insight payload returned by PostHog.")
|
|
2097
|
-
}).describe("PostHog insight with a stable top-level connector shape.")).describe("Insights returned by PostHog.").optional(),
|
|
2098
|
-
raw: external_exports.looseObject({}).describe("Full raw insight list payload returned by PostHog.").optional()
|
|
2099
|
-
}).describe("Paginated PostHog insight list with a stable top-level connector shape.");
|
|
2100
|
-
var getInsightInput = external_exports.strictObject({
|
|
2101
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2102
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path."),
|
|
2103
|
-
from_dashboard: external_exports.int().describe("Dashboard ID whose filters should override the insight context.").optional(),
|
|
2104
|
-
refresh: external_exports.enum(["async", "async_except_on_cache_miss", "blocking", "force_async", "force_blocking", "force_cache", "lazy_async"]).describe("Refresh mode used by the PostHog API.").optional()
|
|
2105
|
-
}).describe("Input for getting a PostHog insight.");
|
|
2106
|
-
var getInsightOutput = external_exports.looseObject({
|
|
2107
|
-
id: external_exports.int().describe("Numeric insight identifier."),
|
|
2108
|
-
short_id: external_exports.string().describe("Short insight identifier.").optional(),
|
|
2109
|
-
name: external_exports.string().describe("Insight name.").nullable().optional(),
|
|
2110
|
-
derived_name: external_exports.string().describe("Derived insight name.").nullable().optional(),
|
|
2111
|
-
query: external_exports.looseObject({}).describe("Insight query definition returned by PostHog.").nullable().optional(),
|
|
2112
|
-
order: external_exports.number().describe("Display order for the insight.").nullable().optional(),
|
|
2113
|
-
deleted: external_exports.boolean().describe("Whether the insight is marked as deleted.").optional(),
|
|
2114
|
-
dashboards: external_exports.array(external_exports.number().describe("Dashboard ID.")).describe("Dashboard IDs referencing the insight.").optional(),
|
|
2115
|
-
dashboard_tiles: external_exports.array(external_exports.looseObject({}).describe("Dashboard tile summary returned by PostHog.")).describe("Dashboard tile summaries referencing the insight.").optional(),
|
|
2116
|
-
last_refresh: external_exports.string().describe("Datetime when the insight results were last refreshed.").nullable().optional(),
|
|
2117
|
-
cache_target_age: external_exports.string().describe("Target age timestamp for cached insight results.").nullable().optional(),
|
|
2118
|
-
next_allowed_client_refresh: external_exports.string().describe("Earliest datetime when a client may refresh the insight.").nullable().optional(),
|
|
2119
|
-
result: external_exports.unknown().describe("Insight result payload returned by PostHog.").optional(),
|
|
2120
|
-
hasMore: external_exports.boolean().describe("Whether the insight has more result rows.").nullable().optional(),
|
|
2121
|
-
columns: external_exports.array(external_exports.string().describe("Column name.")).describe("Column names for the result.").nullable().optional(),
|
|
2122
|
-
created_at: external_exports.string().describe("Datetime when the insight was created.").nullable().optional(),
|
|
2123
|
-
created_by: external_exports.looseObject({
|
|
2124
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2125
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2126
|
-
email: external_exports.string().describe("User email address."),
|
|
2127
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2128
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2129
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2130
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2131
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2132
|
-
description: external_exports.string().describe("Insight description.").nullable().optional(),
|
|
2133
|
-
updated_at: external_exports.string().describe("Datetime when the insight was updated.").optional(),
|
|
2134
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the insight.").optional(),
|
|
2135
|
-
favorited: external_exports.boolean().describe("Whether the insight is favorited.").optional(),
|
|
2136
|
-
last_modified_at: external_exports.string().describe("Datetime when the insight was last modified.").optional(),
|
|
2137
|
-
last_modified_by: external_exports.looseObject({
|
|
2138
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2139
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2140
|
-
email: external_exports.string().describe("User email address."),
|
|
2141
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2142
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2143
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2144
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2145
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2146
|
-
is_sample: external_exports.boolean().describe("Whether the insight is a sample insight.").optional(),
|
|
2147
|
-
effective_restriction_level: external_exports.number().describe("Effective restriction level for the current user.").optional(),
|
|
2148
|
-
effective_privilege_level: external_exports.number().describe("Effective privilege level for the current user.").optional(),
|
|
2149
|
-
user_access_level: external_exports.string().describe("Effective user access level for the insight.").nullable().optional(),
|
|
2150
|
-
timezone: external_exports.string().describe("Timezone used to display the insight.").nullable().optional(),
|
|
2151
|
-
is_cached: external_exports.boolean().describe("Whether the returned insight result is cached.").optional(),
|
|
2152
|
-
query_status: external_exports.looseObject({}).describe("Query status returned with the insight.").nullable().optional(),
|
|
2153
|
-
hogql: external_exports.string().describe("Generated HogQL query for the insight.").nullable().optional(),
|
|
2154
|
-
types: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Types returned for the insight.").nullable().optional(),
|
|
2155
|
-
resolved_date_range: external_exports.looseObject({
|
|
2156
|
-
date_from: external_exports.string().describe("Resolved start datetime for the date range.").optional(),
|
|
2157
|
-
date_to: external_exports.string().describe("Resolved end datetime for the date range.").optional()
|
|
2158
|
-
}).describe("Resolved date range returned by PostHog.").nullable().optional(),
|
|
2159
|
-
alerts: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Alerts attached to the insight.").optional(),
|
|
2160
|
-
last_viewed_at: external_exports.string().describe("Datetime when the insight was last viewed.").nullable().optional(),
|
|
2161
|
-
raw: external_exports.looseObject({}).describe("Full raw insight payload returned by PostHog.")
|
|
2162
|
-
}).describe("PostHog insight with a stable top-level connector shape.");
|
|
2163
|
-
var runQueryInput = external_exports.strictObject({
|
|
2164
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2165
|
-
query: external_exports.looseObject({
|
|
2166
|
-
kind: external_exports.string().min(1).describe("Query kind accepted by the PostHog query API.")
|
|
2167
|
-
}).describe("Query object submitted to the PostHog query API."),
|
|
2168
|
-
async: external_exports.boolean().describe("Whether PostHog should execute the query asynchronously.").nullable().optional(),
|
|
2169
|
-
client_query_id: external_exports.string().describe("Client-provided query identifier.").nullable().optional(),
|
|
2170
|
-
filters_override: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2171
|
-
limit_context: external_exports.string().describe("Limit context forwarded to the query API.").nullable().optional(),
|
|
2172
|
-
name: external_exports.string().max(128).describe("Descriptive query name for PostHog query logs.").nullable().optional(),
|
|
2173
|
-
refresh: external_exports.enum(["async", "async_except_on_cache_miss", "blocking", "force_async", "force_blocking", "force_cache", "lazy_async"]).describe("Refresh mode used by the PostHog API.").nullable().optional(),
|
|
2174
|
-
variables_override: external_exports.record(external_exports.string(), external_exports.unknown().describe("Variable value.")).describe("Variable overrides for the supplied query.").nullable().optional()
|
|
2175
|
-
}).describe("Input for running a PostHog query in a project.");
|
|
2176
|
-
var runQueryOutput = external_exports.looseObject({
|
|
2177
|
-
results: external_exports.array(external_exports.unknown().describe("Query result row.")).describe("Rows returned by the PostHog query.").optional(),
|
|
2178
|
-
columns: external_exports.array(external_exports.string().describe("Column name.")).describe("Column names for the result.").optional(),
|
|
2179
|
-
types: external_exports.array(external_exports.unknown().describe("Column type metadata.")).describe("Column type metadata returned by PostHog.").optional(),
|
|
2180
|
-
hasMore: external_exports.boolean().describe("Whether the query has more result rows.").nullable().optional(),
|
|
2181
|
-
limit: external_exports.int().describe("Limit returned by PostHog for the query.").optional(),
|
|
2182
|
-
offset: external_exports.int().describe("Offset returned by PostHog for the query.").optional(),
|
|
2183
|
-
query: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2184
|
-
error: external_exports.unknown().describe("Query error payload returned by PostHog.").optional(),
|
|
2185
|
-
is_cached: external_exports.boolean().describe("Whether the query result came from cache.").nullable().optional(),
|
|
2186
|
-
timings: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Timing metrics collected while processing the query.").optional(),
|
|
2187
|
-
query_status: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2188
|
-
hogql: external_exports.string().describe("Generated HogQL query.").nullable().optional(),
|
|
2189
|
-
cache_target_age: external_exports.string().describe("Target age timestamp for the cached query result.").nullable().optional(),
|
|
2190
|
-
last_refresh: external_exports.string().describe("Datetime when the query result was last refreshed.").nullable().optional(),
|
|
2191
|
-
next_allowed_client_refresh: external_exports.string().describe("Earliest datetime when the client can request a fresh result.").nullable().optional(),
|
|
2192
|
-
resolved_date_range: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2193
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2194
|
-
}).describe("PostHog query result with a stable connector shape.");
|
|
2195
|
-
var getAsyncQueryStatusInput = external_exports.strictObject({
|
|
2196
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2197
|
-
query_id: external_exports.string().min(1).describe("Asynchronous query identifier returned by PostHog.").optional()
|
|
2198
|
-
}).describe("Input for retrieving or cancelling a PostHog asynchronous query.");
|
|
2199
|
-
var getAsyncQueryStatusOutput = external_exports.looseObject({
|
|
2200
|
-
id: external_exports.string().describe("Asynchronous query identifier.").optional(),
|
|
2201
|
-
query_status: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").optional(),
|
|
2202
|
-
complete: external_exports.boolean().describe("Whether the asynchronous query has completed.").optional(),
|
|
2203
|
-
results: external_exports.array(external_exports.unknown().describe("Query result row.")).describe("Rows returned by the query when available.").optional(),
|
|
2204
|
-
error: external_exports.unknown().describe("Query error payload returned by PostHog.").optional(),
|
|
2205
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2206
|
-
}).describe("PostHog asynchronous query status with a stable connector shape.");
|
|
2207
|
-
var cancelQueryInput = external_exports.strictObject({
|
|
2208
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2209
|
-
query_id: external_exports.string().min(1).describe("Asynchronous query identifier returned by PostHog.").optional()
|
|
2210
|
-
}).describe("Input for retrieving or cancelling a PostHog asynchronous query.");
|
|
2211
|
-
var cancelQueryOutput = external_exports.strictObject({
|
|
2212
|
-
cancelled: external_exports.boolean().describe("Whether the cancel request was sent successfully.").optional(),
|
|
2213
|
-
query_id: external_exports.string().describe("Asynchronous query identifier.").optional(),
|
|
2214
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2215
|
-
}).describe("Result returned after cancelling a PostHog asynchronous query.");
|
|
2216
|
-
var createInsightInput = external_exports.strictObject({
|
|
2217
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2218
|
-
name: external_exports.string().describe("Insight name.").nullable().optional(),
|
|
2219
|
-
description: external_exports.string().describe("Insight description.").nullable().optional(),
|
|
2220
|
-
query: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2221
|
-
filters: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2222
|
-
dashboards: external_exports.array(external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.")).describe("Dashboard IDs referencing the insight.").optional(),
|
|
2223
|
-
tags: external_exports.array(external_exports.string().describe("Insight tag.")).describe("Tags attached to the insight.").optional(),
|
|
2224
|
-
refresh: external_exports.enum(["async", "async_except_on_cache_miss", "blocking", "force_async", "force_blocking", "force_cache", "lazy_async"]).describe("Refresh mode used by the PostHog API.").nullable().optional(),
|
|
2225
|
-
saved: external_exports.boolean().describe("Whether the insight should be saved.").nullable().optional(),
|
|
2226
|
-
favorited: external_exports.boolean().describe("Whether the insight should be favorited.").nullable().optional()
|
|
2227
|
-
}).describe("Input for creating a PostHog insight.");
|
|
2228
|
-
var createInsightOutput = external_exports.looseObject({
|
|
2229
|
-
id: external_exports.int().describe("Numeric insight identifier.").optional(),
|
|
2230
|
-
short_id: external_exports.string().describe("Short insight identifier.").optional(),
|
|
2231
|
-
name: external_exports.string().describe("Insight name.").nullable().optional(),
|
|
2232
|
-
query: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2233
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2234
|
-
}).describe("PostHog insight with a stable connector shape.");
|
|
2235
|
-
var updateInsightInput = external_exports.strictObject({
|
|
2236
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2237
|
-
name: external_exports.string().describe("Insight name.").nullable().optional(),
|
|
2238
|
-
description: external_exports.string().describe("Insight description.").nullable().optional(),
|
|
2239
|
-
query: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2240
|
-
filters: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2241
|
-
dashboards: external_exports.array(external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.")).describe("Dashboard IDs referencing the insight.").optional(),
|
|
2242
|
-
tags: external_exports.array(external_exports.string().describe("Insight tag.")).describe("Tags attached to the insight.").optional(),
|
|
2243
|
-
refresh: external_exports.enum(["async", "async_except_on_cache_miss", "blocking", "force_async", "force_blocking", "force_cache", "lazy_async"]).describe("Refresh mode used by the PostHog API.").nullable().optional(),
|
|
2244
|
-
saved: external_exports.boolean().describe("Whether the insight should be saved.").nullable().optional(),
|
|
2245
|
-
favorited: external_exports.boolean().describe("Whether the insight should be favorited.").nullable().optional(),
|
|
2246
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.")
|
|
2247
|
-
}).describe("Input for updating a PostHog insight.");
|
|
2248
|
-
var updateInsightOutput = external_exports.looseObject({
|
|
2249
|
-
id: external_exports.int().describe("Numeric insight identifier.").optional(),
|
|
2250
|
-
short_id: external_exports.string().describe("Short insight identifier.").optional(),
|
|
2251
|
-
name: external_exports.string().describe("Insight name.").nullable().optional(),
|
|
2252
|
-
query: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2253
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2254
|
-
}).describe("PostHog insight with a stable connector shape.");
|
|
2255
|
-
var deleteInsightInput = external_exports.strictObject({
|
|
2256
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2257
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
2258
|
-
}).describe("Input for deleting a PostHog insight.");
|
|
2259
|
-
var deleteInsightOutput = external_exports.strictObject({
|
|
2260
|
-
deleted: external_exports.boolean().describe("Whether the insight was deleted.").optional(),
|
|
2261
|
-
id: external_exports.string().describe("Deleted insight identifier.").optional(),
|
|
2262
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2263
|
-
}).describe("Result returned after deleting a PostHog insight.");
|
|
2264
|
-
var listDashboardsInput = external_exports.strictObject({
|
|
2265
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2266
|
-
limit: external_exports.int().min(1).describe("Number of results to return per page.").optional(),
|
|
2267
|
-
offset: external_exports.int().min(0).describe("Initial index from which to return the results.").optional(),
|
|
2268
|
-
search: external_exports.string().max(200).describe("Search term used to match dashboard names and descriptions.").optional()
|
|
2269
|
-
}).describe("Input for listing PostHog dashboards.");
|
|
2270
|
-
var listDashboardsOutput = external_exports.strictObject({
|
|
2271
|
-
count: external_exports.int().describe("Total number of results available.").optional(),
|
|
2272
|
-
next: external_exports.string().describe("URL for the next page of results, or null when there is no next page.").nullable().optional(),
|
|
2273
|
-
previous: external_exports.string().describe("URL for the previous page of results, or null when there is no previous page.").nullable().optional(),
|
|
2274
|
-
results: external_exports.array(external_exports.looseObject({
|
|
2275
|
-
id: external_exports.int().describe("Numeric dashboard identifier."),
|
|
2276
|
-
name: external_exports.string().describe("Dashboard name.").nullable().optional(),
|
|
2277
|
-
description: external_exports.string().describe("Dashboard description.").optional(),
|
|
2278
|
-
pinned: external_exports.boolean().describe("Whether the dashboard is pinned to the top of the list.").optional(),
|
|
2279
|
-
created_at: external_exports.string().describe("Datetime when the dashboard was created.").optional(),
|
|
2280
|
-
created_by: external_exports.looseObject({
|
|
2281
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2282
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2283
|
-
email: external_exports.string().describe("User email address."),
|
|
2284
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2285
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2286
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2287
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2288
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2289
|
-
last_accessed_at: external_exports.string().describe("Datetime when the dashboard was last accessed.").nullable().optional(),
|
|
2290
|
-
last_viewed_at: external_exports.string().describe("Datetime when the dashboard was last viewed.").nullable().optional(),
|
|
2291
|
-
is_shared: external_exports.boolean().describe("Whether the dashboard is shared.").optional(),
|
|
2292
|
-
deleted: external_exports.boolean().describe("Whether the dashboard is marked as deleted.").optional(),
|
|
2293
|
-
creation_mode: external_exports.string().describe("Dashboard creation mode returned by PostHog.").optional(),
|
|
2294
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the dashboard.").optional(),
|
|
2295
|
-
restriction_level: external_exports.int().describe("Dashboard restriction level.").optional(),
|
|
2296
|
-
effective_restriction_level: external_exports.int().describe("Effective restriction level for the current user.").optional(),
|
|
2297
|
-
effective_privilege_level: external_exports.int().describe("Effective privilege level for the current user.").optional(),
|
|
2298
|
-
user_access_level: external_exports.string().describe("Effective user access level for the dashboard.").nullable().optional(),
|
|
2299
|
-
access_control_version: external_exports.string().describe("Dashboard access control version.").optional(),
|
|
2300
|
-
last_refresh: external_exports.string().describe("Datetime when the dashboard last refreshed.").nullable().optional(),
|
|
2301
|
-
team_id: external_exports.int().describe("Project or team ID this dashboard belongs to.").optional()
|
|
2302
|
-
}).describe("PostHog dashboard summary.")).describe("Dashboards returned by PostHog.").optional(),
|
|
2303
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2304
|
-
}).describe("Paginated PostHog dashboard list.");
|
|
2305
|
-
var getDashboardInput = external_exports.strictObject({
|
|
2306
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2307
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path."),
|
|
2308
|
-
filters_override: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2309
|
-
variables_override: external_exports.record(external_exports.string(), external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Dashboard variable overrides keyed by variable ID.").nullable().optional()
|
|
2310
|
-
}).describe("Input for getting a PostHog dashboard.");
|
|
2311
|
-
var getDashboardOutput = external_exports.looseObject({
|
|
2312
|
-
id: external_exports.int().describe("Numeric dashboard identifier."),
|
|
2313
|
-
name: external_exports.string().describe("Dashboard name.").nullable().optional(),
|
|
2314
|
-
description: external_exports.string().describe("Dashboard description.").optional(),
|
|
2315
|
-
pinned: external_exports.boolean().describe("Whether the dashboard is pinned to the top of the list.").optional(),
|
|
2316
|
-
created_at: external_exports.string().describe("Datetime when the dashboard was created.").optional(),
|
|
2317
|
-
created_by: external_exports.looseObject({
|
|
2318
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2319
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2320
|
-
email: external_exports.string().describe("User email address."),
|
|
2321
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2322
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2323
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2324
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2325
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2326
|
-
last_accessed_at: external_exports.string().describe("Datetime when the dashboard was last accessed.").nullable().optional(),
|
|
2327
|
-
last_viewed_at: external_exports.string().describe("Datetime when the dashboard was last viewed.").nullable().optional(),
|
|
2328
|
-
is_shared: external_exports.boolean().describe("Whether the dashboard is shared.").optional(),
|
|
2329
|
-
deleted: external_exports.boolean().describe("Whether the dashboard is marked as deleted.").optional(),
|
|
2330
|
-
creation_mode: external_exports.string().describe("Dashboard creation mode returned by PostHog.").optional(),
|
|
2331
|
-
filters: external_exports.looseObject({}).describe("Dashboard filters returned by PostHog.").nullable().optional(),
|
|
2332
|
-
variables: external_exports.looseObject({}).describe("Dashboard variables returned by PostHog.").nullable().optional(),
|
|
2333
|
-
breakdown_colors: external_exports.unknown().describe("Custom color mapping for breakdown values.").optional(),
|
|
2334
|
-
data_color_theme_id: external_exports.number().describe("Color theme ID used for chart visualizations.").nullable().optional(),
|
|
2335
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the dashboard.").optional(),
|
|
2336
|
-
restriction_level: external_exports.int().describe("Dashboard restriction level.").optional(),
|
|
2337
|
-
effective_restriction_level: external_exports.int().describe("Effective restriction level for the current user.").optional(),
|
|
2338
|
-
effective_privilege_level: external_exports.int().describe("Effective privilege level for the current user.").optional(),
|
|
2339
|
-
user_access_level: external_exports.string().describe("Effective user access level for the dashboard.").nullable().optional(),
|
|
2340
|
-
access_control_version: external_exports.string().describe("Dashboard access control version.").optional(),
|
|
2341
|
-
last_refresh: external_exports.string().describe("Datetime when the dashboard last refreshed.").nullable().optional(),
|
|
2342
|
-
persisted_filters: external_exports.looseObject({}).describe("Persisted dashboard filters.").nullable().optional(),
|
|
2343
|
-
persisted_variables: external_exports.looseObject({}).describe("Persisted dashboard variables.").nullable().optional(),
|
|
2344
|
-
team_id: external_exports.int().describe("Project or team ID this dashboard belongs to.").optional(),
|
|
2345
|
-
quick_filter_ids: external_exports.array(external_exports.string().describe("Quick filter ID.")).describe("Quick filter IDs associated with this dashboard.").nullable().optional(),
|
|
2346
|
-
tiles: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Dashboard tile payloads returned by PostHog.").nullable().optional(),
|
|
2347
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
2348
|
-
}).describe("PostHog dashboard with a stable top-level connector shape.");
|
|
2349
|
-
var createDashboardInput = external_exports.strictObject({
|
|
2350
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2351
|
-
name: external_exports.string().max(400).describe("Dashboard name.").nullable().optional(),
|
|
2352
|
-
description: external_exports.string().describe("Dashboard description.").optional(),
|
|
2353
|
-
pinned: external_exports.boolean().describe("Whether the dashboard should be pinned to the top of the list.").optional(),
|
|
2354
|
-
deleted: external_exports.boolean().describe("Whether the dashboard should be marked as deleted.").optional(),
|
|
2355
|
-
breakdown_colors: external_exports.unknown().describe("Custom color mapping for breakdown values.").optional(),
|
|
2356
|
-
data_color_theme_id: external_exports.int().describe("Color theme ID used for chart visualizations.").nullable().optional(),
|
|
2357
|
-
tags: external_exports.array(external_exports.string().describe("Dashboard tag.")).describe("Tags attached to the dashboard.").optional(),
|
|
2358
|
-
restriction_level: external_exports.int().describe("Dashboard restriction level.").optional(),
|
|
2359
|
-
quick_filter_ids: external_exports.array(external_exports.string().describe("Quick filter ID.")).describe("Quick filter IDs associated with this dashboard.").nullable().optional(),
|
|
2360
|
-
use_template: external_exports.string().describe("Template key to create the dashboard from a predefined template.").optional(),
|
|
2361
|
-
use_dashboard: external_exports.int().describe("ID of an existing dashboard to duplicate.").nullable().optional(),
|
|
2362
|
-
delete_insights: external_exports.boolean().describe("Whether PostHog should also delete insights that are only on this dashboard.").optional(),
|
|
2363
|
-
_create_in_folder: external_exports.string().describe("Folder identifier where PostHog should create the dashboard.").optional()
|
|
2364
|
-
}).describe("Input for creating a PostHog dashboard.");
|
|
2365
|
-
var createDashboardOutput = external_exports.looseObject({
|
|
2366
|
-
id: external_exports.int().describe("Numeric dashboard identifier."),
|
|
2367
|
-
name: external_exports.string().describe("Dashboard name.").nullable().optional(),
|
|
2368
|
-
description: external_exports.string().describe("Dashboard description.").optional(),
|
|
2369
|
-
pinned: external_exports.boolean().describe("Whether the dashboard is pinned to the top of the list.").optional(),
|
|
2370
|
-
created_at: external_exports.string().describe("Datetime when the dashboard was created.").optional(),
|
|
2371
|
-
created_by: external_exports.looseObject({
|
|
2372
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2373
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2374
|
-
email: external_exports.string().describe("User email address."),
|
|
2375
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2376
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2377
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2378
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2379
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2380
|
-
last_accessed_at: external_exports.string().describe("Datetime when the dashboard was last accessed.").nullable().optional(),
|
|
2381
|
-
last_viewed_at: external_exports.string().describe("Datetime when the dashboard was last viewed.").nullable().optional(),
|
|
2382
|
-
is_shared: external_exports.boolean().describe("Whether the dashboard is shared.").optional(),
|
|
2383
|
-
deleted: external_exports.boolean().describe("Whether the dashboard is marked as deleted.").optional(),
|
|
2384
|
-
creation_mode: external_exports.string().describe("Dashboard creation mode returned by PostHog.").optional(),
|
|
2385
|
-
filters: external_exports.looseObject({}).describe("Dashboard filters returned by PostHog.").nullable().optional(),
|
|
2386
|
-
variables: external_exports.looseObject({}).describe("Dashboard variables returned by PostHog.").nullable().optional(),
|
|
2387
|
-
breakdown_colors: external_exports.unknown().describe("Custom color mapping for breakdown values.").optional(),
|
|
2388
|
-
data_color_theme_id: external_exports.number().describe("Color theme ID used for chart visualizations.").nullable().optional(),
|
|
2389
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the dashboard.").optional(),
|
|
2390
|
-
restriction_level: external_exports.int().describe("Dashboard restriction level.").optional(),
|
|
2391
|
-
effective_restriction_level: external_exports.int().describe("Effective restriction level for the current user.").optional(),
|
|
2392
|
-
effective_privilege_level: external_exports.int().describe("Effective privilege level for the current user.").optional(),
|
|
2393
|
-
user_access_level: external_exports.string().describe("Effective user access level for the dashboard.").nullable().optional(),
|
|
2394
|
-
access_control_version: external_exports.string().describe("Dashboard access control version.").optional(),
|
|
2395
|
-
last_refresh: external_exports.string().describe("Datetime when the dashboard last refreshed.").nullable().optional(),
|
|
2396
|
-
persisted_filters: external_exports.looseObject({}).describe("Persisted dashboard filters.").nullable().optional(),
|
|
2397
|
-
persisted_variables: external_exports.looseObject({}).describe("Persisted dashboard variables.").nullable().optional(),
|
|
2398
|
-
team_id: external_exports.int().describe("Project or team ID this dashboard belongs to.").optional(),
|
|
2399
|
-
quick_filter_ids: external_exports.array(external_exports.string().describe("Quick filter ID.")).describe("Quick filter IDs associated with this dashboard.").nullable().optional(),
|
|
2400
|
-
tiles: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Dashboard tile payloads returned by PostHog.").nullable().optional(),
|
|
2401
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
2402
|
-
}).describe("PostHog dashboard with a stable top-level connector shape.");
|
|
2403
|
-
var updateDashboardInput = external_exports.strictObject({
|
|
2404
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2405
|
-
name: external_exports.string().max(400).describe("Dashboard name.").nullable().optional(),
|
|
2406
|
-
description: external_exports.string().describe("Dashboard description.").optional(),
|
|
2407
|
-
pinned: external_exports.boolean().describe("Whether the dashboard should be pinned to the top of the list.").optional(),
|
|
2408
|
-
deleted: external_exports.boolean().describe("Whether the dashboard should be marked as deleted.").optional(),
|
|
2409
|
-
breakdown_colors: external_exports.unknown().describe("Custom color mapping for breakdown values.").optional(),
|
|
2410
|
-
data_color_theme_id: external_exports.int().describe("Color theme ID used for chart visualizations.").nullable().optional(),
|
|
2411
|
-
tags: external_exports.array(external_exports.string().describe("Dashboard tag.")).describe("Tags attached to the dashboard.").optional(),
|
|
2412
|
-
restriction_level: external_exports.int().describe("Dashboard restriction level.").optional(),
|
|
2413
|
-
quick_filter_ids: external_exports.array(external_exports.string().describe("Quick filter ID.")).describe("Quick filter IDs associated with this dashboard.").nullable().optional(),
|
|
2414
|
-
use_template: external_exports.string().describe("Template key to create the dashboard from a predefined template.").optional(),
|
|
2415
|
-
use_dashboard: external_exports.int().describe("ID of an existing dashboard to duplicate.").nullable().optional(),
|
|
2416
|
-
delete_insights: external_exports.boolean().describe("Whether PostHog should also delete insights that are only on this dashboard.").optional(),
|
|
2417
|
-
_create_in_folder: external_exports.string().describe("Folder identifier where PostHog should create the dashboard.").optional(),
|
|
2418
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.")
|
|
2419
|
-
}).describe("Input for updating a PostHog dashboard.");
|
|
2420
|
-
var updateDashboardOutput = external_exports.looseObject({
|
|
2421
|
-
id: external_exports.int().describe("Numeric dashboard identifier."),
|
|
2422
|
-
name: external_exports.string().describe("Dashboard name.").nullable().optional(),
|
|
2423
|
-
description: external_exports.string().describe("Dashboard description.").optional(),
|
|
2424
|
-
pinned: external_exports.boolean().describe("Whether the dashboard is pinned to the top of the list.").optional(),
|
|
2425
|
-
created_at: external_exports.string().describe("Datetime when the dashboard was created.").optional(),
|
|
2426
|
-
created_by: external_exports.looseObject({
|
|
2427
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2428
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2429
|
-
email: external_exports.string().describe("User email address."),
|
|
2430
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2431
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2432
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2433
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2434
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2435
|
-
last_accessed_at: external_exports.string().describe("Datetime when the dashboard was last accessed.").nullable().optional(),
|
|
2436
|
-
last_viewed_at: external_exports.string().describe("Datetime when the dashboard was last viewed.").nullable().optional(),
|
|
2437
|
-
is_shared: external_exports.boolean().describe("Whether the dashboard is shared.").optional(),
|
|
2438
|
-
deleted: external_exports.boolean().describe("Whether the dashboard is marked as deleted.").optional(),
|
|
2439
|
-
creation_mode: external_exports.string().describe("Dashboard creation mode returned by PostHog.").optional(),
|
|
2440
|
-
filters: external_exports.looseObject({}).describe("Dashboard filters returned by PostHog.").nullable().optional(),
|
|
2441
|
-
variables: external_exports.looseObject({}).describe("Dashboard variables returned by PostHog.").nullable().optional(),
|
|
2442
|
-
breakdown_colors: external_exports.unknown().describe("Custom color mapping for breakdown values.").optional(),
|
|
2443
|
-
data_color_theme_id: external_exports.number().describe("Color theme ID used for chart visualizations.").nullable().optional(),
|
|
2444
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the dashboard.").optional(),
|
|
2445
|
-
restriction_level: external_exports.int().describe("Dashboard restriction level.").optional(),
|
|
2446
|
-
effective_restriction_level: external_exports.int().describe("Effective restriction level for the current user.").optional(),
|
|
2447
|
-
effective_privilege_level: external_exports.int().describe("Effective privilege level for the current user.").optional(),
|
|
2448
|
-
user_access_level: external_exports.string().describe("Effective user access level for the dashboard.").nullable().optional(),
|
|
2449
|
-
access_control_version: external_exports.string().describe("Dashboard access control version.").optional(),
|
|
2450
|
-
last_refresh: external_exports.string().describe("Datetime when the dashboard last refreshed.").nullable().optional(),
|
|
2451
|
-
persisted_filters: external_exports.looseObject({}).describe("Persisted dashboard filters.").nullable().optional(),
|
|
2452
|
-
persisted_variables: external_exports.looseObject({}).describe("Persisted dashboard variables.").nullable().optional(),
|
|
2453
|
-
team_id: external_exports.int().describe("Project or team ID this dashboard belongs to.").optional(),
|
|
2454
|
-
quick_filter_ids: external_exports.array(external_exports.string().describe("Quick filter ID.")).describe("Quick filter IDs associated with this dashboard.").nullable().optional(),
|
|
2455
|
-
tiles: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Dashboard tile payloads returned by PostHog.").nullable().optional(),
|
|
2456
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
2457
|
-
}).describe("PostHog dashboard with a stable top-level connector shape.");
|
|
2458
|
-
var deleteDashboardInput = external_exports.strictObject({
|
|
2459
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2460
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional(),
|
|
2461
|
-
delete_insights: external_exports.boolean().describe("Whether PostHog should also delete insights that are only on this dashboard.").optional()
|
|
2462
|
-
}).describe("Input for deleting a PostHog dashboard.");
|
|
2463
|
-
var deleteDashboardOutput = external_exports.strictObject({
|
|
2464
|
-
deleted: external_exports.boolean().describe("Whether the dashboard was marked as deleted.").optional(),
|
|
2465
|
-
id: external_exports.string().describe("Deleted dashboard identifier.").optional(),
|
|
2466
|
-
dashboard: external_exports.looseObject({
|
|
2467
|
-
id: external_exports.int().describe("Numeric dashboard identifier."),
|
|
2468
|
-
name: external_exports.string().describe("Dashboard name.").nullable().optional(),
|
|
2469
|
-
description: external_exports.string().describe("Dashboard description.").optional(),
|
|
2470
|
-
pinned: external_exports.boolean().describe("Whether the dashboard is pinned to the top of the list.").optional(),
|
|
2471
|
-
created_at: external_exports.string().describe("Datetime when the dashboard was created.").optional(),
|
|
2472
|
-
created_by: external_exports.looseObject({
|
|
2473
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2474
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2475
|
-
email: external_exports.string().describe("User email address."),
|
|
2476
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2477
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2478
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2479
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2480
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2481
|
-
last_accessed_at: external_exports.string().describe("Datetime when the dashboard was last accessed.").nullable().optional(),
|
|
2482
|
-
last_viewed_at: external_exports.string().describe("Datetime when the dashboard was last viewed.").nullable().optional(),
|
|
2483
|
-
is_shared: external_exports.boolean().describe("Whether the dashboard is shared.").optional(),
|
|
2484
|
-
deleted: external_exports.boolean().describe("Whether the dashboard is marked as deleted.").optional(),
|
|
2485
|
-
creation_mode: external_exports.string().describe("Dashboard creation mode returned by PostHog.").optional(),
|
|
2486
|
-
filters: external_exports.looseObject({}).describe("Dashboard filters returned by PostHog.").nullable().optional(),
|
|
2487
|
-
variables: external_exports.looseObject({}).describe("Dashboard variables returned by PostHog.").nullable().optional(),
|
|
2488
|
-
breakdown_colors: external_exports.unknown().describe("Custom color mapping for breakdown values.").optional(),
|
|
2489
|
-
data_color_theme_id: external_exports.number().describe("Color theme ID used for chart visualizations.").nullable().optional(),
|
|
2490
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the dashboard.").optional(),
|
|
2491
|
-
restriction_level: external_exports.int().describe("Dashboard restriction level.").optional(),
|
|
2492
|
-
effective_restriction_level: external_exports.int().describe("Effective restriction level for the current user.").optional(),
|
|
2493
|
-
effective_privilege_level: external_exports.int().describe("Effective privilege level for the current user.").optional(),
|
|
2494
|
-
user_access_level: external_exports.string().describe("Effective user access level for the dashboard.").nullable().optional(),
|
|
2495
|
-
access_control_version: external_exports.string().describe("Dashboard access control version.").optional(),
|
|
2496
|
-
last_refresh: external_exports.string().describe("Datetime when the dashboard last refreshed.").nullable().optional(),
|
|
2497
|
-
persisted_filters: external_exports.looseObject({}).describe("Persisted dashboard filters.").nullable().optional(),
|
|
2498
|
-
persisted_variables: external_exports.looseObject({}).describe("Persisted dashboard variables.").nullable().optional(),
|
|
2499
|
-
team_id: external_exports.int().describe("Project or team ID this dashboard belongs to.").optional(),
|
|
2500
|
-
quick_filter_ids: external_exports.array(external_exports.string().describe("Quick filter ID.")).describe("Quick filter IDs associated with this dashboard.").nullable().optional(),
|
|
2501
|
-
tiles: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Dashboard tile payloads returned by PostHog.").nullable().optional(),
|
|
2502
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
2503
|
-
}).describe("PostHog dashboard with a stable top-level connector shape.").optional(),
|
|
2504
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2505
|
-
}).describe("Result returned after marking a PostHog dashboard as deleted.");
|
|
2506
|
-
var runDashboardInsightsInput = external_exports.strictObject({
|
|
2507
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2508
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path."),
|
|
2509
|
-
filters_override: external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.").nullable().optional(),
|
|
2510
|
-
variables_override: external_exports.record(external_exports.string(), external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Dashboard variable overrides keyed by variable ID.").nullable().optional(),
|
|
2511
|
-
output_format: external_exports.enum(["json", "optimized"]).describe("Output format returned by PostHog.").optional(),
|
|
2512
|
-
refresh: external_exports.enum(["blocking", "force_blocking", "force_cache"]).describe("Cache behavior for dashboard insight execution.").optional()
|
|
2513
|
-
}).describe("Input for running all insights on a PostHog dashboard.");
|
|
2514
|
-
var runDashboardInsightsOutput = external_exports.strictObject({
|
|
2515
|
-
results: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Dashboard tile results returned by PostHog.").optional(),
|
|
2516
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2517
|
-
}).describe("Results returned after running all insights on a PostHog dashboard.");
|
|
2518
|
-
var copyDashboardTileInput = external_exports.strictObject({
|
|
2519
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2520
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional(),
|
|
2521
|
-
fromDashboardId: external_exports.int().describe("Dashboard ID the tile currently belongs to.").optional(),
|
|
2522
|
-
tileId: external_exports.int().describe("Dashboard tile ID to copy.").optional()
|
|
2523
|
-
}).describe("Input for copying a PostHog dashboard tile to another dashboard.");
|
|
2524
|
-
var copyDashboardTileOutput = external_exports.looseObject({
|
|
2525
|
-
id: external_exports.int().describe("Numeric dashboard identifier."),
|
|
2526
|
-
name: external_exports.string().describe("Dashboard name.").nullable().optional(),
|
|
2527
|
-
description: external_exports.string().describe("Dashboard description.").optional(),
|
|
2528
|
-
pinned: external_exports.boolean().describe("Whether the dashboard is pinned to the top of the list.").optional(),
|
|
2529
|
-
created_at: external_exports.string().describe("Datetime when the dashboard was created.").optional(),
|
|
2530
|
-
created_by: external_exports.looseObject({
|
|
2531
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2532
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2533
|
-
email: external_exports.string().describe("User email address."),
|
|
2534
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2535
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2536
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2537
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2538
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2539
|
-
last_accessed_at: external_exports.string().describe("Datetime when the dashboard was last accessed.").nullable().optional(),
|
|
2540
|
-
last_viewed_at: external_exports.string().describe("Datetime when the dashboard was last viewed.").nullable().optional(),
|
|
2541
|
-
is_shared: external_exports.boolean().describe("Whether the dashboard is shared.").optional(),
|
|
2542
|
-
deleted: external_exports.boolean().describe("Whether the dashboard is marked as deleted.").optional(),
|
|
2543
|
-
creation_mode: external_exports.string().describe("Dashboard creation mode returned by PostHog.").optional(),
|
|
2544
|
-
filters: external_exports.looseObject({}).describe("Dashboard filters returned by PostHog.").nullable().optional(),
|
|
2545
|
-
variables: external_exports.looseObject({}).describe("Dashboard variables returned by PostHog.").nullable().optional(),
|
|
2546
|
-
breakdown_colors: external_exports.unknown().describe("Custom color mapping for breakdown values.").optional(),
|
|
2547
|
-
data_color_theme_id: external_exports.number().describe("Color theme ID used for chart visualizations.").nullable().optional(),
|
|
2548
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the dashboard.").optional(),
|
|
2549
|
-
restriction_level: external_exports.int().describe("Dashboard restriction level.").optional(),
|
|
2550
|
-
effective_restriction_level: external_exports.int().describe("Effective restriction level for the current user.").optional(),
|
|
2551
|
-
effective_privilege_level: external_exports.int().describe("Effective privilege level for the current user.").optional(),
|
|
2552
|
-
user_access_level: external_exports.string().describe("Effective user access level for the dashboard.").nullable().optional(),
|
|
2553
|
-
access_control_version: external_exports.string().describe("Dashboard access control version.").optional(),
|
|
2554
|
-
last_refresh: external_exports.string().describe("Datetime when the dashboard last refreshed.").nullable().optional(),
|
|
2555
|
-
persisted_filters: external_exports.looseObject({}).describe("Persisted dashboard filters.").nullable().optional(),
|
|
2556
|
-
persisted_variables: external_exports.looseObject({}).describe("Persisted dashboard variables.").nullable().optional(),
|
|
2557
|
-
team_id: external_exports.int().describe("Project or team ID this dashboard belongs to.").optional(),
|
|
2558
|
-
quick_filter_ids: external_exports.array(external_exports.string().describe("Quick filter ID.")).describe("Quick filter IDs associated with this dashboard.").nullable().optional(),
|
|
2559
|
-
tiles: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Dashboard tile payloads returned by PostHog.").nullable().optional(),
|
|
2560
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
2561
|
-
}).describe("PostHog dashboard with a stable top-level connector shape.");
|
|
2562
|
-
var moveDashboardTileInput = external_exports.strictObject({
|
|
2563
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2564
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional(),
|
|
2565
|
-
tile: external_exports.strictObject({
|
|
2566
|
-
id: external_exports.int().describe("Dashboard tile ID to move.").optional()
|
|
2567
|
-
}).describe("Dashboard tile to move.").optional(),
|
|
2568
|
-
toDashboard: external_exports.int().describe("Dashboard ID to move the tile to.").optional()
|
|
2569
|
-
}).describe("Input for moving a PostHog dashboard tile.");
|
|
2570
|
-
var moveDashboardTileOutput = external_exports.strictObject({
|
|
2571
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2572
|
-
}).describe("Raw PostHog cohort endpoint payload.");
|
|
2573
|
-
var reorderDashboardTilesInput = external_exports.strictObject({
|
|
2574
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2575
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional(),
|
|
2576
|
-
tile_order: external_exports.array(external_exports.int().describe("Dashboard tile ID.")).min(1).describe("Dashboard tile IDs in the desired display order.").optional()
|
|
2577
|
-
}).describe("Input for reordering PostHog dashboard tiles.");
|
|
2578
|
-
var reorderDashboardTilesOutput = external_exports.looseObject({
|
|
2579
|
-
id: external_exports.int().describe("Numeric dashboard identifier."),
|
|
2580
|
-
name: external_exports.string().describe("Dashboard name.").nullable().optional(),
|
|
2581
|
-
description: external_exports.string().describe("Dashboard description.").optional(),
|
|
2582
|
-
pinned: external_exports.boolean().describe("Whether the dashboard is pinned to the top of the list.").optional(),
|
|
2583
|
-
created_at: external_exports.string().describe("Datetime when the dashboard was created.").optional(),
|
|
2584
|
-
created_by: external_exports.looseObject({
|
|
2585
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2586
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2587
|
-
email: external_exports.string().describe("User email address."),
|
|
2588
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2589
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2590
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2591
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2592
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2593
|
-
last_accessed_at: external_exports.string().describe("Datetime when the dashboard was last accessed.").nullable().optional(),
|
|
2594
|
-
last_viewed_at: external_exports.string().describe("Datetime when the dashboard was last viewed.").nullable().optional(),
|
|
2595
|
-
is_shared: external_exports.boolean().describe("Whether the dashboard is shared.").optional(),
|
|
2596
|
-
deleted: external_exports.boolean().describe("Whether the dashboard is marked as deleted.").optional(),
|
|
2597
|
-
creation_mode: external_exports.string().describe("Dashboard creation mode returned by PostHog.").optional(),
|
|
2598
|
-
filters: external_exports.looseObject({}).describe("Dashboard filters returned by PostHog.").nullable().optional(),
|
|
2599
|
-
variables: external_exports.looseObject({}).describe("Dashboard variables returned by PostHog.").nullable().optional(),
|
|
2600
|
-
breakdown_colors: external_exports.unknown().describe("Custom color mapping for breakdown values.").optional(),
|
|
2601
|
-
data_color_theme_id: external_exports.number().describe("Color theme ID used for chart visualizations.").nullable().optional(),
|
|
2602
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the dashboard.").optional(),
|
|
2603
|
-
restriction_level: external_exports.int().describe("Dashboard restriction level.").optional(),
|
|
2604
|
-
effective_restriction_level: external_exports.int().describe("Effective restriction level for the current user.").optional(),
|
|
2605
|
-
effective_privilege_level: external_exports.int().describe("Effective privilege level for the current user.").optional(),
|
|
2606
|
-
user_access_level: external_exports.string().describe("Effective user access level for the dashboard.").nullable().optional(),
|
|
2607
|
-
access_control_version: external_exports.string().describe("Dashboard access control version.").optional(),
|
|
2608
|
-
last_refresh: external_exports.string().describe("Datetime when the dashboard last refreshed.").nullable().optional(),
|
|
2609
|
-
persisted_filters: external_exports.looseObject({}).describe("Persisted dashboard filters.").nullable().optional(),
|
|
2610
|
-
persisted_variables: external_exports.looseObject({}).describe("Persisted dashboard variables.").nullable().optional(),
|
|
2611
|
-
team_id: external_exports.int().describe("Project or team ID this dashboard belongs to.").optional(),
|
|
2612
|
-
quick_filter_ids: external_exports.array(external_exports.string().describe("Quick filter ID.")).describe("Quick filter IDs associated with this dashboard.").nullable().optional(),
|
|
2613
|
-
tiles: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Dashboard tile payloads returned by PostHog.").nullable().optional(),
|
|
2614
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
2615
|
-
}).describe("PostHog dashboard with a stable top-level connector shape.");
|
|
2616
|
-
var listDashboardCollaboratorsInput = external_exports.strictObject({
|
|
2617
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2618
|
-
dashboard_id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
2619
|
-
}).describe("Input for listing PostHog dashboard collaborators.");
|
|
2620
|
-
var listDashboardCollaboratorsOutput = external_exports.strictObject({
|
|
2621
|
-
results: external_exports.array(external_exports.looseObject({
|
|
2622
|
-
id: external_exports.string().describe("Dashboard collaborator UUID.").optional(),
|
|
2623
|
-
dashboard_id: external_exports.int().describe("Dashboard identifier.").optional(),
|
|
2624
|
-
user: external_exports.looseObject({
|
|
2625
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2626
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2627
|
-
email: external_exports.string().describe("User email address."),
|
|
2628
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2629
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2630
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2631
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2632
|
-
}).describe("Basic PostHog user.").optional(),
|
|
2633
|
-
level: external_exports.int().describe("Restriction level granted to the collaborator.").optional(),
|
|
2634
|
-
added_at: external_exports.string().describe("Datetime when the collaborator was added.").optional(),
|
|
2635
|
-
updated_at: external_exports.string().describe("Datetime when the collaborator was updated.").optional(),
|
|
2636
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
2637
|
-
}).describe("PostHog dashboard collaborator.")).describe("Dashboard collaborators returned by PostHog.").optional(),
|
|
2638
|
-
raw: external_exports.unknown().describe("Full raw collaborators payload returned by PostHog.").optional()
|
|
2639
|
-
}).describe("PostHog dashboard collaborators.");
|
|
2640
|
-
var addDashboardCollaboratorInput = external_exports.strictObject({
|
|
2641
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2642
|
-
dashboard_id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional(),
|
|
2643
|
-
user_uuid: external_exports.string().min(1).describe("User UUID to add as a collaborator.").optional(),
|
|
2644
|
-
level: external_exports.int().describe("Restriction level to grant to the collaborator.").optional()
|
|
2645
|
-
}).describe("Input for adding a PostHog dashboard collaborator.");
|
|
2646
|
-
var addDashboardCollaboratorOutput = external_exports.looseObject({
|
|
2647
|
-
id: external_exports.string().describe("Dashboard collaborator UUID.").optional(),
|
|
2648
|
-
dashboard_id: external_exports.int().describe("Dashboard identifier.").optional(),
|
|
2649
|
-
user: external_exports.looseObject({
|
|
2650
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2651
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2652
|
-
email: external_exports.string().describe("User email address."),
|
|
2653
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2654
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2655
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2656
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2657
|
-
}).describe("Basic PostHog user.").optional(),
|
|
2658
|
-
level: external_exports.int().describe("Restriction level granted to the collaborator.").optional(),
|
|
2659
|
-
added_at: external_exports.string().describe("Datetime when the collaborator was added.").optional(),
|
|
2660
|
-
updated_at: external_exports.string().describe("Datetime when the collaborator was updated.").optional(),
|
|
2661
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.")
|
|
2662
|
-
}).describe("PostHog dashboard collaborator.");
|
|
2663
|
-
var removeDashboardCollaboratorInput = external_exports.strictObject({
|
|
2664
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2665
|
-
dashboard_id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional(),
|
|
2666
|
-
user_uuid: external_exports.string().min(1).describe("User UUID to remove from the dashboard collaborators.").optional()
|
|
2667
|
-
}).describe("Input for removing a PostHog dashboard collaborator.");
|
|
2668
|
-
var removeDashboardCollaboratorOutput = external_exports.strictObject({
|
|
2669
|
-
deleted: external_exports.boolean().describe("Whether the collaborator was removed.").optional(),
|
|
2670
|
-
dashboard_id: external_exports.string().describe("Dashboard identifier.").optional(),
|
|
2671
|
-
user_uuid: external_exports.string().describe("Removed user UUID.").optional(),
|
|
2672
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2673
|
-
}).describe("Result returned after removing a PostHog dashboard collaborator.");
|
|
2674
|
-
var listFeatureFlagsInput = external_exports.strictObject({
|
|
2675
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2676
|
-
active: external_exports.enum(["STALE", "false", "true"]).describe("Filter feature flags by active state.").optional(),
|
|
2677
|
-
created_by_id: external_exports.string().describe("User ID that initially created the feature flag.").optional(),
|
|
2678
|
-
evaluation_runtime: external_exports.enum(["both", "client", "server"]).describe("Filter feature flags by evaluation runtime.").optional(),
|
|
2679
|
-
excluded_properties: external_exports.string().describe("JSON-encoded list of feature flag keys to exclude.").optional(),
|
|
2680
|
-
has_evaluation_contexts: external_exports.enum(["false", "true"]).describe("Filter feature flags by whether they have evaluation contexts.").optional(),
|
|
2681
|
-
limit: external_exports.int().min(1).describe("Number of results to return per page.").optional(),
|
|
2682
|
-
offset: external_exports.int().min(0).describe("Initial index from which to return the results.").optional(),
|
|
2683
|
-
search: external_exports.string().describe("Search term used to match feature flag keys or names.").optional(),
|
|
2684
|
-
tags: external_exports.string().describe("JSON-encoded list of feature flag tags to filter by.").optional(),
|
|
2685
|
-
type: external_exports.enum(["boolean", "experiment", "multivariant", "remote_config"]).describe("Filter feature flags by type.").optional()
|
|
2686
|
-
}).describe("Input for listing PostHog feature flags.");
|
|
2687
|
-
var listFeatureFlagsOutput = external_exports.strictObject({
|
|
2688
|
-
count: external_exports.int().describe("Total number of results available.").optional(),
|
|
2689
|
-
next: external_exports.string().describe("URL for the next page of results, or null when there is no next page.").nullable().optional(),
|
|
2690
|
-
previous: external_exports.string().describe("URL for the previous page of results, or null when there is no previous page.").nullable().optional(),
|
|
2691
|
-
results: external_exports.array(external_exports.looseObject({
|
|
2692
|
-
id: external_exports.int().describe("Feature flag identifier."),
|
|
2693
|
-
key: external_exports.string().describe("Feature flag key."),
|
|
2694
|
-
name: external_exports.string().describe("Feature flag description."),
|
|
2695
|
-
active: external_exports.boolean().describe("Whether the feature flag is active."),
|
|
2696
|
-
deleted: external_exports.boolean().describe("Whether the feature flag is marked as deleted."),
|
|
2697
|
-
filters: external_exports.looseObject({}).describe("Feature flag filters returned by PostHog."),
|
|
2698
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the feature flag."),
|
|
2699
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog."),
|
|
2700
|
-
created_at: external_exports.string().describe("Feature flag creation datetime.").nullable().optional(),
|
|
2701
|
-
updated_at: external_exports.string().describe("Feature flag update datetime.").nullable().optional(),
|
|
2702
|
-
created_by: external_exports.looseObject({
|
|
2703
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2704
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2705
|
-
email: external_exports.string().describe("User email address."),
|
|
2706
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2707
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2708
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2709
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2710
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2711
|
-
last_modified_by: external_exports.looseObject({
|
|
2712
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2713
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2714
|
-
email: external_exports.string().describe("User email address."),
|
|
2715
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2716
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2717
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2718
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2719
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2720
|
-
version: external_exports.number().describe("Feature flag version.").nullable().optional(),
|
|
2721
|
-
ensure_experience_continuity: external_exports.boolean().describe("Whether experience continuity is enabled for the feature flag.").nullable().optional(),
|
|
2722
|
-
experiment_set: external_exports.array(external_exports.int().describe("Experiment ID.")).describe("Associated experiment IDs.").optional(),
|
|
2723
|
-
experiment_set_metadata: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Associated experiment metadata objects.").optional(),
|
|
2724
|
-
surveys: external_exports.looseObject({}).describe("Survey metadata attached to the feature flag.").nullable().optional(),
|
|
2725
|
-
features: external_exports.looseObject({}).describe("Early access feature metadata attached to the flag.").nullable().optional(),
|
|
2726
|
-
rollback_conditions: external_exports.unknown().describe("Rollback conditions for the feature flag.").nullable().optional(),
|
|
2727
|
-
performed_rollback: external_exports.boolean().describe("Whether a rollback has been performed.").nullable().optional(),
|
|
2728
|
-
can_edit: external_exports.boolean().describe("Whether the current user can edit the feature flag.").nullable().optional(),
|
|
2729
|
-
status: external_exports.string().describe("Computed feature flag status.").nullable().optional(),
|
|
2730
|
-
evaluation_runtime: external_exports.string().describe("Where the feature flag is evaluated.").nullable().optional(),
|
|
2731
|
-
bucketing_identifier: external_exports.string().describe("Identifier used for bucketing users.").nullable().optional(),
|
|
2732
|
-
last_called_at: external_exports.string().describe("Last time the feature flag was evaluated.").nullable().optional(),
|
|
2733
|
-
user_access_level: external_exports.string().describe("Effective access level for the current user.").nullable().optional(),
|
|
2734
|
-
rollout_percentage: external_exports.number().describe("Feature flag rollout percentage, when present.").nullable().optional(),
|
|
2735
|
-
evaluation_contexts: external_exports.array(external_exports.string().describe("Evaluation context.")).describe("Evaluation contexts attached to the feature flag.").optional(),
|
|
2736
|
-
usage_dashboard: external_exports.number().describe("Usage dashboard identifier.").nullable().optional(),
|
|
2737
|
-
analytics_dashboards: external_exports.array(external_exports.int().describe("Dashboard identifier.")).describe("Analytics dashboard identifiers attached to the feature flag.").optional(),
|
|
2738
|
-
has_enriched_analytics: external_exports.boolean().describe("Whether analytics have been enriched.").nullable().optional(),
|
|
2739
|
-
is_remote_configuration: external_exports.boolean().describe("Whether the flag is a remote configuration.").nullable().optional(),
|
|
2740
|
-
has_encrypted_payloads: external_exports.boolean().describe("Whether the flag has encrypted payloads.").nullable().optional(),
|
|
2741
|
-
is_used_in_replay_settings: external_exports.boolean().describe("Whether the flag is used in replay settings.").nullable().optional()
|
|
2742
|
-
}).describe("PostHog feature flag with a stable top-level connector shape.")).describe("Feature flags returned by PostHog.").optional(),
|
|
2743
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2744
|
-
}).describe("Paginated PostHog feature flag list.");
|
|
2745
|
-
var getFeatureFlagInput = external_exports.strictObject({
|
|
2746
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2747
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
2748
|
-
}).describe("Input for getting a PostHog feature flag.");
|
|
2749
|
-
var getFeatureFlagOutput = external_exports.looseObject({
|
|
2750
|
-
id: external_exports.int().describe("Feature flag identifier."),
|
|
2751
|
-
key: external_exports.string().describe("Feature flag key."),
|
|
2752
|
-
name: external_exports.string().describe("Feature flag description."),
|
|
2753
|
-
active: external_exports.boolean().describe("Whether the feature flag is active."),
|
|
2754
|
-
deleted: external_exports.boolean().describe("Whether the feature flag is marked as deleted."),
|
|
2755
|
-
filters: external_exports.looseObject({}).describe("Feature flag filters returned by PostHog."),
|
|
2756
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the feature flag."),
|
|
2757
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog."),
|
|
2758
|
-
created_at: external_exports.string().describe("Feature flag creation datetime.").nullable().optional(),
|
|
2759
|
-
updated_at: external_exports.string().describe("Feature flag update datetime.").nullable().optional(),
|
|
2760
|
-
created_by: external_exports.looseObject({
|
|
2761
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2762
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2763
|
-
email: external_exports.string().describe("User email address."),
|
|
2764
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2765
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2766
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2767
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2768
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2769
|
-
last_modified_by: external_exports.looseObject({
|
|
2770
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2771
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2772
|
-
email: external_exports.string().describe("User email address."),
|
|
2773
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2774
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2775
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2776
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2777
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2778
|
-
version: external_exports.number().describe("Feature flag version.").nullable().optional(),
|
|
2779
|
-
ensure_experience_continuity: external_exports.boolean().describe("Whether experience continuity is enabled for the feature flag.").nullable().optional(),
|
|
2780
|
-
experiment_set: external_exports.array(external_exports.int().describe("Experiment ID.")).describe("Associated experiment IDs.").optional(),
|
|
2781
|
-
experiment_set_metadata: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Associated experiment metadata objects.").optional(),
|
|
2782
|
-
surveys: external_exports.looseObject({}).describe("Survey metadata attached to the feature flag.").nullable().optional(),
|
|
2783
|
-
features: external_exports.looseObject({}).describe("Early access feature metadata attached to the flag.").nullable().optional(),
|
|
2784
|
-
rollback_conditions: external_exports.unknown().describe("Rollback conditions for the feature flag.").nullable().optional(),
|
|
2785
|
-
performed_rollback: external_exports.boolean().describe("Whether a rollback has been performed.").nullable().optional(),
|
|
2786
|
-
can_edit: external_exports.boolean().describe("Whether the current user can edit the feature flag.").nullable().optional(),
|
|
2787
|
-
status: external_exports.string().describe("Computed feature flag status.").nullable().optional(),
|
|
2788
|
-
evaluation_runtime: external_exports.string().describe("Where the feature flag is evaluated.").nullable().optional(),
|
|
2789
|
-
bucketing_identifier: external_exports.string().describe("Identifier used for bucketing users.").nullable().optional(),
|
|
2790
|
-
last_called_at: external_exports.string().describe("Last time the feature flag was evaluated.").nullable().optional(),
|
|
2791
|
-
user_access_level: external_exports.string().describe("Effective access level for the current user.").nullable().optional(),
|
|
2792
|
-
rollout_percentage: external_exports.number().describe("Feature flag rollout percentage, when present.").nullable().optional(),
|
|
2793
|
-
evaluation_contexts: external_exports.array(external_exports.string().describe("Evaluation context.")).describe("Evaluation contexts attached to the feature flag.").optional(),
|
|
2794
|
-
usage_dashboard: external_exports.number().describe("Usage dashboard identifier.").nullable().optional(),
|
|
2795
|
-
analytics_dashboards: external_exports.array(external_exports.int().describe("Dashboard identifier.")).describe("Analytics dashboard identifiers attached to the feature flag.").optional(),
|
|
2796
|
-
has_enriched_analytics: external_exports.boolean().describe("Whether analytics have been enriched.").nullable().optional(),
|
|
2797
|
-
is_remote_configuration: external_exports.boolean().describe("Whether the flag is a remote configuration.").nullable().optional(),
|
|
2798
|
-
has_encrypted_payloads: external_exports.boolean().describe("Whether the flag has encrypted payloads.").nullable().optional(),
|
|
2799
|
-
is_used_in_replay_settings: external_exports.boolean().describe("Whether the flag is used in replay settings.").nullable().optional()
|
|
2800
|
-
}).describe("PostHog feature flag with a stable top-level connector shape.");
|
|
2801
|
-
var createFeatureFlagInput = external_exports.strictObject({
|
|
2802
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2803
|
-
key: external_exports.string().describe("Feature flag key."),
|
|
2804
|
-
name: external_exports.string().describe("Feature flag description."),
|
|
2805
|
-
filters: external_exports.looseObject({}).describe("Feature flag filters returned by PostHog.").nullable().optional(),
|
|
2806
|
-
active: external_exports.boolean().describe("Whether the feature flag is active.").optional(),
|
|
2807
|
-
tags: external_exports.array(external_exports.string().describe("Feature flag tag.")).describe("Tags attached to the feature flag.").optional(),
|
|
2808
|
-
evaluation_contexts: external_exports.array(external_exports.string().describe("Evaluation context.")).describe("Evaluation contexts attached to the feature flag.").optional()
|
|
2809
|
-
}).describe("Input for creating a PostHog feature flag.");
|
|
2810
|
-
var createFeatureFlagOutput = external_exports.looseObject({
|
|
2811
|
-
id: external_exports.int().describe("Feature flag identifier."),
|
|
2812
|
-
key: external_exports.string().describe("Feature flag key."),
|
|
2813
|
-
name: external_exports.string().describe("Feature flag description."),
|
|
2814
|
-
active: external_exports.boolean().describe("Whether the feature flag is active."),
|
|
2815
|
-
deleted: external_exports.boolean().describe("Whether the feature flag is marked as deleted."),
|
|
2816
|
-
filters: external_exports.looseObject({}).describe("Feature flag filters returned by PostHog."),
|
|
2817
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the feature flag."),
|
|
2818
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog."),
|
|
2819
|
-
created_at: external_exports.string().describe("Feature flag creation datetime.").nullable().optional(),
|
|
2820
|
-
updated_at: external_exports.string().describe("Feature flag update datetime.").nullable().optional(),
|
|
2821
|
-
created_by: external_exports.looseObject({
|
|
2822
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2823
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2824
|
-
email: external_exports.string().describe("User email address."),
|
|
2825
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2826
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2827
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2828
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2829
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2830
|
-
last_modified_by: external_exports.looseObject({
|
|
2831
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2832
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2833
|
-
email: external_exports.string().describe("User email address."),
|
|
2834
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2835
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2836
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2837
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2838
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2839
|
-
version: external_exports.number().describe("Feature flag version.").nullable().optional(),
|
|
2840
|
-
ensure_experience_continuity: external_exports.boolean().describe("Whether experience continuity is enabled for the feature flag.").nullable().optional(),
|
|
2841
|
-
experiment_set: external_exports.array(external_exports.int().describe("Experiment ID.")).describe("Associated experiment IDs.").optional(),
|
|
2842
|
-
experiment_set_metadata: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Associated experiment metadata objects.").optional(),
|
|
2843
|
-
surveys: external_exports.looseObject({}).describe("Survey metadata attached to the feature flag.").nullable().optional(),
|
|
2844
|
-
features: external_exports.looseObject({}).describe("Early access feature metadata attached to the flag.").nullable().optional(),
|
|
2845
|
-
rollback_conditions: external_exports.unknown().describe("Rollback conditions for the feature flag.").nullable().optional(),
|
|
2846
|
-
performed_rollback: external_exports.boolean().describe("Whether a rollback has been performed.").nullable().optional(),
|
|
2847
|
-
can_edit: external_exports.boolean().describe("Whether the current user can edit the feature flag.").nullable().optional(),
|
|
2848
|
-
status: external_exports.string().describe("Computed feature flag status.").nullable().optional(),
|
|
2849
|
-
evaluation_runtime: external_exports.string().describe("Where the feature flag is evaluated.").nullable().optional(),
|
|
2850
|
-
bucketing_identifier: external_exports.string().describe("Identifier used for bucketing users.").nullable().optional(),
|
|
2851
|
-
last_called_at: external_exports.string().describe("Last time the feature flag was evaluated.").nullable().optional(),
|
|
2852
|
-
user_access_level: external_exports.string().describe("Effective access level for the current user.").nullable().optional(),
|
|
2853
|
-
rollout_percentage: external_exports.number().describe("Feature flag rollout percentage, when present.").nullable().optional(),
|
|
2854
|
-
evaluation_contexts: external_exports.array(external_exports.string().describe("Evaluation context.")).describe("Evaluation contexts attached to the feature flag.").optional(),
|
|
2855
|
-
usage_dashboard: external_exports.number().describe("Usage dashboard identifier.").nullable().optional(),
|
|
2856
|
-
analytics_dashboards: external_exports.array(external_exports.int().describe("Dashboard identifier.")).describe("Analytics dashboard identifiers attached to the feature flag.").optional(),
|
|
2857
|
-
has_enriched_analytics: external_exports.boolean().describe("Whether analytics have been enriched.").nullable().optional(),
|
|
2858
|
-
is_remote_configuration: external_exports.boolean().describe("Whether the flag is a remote configuration.").nullable().optional(),
|
|
2859
|
-
has_encrypted_payloads: external_exports.boolean().describe("Whether the flag has encrypted payloads.").nullable().optional(),
|
|
2860
|
-
is_used_in_replay_settings: external_exports.boolean().describe("Whether the flag is used in replay settings.").nullable().optional()
|
|
2861
|
-
}).describe("PostHog feature flag with a stable top-level connector shape.");
|
|
2862
|
-
var updateFeatureFlagInput = external_exports.strictObject({
|
|
2863
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
2864
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path."),
|
|
2865
|
-
key: external_exports.string().describe("Feature flag key.").optional(),
|
|
2866
|
-
name: external_exports.string().describe("Feature flag description.").optional(),
|
|
2867
|
-
filters: external_exports.looseObject({}).describe("Feature flag filters returned by PostHog.").nullable().optional(),
|
|
2868
|
-
active: external_exports.boolean().describe("Whether the feature flag is active.").optional(),
|
|
2869
|
-
tags: external_exports.array(external_exports.string().describe("Feature flag tag.")).describe("Tags attached to the feature flag.").optional(),
|
|
2870
|
-
evaluation_contexts: external_exports.array(external_exports.string().describe("Evaluation context.")).describe("Evaluation contexts attached to the feature flag.").optional()
|
|
2871
|
-
}).describe("Input for updating a PostHog feature flag.");
|
|
2872
|
-
var updateFeatureFlagOutput = external_exports.looseObject({
|
|
2873
|
-
id: external_exports.int().describe("Feature flag identifier."),
|
|
2874
|
-
key: external_exports.string().describe("Feature flag key."),
|
|
2875
|
-
name: external_exports.string().describe("Feature flag description."),
|
|
2876
|
-
active: external_exports.boolean().describe("Whether the feature flag is active."),
|
|
2877
|
-
deleted: external_exports.boolean().describe("Whether the feature flag is marked as deleted."),
|
|
2878
|
-
filters: external_exports.looseObject({}).describe("Feature flag filters returned by PostHog."),
|
|
2879
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the feature flag."),
|
|
2880
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog."),
|
|
2881
|
-
created_at: external_exports.string().describe("Feature flag creation datetime.").nullable().optional(),
|
|
2882
|
-
updated_at: external_exports.string().describe("Feature flag update datetime.").nullable().optional(),
|
|
2883
|
-
created_by: external_exports.looseObject({
|
|
2884
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2885
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2886
|
-
email: external_exports.string().describe("User email address."),
|
|
2887
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2888
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2889
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2890
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2891
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2892
|
-
last_modified_by: external_exports.looseObject({
|
|
2893
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2894
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2895
|
-
email: external_exports.string().describe("User email address."),
|
|
2896
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2897
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2898
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2899
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2900
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2901
|
-
version: external_exports.number().describe("Feature flag version.").nullable().optional(),
|
|
2902
|
-
ensure_experience_continuity: external_exports.boolean().describe("Whether experience continuity is enabled for the feature flag.").nullable().optional(),
|
|
2903
|
-
experiment_set: external_exports.array(external_exports.int().describe("Experiment ID.")).describe("Associated experiment IDs.").optional(),
|
|
2904
|
-
experiment_set_metadata: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Associated experiment metadata objects.").optional(),
|
|
2905
|
-
surveys: external_exports.looseObject({}).describe("Survey metadata attached to the feature flag.").nullable().optional(),
|
|
2906
|
-
features: external_exports.looseObject({}).describe("Early access feature metadata attached to the flag.").nullable().optional(),
|
|
2907
|
-
rollback_conditions: external_exports.unknown().describe("Rollback conditions for the feature flag.").nullable().optional(),
|
|
2908
|
-
performed_rollback: external_exports.boolean().describe("Whether a rollback has been performed.").nullable().optional(),
|
|
2909
|
-
can_edit: external_exports.boolean().describe("Whether the current user can edit the feature flag.").nullable().optional(),
|
|
2910
|
-
status: external_exports.string().describe("Computed feature flag status.").nullable().optional(),
|
|
2911
|
-
evaluation_runtime: external_exports.string().describe("Where the feature flag is evaluated.").nullable().optional(),
|
|
2912
|
-
bucketing_identifier: external_exports.string().describe("Identifier used for bucketing users.").nullable().optional(),
|
|
2913
|
-
last_called_at: external_exports.string().describe("Last time the feature flag was evaluated.").nullable().optional(),
|
|
2914
|
-
user_access_level: external_exports.string().describe("Effective access level for the current user.").nullable().optional(),
|
|
2915
|
-
rollout_percentage: external_exports.number().describe("Feature flag rollout percentage, when present.").nullable().optional(),
|
|
2916
|
-
evaluation_contexts: external_exports.array(external_exports.string().describe("Evaluation context.")).describe("Evaluation contexts attached to the feature flag.").optional(),
|
|
2917
|
-
usage_dashboard: external_exports.number().describe("Usage dashboard identifier.").nullable().optional(),
|
|
2918
|
-
analytics_dashboards: external_exports.array(external_exports.int().describe("Dashboard identifier.")).describe("Analytics dashboard identifiers attached to the feature flag.").optional(),
|
|
2919
|
-
has_enriched_analytics: external_exports.boolean().describe("Whether analytics have been enriched.").nullable().optional(),
|
|
2920
|
-
is_remote_configuration: external_exports.boolean().describe("Whether the flag is a remote configuration.").nullable().optional(),
|
|
2921
|
-
has_encrypted_payloads: external_exports.boolean().describe("Whether the flag has encrypted payloads.").nullable().optional(),
|
|
2922
|
-
is_used_in_replay_settings: external_exports.boolean().describe("Whether the flag is used in replay settings.").nullable().optional()
|
|
2923
|
-
}).describe("PostHog feature flag with a stable top-level connector shape.");
|
|
2924
|
-
var deleteFeatureFlagInput = external_exports.strictObject({
|
|
2925
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2926
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
2927
|
-
}).describe("Input for deleting a PostHog feature flag.");
|
|
2928
|
-
var deleteFeatureFlagOutput = external_exports.strictObject({
|
|
2929
|
-
deleted: external_exports.boolean().describe("Whether the feature flag was marked as deleted.").optional(),
|
|
2930
|
-
id: external_exports.string().describe("Deleted feature flag identifier.").optional(),
|
|
2931
|
-
feature_flag: external_exports.looseObject({
|
|
2932
|
-
id: external_exports.int().describe("Feature flag identifier."),
|
|
2933
|
-
key: external_exports.string().describe("Feature flag key."),
|
|
2934
|
-
name: external_exports.string().describe("Feature flag description."),
|
|
2935
|
-
active: external_exports.boolean().describe("Whether the feature flag is active."),
|
|
2936
|
-
deleted: external_exports.boolean().describe("Whether the feature flag is marked as deleted."),
|
|
2937
|
-
filters: external_exports.looseObject({}).describe("Feature flag filters returned by PostHog."),
|
|
2938
|
-
tags: external_exports.array(external_exports.unknown().describe("Array item returned by PostHog.")).describe("Tags attached to the feature flag."),
|
|
2939
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog."),
|
|
2940
|
-
created_at: external_exports.string().describe("Feature flag creation datetime.").nullable().optional(),
|
|
2941
|
-
updated_at: external_exports.string().describe("Feature flag update datetime.").nullable().optional(),
|
|
2942
|
-
created_by: external_exports.looseObject({
|
|
2943
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2944
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2945
|
-
email: external_exports.string().describe("User email address."),
|
|
2946
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2947
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2948
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2949
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2950
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2951
|
-
last_modified_by: external_exports.looseObject({
|
|
2952
|
-
id: external_exports.int().describe("Numeric user identifier."),
|
|
2953
|
-
uuid: external_exports.string().describe("User UUID."),
|
|
2954
|
-
email: external_exports.string().describe("User email address."),
|
|
2955
|
-
first_name: external_exports.string().describe("User first name.").optional(),
|
|
2956
|
-
last_name: external_exports.string().describe("User last name.").optional(),
|
|
2957
|
-
distinct_id: external_exports.string().describe("Current distinct ID for the user.").nullable().optional(),
|
|
2958
|
-
role_at_organization: external_exports.string().describe("Role declared for the user within the organization.").nullable().optional()
|
|
2959
|
-
}).describe("Basic PostHog user.").nullable().optional(),
|
|
2960
|
-
version: external_exports.number().describe("Feature flag version.").nullable().optional(),
|
|
2961
|
-
ensure_experience_continuity: external_exports.boolean().describe("Whether experience continuity is enabled for the feature flag.").nullable().optional(),
|
|
2962
|
-
experiment_set: external_exports.array(external_exports.int().describe("Experiment ID.")).describe("Associated experiment IDs.").optional(),
|
|
2963
|
-
experiment_set_metadata: external_exports.array(external_exports.looseObject({}).describe("Object payload accepted or returned by PostHog.")).describe("Associated experiment metadata objects.").optional(),
|
|
2964
|
-
surveys: external_exports.looseObject({}).describe("Survey metadata attached to the feature flag.").nullable().optional(),
|
|
2965
|
-
features: external_exports.looseObject({}).describe("Early access feature metadata attached to the flag.").nullable().optional(),
|
|
2966
|
-
rollback_conditions: external_exports.unknown().describe("Rollback conditions for the feature flag.").nullable().optional(),
|
|
2967
|
-
performed_rollback: external_exports.boolean().describe("Whether a rollback has been performed.").nullable().optional(),
|
|
2968
|
-
can_edit: external_exports.boolean().describe("Whether the current user can edit the feature flag.").nullable().optional(),
|
|
2969
|
-
status: external_exports.string().describe("Computed feature flag status.").nullable().optional(),
|
|
2970
|
-
evaluation_runtime: external_exports.string().describe("Where the feature flag is evaluated.").nullable().optional(),
|
|
2971
|
-
bucketing_identifier: external_exports.string().describe("Identifier used for bucketing users.").nullable().optional(),
|
|
2972
|
-
last_called_at: external_exports.string().describe("Last time the feature flag was evaluated.").nullable().optional(),
|
|
2973
|
-
user_access_level: external_exports.string().describe("Effective access level for the current user.").nullable().optional(),
|
|
2974
|
-
rollout_percentage: external_exports.number().describe("Feature flag rollout percentage, when present.").nullable().optional(),
|
|
2975
|
-
evaluation_contexts: external_exports.array(external_exports.string().describe("Evaluation context.")).describe("Evaluation contexts attached to the feature flag.").optional(),
|
|
2976
|
-
usage_dashboard: external_exports.number().describe("Usage dashboard identifier.").nullable().optional(),
|
|
2977
|
-
analytics_dashboards: external_exports.array(external_exports.int().describe("Dashboard identifier.")).describe("Analytics dashboard identifiers attached to the feature flag.").optional(),
|
|
2978
|
-
has_enriched_analytics: external_exports.boolean().describe("Whether analytics have been enriched.").nullable().optional(),
|
|
2979
|
-
is_remote_configuration: external_exports.boolean().describe("Whether the flag is a remote configuration.").nullable().optional(),
|
|
2980
|
-
has_encrypted_payloads: external_exports.boolean().describe("Whether the flag has encrypted payloads.").nullable().optional(),
|
|
2981
|
-
is_used_in_replay_settings: external_exports.boolean().describe("Whether the flag is used in replay settings.").nullable().optional()
|
|
2982
|
-
}).describe("PostHog feature flag with a stable top-level connector shape.").optional(),
|
|
2983
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
2984
|
-
}).describe("Result returned after soft deleting a PostHog feature flag.");
|
|
2985
|
-
var getFeatureFlagStatusInput = external_exports.strictObject({
|
|
2986
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
2987
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
2988
|
-
}).describe("Input for deleting a PostHog feature flag.");
|
|
2989
|
-
var getFeatureFlagStatusOutput = external_exports.looseObject({
|
|
2990
|
-
status: external_exports.string().describe("Computed feature flag status."),
|
|
2991
|
-
reason: external_exports.string().describe("Human-readable explanation of the feature flag status."),
|
|
2992
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog."),
|
|
2993
|
-
active: external_exports.boolean().describe("Whether the feature flag is active.").nullable().optional(),
|
|
2994
|
-
deleted: external_exports.boolean().describe("Whether the feature flag is deleted.").nullable().optional(),
|
|
2995
|
-
last_called_at: external_exports.string().describe("Last time the feature flag was evaluated.").nullable().optional(),
|
|
2996
|
-
status_code: external_exports.number().describe("HTTP status code returned by the status endpoint.").nullable().optional()
|
|
2997
|
-
}).describe("PostHog feature flag status response.");
|
|
2998
|
-
var getFeatureFlagDependentFlagsInput = external_exports.strictObject({
|
|
2999
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access.").optional(),
|
|
3000
|
-
id: external_exports.union([external_exports.string().min(1).describe("String identifier accepted by the official PostHog API path."), external_exports.int().describe("Numeric identifier accepted by the official PostHog API path.")]).describe("Identifier accepted by the official PostHog API path.").optional()
|
|
3001
|
-
}).describe("Input for deleting a PostHog feature flag.");
|
|
3002
|
-
var getFeatureFlagDependentFlagsOutput = external_exports.strictObject({
|
|
3003
|
-
results: external_exports.array(external_exports.looseObject({
|
|
3004
|
-
id: external_exports.int().describe("Feature flag identifier."),
|
|
3005
|
-
key: external_exports.string().describe("Feature flag key."),
|
|
3006
|
-
name: external_exports.string().describe("Feature flag name.")
|
|
3007
|
-
}).describe("PostHog dependent feature flag summary.")).describe("Dependent feature flags returned by PostHog.").optional(),
|
|
3008
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
3009
|
-
}).describe("Dependent feature flags returned by PostHog.");
|
|
3010
|
-
var getFeatureFlagsLocalEvaluationInput = external_exports.strictObject({
|
|
3011
|
-
project_id: external_exports.union([external_exports.string().min(1).describe("String project ID of the project to access."), external_exports.int().describe("Numeric project ID of the project to access.")]).describe("Project ID of the project to access."),
|
|
3012
|
-
send_cohorts: external_exports.boolean().describe("Whether to include cohorts in the response.").nullable().optional()
|
|
3013
|
-
}).describe("Input for getting the local evaluation payload for PostHog feature flags.");
|
|
3014
|
-
var getFeatureFlagsLocalEvaluationOutput = external_exports.strictObject({
|
|
3015
|
-
flags: external_exports.array(external_exports.looseObject({
|
|
3016
|
-
id: external_exports.int().describe("Feature flag identifier."),
|
|
3017
|
-
team_id: external_exports.int().describe("Owning team identifier."),
|
|
3018
|
-
name: external_exports.string().describe("Feature flag description."),
|
|
3019
|
-
key: external_exports.string().describe("Feature flag key."),
|
|
3020
|
-
filters: external_exports.looseObject({}).describe("Feature flag filters returned by PostHog."),
|
|
3021
|
-
deleted: external_exports.boolean().describe("Whether the feature flag is marked as deleted."),
|
|
3022
|
-
active: external_exports.boolean().describe("Whether the feature flag is active."),
|
|
3023
|
-
evaluation_contexts: external_exports.array(external_exports.string().describe("Evaluation context.")).describe("Evaluation contexts attached to the feature flag."),
|
|
3024
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog."),
|
|
3025
|
-
ensure_experience_continuity: external_exports.boolean().describe("Whether experience continuity is enabled for the feature flag.").nullable().optional(),
|
|
3026
|
-
version: external_exports.number().describe("Feature flag version.").nullable().optional(),
|
|
3027
|
-
evaluation_runtime: external_exports.string().describe("Where the feature flag is evaluated.").nullable().optional(),
|
|
3028
|
-
bucketing_identifier: external_exports.string().describe("Identifier used for bucketing users.").nullable().optional()
|
|
3029
|
-
}).describe("Minimal PostHog feature flag used by local evaluation.")).describe("Feature flags returned by the local evaluation endpoint.").optional(),
|
|
3030
|
-
group_type_mapping: external_exports.record(external_exports.string(), external_exports.string().describe("Group type mapping value.")).describe("Group type mappings returned by PostHog.").optional(),
|
|
3031
|
-
cohorts: external_exports.looseObject({}).describe("Cohorts returned by PostHog for local evaluation.").optional(),
|
|
3032
|
-
raw: external_exports.looseObject({}).describe("Full raw payload returned by PostHog.").optional()
|
|
3033
|
-
}).describe("PostHog feature flag local evaluation response.");
|
|
3034
|
-
var posthogActions = {
|
|
3035
|
-
get_current_user: {
|
|
3036
|
-
description: "Get the current user associated with the PostHog personal API key.",
|
|
3037
|
-
effect: "read",
|
|
3038
|
-
inputSchema: getCurrentUserInput,
|
|
3039
|
-
outputSchema: external_exports.toJSONSchema(getCurrentUserOutput, { io: "output", unrepresentable: "any" })
|
|
3040
|
-
},
|
|
3041
|
-
list_projects: {
|
|
3042
|
-
description: "List PostHog projects for the current or specified organization.",
|
|
3043
|
-
effect: "read",
|
|
3044
|
-
inputSchema: listProjectsInput,
|
|
3045
|
-
outputSchema: external_exports.toJSONSchema(listProjectsOutput, { io: "output", unrepresentable: "any" })
|
|
3046
|
-
},
|
|
3047
|
-
get_project: {
|
|
3048
|
-
description: "Get a PostHog project from the current or specified organization.",
|
|
3049
|
-
effect: "read",
|
|
3050
|
-
inputSchema: getProjectInput,
|
|
3051
|
-
outputSchema: external_exports.toJSONSchema(getProjectOutput, { io: "output", unrepresentable: "any" })
|
|
3052
|
-
},
|
|
3053
|
-
list_event_definitions: {
|
|
3054
|
-
description: "List event definitions for a PostHog project.",
|
|
3055
|
-
effect: "read",
|
|
3056
|
-
inputSchema: listEventDefinitionsInput,
|
|
3057
|
-
outputSchema: external_exports.toJSONSchema(listEventDefinitionsOutput, { io: "output", unrepresentable: "any" })
|
|
3058
|
-
},
|
|
3059
|
-
get_event_definition: {
|
|
3060
|
-
description: "Get a PostHog event definition by ID.",
|
|
3061
|
-
effect: "read",
|
|
3062
|
-
inputSchema: getEventDefinitionInput,
|
|
3063
|
-
outputSchema: external_exports.toJSONSchema(getEventDefinitionOutput, { io: "output", unrepresentable: "any" })
|
|
3064
|
-
},
|
|
3065
|
-
create_event_definition: {
|
|
3066
|
-
description: "Create an event definition for a PostHog project.",
|
|
3067
|
-
effect: "write",
|
|
3068
|
-
inputSchema: createEventDefinitionInput,
|
|
3069
|
-
outputSchema: external_exports.toJSONSchema(createEventDefinitionOutput, { io: "output", unrepresentable: "any" })
|
|
3070
|
-
},
|
|
3071
|
-
update_event_definition: {
|
|
3072
|
-
description: "Partially update a PostHog event definition by ID.",
|
|
3073
|
-
effect: "write",
|
|
3074
|
-
inputSchema: updateEventDefinitionInput,
|
|
3075
|
-
outputSchema: external_exports.toJSONSchema(updateEventDefinitionOutput, { io: "output", unrepresentable: "any" })
|
|
3076
|
-
},
|
|
3077
|
-
delete_event_definition: {
|
|
3078
|
-
description: "Delete a PostHog event definition by ID.",
|
|
3079
|
-
effect: "destructive",
|
|
3080
|
-
inputSchema: deleteEventDefinitionInput,
|
|
3081
|
-
outputSchema: external_exports.toJSONSchema(deleteEventDefinitionOutput, { io: "output", unrepresentable: "any" })
|
|
3082
|
-
},
|
|
3083
|
-
get_event_definition_by_name: {
|
|
3084
|
-
description: "Get a PostHog event definition by exact event name.",
|
|
3085
|
-
effect: "read",
|
|
3086
|
-
inputSchema: getEventDefinitionByNameInput,
|
|
3087
|
-
outputSchema: external_exports.toJSONSchema(getEventDefinitionByNameOutput, { io: "output", unrepresentable: "any" })
|
|
3088
|
-
},
|
|
3089
|
-
get_event_definition_primary_properties: {
|
|
3090
|
-
description: "Get primary properties configured for PostHog event definitions.",
|
|
3091
|
-
effect: "read",
|
|
3092
|
-
inputSchema: getEventDefinitionPrimaryPropertiesInput,
|
|
3093
|
-
outputSchema: external_exports.toJSONSchema(getEventDefinitionPrimaryPropertiesOutput, { io: "output", unrepresentable: "any" })
|
|
3094
|
-
},
|
|
3095
|
-
bulk_update_event_definition_tags: {
|
|
3096
|
-
description: "Bulk add, remove, or set tags on PostHog event definitions.",
|
|
3097
|
-
effect: "write",
|
|
3098
|
-
inputSchema: bulkUpdateEventDefinitionTagsInput,
|
|
3099
|
-
outputSchema: external_exports.toJSONSchema(bulkUpdateEventDefinitionTagsOutput, { io: "output", unrepresentable: "any" })
|
|
3100
|
-
},
|
|
3101
|
-
list_property_definitions: {
|
|
3102
|
-
description: "List property definitions for a PostHog project.",
|
|
3103
|
-
effect: "read",
|
|
3104
|
-
inputSchema: listPropertyDefinitionsInput,
|
|
3105
|
-
outputSchema: external_exports.toJSONSchema(listPropertyDefinitionsOutput, { io: "output", unrepresentable: "any" })
|
|
3106
|
-
},
|
|
3107
|
-
get_property_definition: {
|
|
3108
|
-
description: "Get a PostHog property definition by ID.",
|
|
3109
|
-
effect: "read",
|
|
3110
|
-
inputSchema: getPropertyDefinitionInput,
|
|
3111
|
-
outputSchema: external_exports.toJSONSchema(getPropertyDefinitionOutput, { io: "output", unrepresentable: "any" })
|
|
3112
|
-
},
|
|
3113
|
-
update_property_definition: {
|
|
3114
|
-
description: "Partially update a PostHog property definition by ID.",
|
|
3115
|
-
effect: "write",
|
|
3116
|
-
inputSchema: updatePropertyDefinitionInput,
|
|
3117
|
-
outputSchema: external_exports.toJSONSchema(updatePropertyDefinitionOutput, { io: "output", unrepresentable: "any" })
|
|
3118
|
-
},
|
|
3119
|
-
delete_property_definition: {
|
|
3120
|
-
description: "Delete a PostHog property definition by ID.",
|
|
3121
|
-
effect: "destructive",
|
|
3122
|
-
inputSchema: deletePropertyDefinitionInput,
|
|
3123
|
-
outputSchema: external_exports.toJSONSchema(deletePropertyDefinitionOutput, { io: "output", unrepresentable: "any" })
|
|
3124
|
-
},
|
|
3125
|
-
bulk_update_property_definition_tags: {
|
|
3126
|
-
description: "Bulk add, remove, or set tags on PostHog property definitions.",
|
|
3127
|
-
effect: "write",
|
|
3128
|
-
inputSchema: bulkUpdatePropertyDefinitionTagsInput,
|
|
3129
|
-
outputSchema: external_exports.toJSONSchema(bulkUpdatePropertyDefinitionTagsOutput, { io: "output", unrepresentable: "any" })
|
|
3130
|
-
},
|
|
3131
|
-
list_annotations: {
|
|
3132
|
-
description: "List annotations for a PostHog project.",
|
|
3133
|
-
effect: "read",
|
|
3134
|
-
inputSchema: listAnnotationsInput,
|
|
3135
|
-
outputSchema: external_exports.toJSONSchema(listAnnotationsOutput, { io: "output", unrepresentable: "any" })
|
|
3136
|
-
},
|
|
3137
|
-
get_annotation: {
|
|
3138
|
-
description: "Get a PostHog annotation by ID.",
|
|
3139
|
-
effect: "read",
|
|
3140
|
-
inputSchema: getAnnotationInput,
|
|
3141
|
-
outputSchema: external_exports.toJSONSchema(getAnnotationOutput, { io: "output", unrepresentable: "any" })
|
|
3142
|
-
},
|
|
3143
|
-
create_annotation: {
|
|
3144
|
-
description: "Create an annotation in a PostHog project.",
|
|
3145
|
-
effect: "write",
|
|
3146
|
-
inputSchema: createAnnotationInput,
|
|
3147
|
-
outputSchema: external_exports.toJSONSchema(createAnnotationOutput, { io: "output", unrepresentable: "any" })
|
|
3148
|
-
},
|
|
3149
|
-
update_annotation: {
|
|
3150
|
-
description: "Partially update a PostHog annotation by ID.",
|
|
3151
|
-
effect: "write",
|
|
3152
|
-
inputSchema: updateAnnotationInput,
|
|
3153
|
-
outputSchema: external_exports.toJSONSchema(updateAnnotationOutput, { io: "output", unrepresentable: "any" })
|
|
3154
|
-
},
|
|
3155
|
-
delete_annotation: {
|
|
3156
|
-
description: "Mark a PostHog annotation as deleted using the official soft-delete contract.",
|
|
3157
|
-
effect: "destructive",
|
|
3158
|
-
inputSchema: deleteAnnotationInput,
|
|
3159
|
-
outputSchema: external_exports.toJSONSchema(deleteAnnotationOutput, { io: "output", unrepresentable: "any" })
|
|
3160
|
-
},
|
|
3161
|
-
list_cohorts: {
|
|
3162
|
-
description: "List cohorts for a PostHog project.",
|
|
3163
|
-
effect: "read",
|
|
3164
|
-
inputSchema: listCohortsInput,
|
|
3165
|
-
outputSchema: external_exports.toJSONSchema(listCohortsOutput, { io: "output", unrepresentable: "any" })
|
|
3166
|
-
},
|
|
3167
|
-
get_cohort: {
|
|
3168
|
-
description: "Get a PostHog cohort by ID.",
|
|
3169
|
-
effect: "read",
|
|
3170
|
-
inputSchema: getCohortInput,
|
|
3171
|
-
outputSchema: external_exports.toJSONSchema(getCohortOutput, { io: "output", unrepresentable: "any" })
|
|
3172
|
-
},
|
|
3173
|
-
create_cohort: {
|
|
3174
|
-
description: "Create a cohort in a PostHog project.",
|
|
3175
|
-
effect: "write",
|
|
3176
|
-
inputSchema: createCohortInput,
|
|
3177
|
-
outputSchema: external_exports.toJSONSchema(createCohortOutput, { io: "output", unrepresentable: "any" })
|
|
3178
|
-
},
|
|
3179
|
-
update_cohort: {
|
|
3180
|
-
description: "Partially update a PostHog cohort by ID.",
|
|
3181
|
-
effect: "write",
|
|
3182
|
-
inputSchema: updateCohortInput,
|
|
3183
|
-
outputSchema: external_exports.toJSONSchema(updateCohortOutput, { io: "output", unrepresentable: "any" })
|
|
3184
|
-
},
|
|
3185
|
-
delete_cohort: {
|
|
3186
|
-
description: "Mark a PostHog cohort as deleted using the official soft-delete contract.",
|
|
3187
|
-
effect: "destructive",
|
|
3188
|
-
inputSchema: deleteCohortInput,
|
|
3189
|
-
outputSchema: external_exports.toJSONSchema(deleteCohortOutput, { io: "output", unrepresentable: "any" })
|
|
3190
|
-
},
|
|
3191
|
-
add_persons_to_static_cohort: {
|
|
3192
|
-
description: "Add person UUIDs to a static PostHog cohort.",
|
|
3193
|
-
effect: "write",
|
|
3194
|
-
inputSchema: addPersonsToStaticCohortInput,
|
|
3195
|
-
outputSchema: external_exports.toJSONSchema(addPersonsToStaticCohortOutput, { io: "output", unrepresentable: "any" })
|
|
3196
|
-
},
|
|
3197
|
-
get_cohort_persons: {
|
|
3198
|
-
description: "List persons that belong to a PostHog cohort.",
|
|
3199
|
-
effect: "read",
|
|
3200
|
-
inputSchema: getCohortPersonsInput,
|
|
3201
|
-
outputSchema: external_exports.toJSONSchema(getCohortPersonsOutput, { io: "output", unrepresentable: "any" })
|
|
3202
|
-
},
|
|
3203
|
-
get_cohort_calculation_history: {
|
|
3204
|
-
description: "Get the raw calculation history payload for a PostHog cohort.",
|
|
3205
|
-
effect: "read",
|
|
3206
|
-
inputSchema: getCohortCalculationHistoryInput,
|
|
3207
|
-
outputSchema: external_exports.toJSONSchema(getCohortCalculationHistoryOutput, { io: "output", unrepresentable: "any" })
|
|
3208
|
-
},
|
|
3209
|
-
list_insights: {
|
|
3210
|
-
description: "List insights for a PostHog project.",
|
|
3211
|
-
effect: "read",
|
|
3212
|
-
inputSchema: listInsightsInput,
|
|
3213
|
-
outputSchema: external_exports.toJSONSchema(listInsightsOutput, { io: "output", unrepresentable: "any" })
|
|
3214
|
-
},
|
|
3215
|
-
get_insight: {
|
|
3216
|
-
description: "Get a PostHog insight by ID with a stable top-level connector shape.",
|
|
3217
|
-
effect: "read",
|
|
3218
|
-
inputSchema: getInsightInput,
|
|
3219
|
-
outputSchema: external_exports.toJSONSchema(getInsightOutput, { io: "output", unrepresentable: "any" })
|
|
3220
|
-
},
|
|
3221
|
-
run_query: {
|
|
3222
|
-
description: "Run a PostHog query and return a stable top-level query result shape.",
|
|
3223
|
-
effect: "write",
|
|
3224
|
-
inputSchema: runQueryInput,
|
|
3225
|
-
outputSchema: external_exports.toJSONSchema(runQueryOutput, { io: "output", unrepresentable: "any" })
|
|
3226
|
-
},
|
|
3227
|
-
get_async_query_status: {
|
|
3228
|
-
description: "Retrieve the status and available result payload for a PostHog async query.",
|
|
3229
|
-
effect: "read",
|
|
3230
|
-
inputSchema: getAsyncQueryStatusInput,
|
|
3231
|
-
outputSchema: external_exports.toJSONSchema(getAsyncQueryStatusOutput, { io: "output", unrepresentable: "any" })
|
|
3232
|
-
},
|
|
3233
|
-
cancel_query: {
|
|
3234
|
-
description: "Cancel a PostHog async query by project ID and query ID.",
|
|
3235
|
-
effect: "destructive",
|
|
3236
|
-
inputSchema: cancelQueryInput,
|
|
3237
|
-
outputSchema: external_exports.toJSONSchema(cancelQueryOutput, { io: "output", unrepresentable: "any" })
|
|
3238
|
-
},
|
|
3239
|
-
create_insight: {
|
|
3240
|
-
description: "Create a saved PostHog insight in a project.",
|
|
3241
|
-
effect: "write",
|
|
3242
|
-
inputSchema: createInsightInput,
|
|
3243
|
-
outputSchema: external_exports.toJSONSchema(createInsightOutput, { io: "output", unrepresentable: "any" })
|
|
3244
|
-
},
|
|
3245
|
-
update_insight: {
|
|
3246
|
-
description: "Update a saved PostHog insight by ID.",
|
|
3247
|
-
effect: "write",
|
|
3248
|
-
inputSchema: updateInsightInput,
|
|
3249
|
-
outputSchema: external_exports.toJSONSchema(updateInsightOutput, { io: "output", unrepresentable: "any" })
|
|
3250
|
-
},
|
|
3251
|
-
delete_insight: {
|
|
3252
|
-
description: "Delete a saved PostHog insight by ID.",
|
|
3253
|
-
effect: "destructive",
|
|
3254
|
-
inputSchema: deleteInsightInput,
|
|
3255
|
-
outputSchema: external_exports.toJSONSchema(deleteInsightOutput, { io: "output", unrepresentable: "any" })
|
|
3256
|
-
},
|
|
3257
|
-
list_dashboards: {
|
|
3258
|
-
description: "List dashboards for a PostHog project.",
|
|
3259
|
-
effect: "read",
|
|
3260
|
-
inputSchema: listDashboardsInput,
|
|
3261
|
-
outputSchema: external_exports.toJSONSchema(listDashboardsOutput, { io: "output", unrepresentable: "any" })
|
|
3262
|
-
},
|
|
3263
|
-
get_dashboard: {
|
|
3264
|
-
description: "Get a PostHog dashboard by ID with a stable top-level connector shape.",
|
|
3265
|
-
effect: "read",
|
|
3266
|
-
inputSchema: getDashboardInput,
|
|
3267
|
-
outputSchema: external_exports.toJSONSchema(getDashboardOutput, { io: "output", unrepresentable: "any" })
|
|
3268
|
-
},
|
|
3269
|
-
create_dashboard: {
|
|
3270
|
-
description: "Create a PostHog dashboard in a project.",
|
|
3271
|
-
effect: "write",
|
|
3272
|
-
inputSchema: createDashboardInput,
|
|
3273
|
-
outputSchema: external_exports.toJSONSchema(createDashboardOutput, { io: "output", unrepresentable: "any" })
|
|
3274
|
-
},
|
|
3275
|
-
update_dashboard: {
|
|
3276
|
-
description: "Partially update a PostHog dashboard by ID.",
|
|
3277
|
-
effect: "write",
|
|
3278
|
-
inputSchema: updateDashboardInput,
|
|
3279
|
-
outputSchema: external_exports.toJSONSchema(updateDashboardOutput, { io: "output", unrepresentable: "any" })
|
|
3280
|
-
},
|
|
3281
|
-
delete_dashboard: {
|
|
3282
|
-
description: "Mark a PostHog dashboard as deleted using the official soft-delete contract.",
|
|
3283
|
-
effect: "destructive",
|
|
3284
|
-
inputSchema: deleteDashboardInput,
|
|
3285
|
-
outputSchema: external_exports.toJSONSchema(deleteDashboardOutput, { io: "output", unrepresentable: "any" })
|
|
3286
|
-
},
|
|
3287
|
-
run_dashboard_insights: {
|
|
3288
|
-
description: "Run all insights on a PostHog dashboard and return their results.",
|
|
3289
|
-
effect: "write",
|
|
3290
|
-
inputSchema: runDashboardInsightsInput,
|
|
3291
|
-
outputSchema: external_exports.toJSONSchema(runDashboardInsightsOutput, { io: "output", unrepresentable: "any" })
|
|
3292
|
-
},
|
|
3293
|
-
copy_dashboard_tile: {
|
|
3294
|
-
description: "Copy an existing PostHog dashboard tile to another dashboard.",
|
|
3295
|
-
effect: "write",
|
|
3296
|
-
inputSchema: copyDashboardTileInput,
|
|
3297
|
-
outputSchema: external_exports.toJSONSchema(copyDashboardTileOutput, { io: "output", unrepresentable: "any" })
|
|
3298
|
-
},
|
|
3299
|
-
move_dashboard_tile: {
|
|
3300
|
-
description: "Move a PostHog dashboard tile to another dashboard.",
|
|
3301
|
-
effect: "write",
|
|
3302
|
-
inputSchema: moveDashboardTileInput,
|
|
3303
|
-
outputSchema: external_exports.toJSONSchema(moveDashboardTileOutput, { io: "output", unrepresentable: "any" })
|
|
3304
|
-
},
|
|
3305
|
-
reorder_dashboard_tiles: {
|
|
3306
|
-
description: "Reorder tiles on a PostHog dashboard.",
|
|
3307
|
-
effect: "write",
|
|
3308
|
-
inputSchema: reorderDashboardTilesInput,
|
|
3309
|
-
outputSchema: external_exports.toJSONSchema(reorderDashboardTilesOutput, { io: "output", unrepresentable: "any" })
|
|
3310
|
-
},
|
|
3311
|
-
list_dashboard_collaborators: {
|
|
3312
|
-
description: "List collaborators for a PostHog dashboard.",
|
|
3313
|
-
effect: "read",
|
|
3314
|
-
inputSchema: listDashboardCollaboratorsInput,
|
|
3315
|
-
outputSchema: external_exports.toJSONSchema(listDashboardCollaboratorsOutput, { io: "output", unrepresentable: "any" })
|
|
3316
|
-
},
|
|
3317
|
-
add_dashboard_collaborator: {
|
|
3318
|
-
description: "Add a collaborator to a PostHog dashboard.",
|
|
3319
|
-
effect: "write",
|
|
3320
|
-
inputSchema: addDashboardCollaboratorInput,
|
|
3321
|
-
outputSchema: external_exports.toJSONSchema(addDashboardCollaboratorOutput, { io: "output", unrepresentable: "any" })
|
|
3322
|
-
},
|
|
3323
|
-
remove_dashboard_collaborator: {
|
|
3324
|
-
description: "Remove a collaborator from a PostHog dashboard.",
|
|
3325
|
-
effect: "destructive",
|
|
3326
|
-
inputSchema: removeDashboardCollaboratorInput,
|
|
3327
|
-
outputSchema: external_exports.toJSONSchema(removeDashboardCollaboratorOutput, { io: "output", unrepresentable: "any" })
|
|
3328
|
-
},
|
|
3329
|
-
list_feature_flags: {
|
|
3330
|
-
description: "List feature flags for a PostHog project.",
|
|
3331
|
-
effect: "read",
|
|
3332
|
-
inputSchema: listFeatureFlagsInput,
|
|
3333
|
-
outputSchema: external_exports.toJSONSchema(listFeatureFlagsOutput, { io: "output", unrepresentable: "any" })
|
|
3334
|
-
},
|
|
3335
|
-
get_feature_flag: {
|
|
3336
|
-
description: "Get a PostHog feature flag by ID.",
|
|
3337
|
-
effect: "read",
|
|
3338
|
-
inputSchema: getFeatureFlagInput,
|
|
3339
|
-
outputSchema: external_exports.toJSONSchema(getFeatureFlagOutput, { io: "output", unrepresentable: "any" })
|
|
3340
|
-
},
|
|
3341
|
-
create_feature_flag: {
|
|
3342
|
-
description: "Create a feature flag in a PostHog project.",
|
|
3343
|
-
effect: "write",
|
|
3344
|
-
inputSchema: createFeatureFlagInput,
|
|
3345
|
-
outputSchema: external_exports.toJSONSchema(createFeatureFlagOutput, { io: "output", unrepresentable: "any" })
|
|
3346
|
-
},
|
|
3347
|
-
update_feature_flag: {
|
|
3348
|
-
description: "Partially update a PostHog feature flag by ID.",
|
|
3349
|
-
effect: "write",
|
|
3350
|
-
inputSchema: updateFeatureFlagInput,
|
|
3351
|
-
outputSchema: external_exports.toJSONSchema(updateFeatureFlagOutput, { io: "output", unrepresentable: "any" })
|
|
3352
|
-
},
|
|
3353
|
-
delete_feature_flag: {
|
|
3354
|
-
description: "Soft delete a PostHog feature flag by setting deleted to true.",
|
|
3355
|
-
effect: "destructive",
|
|
3356
|
-
inputSchema: deleteFeatureFlagInput,
|
|
3357
|
-
outputSchema: external_exports.toJSONSchema(deleteFeatureFlagOutput, { io: "output", unrepresentable: "any" })
|
|
3358
|
-
},
|
|
3359
|
-
get_feature_flag_status: {
|
|
3360
|
-
description: "Get the computed status for a PostHog feature flag.",
|
|
3361
|
-
effect: "read",
|
|
3362
|
-
inputSchema: getFeatureFlagStatusInput,
|
|
3363
|
-
outputSchema: external_exports.toJSONSchema(getFeatureFlagStatusOutput, { io: "output", unrepresentable: "any" })
|
|
3364
|
-
},
|
|
3365
|
-
get_feature_flag_dependent_flags: {
|
|
3366
|
-
description: "List the feature flags that depend on a PostHog feature flag.",
|
|
3367
|
-
effect: "read",
|
|
3368
|
-
inputSchema: getFeatureFlagDependentFlagsInput,
|
|
3369
|
-
outputSchema: external_exports.toJSONSchema(getFeatureFlagDependentFlagsOutput, { io: "output", unrepresentable: "any" })
|
|
3370
|
-
},
|
|
3371
|
-
get_feature_flags_local_evaluation: {
|
|
3372
|
-
description: "Get the local evaluation payload for PostHog feature flags.",
|
|
3373
|
-
effect: "read",
|
|
3374
|
-
inputSchema: getFeatureFlagsLocalEvaluationInput,
|
|
3375
|
-
outputSchema: external_exports.toJSONSchema(getFeatureFlagsLocalEvaluationOutput, { io: "output", unrepresentable: "any" })
|
|
3376
|
-
}
|
|
3377
|
-
};
|
|
3378
|
-
|
|
3379
|
-
// ../plugins/src/posthog/index.ts
|
|
3380
|
-
function createPosthogPlugin() {
|
|
3381
|
-
return createProviderPlugin({
|
|
3382
|
-
description: "PostHog",
|
|
3383
|
-
actions: posthogActions,
|
|
3384
|
-
credentialProbe: "get_current_user",
|
|
3385
|
-
mountConfigFields: [
|
|
3386
|
-
{
|
|
3387
|
-
key: "baseUrl",
|
|
3388
|
-
label: "PostHog API URL",
|
|
3389
|
-
description: "\u4F8B\u5982 https://us.posthog.com\u3001https://eu.posthog.com \u6216\u81EA\u6258\u7BA1\u5730\u5740",
|
|
3390
|
-
required: true
|
|
3391
|
-
},
|
|
3392
|
-
{
|
|
3393
|
-
key: "organizationId",
|
|
3394
|
-
label: "Organization ID",
|
|
3395
|
-
description: "\u53EF\u9009;\u9700\u8981\u6309\u7EC4\u7EC7\u8303\u56F4\u8C03\u7528\u7684\u63A5\u53E3\u4F1A\u4F7F\u7528\u5B83"
|
|
3396
|
-
}
|
|
3397
|
-
],
|
|
3398
|
-
handlers: {
|
|
3399
|
-
get_current_user: getCurrentUser,
|
|
3400
|
-
list_projects: listProjects,
|
|
3401
|
-
get_project: getProject,
|
|
3402
|
-
list_event_definitions: listEventDefinitions,
|
|
3403
|
-
get_event_definition: getEventDefinition,
|
|
3404
|
-
create_event_definition: createEventDefinition,
|
|
3405
|
-
update_event_definition: updateEventDefinition,
|
|
3406
|
-
delete_event_definition: deleteEventDefinition,
|
|
3407
|
-
get_event_definition_by_name: getEventDefinitionByName,
|
|
3408
|
-
get_event_definition_primary_properties: getEventDefinitionPrimaryProperties,
|
|
3409
|
-
bulk_update_event_definition_tags: bulkUpdateEventDefinitionTags,
|
|
3410
|
-
list_property_definitions: listPropertyDefinitions,
|
|
3411
|
-
get_property_definition: getPropertyDefinition,
|
|
3412
|
-
update_property_definition: updatePropertyDefinition,
|
|
3413
|
-
delete_property_definition: deletePropertyDefinition,
|
|
3414
|
-
bulk_update_property_definition_tags: bulkUpdatePropertyDefinitionTags,
|
|
3415
|
-
list_annotations: listAnnotations,
|
|
3416
|
-
get_annotation: getAnnotation,
|
|
3417
|
-
create_annotation: createAnnotation,
|
|
3418
|
-
update_annotation: updateAnnotation,
|
|
3419
|
-
delete_annotation: deleteAnnotation,
|
|
3420
|
-
list_cohorts: listCohorts,
|
|
3421
|
-
get_cohort: getCohort,
|
|
3422
|
-
create_cohort: createCohort,
|
|
3423
|
-
update_cohort: updateCohort,
|
|
3424
|
-
delete_cohort: deleteCohort,
|
|
3425
|
-
add_persons_to_static_cohort: addPersonsToStaticCohort,
|
|
3426
|
-
get_cohort_persons: getCohortPersons,
|
|
3427
|
-
get_cohort_calculation_history: getCohortCalculationHistory,
|
|
3428
|
-
list_insights: listInsights,
|
|
3429
|
-
get_insight: getInsight,
|
|
3430
|
-
run_query: runQuery,
|
|
3431
|
-
get_async_query_status: getAsyncQueryStatus,
|
|
3432
|
-
cancel_query: cancelQuery,
|
|
3433
|
-
create_insight: createInsight,
|
|
3434
|
-
update_insight: updateInsight,
|
|
3435
|
-
delete_insight: deleteInsight,
|
|
3436
|
-
list_dashboards: listDashboards,
|
|
3437
|
-
get_dashboard: getDashboard,
|
|
3438
|
-
create_dashboard: createDashboard,
|
|
3439
|
-
update_dashboard: updateDashboard,
|
|
3440
|
-
delete_dashboard: deleteDashboard,
|
|
3441
|
-
run_dashboard_insights: runDashboardInsights,
|
|
3442
|
-
copy_dashboard_tile: copyDashboardTile,
|
|
3443
|
-
move_dashboard_tile: moveDashboardTile,
|
|
3444
|
-
reorder_dashboard_tiles: reorderDashboardTiles,
|
|
3445
|
-
list_dashboard_collaborators: listDashboardCollaborators,
|
|
3446
|
-
add_dashboard_collaborator: addDashboardCollaborator,
|
|
3447
|
-
remove_dashboard_collaborator: removeDashboardCollaborator,
|
|
3448
|
-
list_feature_flags: listFeatureFlags,
|
|
3449
|
-
get_feature_flag: getFeatureFlag,
|
|
3450
|
-
create_feature_flag: createFeatureFlag,
|
|
3451
|
-
update_feature_flag: updateFeatureFlag,
|
|
3452
|
-
delete_feature_flag: deleteFeatureFlag,
|
|
3453
|
-
get_feature_flag_status: getFeatureFlagStatus,
|
|
3454
|
-
get_feature_flag_dependent_flags: getFeatureFlagDependentFlags,
|
|
3455
|
-
get_feature_flags_local_evaluation: getFeatureFlagsLocalEvaluation
|
|
3456
|
-
}
|
|
3457
|
-
});
|
|
3458
|
-
}
|
|
3459
|
-
var posthog_default = createPosthogPlugin();
|
|
3460
|
-
export {
|
|
3461
|
-
createPosthogPlugin,
|
|
3462
|
-
posthog_default as default
|
|
3463
|
-
};
|