@utdk/posthog 1.0.0-20260712.5-dev.e2949a6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/LICENSE +373 -0
  2. package/README.md +172 -0
  3. package/docs/account_relationship_definitions.md +194 -0
  4. package/docs/accounts.md +380 -0
  5. package/docs/actions.md +274 -0
  6. package/docs/activity_logs.md +144 -0
  7. package/docs/advanced_activity_logs.md +101 -0
  8. package/docs/agent_platform.md +2525 -0
  9. package/docs/ai-observability.md +514 -0
  10. package/docs/alerts.md +444 -0
  11. package/docs/annotations.md +200 -0
  12. package/docs/batch_exports.md +2118 -0
  13. package/docs/business_knowledge.md +468 -0
  14. package/docs/code-invites.md +72 -0
  15. package/docs/cohorts.md +412 -0
  16. package/docs/comments.md +321 -0
  17. package/docs/conversations.md +695 -0
  18. package/docs/custom_property_definitions.md +442 -0
  19. package/docs/custom_property_sources.md +194 -0
  20. package/docs/customer_analytics.md +442 -0
  21. package/docs/customer_journeys.md +380 -0
  22. package/docs/customer_profile_configs.md +380 -0
  23. package/docs/dashboard_templates.md +258 -0
  24. package/docs/dashboards.md +1896 -0
  25. package/docs/data_color_themes.md +380 -0
  26. package/docs/data_modeling_jobs.md +264 -0
  27. package/docs/data_warehouse.md +928 -0
  28. package/docs/dataset_items.md +382 -0
  29. package/docs/datasets.md +382 -0
  30. package/docs/desktop_file_system.md +753 -0
  31. package/docs/desktop_file_system_shortcut.md +244 -0
  32. package/docs/docs.md +72 -0
  33. package/docs/early_access_feature.md +194 -0
  34. package/docs/elements.md +510 -0
  35. package/docs/endpoints.md +1030 -0
  36. package/docs/engineering_analytics.md +712 -0
  37. package/docs/environments.md +881 -0
  38. package/docs/error_tracking.md +5108 -0
  39. package/docs/evaluation_runs.md +78 -0
  40. package/docs/evaluations.md +446 -0
  41. package/docs/event_definitions.md +425 -0
  42. package/docs/event_filter.md +280 -0
  43. package/docs/event_schemas.md +163 -0
  44. package/docs/events.md +208 -0
  45. package/docs/experiment_holdouts.md +194 -0
  46. package/docs/experiment_saved_metrics.md +194 -0
  47. package/docs/experiments.md +1088 -0
  48. package/docs/exports.md +256 -0
  49. package/docs/external_data_schemas.md +752 -0
  50. package/docs/external_data_sources.md +2296 -0
  51. package/docs/feature_flags.md +808 -0
  52. package/docs/field_notes.md +206 -0
  53. package/docs/file_system.md +880 -0
  54. package/docs/file_system_shortcut.md +444 -0
  55. package/docs/flag_value.md +46 -0
  56. package/docs/groups.md +514 -0
  57. package/docs/groups_types.md +349 -0
  58. package/docs/health_issues.md +386 -0
  59. package/docs/heatmap_screenshots.md +72 -0
  60. package/docs/heatmaps.md +136 -0
  61. package/docs/hog_flows.md +1576 -0
  62. package/docs/hog_function_templates.md +101 -0
  63. package/docs/hog_functions.md +974 -0
  64. package/docs/ingestion_warnings_v2.md +40 -0
  65. package/docs/insight_variables.md +380 -0
  66. package/docs/insights.md +1722 -0
  67. package/docs/integrations.md +1954 -0
  68. package/docs/js-snippet.md +104 -0
  69. package/docs/live_debugger_breakpoints.md +264 -0
  70. package/docs/llm_analytics.md +3373 -0
  71. package/docs/llm_prompts.md +442 -0
  72. package/docs/llm_skills.md +952 -0
  73. package/docs/logs.md +2446 -0
  74. package/docs/managed_viewsets.md +140 -0
  75. package/docs/marketing_analytics.md +518 -0
  76. package/docs/max.md +772 -0
  77. package/docs/max_tools.md +70 -0
  78. package/docs/mcp_analytics.md +712 -0
  79. package/docs/mcp_server_installations.md +970 -0
  80. package/docs/mcp_servers.md +78 -0
  81. package/docs/mcp_tools.md +82 -0
  82. package/docs/messaging_templates.md +444 -0
  83. package/docs/metrics.md +462 -0
  84. package/docs/notebooks.md +838 -0
  85. package/docs/object_media_previews.md +228 -0
  86. package/docs/organizations.md +2958 -0
  87. package/docs/persons.md +1514 -0
  88. package/docs/platform_features.md +700 -0
  89. package/docs/plugin_configs.md +70 -0
  90. package/docs/product_enablement.md +39 -0
  91. package/docs/product_tours.md +357 -0
  92. package/docs/project_secret_api_keys.md +444 -0
  93. package/docs/property_access_controls.md +200 -0
  94. package/docs/property_definitions.md +244 -0
  95. package/docs/query.md +560 -0
  96. package/docs/quota_limits.md +40 -0
  97. package/docs/reminders.md +194 -0
  98. package/docs/replay.md +1020 -0
  99. package/docs/reverse_proxy.md +200 -0
  100. package/docs/sandbox-custom-images.md +209 -0
  101. package/docs/sandbox-environments.md +168 -0
  102. package/docs/saved.md +392 -0
  103. package/docs/saved_query_column_annotations.md +224 -0
  104. package/docs/scheduled_changes.md +200 -0
  105. package/docs/schema_property_groups.md +194 -0
  106. package/docs/sdk_health.md +40 -0
  107. package/docs/session_group_summaries.md +200 -0
  108. package/docs/session_recordings.md +260 -0
  109. package/docs/session_summaries.md +200 -0
  110. package/docs/sessions.md +132 -0
  111. package/docs/signals.md +1428 -0
  112. package/docs/single_session_summaries.md +72 -0
  113. package/docs/streamlit_apps.md +456 -0
  114. package/docs/subscriptions.md +634 -0
  115. package/docs/surveys.md +731 -0
  116. package/docs/taggers.md +446 -0
  117. package/docs/task-automations.md +200 -0
  118. package/docs/task-runs.md +654 -0
  119. package/docs/task_channels.md +136 -0
  120. package/docs/task_mentions.md +40 -0
  121. package/docs/tasks.md +776 -0
  122. package/docs/tracing.md +1186 -0
  123. package/docs/uploaded_media.md +44 -0
  124. package/docs/user_home_settings.md +72 -0
  125. package/docs/user_interview_topics.md +1288 -0
  126. package/docs/user_interviews.md +444 -0
  127. package/docs/users.md +1267 -0
  128. package/docs/vision.md +2022 -0
  129. package/docs/visual_review.md +816 -0
  130. package/docs/warehouse_column_annotations.md +224 -0
  131. package/docs/warehouse_column_statistics.md +80 -0
  132. package/docs/warehouse_dag.md +40 -0
  133. package/docs/warehouse_model_paths.md +70 -0
  134. package/docs/warehouse_saved_queries.md +1056 -0
  135. package/docs/warehouse_saved_query_folders.md +318 -0
  136. package/docs/warehouse_tables.md +584 -0
  137. package/docs/warehouse_view_link.md +456 -0
  138. package/docs/warehouse_view_links.md +456 -0
  139. package/docs/web_analytics.md +136 -0
  140. package/docs/web_analytics_achievements.md +200 -0
  141. package/docs/web_experiments.md +194 -0
  142. package/docs/web_vitals.md +74 -0
  143. package/docs/wizard.md +170 -0
  144. package/index.ts +22 -0
  145. package/metadata.ts +41419 -0
  146. package/openapi.json +297382 -0
  147. package/overlay.yaml +23 -0
  148. package/package.json +34 -0
  149. package/provenance.json +24 -0
  150. package/research.json +80 -0
  151. package/types/index.ts +17547 -0
@@ -0,0 +1,1186 @@
1
+ # Tracing
2
+
3
+ ## Operations
4
+
5
+ ### `posthog.environmentsTracingSpansAggregateCreate`
6
+
7
+ - **HTTP**: `POST /api/environments/{environment_id}/tracing/spans/aggregate/`
8
+ - **OpenAPI operationId**: `environments_tracing_spans_aggregate_create`
9
+ - **Path params**: None
10
+ - **Query params**: None
11
+ - **Response codes**: `200`
12
+ - **Transport options**: None
13
+ - **TypeScript**: [Client interface](../types.ts)
14
+
15
+ **Inputs**
16
+
17
+ - Client input type: `{ [key: string]: unknown }`
18
+ - Client transport options: None
19
+
20
+ **Outputs**
21
+
22
+ - Client return type: `unknown`
23
+ - OpenAPI response codes: `200`
24
+
25
+ ```ts
26
+ import posthog from "@utdk/posthog";
27
+
28
+ type EnvironmentsTracingSpansAggregateCreateInput = Parameters<typeof posthog.environmentsTracingSpansAggregateCreate> extends [infer T, ...unknown[]] ? T : undefined;
29
+ type EnvironmentsTracingSpansAggregateCreateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansAggregateCreate>>;
30
+
31
+ const result: EnvironmentsTracingSpansAggregateCreateOutput = await posthog.environmentsTracingSpansAggregateCreate();
32
+
33
+ // Result shape (from schema): unknown
34
+ ```
35
+
36
+ ### `posthog.environmentsTracingSpansAttributeBreakdownCreate`
37
+
38
+ - **HTTP**: `POST /api/environments/{environment_id}/tracing/spans/attribute-breakdown/`
39
+ - **OpenAPI operationId**: `environments_tracing_spans_attribute_breakdown_create`
40
+ - **Path params**: None
41
+ - **Query params**: None
42
+ - **Response codes**: `200`
43
+ - **Transport options**: None
44
+ - **TypeScript**: [Client interface](../types.ts)
45
+
46
+ **Inputs**
47
+
48
+ - Client input type: `{ [key: string]: unknown }`
49
+ - Client transport options: None
50
+
51
+ **Outputs**
52
+
53
+ - Client return type: `unknown`
54
+ - OpenAPI response codes: `200`
55
+
56
+ ```ts
57
+ import posthog from "@utdk/posthog";
58
+
59
+ type EnvironmentsTracingSpansAttributeBreakdownCreateInput = Parameters<typeof posthog.environmentsTracingSpansAttributeBreakdownCreate> extends [infer T, ...unknown[]] ? T : undefined;
60
+ type EnvironmentsTracingSpansAttributeBreakdownCreateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansAttributeBreakdownCreate>>;
61
+
62
+ const result: EnvironmentsTracingSpansAttributeBreakdownCreateOutput = await posthog.environmentsTracingSpansAttributeBreakdownCreate();
63
+
64
+ // Result shape (from schema): unknown
65
+ ```
66
+
67
+ ### `posthog.environmentsTracingSpansAttributesRetrieve`
68
+
69
+ - **HTTP**: `GET /api/environments/{environment_id}/tracing/spans/attributes/`
70
+ - **OpenAPI operationId**: `environments_tracing_spans_attributes_retrieve`
71
+ - **Path params**: None
72
+ - **Query params**: `attribute_type`, `limit`, `offset`, `search`, `search_values`
73
+ - **Response codes**: `200`
74
+ - **Transport options**: None
75
+ - **TypeScript**: [Client interface](../types.ts)
76
+
77
+ **Inputs**
78
+
79
+ - Client input type: `{ [key: string]: unknown }`
80
+ - Client transport options: None
81
+
82
+ **Outputs**
83
+
84
+ - Client return type: `{ results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }`
85
+ - OpenAPI response codes: `200`
86
+
87
+ ```ts
88
+ import posthog from "@utdk/posthog";
89
+
90
+ type EnvironmentsTracingSpansAttributesRetrieveInput = Parameters<typeof posthog.environmentsTracingSpansAttributesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
91
+ type EnvironmentsTracingSpansAttributesRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansAttributesRetrieve>>;
92
+
93
+ const result: EnvironmentsTracingSpansAttributesRetrieveOutput = await posthog.environmentsTracingSpansAttributesRetrieve();
94
+
95
+ // Result shape (from schema): { results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }
96
+ ```
97
+
98
+ ### `posthog.environmentsTracingSpansCountCreate`
99
+
100
+ - **HTTP**: `POST /api/environments/{environment_id}/tracing/spans/count/`
101
+ - **OpenAPI operationId**: `environments_tracing_spans_count_create`
102
+ - **Path params**: None
103
+ - **Query params**: None
104
+ - **Response codes**: `200`
105
+ - **Transport options**: None
106
+ - **TypeScript**: [Client interface](../types.ts)
107
+
108
+ **Inputs**
109
+
110
+ - Client input type: `{ [key: string]: unknown }`
111
+ - Client transport options: None
112
+
113
+ **Outputs**
114
+
115
+ - Client return type: `{ count: number; traceCount: number }`
116
+ - OpenAPI response codes: `200`
117
+
118
+ ```ts
119
+ import posthog from "@utdk/posthog";
120
+
121
+ type EnvironmentsTracingSpansCountCreateInput = Parameters<typeof posthog.environmentsTracingSpansCountCreate> extends [infer T, ...unknown[]] ? T : undefined;
122
+ type EnvironmentsTracingSpansCountCreateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansCountCreate>>;
123
+
124
+ const result: EnvironmentsTracingSpansCountCreateOutput = await posthog.environmentsTracingSpansCountCreate();
125
+
126
+ // Result shape (from schema): { count: number; traceCount: number }
127
+ ```
128
+
129
+ ### `posthog.environmentsTracingSpansDurationHistogramCreate`
130
+
131
+ - **HTTP**: `POST /api/environments/{environment_id}/tracing/spans/duration-histogram/`
132
+ - **OpenAPI operationId**: `environments_tracing_spans_duration_histogram_create`
133
+ - **Path params**: None
134
+ - **Query params**: None
135
+ - **Response codes**: `200`
136
+ - **Transport options**: None
137
+ - **TypeScript**: [Client interface](../types.ts)
138
+
139
+ **Inputs**
140
+
141
+ - Client input type: `{ [key: string]: unknown }`
142
+ - Client transport options: None
143
+
144
+ **Outputs**
145
+
146
+ - Client return type: `unknown`
147
+ - OpenAPI response codes: `200`
148
+
149
+ ```ts
150
+ import posthog from "@utdk/posthog";
151
+
152
+ type EnvironmentsTracingSpansDurationHistogramCreateInput = Parameters<typeof posthog.environmentsTracingSpansDurationHistogramCreate> extends [infer T, ...unknown[]] ? T : undefined;
153
+ type EnvironmentsTracingSpansDurationHistogramCreateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansDurationHistogramCreate>>;
154
+
155
+ const result: EnvironmentsTracingSpansDurationHistogramCreateOutput = await posthog.environmentsTracingSpansDurationHistogramCreate();
156
+
157
+ // Result shape (from schema): unknown
158
+ ```
159
+
160
+ ### `posthog.environmentsTracingSpansHasSpansRetrieve`
161
+
162
+ - **HTTP**: `GET /api/environments/{environment_id}/tracing/spans/has_spans/`
163
+ - **OpenAPI operationId**: `environments_tracing_spans_has_spans_retrieve`
164
+ - **Path params**: None
165
+ - **Query params**: None
166
+ - **Response codes**: `200`
167
+ - **Transport options**: None
168
+ - **TypeScript**: [Client interface](../types.ts)
169
+
170
+ **Inputs**
171
+
172
+ - Client input type: `{ [key: string]: unknown }`
173
+ - Client transport options: None
174
+
175
+ **Outputs**
176
+
177
+ - Client return type: `{ hasSpans: boolean }`
178
+ - OpenAPI response codes: `200`
179
+
180
+ ```ts
181
+ import posthog from "@utdk/posthog";
182
+
183
+ type EnvironmentsTracingSpansHasSpansRetrieveInput = Parameters<typeof posthog.environmentsTracingSpansHasSpansRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
184
+ type EnvironmentsTracingSpansHasSpansRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansHasSpansRetrieve>>;
185
+
186
+ const result: EnvironmentsTracingSpansHasSpansRetrieveOutput = await posthog.environmentsTracingSpansHasSpansRetrieve();
187
+
188
+ // Result shape (from schema): { hasSpans: boolean }
189
+ ```
190
+
191
+ ### `posthog.environmentsTracingSpansQueryCreate`
192
+
193
+ - **HTTP**: `POST /api/environments/{environment_id}/tracing/spans/query/`
194
+ - **OpenAPI operationId**: `environments_tracing_spans_query_create`
195
+ - **Path params**: None
196
+ - **Query params**: None
197
+ - **Response codes**: `200`
198
+ - **Transport options**: None
199
+ - **TypeScript**: [Client interface](../types.ts)
200
+
201
+ **Inputs**
202
+
203
+ - Client input type: `{ [key: string]: unknown }`
204
+ - Client transport options: None
205
+
206
+ **Outputs**
207
+
208
+ - Client return type: `unknown`
209
+ - OpenAPI response codes: `200`
210
+
211
+ ```ts
212
+ import posthog from "@utdk/posthog";
213
+
214
+ type EnvironmentsTracingSpansQueryCreateInput = Parameters<typeof posthog.environmentsTracingSpansQueryCreate> extends [infer T, ...unknown[]] ? T : undefined;
215
+ type EnvironmentsTracingSpansQueryCreateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansQueryCreate>>;
216
+
217
+ const result: EnvironmentsTracingSpansQueryCreateOutput = await posthog.environmentsTracingSpansQueryCreate();
218
+
219
+ // Result shape (from schema): unknown
220
+ ```
221
+
222
+ ### `posthog.environmentsTracingSpansServiceNamesRetrieve`
223
+
224
+ - **HTTP**: `GET /api/environments/{environment_id}/tracing/spans/service-names/`
225
+ - **OpenAPI operationId**: `environments_tracing_spans_service_names_retrieve`
226
+ - **Path params**: None
227
+ - **Query params**: `dateRange`, `search`
228
+ - **Response codes**: `200`
229
+ - **Transport options**: None
230
+ - **TypeScript**: [Client interface](../types.ts)
231
+
232
+ **Inputs**
233
+
234
+ - Client input type: `{ [key: string]: unknown }`
235
+ - Client transport options: None
236
+
237
+ **Outputs**
238
+
239
+ - Client return type: `unknown`
240
+ - OpenAPI response codes: `200`
241
+
242
+ ```ts
243
+ import posthog from "@utdk/posthog";
244
+
245
+ type EnvironmentsTracingSpansServiceNamesRetrieveInput = Parameters<typeof posthog.environmentsTracingSpansServiceNamesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
246
+ type EnvironmentsTracingSpansServiceNamesRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansServiceNamesRetrieve>>;
247
+
248
+ const result: EnvironmentsTracingSpansServiceNamesRetrieveOutput = await posthog.environmentsTracingSpansServiceNamesRetrieve();
249
+
250
+ // Result shape (from schema): unknown
251
+ ```
252
+
253
+ ### `posthog.environmentsTracingSpansSparklineCreate`
254
+
255
+ - **HTTP**: `POST /api/environments/{environment_id}/tracing/spans/sparkline/`
256
+ - **OpenAPI operationId**: `environments_tracing_spans_sparkline_create`
257
+ - **Path params**: None
258
+ - **Query params**: None
259
+ - **Response codes**: `200`
260
+ - **Transport options**: None
261
+ - **TypeScript**: [Client interface](../types.ts)
262
+
263
+ **Inputs**
264
+
265
+ - Client input type: `{ [key: string]: unknown }`
266
+ - Client transport options: None
267
+
268
+ **Outputs**
269
+
270
+ - Client return type: `unknown`
271
+ - OpenAPI response codes: `200`
272
+
273
+ ```ts
274
+ import posthog from "@utdk/posthog";
275
+
276
+ type EnvironmentsTracingSpansSparklineCreateInput = Parameters<typeof posthog.environmentsTracingSpansSparklineCreate> extends [infer T, ...unknown[]] ? T : undefined;
277
+ type EnvironmentsTracingSpansSparklineCreateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansSparklineCreate>>;
278
+
279
+ const result: EnvironmentsTracingSpansSparklineCreateOutput = await posthog.environmentsTracingSpansSparklineCreate();
280
+
281
+ // Result shape (from schema): unknown
282
+ ```
283
+
284
+ ### `posthog.environmentsTracingSpansSymbolStatsCreate`
285
+
286
+ - **HTTP**: `POST /api/environments/{environment_id}/tracing/spans/symbol-stats/`
287
+ - **OpenAPI operationId**: `environments_tracing_spans_symbol_stats_create`
288
+ - **Path params**: None
289
+ - **Query params**: None
290
+ - **Response codes**: `200`
291
+ - **Transport options**: None
292
+ - **TypeScript**: [Client interface](../types.ts)
293
+
294
+ **Inputs**
295
+
296
+ - Client input type: `{ [key: string]: unknown }`
297
+ - Client transport options: None
298
+
299
+ **Outputs**
300
+
301
+ - Client return type: `{ results: ({ count: number; error_count: number; sum_duration_nano: number; p50_duration_nano: number; p95_duration_nano: number; p99_duration_nano: number; busy_count: number; p50_busy_nano: number; p95_busy_nano: num...`
302
+ - OpenAPI response codes: `200`
303
+
304
+ ```ts
305
+ import posthog from "@utdk/posthog";
306
+
307
+ type EnvironmentsTracingSpansSymbolStatsCreateInput = Parameters<typeof posthog.environmentsTracingSpansSymbolStatsCreate> extends [infer T, ...unknown[]] ? T : undefined;
308
+ type EnvironmentsTracingSpansSymbolStatsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansSymbolStatsCreate>>;
309
+
310
+ const result: EnvironmentsTracingSpansSymbolStatsCreateOutput = await posthog.environmentsTracingSpansSymbolStatsCreate();
311
+
312
+ // Result shape (from schema): { results: ({ count: number; error_count: number; sum_duration_nano: number; p50_duration_nano: number; p95_duration_nano: number; p99_duration_nano: number; busy_count: number; p50_busy_nano: number; p95_busy_nano: num...
313
+ ```
314
+
315
+ ### `posthog.environmentsTracingSpansTraceCreate`
316
+
317
+ - **HTTP**: `POST /api/environments/{environment_id}/tracing/spans/trace/{trace_id}/`
318
+ - **OpenAPI operationId**: `environments_tracing_spans_trace_create`
319
+ - **Path params**: `trace_id`
320
+ - **Query params**: None
321
+ - **Response codes**: `200`
322
+ - **Transport options**: None
323
+ - **TypeScript**: [Client interface](../types.ts)
324
+
325
+ **Inputs**
326
+
327
+ - Client input type: `{ [key: string]: unknown }`
328
+ - Client transport options: None
329
+
330
+ **Outputs**
331
+
332
+ - Client return type: `unknown`
333
+ - OpenAPI response codes: `200`
334
+
335
+ ```ts
336
+ import posthog from "@utdk/posthog";
337
+
338
+ type EnvironmentsTracingSpansTraceCreateInput = Parameters<typeof posthog.environmentsTracingSpansTraceCreate> extends [infer T, ...unknown[]] ? T : undefined;
339
+ type EnvironmentsTracingSpansTraceCreateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansTraceCreate>>;
340
+
341
+ const result: EnvironmentsTracingSpansTraceCreateOutput = await posthog.environmentsTracingSpansTraceCreate();
342
+
343
+ // Result shape (from schema): unknown
344
+ ```
345
+
346
+ ### `posthog.environmentsTracingSpansTreeCreate`
347
+
348
+ - **HTTP**: `POST /api/environments/{environment_id}/tracing/spans/tree/`
349
+ - **OpenAPI operationId**: `environments_tracing_spans_tree_create`
350
+ - **Path params**: None
351
+ - **Query params**: None
352
+ - **Response codes**: `200`
353
+ - **Transport options**: None
354
+ - **TypeScript**: [Client interface](../types.ts)
355
+
356
+ **Inputs**
357
+
358
+ - Client input type: `{ [key: string]: unknown }`
359
+ - Client transport options: None
360
+
361
+ **Outputs**
362
+
363
+ - Client return type: `unknown`
364
+ - OpenAPI response codes: `200`
365
+
366
+ ```ts
367
+ import posthog from "@utdk/posthog";
368
+
369
+ type EnvironmentsTracingSpansTreeCreateInput = Parameters<typeof posthog.environmentsTracingSpansTreeCreate> extends [infer T, ...unknown[]] ? T : undefined;
370
+ type EnvironmentsTracingSpansTreeCreateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansTreeCreate>>;
371
+
372
+ const result: EnvironmentsTracingSpansTreeCreateOutput = await posthog.environmentsTracingSpansTreeCreate();
373
+
374
+ // Result shape (from schema): unknown
375
+ ```
376
+
377
+ ### `posthog.environmentsTracingSpansValuesRetrieve`
378
+
379
+ - **HTTP**: `GET /api/environments/{environment_id}/tracing/spans/values/`
380
+ - **OpenAPI operationId**: `environments_tracing_spans_values_retrieve`
381
+ - **Path params**: None
382
+ - **Query params**: `attribute_type`, `key`, `limit`, `offset`, `value`
383
+ - **Response codes**: `200`
384
+ - **Transport options**: None
385
+ - **TypeScript**: [Client interface](../types.ts)
386
+
387
+ **Inputs**
388
+
389
+ - Client input type: `{ [key: string]: unknown }`
390
+ - Client transport options: None
391
+
392
+ **Outputs**
393
+
394
+ - Client return type: `unknown`
395
+ - OpenAPI response codes: `200`
396
+
397
+ ```ts
398
+ import posthog from "@utdk/posthog";
399
+
400
+ type EnvironmentsTracingSpansValuesRetrieveInput = Parameters<typeof posthog.environmentsTracingSpansValuesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
401
+ type EnvironmentsTracingSpansValuesRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsTracingSpansValuesRetrieve>>;
402
+
403
+ const result: EnvironmentsTracingSpansValuesRetrieveOutput = await posthog.environmentsTracingSpansValuesRetrieve();
404
+
405
+ // Result shape (from schema): unknown
406
+ ```
407
+
408
+ ### `posthog.environmentsTracingViewsList`
409
+
410
+ - **HTTP**: `GET /api/environments/{environment_id}/tracing/views/`
411
+ - **OpenAPI operationId**: `environments_tracing_views_list`
412
+ - **Path params**: None
413
+ - **Query params**: `limit`, `offset`
414
+ - **Response codes**: `200`
415
+ - **Transport options**: None
416
+ - **TypeScript**: [Client interface](../types.ts)
417
+
418
+ **Inputs**
419
+
420
+ - Client input type: `{ [key: string]: unknown }`
421
+ - Client transport options: None
422
+
423
+ **Outputs**
424
+
425
+ - Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: numb...`
426
+ - OpenAPI response codes: `200`
427
+
428
+ ```ts
429
+ import posthog from "@utdk/posthog";
430
+
431
+ type EnvironmentsTracingViewsListInput = Parameters<typeof posthog.environmentsTracingViewsList> extends [infer T, ...unknown[]] ? T : undefined;
432
+ type EnvironmentsTracingViewsListOutput = Awaited<ReturnType<typeof posthog.environmentsTracingViewsList>>;
433
+
434
+ const result: EnvironmentsTracingViewsListOutput = await posthog.environmentsTracingViewsList();
435
+
436
+ // Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: numb...
437
+ ```
438
+
439
+ ### `posthog.environmentsTracingViewsCreate`
440
+
441
+ - **HTTP**: `POST /api/environments/{environment_id}/tracing/views/`
442
+ - **OpenAPI operationId**: `environments_tracing_views_create`
443
+ - **Path params**: None
444
+ - **Query params**: None
445
+ - **Response codes**: `201`
446
+ - **Transport options**: None
447
+ - **TypeScript**: [Client interface](../types.ts)
448
+
449
+ **Inputs**
450
+
451
+ - Client input type: `{ [key: string]: unknown }`
452
+ - Client transport options: None
453
+
454
+ **Outputs**
455
+
456
+ - Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
457
+ - OpenAPI response codes: `201`
458
+
459
+ ```ts
460
+ import posthog from "@utdk/posthog";
461
+
462
+ type EnvironmentsTracingViewsCreateInput = Parameters<typeof posthog.environmentsTracingViewsCreate> extends [infer T, ...unknown[]] ? T : undefined;
463
+ type EnvironmentsTracingViewsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingViewsCreate>>;
464
+
465
+ const result: EnvironmentsTracingViewsCreateOutput = await posthog.environmentsTracingViewsCreate();
466
+
467
+ // Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
468
+ ```
469
+
470
+ ### `posthog.environmentsTracingViewsDestroy`
471
+
472
+ - **HTTP**: `DELETE /api/environments/{environment_id}/tracing/views/{short_id}/`
473
+ - **OpenAPI operationId**: `environments_tracing_views_destroy`
474
+ - **Path params**: `short_id`
475
+ - **Query params**: None
476
+ - **Response codes**: `204`
477
+ - **Transport options**: None
478
+ - **TypeScript**: [Client interface](../types.ts)
479
+
480
+ **Inputs**
481
+
482
+ - Client input type: `{ [key: string]: unknown }`
483
+ - Client transport options: None
484
+
485
+ **Outputs**
486
+
487
+ - Client return type: `unknown`
488
+ - OpenAPI response codes: `204`
489
+
490
+ ```ts
491
+ import posthog from "@utdk/posthog";
492
+
493
+ type EnvironmentsTracingViewsDestroyInput = Parameters<typeof posthog.environmentsTracingViewsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
494
+ type EnvironmentsTracingViewsDestroyOutput = Awaited<ReturnType<typeof posthog.environmentsTracingViewsDestroy>>;
495
+
496
+ const result: EnvironmentsTracingViewsDestroyOutput = await posthog.environmentsTracingViewsDestroy();
497
+
498
+ // Result shape (from schema): unknown
499
+ ```
500
+
501
+ ### `posthog.environmentsTracingViewsRetrieve`
502
+
503
+ - **HTTP**: `GET /api/environments/{environment_id}/tracing/views/{short_id}/`
504
+ - **OpenAPI operationId**: `environments_tracing_views_retrieve`
505
+ - **Path params**: `short_id`
506
+ - **Query params**: None
507
+ - **Response codes**: `200`
508
+ - **Transport options**: None
509
+ - **TypeScript**: [Client interface](../types.ts)
510
+
511
+ **Inputs**
512
+
513
+ - Client input type: `{ [key: string]: unknown }`
514
+ - Client transport options: None
515
+
516
+ **Outputs**
517
+
518
+ - Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
519
+ - OpenAPI response codes: `200`
520
+
521
+ ```ts
522
+ import posthog from "@utdk/posthog";
523
+
524
+ type EnvironmentsTracingViewsRetrieveInput = Parameters<typeof posthog.environmentsTracingViewsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
525
+ type EnvironmentsTracingViewsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsTracingViewsRetrieve>>;
526
+
527
+ const result: EnvironmentsTracingViewsRetrieveOutput = await posthog.environmentsTracingViewsRetrieve();
528
+
529
+ // Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
530
+ ```
531
+
532
+ ### `posthog.environmentsTracingViewsPartialUpdate`
533
+
534
+ - **HTTP**: `PATCH /api/environments/{environment_id}/tracing/views/{short_id}/`
535
+ - **OpenAPI operationId**: `environments_tracing_views_partial_update`
536
+ - **Path params**: `short_id`
537
+ - **Query params**: None
538
+ - **Response codes**: `200`
539
+ - **Transport options**: None
540
+ - **TypeScript**: [Client interface](../types.ts)
541
+
542
+ **Inputs**
543
+
544
+ - Client input type: `{ [key: string]: unknown }`
545
+ - Client transport options: None
546
+
547
+ **Outputs**
548
+
549
+ - Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
550
+ - OpenAPI response codes: `200`
551
+
552
+ ```ts
553
+ import posthog from "@utdk/posthog";
554
+
555
+ type EnvironmentsTracingViewsPartialUpdateInput = Parameters<typeof posthog.environmentsTracingViewsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
556
+ type EnvironmentsTracingViewsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingViewsPartialUpdate>>;
557
+
558
+ const result: EnvironmentsTracingViewsPartialUpdateOutput = await posthog.environmentsTracingViewsPartialUpdate();
559
+
560
+ // Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
561
+ ```
562
+
563
+ ### `posthog.environmentsTracingViewsUpdate`
564
+
565
+ - **HTTP**: `PUT /api/environments/{environment_id}/tracing/views/{short_id}/`
566
+ - **OpenAPI operationId**: `environments_tracing_views_update`
567
+ - **Path params**: `short_id`
568
+ - **Query params**: None
569
+ - **Response codes**: `200`
570
+ - **Transport options**: None
571
+ - **TypeScript**: [Client interface](../types.ts)
572
+
573
+ **Inputs**
574
+
575
+ - Client input type: `{ [key: string]: unknown }`
576
+ - Client transport options: None
577
+
578
+ **Outputs**
579
+
580
+ - Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
581
+ - OpenAPI response codes: `200`
582
+
583
+ ```ts
584
+ import posthog from "@utdk/posthog";
585
+
586
+ type EnvironmentsTracingViewsUpdateInput = Parameters<typeof posthog.environmentsTracingViewsUpdate> extends [infer T, ...unknown[]] ? T : undefined;
587
+ type EnvironmentsTracingViewsUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsTracingViewsUpdate>>;
588
+
589
+ const result: EnvironmentsTracingViewsUpdateOutput = await posthog.environmentsTracingViewsUpdate();
590
+
591
+ // Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
592
+ ```
593
+
594
+ ### `posthog.tracingSpansAggregateCreate`
595
+
596
+ - **HTTP**: `POST /api/projects/{project_id}/tracing/spans/aggregate/`
597
+ - **OpenAPI operationId**: `tracing_spans_aggregate_create`
598
+ - **Path params**: None
599
+ - **Query params**: None
600
+ - **Response codes**: `200`
601
+ - **Transport options**: None
602
+ - **TypeScript**: [Client interface](../types.ts)
603
+
604
+ **Inputs**
605
+
606
+ - Client input type: `{ [key: string]: unknown }`
607
+ - Client transport options: None
608
+
609
+ **Outputs**
610
+
611
+ - Client return type: `unknown`
612
+ - OpenAPI response codes: `200`
613
+
614
+ ```ts
615
+ import posthog from "@utdk/posthog";
616
+
617
+ type TracingSpansAggregateCreateInput = Parameters<typeof posthog.tracingSpansAggregateCreate> extends [infer T, ...unknown[]] ? T : undefined;
618
+ type TracingSpansAggregateCreateOutput = Awaited<ReturnType<typeof posthog.tracingSpansAggregateCreate>>;
619
+
620
+ const result: TracingSpansAggregateCreateOutput = await posthog.tracingSpansAggregateCreate();
621
+
622
+ // Result shape (from schema): unknown
623
+ ```
624
+
625
+ ### `posthog.tracingSpansAttributeBreakdownCreate`
626
+
627
+ - **HTTP**: `POST /api/projects/{project_id}/tracing/spans/attribute-breakdown/`
628
+ - **OpenAPI operationId**: `tracing_spans_attribute_breakdown_create`
629
+ - **Path params**: None
630
+ - **Query params**: None
631
+ - **Response codes**: `200`
632
+ - **Transport options**: None
633
+ - **TypeScript**: [Client interface](../types.ts)
634
+
635
+ **Inputs**
636
+
637
+ - Client input type: `{ [key: string]: unknown }`
638
+ - Client transport options: None
639
+
640
+ **Outputs**
641
+
642
+ - Client return type: `unknown`
643
+ - OpenAPI response codes: `200`
644
+
645
+ ```ts
646
+ import posthog from "@utdk/posthog";
647
+
648
+ type TracingSpansAttributeBreakdownCreateInput = Parameters<typeof posthog.tracingSpansAttributeBreakdownCreate> extends [infer T, ...unknown[]] ? T : undefined;
649
+ type TracingSpansAttributeBreakdownCreateOutput = Awaited<ReturnType<typeof posthog.tracingSpansAttributeBreakdownCreate>>;
650
+
651
+ const result: TracingSpansAttributeBreakdownCreateOutput = await posthog.tracingSpansAttributeBreakdownCreate();
652
+
653
+ // Result shape (from schema): unknown
654
+ ```
655
+
656
+ ### `posthog.tracingSpansAttributesRetrieve`
657
+
658
+ - **HTTP**: `GET /api/projects/{project_id}/tracing/spans/attributes/`
659
+ - **OpenAPI operationId**: `tracing_spans_attributes_retrieve`
660
+ - **Path params**: None
661
+ - **Query params**: `attribute_type`, `limit`, `offset`, `search`, `search_values`
662
+ - **Response codes**: `200`
663
+ - **Transport options**: None
664
+ - **TypeScript**: [Client interface](../types.ts)
665
+
666
+ **Inputs**
667
+
668
+ - Client input type: `{ [key: string]: unknown }`
669
+ - Client transport options: None
670
+
671
+ **Outputs**
672
+
673
+ - Client return type: `{ results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }`
674
+ - OpenAPI response codes: `200`
675
+
676
+ ```ts
677
+ import posthog from "@utdk/posthog";
678
+
679
+ type TracingSpansAttributesRetrieveInput = Parameters<typeof posthog.tracingSpansAttributesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
680
+ type TracingSpansAttributesRetrieveOutput = Awaited<ReturnType<typeof posthog.tracingSpansAttributesRetrieve>>;
681
+
682
+ const result: TracingSpansAttributesRetrieveOutput = await posthog.tracingSpansAttributesRetrieve();
683
+
684
+ // Result shape (from schema): { results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }
685
+ ```
686
+
687
+ ### `posthog.tracingSpansCountCreate`
688
+
689
+ - **HTTP**: `POST /api/projects/{project_id}/tracing/spans/count/`
690
+ - **OpenAPI operationId**: `tracing_spans_count_create`
691
+ - **Path params**: None
692
+ - **Query params**: None
693
+ - **Response codes**: `200`
694
+ - **Transport options**: None
695
+ - **TypeScript**: [Client interface](../types.ts)
696
+
697
+ **Inputs**
698
+
699
+ - Client input type: `{ [key: string]: unknown }`
700
+ - Client transport options: None
701
+
702
+ **Outputs**
703
+
704
+ - Client return type: `{ count: number; traceCount: number }`
705
+ - OpenAPI response codes: `200`
706
+
707
+ ```ts
708
+ import posthog from "@utdk/posthog";
709
+
710
+ type TracingSpansCountCreateInput = Parameters<typeof posthog.tracingSpansCountCreate> extends [infer T, ...unknown[]] ? T : undefined;
711
+ type TracingSpansCountCreateOutput = Awaited<ReturnType<typeof posthog.tracingSpansCountCreate>>;
712
+
713
+ const result: TracingSpansCountCreateOutput = await posthog.tracingSpansCountCreate();
714
+
715
+ // Result shape (from schema): { count: number; traceCount: number }
716
+ ```
717
+
718
+ ### `posthog.tracingSpansDurationHistogramCreate`
719
+
720
+ - **HTTP**: `POST /api/projects/{project_id}/tracing/spans/duration-histogram/`
721
+ - **OpenAPI operationId**: `tracing_spans_duration_histogram_create`
722
+ - **Path params**: None
723
+ - **Query params**: None
724
+ - **Response codes**: `200`
725
+ - **Transport options**: None
726
+ - **TypeScript**: [Client interface](../types.ts)
727
+
728
+ **Inputs**
729
+
730
+ - Client input type: `{ [key: string]: unknown }`
731
+ - Client transport options: None
732
+
733
+ **Outputs**
734
+
735
+ - Client return type: `unknown`
736
+ - OpenAPI response codes: `200`
737
+
738
+ ```ts
739
+ import posthog from "@utdk/posthog";
740
+
741
+ type TracingSpansDurationHistogramCreateInput = Parameters<typeof posthog.tracingSpansDurationHistogramCreate> extends [infer T, ...unknown[]] ? T : undefined;
742
+ type TracingSpansDurationHistogramCreateOutput = Awaited<ReturnType<typeof posthog.tracingSpansDurationHistogramCreate>>;
743
+
744
+ const result: TracingSpansDurationHistogramCreateOutput = await posthog.tracingSpansDurationHistogramCreate();
745
+
746
+ // Result shape (from schema): unknown
747
+ ```
748
+
749
+ ### `posthog.tracingSpansHasSpansRetrieve`
750
+
751
+ - **HTTP**: `GET /api/projects/{project_id}/tracing/spans/has_spans/`
752
+ - **OpenAPI operationId**: `tracing_spans_has_spans_retrieve`
753
+ - **Path params**: None
754
+ - **Query params**: None
755
+ - **Response codes**: `200`
756
+ - **Transport options**: None
757
+ - **TypeScript**: [Client interface](../types.ts)
758
+
759
+ **Inputs**
760
+
761
+ - Client input type: `{ [key: string]: unknown }`
762
+ - Client transport options: None
763
+
764
+ **Outputs**
765
+
766
+ - Client return type: `{ hasSpans: boolean }`
767
+ - OpenAPI response codes: `200`
768
+
769
+ ```ts
770
+ import posthog from "@utdk/posthog";
771
+
772
+ type TracingSpansHasSpansRetrieveInput = Parameters<typeof posthog.tracingSpansHasSpansRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
773
+ type TracingSpansHasSpansRetrieveOutput = Awaited<ReturnType<typeof posthog.tracingSpansHasSpansRetrieve>>;
774
+
775
+ const result: TracingSpansHasSpansRetrieveOutput = await posthog.tracingSpansHasSpansRetrieve();
776
+
777
+ // Result shape (from schema): { hasSpans: boolean }
778
+ ```
779
+
780
+ ### `posthog.tracingSpansQueryCreate`
781
+
782
+ - **HTTP**: `POST /api/projects/{project_id}/tracing/spans/query/`
783
+ - **OpenAPI operationId**: `tracing_spans_query_create`
784
+ - **Path params**: None
785
+ - **Query params**: None
786
+ - **Response codes**: `200`
787
+ - **Transport options**: None
788
+ - **TypeScript**: [Client interface](../types.ts)
789
+
790
+ **Inputs**
791
+
792
+ - Client input type: `{ [key: string]: unknown }`
793
+ - Client transport options: None
794
+
795
+ **Outputs**
796
+
797
+ - Client return type: `unknown`
798
+ - OpenAPI response codes: `200`
799
+
800
+ ```ts
801
+ import posthog from "@utdk/posthog";
802
+
803
+ type TracingSpansQueryCreateInput = Parameters<typeof posthog.tracingSpansQueryCreate> extends [infer T, ...unknown[]] ? T : undefined;
804
+ type TracingSpansQueryCreateOutput = Awaited<ReturnType<typeof posthog.tracingSpansQueryCreate>>;
805
+
806
+ const result: TracingSpansQueryCreateOutput = await posthog.tracingSpansQueryCreate();
807
+
808
+ // Result shape (from schema): unknown
809
+ ```
810
+
811
+ ### `posthog.tracingSpansServiceNamesRetrieve`
812
+
813
+ - **HTTP**: `GET /api/projects/{project_id}/tracing/spans/service-names/`
814
+ - **OpenAPI operationId**: `tracing_spans_service_names_retrieve`
815
+ - **Path params**: None
816
+ - **Query params**: `dateRange`, `search`
817
+ - **Response codes**: `200`
818
+ - **Transport options**: None
819
+ - **TypeScript**: [Client interface](../types.ts)
820
+
821
+ **Inputs**
822
+
823
+ - Client input type: `{ [key: string]: unknown }`
824
+ - Client transport options: None
825
+
826
+ **Outputs**
827
+
828
+ - Client return type: `unknown`
829
+ - OpenAPI response codes: `200`
830
+
831
+ ```ts
832
+ import posthog from "@utdk/posthog";
833
+
834
+ type TracingSpansServiceNamesRetrieveInput = Parameters<typeof posthog.tracingSpansServiceNamesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
835
+ type TracingSpansServiceNamesRetrieveOutput = Awaited<ReturnType<typeof posthog.tracingSpansServiceNamesRetrieve>>;
836
+
837
+ const result: TracingSpansServiceNamesRetrieveOutput = await posthog.tracingSpansServiceNamesRetrieve();
838
+
839
+ // Result shape (from schema): unknown
840
+ ```
841
+
842
+ ### `posthog.tracingSpansSparklineCreate`
843
+
844
+ - **HTTP**: `POST /api/projects/{project_id}/tracing/spans/sparkline/`
845
+ - **OpenAPI operationId**: `tracing_spans_sparkline_create`
846
+ - **Path params**: None
847
+ - **Query params**: None
848
+ - **Response codes**: `200`
849
+ - **Transport options**: None
850
+ - **TypeScript**: [Client interface](../types.ts)
851
+
852
+ **Inputs**
853
+
854
+ - Client input type: `{ [key: string]: unknown }`
855
+ - Client transport options: None
856
+
857
+ **Outputs**
858
+
859
+ - Client return type: `unknown`
860
+ - OpenAPI response codes: `200`
861
+
862
+ ```ts
863
+ import posthog from "@utdk/posthog";
864
+
865
+ type TracingSpansSparklineCreateInput = Parameters<typeof posthog.tracingSpansSparklineCreate> extends [infer T, ...unknown[]] ? T : undefined;
866
+ type TracingSpansSparklineCreateOutput = Awaited<ReturnType<typeof posthog.tracingSpansSparklineCreate>>;
867
+
868
+ const result: TracingSpansSparklineCreateOutput = await posthog.tracingSpansSparklineCreate();
869
+
870
+ // Result shape (from schema): unknown
871
+ ```
872
+
873
+ ### `posthog.tracingSpansSymbolStatsCreate`
874
+
875
+ - **HTTP**: `POST /api/projects/{project_id}/tracing/spans/symbol-stats/`
876
+ - **OpenAPI operationId**: `tracing_spans_symbol_stats_create`
877
+ - **Path params**: None
878
+ - **Query params**: None
879
+ - **Response codes**: `200`
880
+ - **Transport options**: None
881
+ - **TypeScript**: [Client interface](../types.ts)
882
+
883
+ **Inputs**
884
+
885
+ - Client input type: `{ [key: string]: unknown }`
886
+ - Client transport options: None
887
+
888
+ **Outputs**
889
+
890
+ - Client return type: `{ results: ({ count: number; error_count: number; sum_duration_nano: number; p50_duration_nano: number; p95_duration_nano: number; p99_duration_nano: number; busy_count: number; p50_busy_nano: number; p95_busy_nano: num...`
891
+ - OpenAPI response codes: `200`
892
+
893
+ ```ts
894
+ import posthog from "@utdk/posthog";
895
+
896
+ type TracingSpansSymbolStatsCreateInput = Parameters<typeof posthog.tracingSpansSymbolStatsCreate> extends [infer T, ...unknown[]] ? T : undefined;
897
+ type TracingSpansSymbolStatsCreateOutput = Awaited<ReturnType<typeof posthog.tracingSpansSymbolStatsCreate>>;
898
+
899
+ const result: TracingSpansSymbolStatsCreateOutput = await posthog.tracingSpansSymbolStatsCreate();
900
+
901
+ // Result shape (from schema): { results: ({ count: number; error_count: number; sum_duration_nano: number; p50_duration_nano: number; p95_duration_nano: number; p99_duration_nano: number; busy_count: number; p50_busy_nano: number; p95_busy_nano: num...
902
+ ```
903
+
904
+ ### `posthog.tracingSpansTraceCreate`
905
+
906
+ - **HTTP**: `POST /api/projects/{project_id}/tracing/spans/trace/{trace_id}/`
907
+ - **OpenAPI operationId**: `tracing_spans_trace_create`
908
+ - **Path params**: `trace_id`
909
+ - **Query params**: None
910
+ - **Response codes**: `200`
911
+ - **Transport options**: None
912
+ - **TypeScript**: [Client interface](../types.ts)
913
+
914
+ **Inputs**
915
+
916
+ - Client input type: `{ [key: string]: unknown }`
917
+ - Client transport options: None
918
+
919
+ **Outputs**
920
+
921
+ - Client return type: `unknown`
922
+ - OpenAPI response codes: `200`
923
+
924
+ ```ts
925
+ import posthog from "@utdk/posthog";
926
+
927
+ type TracingSpansTraceCreateInput = Parameters<typeof posthog.tracingSpansTraceCreate> extends [infer T, ...unknown[]] ? T : undefined;
928
+ type TracingSpansTraceCreateOutput = Awaited<ReturnType<typeof posthog.tracingSpansTraceCreate>>;
929
+
930
+ const result: TracingSpansTraceCreateOutput = await posthog.tracingSpansTraceCreate();
931
+
932
+ // Result shape (from schema): unknown
933
+ ```
934
+
935
+ ### `posthog.tracingSpansTreeCreate`
936
+
937
+ - **HTTP**: `POST /api/projects/{project_id}/tracing/spans/tree/`
938
+ - **OpenAPI operationId**: `tracing_spans_tree_create`
939
+ - **Path params**: None
940
+ - **Query params**: None
941
+ - **Response codes**: `200`
942
+ - **Transport options**: None
943
+ - **TypeScript**: [Client interface](../types.ts)
944
+
945
+ **Inputs**
946
+
947
+ - Client input type: `{ [key: string]: unknown }`
948
+ - Client transport options: None
949
+
950
+ **Outputs**
951
+
952
+ - Client return type: `unknown`
953
+ - OpenAPI response codes: `200`
954
+
955
+ ```ts
956
+ import posthog from "@utdk/posthog";
957
+
958
+ type TracingSpansTreeCreateInput = Parameters<typeof posthog.tracingSpansTreeCreate> extends [infer T, ...unknown[]] ? T : undefined;
959
+ type TracingSpansTreeCreateOutput = Awaited<ReturnType<typeof posthog.tracingSpansTreeCreate>>;
960
+
961
+ const result: TracingSpansTreeCreateOutput = await posthog.tracingSpansTreeCreate();
962
+
963
+ // Result shape (from schema): unknown
964
+ ```
965
+
966
+ ### `posthog.tracingSpansValuesRetrieve`
967
+
968
+ - **HTTP**: `GET /api/projects/{project_id}/tracing/spans/values/`
969
+ - **OpenAPI operationId**: `tracing_spans_values_retrieve`
970
+ - **Path params**: None
971
+ - **Query params**: `attribute_type`, `key`, `limit`, `offset`, `value`
972
+ - **Response codes**: `200`
973
+ - **Transport options**: None
974
+ - **TypeScript**: [Client interface](../types.ts)
975
+
976
+ **Inputs**
977
+
978
+ - Client input type: `{ [key: string]: unknown }`
979
+ - Client transport options: None
980
+
981
+ **Outputs**
982
+
983
+ - Client return type: `unknown`
984
+ - OpenAPI response codes: `200`
985
+
986
+ ```ts
987
+ import posthog from "@utdk/posthog";
988
+
989
+ type TracingSpansValuesRetrieveInput = Parameters<typeof posthog.tracingSpansValuesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
990
+ type TracingSpansValuesRetrieveOutput = Awaited<ReturnType<typeof posthog.tracingSpansValuesRetrieve>>;
991
+
992
+ const result: TracingSpansValuesRetrieveOutput = await posthog.tracingSpansValuesRetrieve();
993
+
994
+ // Result shape (from schema): unknown
995
+ ```
996
+
997
+ ### `posthog.tracingViewsList`
998
+
999
+ - **HTTP**: `GET /api/projects/{project_id}/tracing/views/`
1000
+ - **OpenAPI operationId**: `tracing_views_list`
1001
+ - **Path params**: None
1002
+ - **Query params**: `limit`, `offset`
1003
+ - **Response codes**: `200`
1004
+ - **Transport options**: None
1005
+ - **TypeScript**: [Client interface](../types.ts)
1006
+
1007
+ **Inputs**
1008
+
1009
+ - Client input type: `{ [key: string]: unknown }`
1010
+ - Client transport options: None
1011
+
1012
+ **Outputs**
1013
+
1014
+ - Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: numb...`
1015
+ - OpenAPI response codes: `200`
1016
+
1017
+ ```ts
1018
+ import posthog from "@utdk/posthog";
1019
+
1020
+ type TracingViewsListInput = Parameters<typeof posthog.tracingViewsList> extends [infer T, ...unknown[]] ? T : undefined;
1021
+ type TracingViewsListOutput = Awaited<ReturnType<typeof posthog.tracingViewsList>>;
1022
+
1023
+ const result: TracingViewsListOutput = await posthog.tracingViewsList();
1024
+
1025
+ // Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: numb...
1026
+ ```
1027
+
1028
+ ### `posthog.tracingViewsCreate`
1029
+
1030
+ - **HTTP**: `POST /api/projects/{project_id}/tracing/views/`
1031
+ - **OpenAPI operationId**: `tracing_views_create`
1032
+ - **Path params**: None
1033
+ - **Query params**: None
1034
+ - **Response codes**: `201`
1035
+ - **Transport options**: None
1036
+ - **TypeScript**: [Client interface](../types.ts)
1037
+
1038
+ **Inputs**
1039
+
1040
+ - Client input type: `{ [key: string]: unknown }`
1041
+ - Client transport options: None
1042
+
1043
+ **Outputs**
1044
+
1045
+ - Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
1046
+ - OpenAPI response codes: `201`
1047
+
1048
+ ```ts
1049
+ import posthog from "@utdk/posthog";
1050
+
1051
+ type TracingViewsCreateInput = Parameters<typeof posthog.tracingViewsCreate> extends [infer T, ...unknown[]] ? T : undefined;
1052
+ type TracingViewsCreateOutput = Awaited<ReturnType<typeof posthog.tracingViewsCreate>>;
1053
+
1054
+ const result: TracingViewsCreateOutput = await posthog.tracingViewsCreate();
1055
+
1056
+ // Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
1057
+ ```
1058
+
1059
+ ### `posthog.tracingViewsDestroy`
1060
+
1061
+ - **HTTP**: `DELETE /api/projects/{project_id}/tracing/views/{short_id}/`
1062
+ - **OpenAPI operationId**: `tracing_views_destroy`
1063
+ - **Path params**: `short_id`
1064
+ - **Query params**: None
1065
+ - **Response codes**: `204`
1066
+ - **Transport options**: None
1067
+ - **TypeScript**: [Client interface](../types.ts)
1068
+
1069
+ **Inputs**
1070
+
1071
+ - Client input type: `{ [key: string]: unknown }`
1072
+ - Client transport options: None
1073
+
1074
+ **Outputs**
1075
+
1076
+ - Client return type: `unknown`
1077
+ - OpenAPI response codes: `204`
1078
+
1079
+ ```ts
1080
+ import posthog from "@utdk/posthog";
1081
+
1082
+ type TracingViewsDestroyInput = Parameters<typeof posthog.tracingViewsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
1083
+ type TracingViewsDestroyOutput = Awaited<ReturnType<typeof posthog.tracingViewsDestroy>>;
1084
+
1085
+ const result: TracingViewsDestroyOutput = await posthog.tracingViewsDestroy();
1086
+
1087
+ // Result shape (from schema): unknown
1088
+ ```
1089
+
1090
+ ### `posthog.tracingViewsRetrieve`
1091
+
1092
+ - **HTTP**: `GET /api/projects/{project_id}/tracing/views/{short_id}/`
1093
+ - **OpenAPI operationId**: `tracing_views_retrieve`
1094
+ - **Path params**: `short_id`
1095
+ - **Query params**: None
1096
+ - **Response codes**: `200`
1097
+ - **Transport options**: None
1098
+ - **TypeScript**: [Client interface](../types.ts)
1099
+
1100
+ **Inputs**
1101
+
1102
+ - Client input type: `{ [key: string]: unknown }`
1103
+ - Client transport options: None
1104
+
1105
+ **Outputs**
1106
+
1107
+ - Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
1108
+ - OpenAPI response codes: `200`
1109
+
1110
+ ```ts
1111
+ import posthog from "@utdk/posthog";
1112
+
1113
+ type TracingViewsRetrieveInput = Parameters<typeof posthog.tracingViewsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
1114
+ type TracingViewsRetrieveOutput = Awaited<ReturnType<typeof posthog.tracingViewsRetrieve>>;
1115
+
1116
+ const result: TracingViewsRetrieveOutput = await posthog.tracingViewsRetrieve();
1117
+
1118
+ // Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
1119
+ ```
1120
+
1121
+ ### `posthog.tracingViewsPartialUpdate`
1122
+
1123
+ - **HTTP**: `PATCH /api/projects/{project_id}/tracing/views/{short_id}/`
1124
+ - **OpenAPI operationId**: `tracing_views_partial_update`
1125
+ - **Path params**: `short_id`
1126
+ - **Query params**: None
1127
+ - **Response codes**: `200`
1128
+ - **Transport options**: None
1129
+ - **TypeScript**: [Client interface](../types.ts)
1130
+
1131
+ **Inputs**
1132
+
1133
+ - Client input type: `{ [key: string]: unknown }`
1134
+ - Client transport options: None
1135
+
1136
+ **Outputs**
1137
+
1138
+ - Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
1139
+ - OpenAPI response codes: `200`
1140
+
1141
+ ```ts
1142
+ import posthog from "@utdk/posthog";
1143
+
1144
+ type TracingViewsPartialUpdateInput = Parameters<typeof posthog.tracingViewsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
1145
+ type TracingViewsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.tracingViewsPartialUpdate>>;
1146
+
1147
+ const result: TracingViewsPartialUpdateOutput = await posthog.tracingViewsPartialUpdate();
1148
+
1149
+ // Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
1150
+ ```
1151
+
1152
+ ### `posthog.tracingViewsUpdate`
1153
+
1154
+ - **HTTP**: `PUT /api/projects/{project_id}/tracing/views/{short_id}/`
1155
+ - **OpenAPI operationId**: `tracing_views_update`
1156
+ - **Path params**: `short_id`
1157
+ - **Query params**: None
1158
+ - **Response codes**: `200`
1159
+ - **Transport options**: None
1160
+ - **TypeScript**: [Client interface](../types.ts)
1161
+
1162
+ **Inputs**
1163
+
1164
+ - Client input type: `{ [key: string]: unknown }`
1165
+ - Client transport options: None
1166
+
1167
+ **Outputs**
1168
+
1169
+ - Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
1170
+ - OpenAPI response codes: `200`
1171
+
1172
+ ```ts
1173
+ import posthog from "@utdk/posthog";
1174
+
1175
+ type TracingViewsUpdateInput = Parameters<typeof posthog.tracingViewsUpdate> extends [infer T, ...unknown[]] ? T : undefined;
1176
+ type TracingViewsUpdateOutput = Awaited<ReturnType<typeof posthog.tracingViewsUpdate>>;
1177
+
1178
+ const result: TracingViewsUpdateOutput = await posthog.tracingViewsUpdate();
1179
+
1180
+ // Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
1181
+ ```
1182
+
1183
+
1184
+ <!-- prompt-hash:
1185
+ 8c3694991a4c289225f05a4e8f1e098cc74d085a088d7dffd82f00d93797b7f8
1186
+ -->