@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.
- package/LICENSE +373 -0
- package/README.md +172 -0
- package/docs/account_relationship_definitions.md +194 -0
- package/docs/accounts.md +380 -0
- package/docs/actions.md +274 -0
- package/docs/activity_logs.md +144 -0
- package/docs/advanced_activity_logs.md +101 -0
- package/docs/agent_platform.md +2525 -0
- package/docs/ai-observability.md +514 -0
- package/docs/alerts.md +444 -0
- package/docs/annotations.md +200 -0
- package/docs/batch_exports.md +2118 -0
- package/docs/business_knowledge.md +468 -0
- package/docs/code-invites.md +72 -0
- package/docs/cohorts.md +412 -0
- package/docs/comments.md +321 -0
- package/docs/conversations.md +695 -0
- package/docs/custom_property_definitions.md +442 -0
- package/docs/custom_property_sources.md +194 -0
- package/docs/customer_analytics.md +442 -0
- package/docs/customer_journeys.md +380 -0
- package/docs/customer_profile_configs.md +380 -0
- package/docs/dashboard_templates.md +258 -0
- package/docs/dashboards.md +1896 -0
- package/docs/data_color_themes.md +380 -0
- package/docs/data_modeling_jobs.md +264 -0
- package/docs/data_warehouse.md +928 -0
- package/docs/dataset_items.md +382 -0
- package/docs/datasets.md +382 -0
- package/docs/desktop_file_system.md +753 -0
- package/docs/desktop_file_system_shortcut.md +244 -0
- package/docs/docs.md +72 -0
- package/docs/early_access_feature.md +194 -0
- package/docs/elements.md +510 -0
- package/docs/endpoints.md +1030 -0
- package/docs/engineering_analytics.md +712 -0
- package/docs/environments.md +881 -0
- package/docs/error_tracking.md +5108 -0
- package/docs/evaluation_runs.md +78 -0
- package/docs/evaluations.md +446 -0
- package/docs/event_definitions.md +425 -0
- package/docs/event_filter.md +280 -0
- package/docs/event_schemas.md +163 -0
- package/docs/events.md +208 -0
- package/docs/experiment_holdouts.md +194 -0
- package/docs/experiment_saved_metrics.md +194 -0
- package/docs/experiments.md +1088 -0
- package/docs/exports.md +256 -0
- package/docs/external_data_schemas.md +752 -0
- package/docs/external_data_sources.md +2296 -0
- package/docs/feature_flags.md +808 -0
- package/docs/field_notes.md +206 -0
- package/docs/file_system.md +880 -0
- package/docs/file_system_shortcut.md +444 -0
- package/docs/flag_value.md +46 -0
- package/docs/groups.md +514 -0
- package/docs/groups_types.md +349 -0
- package/docs/health_issues.md +386 -0
- package/docs/heatmap_screenshots.md +72 -0
- package/docs/heatmaps.md +136 -0
- package/docs/hog_flows.md +1576 -0
- package/docs/hog_function_templates.md +101 -0
- package/docs/hog_functions.md +974 -0
- package/docs/ingestion_warnings_v2.md +40 -0
- package/docs/insight_variables.md +380 -0
- package/docs/insights.md +1722 -0
- package/docs/integrations.md +1954 -0
- package/docs/js-snippet.md +104 -0
- package/docs/live_debugger_breakpoints.md +264 -0
- package/docs/llm_analytics.md +3373 -0
- package/docs/llm_prompts.md +442 -0
- package/docs/llm_skills.md +952 -0
- package/docs/logs.md +2446 -0
- package/docs/managed_viewsets.md +140 -0
- package/docs/marketing_analytics.md +518 -0
- package/docs/max.md +772 -0
- package/docs/max_tools.md +70 -0
- package/docs/mcp_analytics.md +712 -0
- package/docs/mcp_server_installations.md +970 -0
- package/docs/mcp_servers.md +78 -0
- package/docs/mcp_tools.md +82 -0
- package/docs/messaging_templates.md +444 -0
- package/docs/metrics.md +462 -0
- package/docs/notebooks.md +838 -0
- package/docs/object_media_previews.md +228 -0
- package/docs/organizations.md +2958 -0
- package/docs/persons.md +1514 -0
- package/docs/platform_features.md +700 -0
- package/docs/plugin_configs.md +70 -0
- package/docs/product_enablement.md +39 -0
- package/docs/product_tours.md +357 -0
- package/docs/project_secret_api_keys.md +444 -0
- package/docs/property_access_controls.md +200 -0
- package/docs/property_definitions.md +244 -0
- package/docs/query.md +560 -0
- package/docs/quota_limits.md +40 -0
- package/docs/reminders.md +194 -0
- package/docs/replay.md +1020 -0
- package/docs/reverse_proxy.md +200 -0
- package/docs/sandbox-custom-images.md +209 -0
- package/docs/sandbox-environments.md +168 -0
- package/docs/saved.md +392 -0
- package/docs/saved_query_column_annotations.md +224 -0
- package/docs/scheduled_changes.md +200 -0
- package/docs/schema_property_groups.md +194 -0
- package/docs/sdk_health.md +40 -0
- package/docs/session_group_summaries.md +200 -0
- package/docs/session_recordings.md +260 -0
- package/docs/session_summaries.md +200 -0
- package/docs/sessions.md +132 -0
- package/docs/signals.md +1428 -0
- package/docs/single_session_summaries.md +72 -0
- package/docs/streamlit_apps.md +456 -0
- package/docs/subscriptions.md +634 -0
- package/docs/surveys.md +731 -0
- package/docs/taggers.md +446 -0
- package/docs/task-automations.md +200 -0
- package/docs/task-runs.md +654 -0
- package/docs/task_channels.md +136 -0
- package/docs/task_mentions.md +40 -0
- package/docs/tasks.md +776 -0
- package/docs/tracing.md +1186 -0
- package/docs/uploaded_media.md +44 -0
- package/docs/user_home_settings.md +72 -0
- package/docs/user_interview_topics.md +1288 -0
- package/docs/user_interviews.md +444 -0
- package/docs/users.md +1267 -0
- package/docs/vision.md +2022 -0
- package/docs/visual_review.md +816 -0
- package/docs/warehouse_column_annotations.md +224 -0
- package/docs/warehouse_column_statistics.md +80 -0
- package/docs/warehouse_dag.md +40 -0
- package/docs/warehouse_model_paths.md +70 -0
- package/docs/warehouse_saved_queries.md +1056 -0
- package/docs/warehouse_saved_query_folders.md +318 -0
- package/docs/warehouse_tables.md +584 -0
- package/docs/warehouse_view_link.md +456 -0
- package/docs/warehouse_view_links.md +456 -0
- package/docs/web_analytics.md +136 -0
- package/docs/web_analytics_achievements.md +200 -0
- package/docs/web_experiments.md +194 -0
- package/docs/web_vitals.md +74 -0
- package/docs/wizard.md +170 -0
- package/index.ts +22 -0
- package/metadata.ts +41419 -0
- package/openapi.json +297382 -0
- package/overlay.yaml +23 -0
- package/package.json +34 -0
- package/provenance.json +24 -0
- package/research.json +80 -0
- package/types/index.ts +17547 -0
|
@@ -0,0 +1,3373 @@
|
|
|
1
|
+
# Llm Analytics
|
|
2
|
+
|
|
3
|
+
## Operations
|
|
4
|
+
|
|
5
|
+
### `posthog.environmentsLlmAnalyticsClusteringConfigList`
|
|
6
|
+
|
|
7
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/clustering_config/`
|
|
8
|
+
- **What it does**: Team-level clustering configuration (event filters for automated pipelines).
|
|
9
|
+
- **OpenAPI operationId**: `environments_llm_analytics_clustering_config_list`
|
|
10
|
+
- **Path params**: None
|
|
11
|
+
- **Query params**: None
|
|
12
|
+
- **Response codes**: `200`
|
|
13
|
+
- **Transport options**: None
|
|
14
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
15
|
+
|
|
16
|
+
**Inputs**
|
|
17
|
+
|
|
18
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
19
|
+
- Client transport options: None
|
|
20
|
+
|
|
21
|
+
**Outputs**
|
|
22
|
+
|
|
23
|
+
- Client return type: `{ event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }`
|
|
24
|
+
- OpenAPI response codes: `200`
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import posthog from "@utdk/posthog";
|
|
28
|
+
|
|
29
|
+
type EnvironmentsLlmAnalyticsClusteringConfigListInput = Parameters<typeof posthog.environmentsLlmAnalyticsClusteringConfigList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
30
|
+
type EnvironmentsLlmAnalyticsClusteringConfigListOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsClusteringConfigList>>;
|
|
31
|
+
|
|
32
|
+
const result: EnvironmentsLlmAnalyticsClusteringConfigListOutput = await posthog.environmentsLlmAnalyticsClusteringConfigList();
|
|
33
|
+
|
|
34
|
+
// Result shape (from schema): { event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### `posthog.environmentsLlmAnalyticsClusteringConfigSetEventFiltersCreate`
|
|
38
|
+
|
|
39
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/clustering_config/set_event_filters/`
|
|
40
|
+
- **What it does**: Team-level clustering configuration (event filters for automated pipelines).
|
|
41
|
+
- **OpenAPI operationId**: `environments_llm_analytics_clustering_config_set_event_filters_create`
|
|
42
|
+
- **Path params**: None
|
|
43
|
+
- **Query params**: None
|
|
44
|
+
- **Response codes**: `200`
|
|
45
|
+
- **Transport options**: None
|
|
46
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
47
|
+
|
|
48
|
+
**Inputs**
|
|
49
|
+
|
|
50
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
51
|
+
- Client transport options: None
|
|
52
|
+
|
|
53
|
+
**Outputs**
|
|
54
|
+
|
|
55
|
+
- Client return type: `{ event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }`
|
|
56
|
+
- OpenAPI response codes: `200`
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
import posthog from "@utdk/posthog";
|
|
60
|
+
|
|
61
|
+
type EnvironmentsLlmAnalyticsClusteringConfigSetEventFiltersCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsClusteringConfigSetEventFiltersCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
62
|
+
type EnvironmentsLlmAnalyticsClusteringConfigSetEventFiltersCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsClusteringConfigSetEventFiltersCreate>>;
|
|
63
|
+
|
|
64
|
+
const result: EnvironmentsLlmAnalyticsClusteringConfigSetEventFiltersCreateOutput = await posthog.environmentsLlmAnalyticsClusteringConfigSetEventFiltersCreate();
|
|
65
|
+
|
|
66
|
+
// Result shape (from schema): { event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### `posthog.environmentsLlmAnalyticsClusteringJobsList`
|
|
70
|
+
|
|
71
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/clustering_jobs/`
|
|
72
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
73
|
+
- **OpenAPI operationId**: `environments_llm_analytics_clustering_jobs_list`
|
|
74
|
+
- **Path params**: None
|
|
75
|
+
- **Query params**: `limit`, `offset`
|
|
76
|
+
- **Response codes**: `200`
|
|
77
|
+
- **Transport options**: None
|
|
78
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
79
|
+
|
|
80
|
+
**Inputs**
|
|
81
|
+
|
|
82
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
83
|
+
- Client transport options: None
|
|
84
|
+
|
|
85
|
+
**Outputs**
|
|
86
|
+
|
|
87
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: strin...`
|
|
88
|
+
- OpenAPI response codes: `200`
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
import posthog from "@utdk/posthog";
|
|
92
|
+
|
|
93
|
+
type EnvironmentsLlmAnalyticsClusteringJobsListInput = Parameters<typeof posthog.environmentsLlmAnalyticsClusteringJobsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
94
|
+
type EnvironmentsLlmAnalyticsClusteringJobsListOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsClusteringJobsList>>;
|
|
95
|
+
|
|
96
|
+
const result: EnvironmentsLlmAnalyticsClusteringJobsListOutput = await posthog.environmentsLlmAnalyticsClusteringJobsList();
|
|
97
|
+
|
|
98
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: strin...
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### `posthog.environmentsLlmAnalyticsClusteringJobsCreate`
|
|
102
|
+
|
|
103
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/clustering_jobs/`
|
|
104
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
105
|
+
- **OpenAPI operationId**: `environments_llm_analytics_clustering_jobs_create`
|
|
106
|
+
- **Path params**: None
|
|
107
|
+
- **Query params**: None
|
|
108
|
+
- **Response codes**: `201`
|
|
109
|
+
- **Transport options**: None
|
|
110
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
111
|
+
|
|
112
|
+
**Inputs**
|
|
113
|
+
|
|
114
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
115
|
+
- Client transport options: None
|
|
116
|
+
|
|
117
|
+
**Outputs**
|
|
118
|
+
|
|
119
|
+
- Client return type: `{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }`
|
|
120
|
+
- OpenAPI response codes: `201`
|
|
121
|
+
|
|
122
|
+
```ts
|
|
123
|
+
import posthog from "@utdk/posthog";
|
|
124
|
+
|
|
125
|
+
type EnvironmentsLlmAnalyticsClusteringJobsCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsClusteringJobsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
126
|
+
type EnvironmentsLlmAnalyticsClusteringJobsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsClusteringJobsCreate>>;
|
|
127
|
+
|
|
128
|
+
const result: EnvironmentsLlmAnalyticsClusteringJobsCreateOutput = await posthog.environmentsLlmAnalyticsClusteringJobsCreate();
|
|
129
|
+
|
|
130
|
+
// Result shape (from schema): { id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### `posthog.environmentsLlmAnalyticsClusteringJobsDestroy`
|
|
134
|
+
|
|
135
|
+
- **HTTP**: `DELETE /api/environments/{environment_id}/llm_analytics/clustering_jobs/{id}/`
|
|
136
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
137
|
+
- **OpenAPI operationId**: `environments_llm_analytics_clustering_jobs_destroy`
|
|
138
|
+
- **Path params**: `id`
|
|
139
|
+
- **Query params**: None
|
|
140
|
+
- **Response codes**: `204`
|
|
141
|
+
- **Transport options**: None
|
|
142
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
143
|
+
|
|
144
|
+
**Inputs**
|
|
145
|
+
|
|
146
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
147
|
+
- Client transport options: None
|
|
148
|
+
|
|
149
|
+
**Outputs**
|
|
150
|
+
|
|
151
|
+
- Client return type: `unknown`
|
|
152
|
+
- OpenAPI response codes: `204`
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
import posthog from "@utdk/posthog";
|
|
156
|
+
|
|
157
|
+
type EnvironmentsLlmAnalyticsClusteringJobsDestroyInput = Parameters<typeof posthog.environmentsLlmAnalyticsClusteringJobsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
158
|
+
type EnvironmentsLlmAnalyticsClusteringJobsDestroyOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsClusteringJobsDestroy>>;
|
|
159
|
+
|
|
160
|
+
const result: EnvironmentsLlmAnalyticsClusteringJobsDestroyOutput = await posthog.environmentsLlmAnalyticsClusteringJobsDestroy();
|
|
161
|
+
|
|
162
|
+
// Result shape (from schema): unknown
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### `posthog.environmentsLlmAnalyticsClusteringJobsRetrieve`
|
|
166
|
+
|
|
167
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/clustering_jobs/{id}/`
|
|
168
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
169
|
+
- **OpenAPI operationId**: `environments_llm_analytics_clustering_jobs_retrieve`
|
|
170
|
+
- **Path params**: `id`
|
|
171
|
+
- **Query params**: None
|
|
172
|
+
- **Response codes**: `200`
|
|
173
|
+
- **Transport options**: None
|
|
174
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
175
|
+
|
|
176
|
+
**Inputs**
|
|
177
|
+
|
|
178
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
179
|
+
- Client transport options: None
|
|
180
|
+
|
|
181
|
+
**Outputs**
|
|
182
|
+
|
|
183
|
+
- Client return type: `{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }`
|
|
184
|
+
- OpenAPI response codes: `200`
|
|
185
|
+
|
|
186
|
+
```ts
|
|
187
|
+
import posthog from "@utdk/posthog";
|
|
188
|
+
|
|
189
|
+
type EnvironmentsLlmAnalyticsClusteringJobsRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsClusteringJobsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
190
|
+
type EnvironmentsLlmAnalyticsClusteringJobsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsClusteringJobsRetrieve>>;
|
|
191
|
+
|
|
192
|
+
const result: EnvironmentsLlmAnalyticsClusteringJobsRetrieveOutput = await posthog.environmentsLlmAnalyticsClusteringJobsRetrieve();
|
|
193
|
+
|
|
194
|
+
// Result shape (from schema): { id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### `posthog.environmentsLlmAnalyticsClusteringJobsPartialUpdate`
|
|
198
|
+
|
|
199
|
+
- **HTTP**: `PATCH /api/environments/{environment_id}/llm_analytics/clustering_jobs/{id}/`
|
|
200
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
201
|
+
- **OpenAPI operationId**: `environments_llm_analytics_clustering_jobs_partial_update`
|
|
202
|
+
- **Path params**: `id`
|
|
203
|
+
- **Query params**: None
|
|
204
|
+
- **Response codes**: `200`
|
|
205
|
+
- **Transport options**: None
|
|
206
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
207
|
+
|
|
208
|
+
**Inputs**
|
|
209
|
+
|
|
210
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
211
|
+
- Client transport options: None
|
|
212
|
+
|
|
213
|
+
**Outputs**
|
|
214
|
+
|
|
215
|
+
- Client return type: `{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }`
|
|
216
|
+
- OpenAPI response codes: `200`
|
|
217
|
+
|
|
218
|
+
```ts
|
|
219
|
+
import posthog from "@utdk/posthog";
|
|
220
|
+
|
|
221
|
+
type EnvironmentsLlmAnalyticsClusteringJobsPartialUpdateInput = Parameters<typeof posthog.environmentsLlmAnalyticsClusteringJobsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
222
|
+
type EnvironmentsLlmAnalyticsClusteringJobsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsClusteringJobsPartialUpdate>>;
|
|
223
|
+
|
|
224
|
+
const result: EnvironmentsLlmAnalyticsClusteringJobsPartialUpdateOutput = await posthog.environmentsLlmAnalyticsClusteringJobsPartialUpdate();
|
|
225
|
+
|
|
226
|
+
// Result shape (from schema): { id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### `posthog.environmentsLlmAnalyticsClusteringJobsUpdate`
|
|
230
|
+
|
|
231
|
+
- **HTTP**: `PUT /api/environments/{environment_id}/llm_analytics/clustering_jobs/{id}/`
|
|
232
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
233
|
+
- **OpenAPI operationId**: `environments_llm_analytics_clustering_jobs_update`
|
|
234
|
+
- **Path params**: `id`
|
|
235
|
+
- **Query params**: None
|
|
236
|
+
- **Response codes**: `200`
|
|
237
|
+
- **Transport options**: None
|
|
238
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
239
|
+
|
|
240
|
+
**Inputs**
|
|
241
|
+
|
|
242
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
243
|
+
- Client transport options: None
|
|
244
|
+
|
|
245
|
+
**Outputs**
|
|
246
|
+
|
|
247
|
+
- Client return type: `{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }`
|
|
248
|
+
- OpenAPI response codes: `200`
|
|
249
|
+
|
|
250
|
+
```ts
|
|
251
|
+
import posthog from "@utdk/posthog";
|
|
252
|
+
|
|
253
|
+
type EnvironmentsLlmAnalyticsClusteringJobsUpdateInput = Parameters<typeof posthog.environmentsLlmAnalyticsClusteringJobsUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
254
|
+
type EnvironmentsLlmAnalyticsClusteringJobsUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsClusteringJobsUpdate>>;
|
|
255
|
+
|
|
256
|
+
const result: EnvironmentsLlmAnalyticsClusteringJobsUpdateOutput = await posthog.environmentsLlmAnalyticsClusteringJobsUpdate();
|
|
257
|
+
|
|
258
|
+
// Result shape (from schema): { id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### `posthog.environmentsLlmAnalyticsEvaluationConfigRetrieve`
|
|
262
|
+
|
|
263
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/evaluation_config/`
|
|
264
|
+
- **What it does**: Get the evaluation config for this team
|
|
265
|
+
- **OpenAPI operationId**: `environments_llm_analytics_evaluation_config_retrieve`
|
|
266
|
+
- **Path params**: None
|
|
267
|
+
- **Query params**: None
|
|
268
|
+
- **Response codes**: `200`
|
|
269
|
+
- **Transport options**: None
|
|
270
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
271
|
+
|
|
272
|
+
**Inputs**
|
|
273
|
+
|
|
274
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
275
|
+
- Client transport options: None
|
|
276
|
+
|
|
277
|
+
**Outputs**
|
|
278
|
+
|
|
279
|
+
- Client return type: `{ trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "g...`
|
|
280
|
+
- OpenAPI response codes: `200`
|
|
281
|
+
|
|
282
|
+
```ts
|
|
283
|
+
import posthog from "@utdk/posthog";
|
|
284
|
+
|
|
285
|
+
type EnvironmentsLlmAnalyticsEvaluationConfigRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsEvaluationConfigRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
286
|
+
type EnvironmentsLlmAnalyticsEvaluationConfigRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsEvaluationConfigRetrieve>>;
|
|
287
|
+
|
|
288
|
+
const result: EnvironmentsLlmAnalyticsEvaluationConfigRetrieveOutput = await posthog.environmentsLlmAnalyticsEvaluationConfigRetrieve();
|
|
289
|
+
|
|
290
|
+
// Result shape (from schema): { trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "g...
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### `posthog.environmentsLlmAnalyticsEvaluationConfigSetActiveKeyCreate`
|
|
294
|
+
|
|
295
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/evaluation_config/set_active_key/`
|
|
296
|
+
- **What it does**: Set the active provider key for evaluations
|
|
297
|
+
- **OpenAPI operationId**: `environments_llm_analytics_evaluation_config_set_active_key_create`
|
|
298
|
+
- **Path params**: None
|
|
299
|
+
- **Query params**: None
|
|
300
|
+
- **Response codes**: `200`
|
|
301
|
+
- **Transport options**: None
|
|
302
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
303
|
+
|
|
304
|
+
**Inputs**
|
|
305
|
+
|
|
306
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
307
|
+
- Client transport options: None
|
|
308
|
+
|
|
309
|
+
**Outputs**
|
|
310
|
+
|
|
311
|
+
- Client return type: `{ trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "g...`
|
|
312
|
+
- OpenAPI response codes: `200`
|
|
313
|
+
|
|
314
|
+
```ts
|
|
315
|
+
import posthog from "@utdk/posthog";
|
|
316
|
+
|
|
317
|
+
type EnvironmentsLlmAnalyticsEvaluationConfigSetActiveKeyCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsEvaluationConfigSetActiveKeyCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
318
|
+
type EnvironmentsLlmAnalyticsEvaluationConfigSetActiveKeyCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsEvaluationConfigSetActiveKeyCreate>>;
|
|
319
|
+
|
|
320
|
+
const result: EnvironmentsLlmAnalyticsEvaluationConfigSetActiveKeyCreateOutput = await posthog.environmentsLlmAnalyticsEvaluationConfigSetActiveKeyCreate();
|
|
321
|
+
|
|
322
|
+
// Result shape (from schema): { trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "g...
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
### `posthog.environmentsLlmAnalyticsEvaluationReportsList`
|
|
326
|
+
|
|
327
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/evaluation_reports/`
|
|
328
|
+
- **What it does**: CRUD for evaluation report configurations + report run history.
|
|
329
|
+
- **OpenAPI operationId**: `environments_llm_analytics_evaluation_reports_list`
|
|
330
|
+
- **Path params**: None
|
|
331
|
+
- **Query params**: `evaluation`, `limit`, `offset`
|
|
332
|
+
- **Response codes**: `200`
|
|
333
|
+
- **Transport options**: None
|
|
334
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
335
|
+
|
|
336
|
+
**Inputs**
|
|
337
|
+
|
|
338
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
339
|
+
- Client transport options: None
|
|
340
|
+
|
|
341
|
+
**Outputs**
|
|
342
|
+
|
|
343
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_del...`
|
|
344
|
+
- OpenAPI response codes: `200`
|
|
345
|
+
|
|
346
|
+
```ts
|
|
347
|
+
import posthog from "@utdk/posthog";
|
|
348
|
+
|
|
349
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsListInput = Parameters<typeof posthog.environmentsLlmAnalyticsEvaluationReportsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
350
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsListOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsEvaluationReportsList>>;
|
|
351
|
+
|
|
352
|
+
const result: EnvironmentsLlmAnalyticsEvaluationReportsListOutput = await posthog.environmentsLlmAnalyticsEvaluationReportsList();
|
|
353
|
+
|
|
354
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_del...
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
### `posthog.environmentsLlmAnalyticsEvaluationReportsCreate`
|
|
358
|
+
|
|
359
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/evaluation_reports/`
|
|
360
|
+
- **What it does**: CRUD for evaluation report configurations + report run history.
|
|
361
|
+
- **OpenAPI operationId**: `environments_llm_analytics_evaluation_reports_create`
|
|
362
|
+
- **Path params**: None
|
|
363
|
+
- **Query params**: None
|
|
364
|
+
- **Response codes**: `201`
|
|
365
|
+
- **Transport options**: None
|
|
366
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
367
|
+
|
|
368
|
+
**Inputs**
|
|
369
|
+
|
|
370
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
371
|
+
- Client transport options: None
|
|
372
|
+
|
|
373
|
+
**Outputs**
|
|
374
|
+
|
|
375
|
+
- Client return type: `{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...`
|
|
376
|
+
- OpenAPI response codes: `201`
|
|
377
|
+
|
|
378
|
+
```ts
|
|
379
|
+
import posthog from "@utdk/posthog";
|
|
380
|
+
|
|
381
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsEvaluationReportsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
382
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsEvaluationReportsCreate>>;
|
|
383
|
+
|
|
384
|
+
const result: EnvironmentsLlmAnalyticsEvaluationReportsCreateOutput = await posthog.environmentsLlmAnalyticsEvaluationReportsCreate();
|
|
385
|
+
|
|
386
|
+
// Result shape (from schema): { id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
### `posthog.environmentsLlmAnalyticsEvaluationReportsDestroy`
|
|
390
|
+
|
|
391
|
+
- **HTTP**: `DELETE /api/environments/{environment_id}/llm_analytics/evaluation_reports/{id}/`
|
|
392
|
+
- **What it does**: Evaluation report configs are deleted only when their evaluation is deleted. Use PATCH enabled=false to stop delivery.
|
|
393
|
+
- **OpenAPI operationId**: `environments_llm_analytics_evaluation_reports_destroy`
|
|
394
|
+
- **Path params**: `id`
|
|
395
|
+
- **Query params**: None
|
|
396
|
+
- **Response codes**: `405`
|
|
397
|
+
- **Transport options**: None
|
|
398
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
399
|
+
|
|
400
|
+
**Inputs**
|
|
401
|
+
|
|
402
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
403
|
+
- Client transport options: None
|
|
404
|
+
|
|
405
|
+
**Outputs**
|
|
406
|
+
|
|
407
|
+
- Client return type: `unknown`
|
|
408
|
+
- OpenAPI response codes: `405`
|
|
409
|
+
|
|
410
|
+
```ts
|
|
411
|
+
import posthog from "@utdk/posthog";
|
|
412
|
+
|
|
413
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsDestroyInput = Parameters<typeof posthog.environmentsLlmAnalyticsEvaluationReportsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
414
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsDestroyOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsEvaluationReportsDestroy>>;
|
|
415
|
+
|
|
416
|
+
const result: EnvironmentsLlmAnalyticsEvaluationReportsDestroyOutput = await posthog.environmentsLlmAnalyticsEvaluationReportsDestroy();
|
|
417
|
+
|
|
418
|
+
// Result shape (from schema): unknown
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
### `posthog.environmentsLlmAnalyticsEvaluationReportsRetrieve`
|
|
422
|
+
|
|
423
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/evaluation_reports/{id}/`
|
|
424
|
+
- **What it does**: CRUD for evaluation report configurations + report run history.
|
|
425
|
+
- **OpenAPI operationId**: `environments_llm_analytics_evaluation_reports_retrieve`
|
|
426
|
+
- **Path params**: `id`
|
|
427
|
+
- **Query params**: None
|
|
428
|
+
- **Response codes**: `200`
|
|
429
|
+
- **Transport options**: None
|
|
430
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
431
|
+
|
|
432
|
+
**Inputs**
|
|
433
|
+
|
|
434
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
435
|
+
- Client transport options: None
|
|
436
|
+
|
|
437
|
+
**Outputs**
|
|
438
|
+
|
|
439
|
+
- Client return type: `{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...`
|
|
440
|
+
- OpenAPI response codes: `200`
|
|
441
|
+
|
|
442
|
+
```ts
|
|
443
|
+
import posthog from "@utdk/posthog";
|
|
444
|
+
|
|
445
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsEvaluationReportsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
446
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsEvaluationReportsRetrieve>>;
|
|
447
|
+
|
|
448
|
+
const result: EnvironmentsLlmAnalyticsEvaluationReportsRetrieveOutput = await posthog.environmentsLlmAnalyticsEvaluationReportsRetrieve();
|
|
449
|
+
|
|
450
|
+
// Result shape (from schema): { id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
### `posthog.environmentsLlmAnalyticsEvaluationReportsPartialUpdate`
|
|
454
|
+
|
|
455
|
+
- **HTTP**: `PATCH /api/environments/{environment_id}/llm_analytics/evaluation_reports/{id}/`
|
|
456
|
+
- **What it does**: CRUD for evaluation report configurations + report run history.
|
|
457
|
+
- **OpenAPI operationId**: `environments_llm_analytics_evaluation_reports_partial_update`
|
|
458
|
+
- **Path params**: `id`
|
|
459
|
+
- **Query params**: None
|
|
460
|
+
- **Response codes**: `200`
|
|
461
|
+
- **Transport options**: None
|
|
462
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
463
|
+
|
|
464
|
+
**Inputs**
|
|
465
|
+
|
|
466
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
467
|
+
- Client transport options: None
|
|
468
|
+
|
|
469
|
+
**Outputs**
|
|
470
|
+
|
|
471
|
+
- Client return type: `{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...`
|
|
472
|
+
- OpenAPI response codes: `200`
|
|
473
|
+
|
|
474
|
+
```ts
|
|
475
|
+
import posthog from "@utdk/posthog";
|
|
476
|
+
|
|
477
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsPartialUpdateInput = Parameters<typeof posthog.environmentsLlmAnalyticsEvaluationReportsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
478
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsEvaluationReportsPartialUpdate>>;
|
|
479
|
+
|
|
480
|
+
const result: EnvironmentsLlmAnalyticsEvaluationReportsPartialUpdateOutput = await posthog.environmentsLlmAnalyticsEvaluationReportsPartialUpdate();
|
|
481
|
+
|
|
482
|
+
// Result shape (from schema): { id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
### `posthog.environmentsLlmAnalyticsEvaluationReportsUpdate`
|
|
486
|
+
|
|
487
|
+
- **HTTP**: `PUT /api/environments/{environment_id}/llm_analytics/evaluation_reports/{id}/`
|
|
488
|
+
- **What it does**: CRUD for evaluation report configurations + report run history.
|
|
489
|
+
- **OpenAPI operationId**: `environments_llm_analytics_evaluation_reports_update`
|
|
490
|
+
- **Path params**: `id`
|
|
491
|
+
- **Query params**: None
|
|
492
|
+
- **Response codes**: `200`
|
|
493
|
+
- **Transport options**: None
|
|
494
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
495
|
+
|
|
496
|
+
**Inputs**
|
|
497
|
+
|
|
498
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
499
|
+
- Client transport options: None
|
|
500
|
+
|
|
501
|
+
**Outputs**
|
|
502
|
+
|
|
503
|
+
- Client return type: `{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...`
|
|
504
|
+
- OpenAPI response codes: `200`
|
|
505
|
+
|
|
506
|
+
```ts
|
|
507
|
+
import posthog from "@utdk/posthog";
|
|
508
|
+
|
|
509
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsUpdateInput = Parameters<typeof posthog.environmentsLlmAnalyticsEvaluationReportsUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
510
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsEvaluationReportsUpdate>>;
|
|
511
|
+
|
|
512
|
+
const result: EnvironmentsLlmAnalyticsEvaluationReportsUpdateOutput = await posthog.environmentsLlmAnalyticsEvaluationReportsUpdate();
|
|
513
|
+
|
|
514
|
+
// Result shape (from schema): { id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
### `posthog.environmentsLlmAnalyticsEvaluationReportsGenerateCreate`
|
|
518
|
+
|
|
519
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/evaluation_reports/{id}/generate/`
|
|
520
|
+
- **What it does**: Trigger immediate report generation.
|
|
521
|
+
- **OpenAPI operationId**: `environments_llm_analytics_evaluation_reports_generate_create`
|
|
522
|
+
- **Path params**: `id`
|
|
523
|
+
- **Query params**: None
|
|
524
|
+
- **Response codes**: `202`
|
|
525
|
+
- **Transport options**: None
|
|
526
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
527
|
+
|
|
528
|
+
**Inputs**
|
|
529
|
+
|
|
530
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
531
|
+
- Client transport options: None
|
|
532
|
+
|
|
533
|
+
**Outputs**
|
|
534
|
+
|
|
535
|
+
- Client return type: `unknown`
|
|
536
|
+
- OpenAPI response codes: `202`
|
|
537
|
+
|
|
538
|
+
```ts
|
|
539
|
+
import posthog from "@utdk/posthog";
|
|
540
|
+
|
|
541
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsGenerateCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsEvaluationReportsGenerateCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
542
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsGenerateCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsEvaluationReportsGenerateCreate>>;
|
|
543
|
+
|
|
544
|
+
const result: EnvironmentsLlmAnalyticsEvaluationReportsGenerateCreateOutput = await posthog.environmentsLlmAnalyticsEvaluationReportsGenerateCreate();
|
|
545
|
+
|
|
546
|
+
// Result shape (from schema): unknown
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
### `posthog.environmentsLlmAnalyticsEvaluationReportsRunsList`
|
|
550
|
+
|
|
551
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/evaluation_reports/{id}/runs/`
|
|
552
|
+
- **What it does**: List report runs (history) for this report.
|
|
553
|
+
- **OpenAPI operationId**: `environments_llm_analytics_evaluation_reports_runs_list`
|
|
554
|
+
- **Path params**: `id`
|
|
555
|
+
- **Query params**: `limit`, `offset`
|
|
556
|
+
- **Response codes**: `200`
|
|
557
|
+
- **Transport options**: None
|
|
558
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
559
|
+
|
|
560
|
+
**Inputs**
|
|
561
|
+
|
|
562
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
563
|
+
- Client transport options: None
|
|
564
|
+
|
|
565
|
+
**Outputs**
|
|
566
|
+
|
|
567
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; report: string; content: unknown; metadata: unknown; period_start: string; period_end: string; delivery_status: "pending" | "deliv...`
|
|
568
|
+
- OpenAPI response codes: `200`
|
|
569
|
+
|
|
570
|
+
```ts
|
|
571
|
+
import posthog from "@utdk/posthog";
|
|
572
|
+
|
|
573
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsRunsListInput = Parameters<typeof posthog.environmentsLlmAnalyticsEvaluationReportsRunsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
574
|
+
type EnvironmentsLlmAnalyticsEvaluationReportsRunsListOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsEvaluationReportsRunsList>>;
|
|
575
|
+
|
|
576
|
+
const result: EnvironmentsLlmAnalyticsEvaluationReportsRunsListOutput = await posthog.environmentsLlmAnalyticsEvaluationReportsRunsList();
|
|
577
|
+
|
|
578
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; report: string; content: unknown; metadata: unknown; period_start: string; period_end: string; delivery_status: "pending" | "deliv...
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
### `posthog.environmentsLlmAnalyticsModelsRetrieve`
|
|
582
|
+
|
|
583
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/models/`
|
|
584
|
+
- **What it does**: List available models for a provider.
|
|
585
|
+
- **OpenAPI operationId**: `environments_llm_analytics_models_retrieve`
|
|
586
|
+
- **Path params**: None
|
|
587
|
+
- **Query params**: `key_id`, `provider`
|
|
588
|
+
- **Response codes**: `200`
|
|
589
|
+
- **Transport options**: None
|
|
590
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
591
|
+
|
|
592
|
+
**Inputs**
|
|
593
|
+
|
|
594
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
595
|
+
- Client transport options: None
|
|
596
|
+
|
|
597
|
+
**Outputs**
|
|
598
|
+
|
|
599
|
+
- Client return type: `{ models: ({ id: string; posthog_available: boolean })[] }`
|
|
600
|
+
- OpenAPI response codes: `200`
|
|
601
|
+
|
|
602
|
+
```ts
|
|
603
|
+
import posthog from "@utdk/posthog";
|
|
604
|
+
|
|
605
|
+
type EnvironmentsLlmAnalyticsModelsRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsModelsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
606
|
+
type EnvironmentsLlmAnalyticsModelsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsModelsRetrieve>>;
|
|
607
|
+
|
|
608
|
+
const result: EnvironmentsLlmAnalyticsModelsRetrieveOutput = await posthog.environmentsLlmAnalyticsModelsRetrieve();
|
|
609
|
+
|
|
610
|
+
// Result shape (from schema): { models: ({ id: string; posthog_available: boolean })[] }
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
### `posthog.environmentsLlmAnalyticsProviderKeyValidationsCreate`
|
|
614
|
+
|
|
615
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/provider_key_validations/`
|
|
616
|
+
- **What it does**: Validate LLM provider API keys without persisting them
|
|
617
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_key_validations_create`
|
|
618
|
+
- **Path params**: None
|
|
619
|
+
- **Query params**: None
|
|
620
|
+
- **Response codes**: `200`
|
|
621
|
+
- **Transport options**: None
|
|
622
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
623
|
+
|
|
624
|
+
**Inputs**
|
|
625
|
+
|
|
626
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
627
|
+
- Client transport options: None
|
|
628
|
+
|
|
629
|
+
**Outputs**
|
|
630
|
+
|
|
631
|
+
- Client return type: `{ [key: string]: unknown }`
|
|
632
|
+
- OpenAPI response codes: `200`
|
|
633
|
+
|
|
634
|
+
```ts
|
|
635
|
+
import posthog from "@utdk/posthog";
|
|
636
|
+
|
|
637
|
+
type EnvironmentsLlmAnalyticsProviderKeyValidationsCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeyValidationsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
638
|
+
type EnvironmentsLlmAnalyticsProviderKeyValidationsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeyValidationsCreate>>;
|
|
639
|
+
|
|
640
|
+
const result: EnvironmentsLlmAnalyticsProviderKeyValidationsCreateOutput = await posthog.environmentsLlmAnalyticsProviderKeyValidationsCreate();
|
|
641
|
+
|
|
642
|
+
// Result shape (from schema): { [key: string]: unknown }
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
### `posthog.environmentsLlmAnalyticsProviderKeysList`
|
|
646
|
+
|
|
647
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/provider_keys/`
|
|
648
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_keys_list`
|
|
649
|
+
- **Path params**: None
|
|
650
|
+
- **Query params**: `limit`, `offset`
|
|
651
|
+
- **Response codes**: `200`
|
|
652
|
+
- **Transport options**: None
|
|
653
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
654
|
+
|
|
655
|
+
**Inputs**
|
|
656
|
+
|
|
657
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
658
|
+
- Client transport options: None
|
|
659
|
+
|
|
660
|
+
**Outputs**
|
|
661
|
+
|
|
662
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; ...`
|
|
663
|
+
- OpenAPI response codes: `200`
|
|
664
|
+
|
|
665
|
+
```ts
|
|
666
|
+
import posthog from "@utdk/posthog";
|
|
667
|
+
|
|
668
|
+
type EnvironmentsLlmAnalyticsProviderKeysListInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeysList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
669
|
+
type EnvironmentsLlmAnalyticsProviderKeysListOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeysList>>;
|
|
670
|
+
|
|
671
|
+
const result: EnvironmentsLlmAnalyticsProviderKeysListOutput = await posthog.environmentsLlmAnalyticsProviderKeysList();
|
|
672
|
+
|
|
673
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; ...
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
### `posthog.environmentsLlmAnalyticsProviderKeysCreate`
|
|
677
|
+
|
|
678
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/provider_keys/`
|
|
679
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_keys_create`
|
|
680
|
+
- **Path params**: None
|
|
681
|
+
- **Query params**: None
|
|
682
|
+
- **Response codes**: `201`
|
|
683
|
+
- **Transport options**: None
|
|
684
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
685
|
+
|
|
686
|
+
**Inputs**
|
|
687
|
+
|
|
688
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
689
|
+
- Client transport options: None
|
|
690
|
+
|
|
691
|
+
**Outputs**
|
|
692
|
+
|
|
693
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
694
|
+
- OpenAPI response codes: `201`
|
|
695
|
+
|
|
696
|
+
```ts
|
|
697
|
+
import posthog from "@utdk/posthog";
|
|
698
|
+
|
|
699
|
+
type EnvironmentsLlmAnalyticsProviderKeysCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeysCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
700
|
+
type EnvironmentsLlmAnalyticsProviderKeysCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeysCreate>>;
|
|
701
|
+
|
|
702
|
+
const result: EnvironmentsLlmAnalyticsProviderKeysCreateOutput = await posthog.environmentsLlmAnalyticsProviderKeysCreate();
|
|
703
|
+
|
|
704
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
### `posthog.environmentsLlmAnalyticsProviderKeysDestroy`
|
|
708
|
+
|
|
709
|
+
- **HTTP**: `DELETE /api/environments/{environment_id}/llm_analytics/provider_keys/{id}/`
|
|
710
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_keys_destroy`
|
|
711
|
+
- **Path params**: `id`
|
|
712
|
+
- **Query params**: None
|
|
713
|
+
- **Response codes**: `204`
|
|
714
|
+
- **Transport options**: None
|
|
715
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
716
|
+
|
|
717
|
+
**Inputs**
|
|
718
|
+
|
|
719
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
720
|
+
- Client transport options: None
|
|
721
|
+
|
|
722
|
+
**Outputs**
|
|
723
|
+
|
|
724
|
+
- Client return type: `unknown`
|
|
725
|
+
- OpenAPI response codes: `204`
|
|
726
|
+
|
|
727
|
+
```ts
|
|
728
|
+
import posthog from "@utdk/posthog";
|
|
729
|
+
|
|
730
|
+
type EnvironmentsLlmAnalyticsProviderKeysDestroyInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeysDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
731
|
+
type EnvironmentsLlmAnalyticsProviderKeysDestroyOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeysDestroy>>;
|
|
732
|
+
|
|
733
|
+
const result: EnvironmentsLlmAnalyticsProviderKeysDestroyOutput = await posthog.environmentsLlmAnalyticsProviderKeysDestroy();
|
|
734
|
+
|
|
735
|
+
// Result shape (from schema): unknown
|
|
736
|
+
```
|
|
737
|
+
|
|
738
|
+
### `posthog.environmentsLlmAnalyticsProviderKeysRetrieve`
|
|
739
|
+
|
|
740
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/provider_keys/{id}/`
|
|
741
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_keys_retrieve`
|
|
742
|
+
- **Path params**: `id`
|
|
743
|
+
- **Query params**: None
|
|
744
|
+
- **Response codes**: `200`
|
|
745
|
+
- **Transport options**: None
|
|
746
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
747
|
+
|
|
748
|
+
**Inputs**
|
|
749
|
+
|
|
750
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
751
|
+
- Client transport options: None
|
|
752
|
+
|
|
753
|
+
**Outputs**
|
|
754
|
+
|
|
755
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
756
|
+
- OpenAPI response codes: `200`
|
|
757
|
+
|
|
758
|
+
```ts
|
|
759
|
+
import posthog from "@utdk/posthog";
|
|
760
|
+
|
|
761
|
+
type EnvironmentsLlmAnalyticsProviderKeysRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeysRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
762
|
+
type EnvironmentsLlmAnalyticsProviderKeysRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeysRetrieve>>;
|
|
763
|
+
|
|
764
|
+
const result: EnvironmentsLlmAnalyticsProviderKeysRetrieveOutput = await posthog.environmentsLlmAnalyticsProviderKeysRetrieve();
|
|
765
|
+
|
|
766
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
767
|
+
```
|
|
768
|
+
|
|
769
|
+
### `posthog.environmentsLlmAnalyticsProviderKeysPartialUpdate`
|
|
770
|
+
|
|
771
|
+
- **HTTP**: `PATCH /api/environments/{environment_id}/llm_analytics/provider_keys/{id}/`
|
|
772
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_keys_partial_update`
|
|
773
|
+
- **Path params**: `id`
|
|
774
|
+
- **Query params**: None
|
|
775
|
+
- **Response codes**: `200`
|
|
776
|
+
- **Transport options**: None
|
|
777
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
778
|
+
|
|
779
|
+
**Inputs**
|
|
780
|
+
|
|
781
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
782
|
+
- Client transport options: None
|
|
783
|
+
|
|
784
|
+
**Outputs**
|
|
785
|
+
|
|
786
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
787
|
+
- OpenAPI response codes: `200`
|
|
788
|
+
|
|
789
|
+
```ts
|
|
790
|
+
import posthog from "@utdk/posthog";
|
|
791
|
+
|
|
792
|
+
type EnvironmentsLlmAnalyticsProviderKeysPartialUpdateInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeysPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
793
|
+
type EnvironmentsLlmAnalyticsProviderKeysPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeysPartialUpdate>>;
|
|
794
|
+
|
|
795
|
+
const result: EnvironmentsLlmAnalyticsProviderKeysPartialUpdateOutput = await posthog.environmentsLlmAnalyticsProviderKeysPartialUpdate();
|
|
796
|
+
|
|
797
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
798
|
+
```
|
|
799
|
+
|
|
800
|
+
### `posthog.environmentsLlmAnalyticsProviderKeysUpdate`
|
|
801
|
+
|
|
802
|
+
- **HTTP**: `PUT /api/environments/{environment_id}/llm_analytics/provider_keys/{id}/`
|
|
803
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_keys_update`
|
|
804
|
+
- **Path params**: `id`
|
|
805
|
+
- **Query params**: None
|
|
806
|
+
- **Response codes**: `200`
|
|
807
|
+
- **Transport options**: None
|
|
808
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
809
|
+
|
|
810
|
+
**Inputs**
|
|
811
|
+
|
|
812
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
813
|
+
- Client transport options: None
|
|
814
|
+
|
|
815
|
+
**Outputs**
|
|
816
|
+
|
|
817
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
818
|
+
- OpenAPI response codes: `200`
|
|
819
|
+
|
|
820
|
+
```ts
|
|
821
|
+
import posthog from "@utdk/posthog";
|
|
822
|
+
|
|
823
|
+
type EnvironmentsLlmAnalyticsProviderKeysUpdateInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeysUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
824
|
+
type EnvironmentsLlmAnalyticsProviderKeysUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeysUpdate>>;
|
|
825
|
+
|
|
826
|
+
const result: EnvironmentsLlmAnalyticsProviderKeysUpdateOutput = await posthog.environmentsLlmAnalyticsProviderKeysUpdate();
|
|
827
|
+
|
|
828
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
829
|
+
```
|
|
830
|
+
|
|
831
|
+
### `posthog.environmentsLlmAnalyticsProviderKeysAssignCreate`
|
|
832
|
+
|
|
833
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/provider_keys/{id}/assign/`
|
|
834
|
+
- **What it does**: Assign this key to evaluations and optionally re-enable them.
|
|
835
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_keys_assign_create`
|
|
836
|
+
- **Path params**: `id`
|
|
837
|
+
- **Query params**: None
|
|
838
|
+
- **Response codes**: `200`
|
|
839
|
+
- **Transport options**: None
|
|
840
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
841
|
+
|
|
842
|
+
**Inputs**
|
|
843
|
+
|
|
844
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
845
|
+
- Client transport options: None
|
|
846
|
+
|
|
847
|
+
**Outputs**
|
|
848
|
+
|
|
849
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
850
|
+
- OpenAPI response codes: `200`
|
|
851
|
+
|
|
852
|
+
```ts
|
|
853
|
+
import posthog from "@utdk/posthog";
|
|
854
|
+
|
|
855
|
+
type EnvironmentsLlmAnalyticsProviderKeysAssignCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeysAssignCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
856
|
+
type EnvironmentsLlmAnalyticsProviderKeysAssignCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeysAssignCreate>>;
|
|
857
|
+
|
|
858
|
+
const result: EnvironmentsLlmAnalyticsProviderKeysAssignCreateOutput = await posthog.environmentsLlmAnalyticsProviderKeysAssignCreate();
|
|
859
|
+
|
|
860
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
### `posthog.environmentsLlmAnalyticsProviderKeysDependentConfigsRetrieve`
|
|
864
|
+
|
|
865
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/provider_keys/{id}/dependent_configs/`
|
|
866
|
+
- **What it does**: Get evaluations using this key and alternative keys for replacement.
|
|
867
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_keys_dependent_configs_retrieve`
|
|
868
|
+
- **Path params**: `id`
|
|
869
|
+
- **Query params**: None
|
|
870
|
+
- **Response codes**: `200`
|
|
871
|
+
- **Transport options**: None
|
|
872
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
873
|
+
|
|
874
|
+
**Inputs**
|
|
875
|
+
|
|
876
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
877
|
+
- Client transport options: None
|
|
878
|
+
|
|
879
|
+
**Outputs**
|
|
880
|
+
|
|
881
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
882
|
+
- OpenAPI response codes: `200`
|
|
883
|
+
|
|
884
|
+
```ts
|
|
885
|
+
import posthog from "@utdk/posthog";
|
|
886
|
+
|
|
887
|
+
type EnvironmentsLlmAnalyticsProviderKeysDependentConfigsRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeysDependentConfigsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
888
|
+
type EnvironmentsLlmAnalyticsProviderKeysDependentConfigsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeysDependentConfigsRetrieve>>;
|
|
889
|
+
|
|
890
|
+
const result: EnvironmentsLlmAnalyticsProviderKeysDependentConfigsRetrieveOutput = await posthog.environmentsLlmAnalyticsProviderKeysDependentConfigsRetrieve();
|
|
891
|
+
|
|
892
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
893
|
+
```
|
|
894
|
+
|
|
895
|
+
### `posthog.environmentsLlmAnalyticsProviderKeysValidateCreate`
|
|
896
|
+
|
|
897
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/provider_keys/{id}/validate/`
|
|
898
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_keys_validate_create`
|
|
899
|
+
- **Path params**: `id`
|
|
900
|
+
- **Query params**: None
|
|
901
|
+
- **Response codes**: `200`
|
|
902
|
+
- **Transport options**: None
|
|
903
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
904
|
+
|
|
905
|
+
**Inputs**
|
|
906
|
+
|
|
907
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
908
|
+
- Client transport options: None
|
|
909
|
+
|
|
910
|
+
**Outputs**
|
|
911
|
+
|
|
912
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
913
|
+
- OpenAPI response codes: `200`
|
|
914
|
+
|
|
915
|
+
```ts
|
|
916
|
+
import posthog from "@utdk/posthog";
|
|
917
|
+
|
|
918
|
+
type EnvironmentsLlmAnalyticsProviderKeysValidateCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeysValidateCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
919
|
+
type EnvironmentsLlmAnalyticsProviderKeysValidateCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeysValidateCreate>>;
|
|
920
|
+
|
|
921
|
+
const result: EnvironmentsLlmAnalyticsProviderKeysValidateCreateOutput = await posthog.environmentsLlmAnalyticsProviderKeysValidateCreate();
|
|
922
|
+
|
|
923
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
924
|
+
```
|
|
925
|
+
|
|
926
|
+
### `posthog.environmentsLlmAnalyticsProviderKeysTrialEvaluationsRetrieve`
|
|
927
|
+
|
|
928
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/provider_keys/trial_evaluations/`
|
|
929
|
+
- **What it does**: List enabled evaluations currently using trial credits for a given provider.
|
|
930
|
+
- **OpenAPI operationId**: `environments_llm_analytics_provider_keys_trial_evaluations_retrieve`
|
|
931
|
+
- **Path params**: None
|
|
932
|
+
- **Query params**: None
|
|
933
|
+
- **Response codes**: `200`
|
|
934
|
+
- **Transport options**: None
|
|
935
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
936
|
+
|
|
937
|
+
**Inputs**
|
|
938
|
+
|
|
939
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
940
|
+
- Client transport options: None
|
|
941
|
+
|
|
942
|
+
**Outputs**
|
|
943
|
+
|
|
944
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
945
|
+
- OpenAPI response codes: `200`
|
|
946
|
+
|
|
947
|
+
```ts
|
|
948
|
+
import posthog from "@utdk/posthog";
|
|
949
|
+
|
|
950
|
+
type EnvironmentsLlmAnalyticsProviderKeysTrialEvaluationsRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsProviderKeysTrialEvaluationsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
951
|
+
type EnvironmentsLlmAnalyticsProviderKeysTrialEvaluationsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsProviderKeysTrialEvaluationsRetrieve>>;
|
|
952
|
+
|
|
953
|
+
const result: EnvironmentsLlmAnalyticsProviderKeysTrialEvaluationsRetrieveOutput = await posthog.environmentsLlmAnalyticsProviderKeysTrialEvaluationsRetrieve();
|
|
954
|
+
|
|
955
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
956
|
+
```
|
|
957
|
+
|
|
958
|
+
### `posthog.environmentsLlmAnalyticsReviewQueueItemsList`
|
|
959
|
+
|
|
960
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/review_queue_items/`
|
|
961
|
+
- **OpenAPI operationId**: `environments_llm_analytics_review_queue_items_list`
|
|
962
|
+
- **Path params**: None
|
|
963
|
+
- **Query params**: `limit`, `offset`, `order_by`, `queue_id`, `search`, `trace_id`, `trace_id__in`
|
|
964
|
+
- **Response codes**: `200`
|
|
965
|
+
- **Transport options**: None
|
|
966
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
967
|
+
|
|
968
|
+
**Inputs**
|
|
969
|
+
|
|
970
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
971
|
+
- Client transport options: None
|
|
972
|
+
|
|
973
|
+
**Outputs**
|
|
974
|
+
|
|
975
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; u...`
|
|
976
|
+
- OpenAPI response codes: `200`
|
|
977
|
+
|
|
978
|
+
```ts
|
|
979
|
+
import posthog from "@utdk/posthog";
|
|
980
|
+
|
|
981
|
+
type EnvironmentsLlmAnalyticsReviewQueueItemsListInput = Parameters<typeof posthog.environmentsLlmAnalyticsReviewQueueItemsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
982
|
+
type EnvironmentsLlmAnalyticsReviewQueueItemsListOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsReviewQueueItemsList>>;
|
|
983
|
+
|
|
984
|
+
const result: EnvironmentsLlmAnalyticsReviewQueueItemsListOutput = await posthog.environmentsLlmAnalyticsReviewQueueItemsList();
|
|
985
|
+
|
|
986
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; u...
|
|
987
|
+
```
|
|
988
|
+
|
|
989
|
+
### `posthog.environmentsLlmAnalyticsReviewQueueItemsCreate`
|
|
990
|
+
|
|
991
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/review_queue_items/`
|
|
992
|
+
- **OpenAPI operationId**: `environments_llm_analytics_review_queue_items_create`
|
|
993
|
+
- **Path params**: None
|
|
994
|
+
- **Query params**: None
|
|
995
|
+
- **Response codes**: `201`
|
|
996
|
+
- **Transport options**: None
|
|
997
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
998
|
+
|
|
999
|
+
**Inputs**
|
|
1000
|
+
|
|
1001
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1002
|
+
- Client transport options: None
|
|
1003
|
+
|
|
1004
|
+
**Outputs**
|
|
1005
|
+
|
|
1006
|
+
- Client return type: `{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...`
|
|
1007
|
+
- OpenAPI response codes: `201`
|
|
1008
|
+
|
|
1009
|
+
```ts
|
|
1010
|
+
import posthog from "@utdk/posthog";
|
|
1011
|
+
|
|
1012
|
+
type EnvironmentsLlmAnalyticsReviewQueueItemsCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsReviewQueueItemsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1013
|
+
type EnvironmentsLlmAnalyticsReviewQueueItemsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsReviewQueueItemsCreate>>;
|
|
1014
|
+
|
|
1015
|
+
const result: EnvironmentsLlmAnalyticsReviewQueueItemsCreateOutput = await posthog.environmentsLlmAnalyticsReviewQueueItemsCreate();
|
|
1016
|
+
|
|
1017
|
+
// Result shape (from schema): { id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...
|
|
1018
|
+
```
|
|
1019
|
+
|
|
1020
|
+
### `posthog.environmentsLlmAnalyticsReviewQueueItemsDestroy`
|
|
1021
|
+
|
|
1022
|
+
- **HTTP**: `DELETE /api/environments/{environment_id}/llm_analytics/review_queue_items/{id}/`
|
|
1023
|
+
- **OpenAPI operationId**: `environments_llm_analytics_review_queue_items_destroy`
|
|
1024
|
+
- **Path params**: `id`
|
|
1025
|
+
- **Query params**: None
|
|
1026
|
+
- **Response codes**: `204`
|
|
1027
|
+
- **Transport options**: None
|
|
1028
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1029
|
+
|
|
1030
|
+
**Inputs**
|
|
1031
|
+
|
|
1032
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1033
|
+
- Client transport options: None
|
|
1034
|
+
|
|
1035
|
+
**Outputs**
|
|
1036
|
+
|
|
1037
|
+
- Client return type: `unknown`
|
|
1038
|
+
- OpenAPI response codes: `204`
|
|
1039
|
+
|
|
1040
|
+
```ts
|
|
1041
|
+
import posthog from "@utdk/posthog";
|
|
1042
|
+
|
|
1043
|
+
type EnvironmentsLlmAnalyticsReviewQueueItemsDestroyInput = Parameters<typeof posthog.environmentsLlmAnalyticsReviewQueueItemsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1044
|
+
type EnvironmentsLlmAnalyticsReviewQueueItemsDestroyOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsReviewQueueItemsDestroy>>;
|
|
1045
|
+
|
|
1046
|
+
const result: EnvironmentsLlmAnalyticsReviewQueueItemsDestroyOutput = await posthog.environmentsLlmAnalyticsReviewQueueItemsDestroy();
|
|
1047
|
+
|
|
1048
|
+
// Result shape (from schema): unknown
|
|
1049
|
+
```
|
|
1050
|
+
|
|
1051
|
+
### `posthog.environmentsLlmAnalyticsReviewQueueItemsRetrieve`
|
|
1052
|
+
|
|
1053
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/review_queue_items/{id}/`
|
|
1054
|
+
- **OpenAPI operationId**: `environments_llm_analytics_review_queue_items_retrieve`
|
|
1055
|
+
- **Path params**: `id`
|
|
1056
|
+
- **Query params**: None
|
|
1057
|
+
- **Response codes**: `200`
|
|
1058
|
+
- **Transport options**: None
|
|
1059
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1060
|
+
|
|
1061
|
+
**Inputs**
|
|
1062
|
+
|
|
1063
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1064
|
+
- Client transport options: None
|
|
1065
|
+
|
|
1066
|
+
**Outputs**
|
|
1067
|
+
|
|
1068
|
+
- Client return type: `{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...`
|
|
1069
|
+
- OpenAPI response codes: `200`
|
|
1070
|
+
|
|
1071
|
+
```ts
|
|
1072
|
+
import posthog from "@utdk/posthog";
|
|
1073
|
+
|
|
1074
|
+
type EnvironmentsLlmAnalyticsReviewQueueItemsRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsReviewQueueItemsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1075
|
+
type EnvironmentsLlmAnalyticsReviewQueueItemsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsReviewQueueItemsRetrieve>>;
|
|
1076
|
+
|
|
1077
|
+
const result: EnvironmentsLlmAnalyticsReviewQueueItemsRetrieveOutput = await posthog.environmentsLlmAnalyticsReviewQueueItemsRetrieve();
|
|
1078
|
+
|
|
1079
|
+
// Result shape (from schema): { id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...
|
|
1080
|
+
```
|
|
1081
|
+
|
|
1082
|
+
### `posthog.environmentsLlmAnalyticsReviewQueueItemsPartialUpdate`
|
|
1083
|
+
|
|
1084
|
+
- **HTTP**: `PATCH /api/environments/{environment_id}/llm_analytics/review_queue_items/{id}/`
|
|
1085
|
+
- **OpenAPI operationId**: `environments_llm_analytics_review_queue_items_partial_update`
|
|
1086
|
+
- **Path params**: `id`
|
|
1087
|
+
- **Query params**: None
|
|
1088
|
+
- **Response codes**: `200`
|
|
1089
|
+
- **Transport options**: None
|
|
1090
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1091
|
+
|
|
1092
|
+
**Inputs**
|
|
1093
|
+
|
|
1094
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1095
|
+
- Client transport options: None
|
|
1096
|
+
|
|
1097
|
+
**Outputs**
|
|
1098
|
+
|
|
1099
|
+
- Client return type: `{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...`
|
|
1100
|
+
- OpenAPI response codes: `200`
|
|
1101
|
+
|
|
1102
|
+
```ts
|
|
1103
|
+
import posthog from "@utdk/posthog";
|
|
1104
|
+
|
|
1105
|
+
type EnvironmentsLlmAnalyticsReviewQueueItemsPartialUpdateInput = Parameters<typeof posthog.environmentsLlmAnalyticsReviewQueueItemsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1106
|
+
type EnvironmentsLlmAnalyticsReviewQueueItemsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsReviewQueueItemsPartialUpdate>>;
|
|
1107
|
+
|
|
1108
|
+
const result: EnvironmentsLlmAnalyticsReviewQueueItemsPartialUpdateOutput = await posthog.environmentsLlmAnalyticsReviewQueueItemsPartialUpdate();
|
|
1109
|
+
|
|
1110
|
+
// Result shape (from schema): { id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...
|
|
1111
|
+
```
|
|
1112
|
+
|
|
1113
|
+
### `posthog.environmentsLlmAnalyticsReviewQueuesList`
|
|
1114
|
+
|
|
1115
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/review_queues/`
|
|
1116
|
+
- **OpenAPI operationId**: `environments_llm_analytics_review_queues_list`
|
|
1117
|
+
- **Path params**: None
|
|
1118
|
+
- **Query params**: `limit`, `name`, `offset`, `order_by`, `search`
|
|
1119
|
+
- **Response codes**: `200`
|
|
1120
|
+
- **Transport options**: None
|
|
1121
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1122
|
+
|
|
1123
|
+
**Inputs**
|
|
1124
|
+
|
|
1125
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1126
|
+
- Client transport options: None
|
|
1127
|
+
|
|
1128
|
+
**Outputs**
|
|
1129
|
+
|
|
1130
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; d...`
|
|
1131
|
+
- OpenAPI response codes: `200`
|
|
1132
|
+
|
|
1133
|
+
```ts
|
|
1134
|
+
import posthog from "@utdk/posthog";
|
|
1135
|
+
|
|
1136
|
+
type EnvironmentsLlmAnalyticsReviewQueuesListInput = Parameters<typeof posthog.environmentsLlmAnalyticsReviewQueuesList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1137
|
+
type EnvironmentsLlmAnalyticsReviewQueuesListOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsReviewQueuesList>>;
|
|
1138
|
+
|
|
1139
|
+
const result: EnvironmentsLlmAnalyticsReviewQueuesListOutput = await posthog.environmentsLlmAnalyticsReviewQueuesList();
|
|
1140
|
+
|
|
1141
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; d...
|
|
1142
|
+
```
|
|
1143
|
+
|
|
1144
|
+
### `posthog.environmentsLlmAnalyticsReviewQueuesCreate`
|
|
1145
|
+
|
|
1146
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/review_queues/`
|
|
1147
|
+
- **OpenAPI operationId**: `environments_llm_analytics_review_queues_create`
|
|
1148
|
+
- **Path params**: None
|
|
1149
|
+
- **Query params**: None
|
|
1150
|
+
- **Response codes**: `201`
|
|
1151
|
+
- **Transport options**: None
|
|
1152
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1153
|
+
|
|
1154
|
+
**Inputs**
|
|
1155
|
+
|
|
1156
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1157
|
+
- Client transport options: None
|
|
1158
|
+
|
|
1159
|
+
**Outputs**
|
|
1160
|
+
|
|
1161
|
+
- Client return type: `{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...`
|
|
1162
|
+
- OpenAPI response codes: `201`
|
|
1163
|
+
|
|
1164
|
+
```ts
|
|
1165
|
+
import posthog from "@utdk/posthog";
|
|
1166
|
+
|
|
1167
|
+
type EnvironmentsLlmAnalyticsReviewQueuesCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsReviewQueuesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1168
|
+
type EnvironmentsLlmAnalyticsReviewQueuesCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsReviewQueuesCreate>>;
|
|
1169
|
+
|
|
1170
|
+
const result: EnvironmentsLlmAnalyticsReviewQueuesCreateOutput = await posthog.environmentsLlmAnalyticsReviewQueuesCreate();
|
|
1171
|
+
|
|
1172
|
+
// Result shape (from schema): { id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...
|
|
1173
|
+
```
|
|
1174
|
+
|
|
1175
|
+
### `posthog.environmentsLlmAnalyticsReviewQueuesDestroy`
|
|
1176
|
+
|
|
1177
|
+
- **HTTP**: `DELETE /api/environments/{environment_id}/llm_analytics/review_queues/{id}/`
|
|
1178
|
+
- **OpenAPI operationId**: `environments_llm_analytics_review_queues_destroy`
|
|
1179
|
+
- **Path params**: `id`
|
|
1180
|
+
- **Query params**: None
|
|
1181
|
+
- **Response codes**: `204`
|
|
1182
|
+
- **Transport options**: None
|
|
1183
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1184
|
+
|
|
1185
|
+
**Inputs**
|
|
1186
|
+
|
|
1187
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1188
|
+
- Client transport options: None
|
|
1189
|
+
|
|
1190
|
+
**Outputs**
|
|
1191
|
+
|
|
1192
|
+
- Client return type: `unknown`
|
|
1193
|
+
- OpenAPI response codes: `204`
|
|
1194
|
+
|
|
1195
|
+
```ts
|
|
1196
|
+
import posthog from "@utdk/posthog";
|
|
1197
|
+
|
|
1198
|
+
type EnvironmentsLlmAnalyticsReviewQueuesDestroyInput = Parameters<typeof posthog.environmentsLlmAnalyticsReviewQueuesDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1199
|
+
type EnvironmentsLlmAnalyticsReviewQueuesDestroyOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsReviewQueuesDestroy>>;
|
|
1200
|
+
|
|
1201
|
+
const result: EnvironmentsLlmAnalyticsReviewQueuesDestroyOutput = await posthog.environmentsLlmAnalyticsReviewQueuesDestroy();
|
|
1202
|
+
|
|
1203
|
+
// Result shape (from schema): unknown
|
|
1204
|
+
```
|
|
1205
|
+
|
|
1206
|
+
### `posthog.environmentsLlmAnalyticsReviewQueuesRetrieve`
|
|
1207
|
+
|
|
1208
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/review_queues/{id}/`
|
|
1209
|
+
- **OpenAPI operationId**: `environments_llm_analytics_review_queues_retrieve`
|
|
1210
|
+
- **Path params**: `id`
|
|
1211
|
+
- **Query params**: None
|
|
1212
|
+
- **Response codes**: `200`
|
|
1213
|
+
- **Transport options**: None
|
|
1214
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1215
|
+
|
|
1216
|
+
**Inputs**
|
|
1217
|
+
|
|
1218
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1219
|
+
- Client transport options: None
|
|
1220
|
+
|
|
1221
|
+
**Outputs**
|
|
1222
|
+
|
|
1223
|
+
- Client return type: `{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...`
|
|
1224
|
+
- OpenAPI response codes: `200`
|
|
1225
|
+
|
|
1226
|
+
```ts
|
|
1227
|
+
import posthog from "@utdk/posthog";
|
|
1228
|
+
|
|
1229
|
+
type EnvironmentsLlmAnalyticsReviewQueuesRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsReviewQueuesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1230
|
+
type EnvironmentsLlmAnalyticsReviewQueuesRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsReviewQueuesRetrieve>>;
|
|
1231
|
+
|
|
1232
|
+
const result: EnvironmentsLlmAnalyticsReviewQueuesRetrieveOutput = await posthog.environmentsLlmAnalyticsReviewQueuesRetrieve();
|
|
1233
|
+
|
|
1234
|
+
// Result shape (from schema): { id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...
|
|
1235
|
+
```
|
|
1236
|
+
|
|
1237
|
+
### `posthog.environmentsLlmAnalyticsReviewQueuesPartialUpdate`
|
|
1238
|
+
|
|
1239
|
+
- **HTTP**: `PATCH /api/environments/{environment_id}/llm_analytics/review_queues/{id}/`
|
|
1240
|
+
- **OpenAPI operationId**: `environments_llm_analytics_review_queues_partial_update`
|
|
1241
|
+
- **Path params**: `id`
|
|
1242
|
+
- **Query params**: None
|
|
1243
|
+
- **Response codes**: `200`
|
|
1244
|
+
- **Transport options**: None
|
|
1245
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1246
|
+
|
|
1247
|
+
**Inputs**
|
|
1248
|
+
|
|
1249
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1250
|
+
- Client transport options: None
|
|
1251
|
+
|
|
1252
|
+
**Outputs**
|
|
1253
|
+
|
|
1254
|
+
- Client return type: `{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...`
|
|
1255
|
+
- OpenAPI response codes: `200`
|
|
1256
|
+
|
|
1257
|
+
```ts
|
|
1258
|
+
import posthog from "@utdk/posthog";
|
|
1259
|
+
|
|
1260
|
+
type EnvironmentsLlmAnalyticsReviewQueuesPartialUpdateInput = Parameters<typeof posthog.environmentsLlmAnalyticsReviewQueuesPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1261
|
+
type EnvironmentsLlmAnalyticsReviewQueuesPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsReviewQueuesPartialUpdate>>;
|
|
1262
|
+
|
|
1263
|
+
const result: EnvironmentsLlmAnalyticsReviewQueuesPartialUpdateOutput = await posthog.environmentsLlmAnalyticsReviewQueuesPartialUpdate();
|
|
1264
|
+
|
|
1265
|
+
// Result shape (from schema): { id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...
|
|
1266
|
+
```
|
|
1267
|
+
|
|
1268
|
+
### `posthog.environmentsLlmAnalyticsScoreDefinitionsList`
|
|
1269
|
+
|
|
1270
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/score_definitions/`
|
|
1271
|
+
- **OpenAPI operationId**: `environments_llm_analytics_score_definitions_list`
|
|
1272
|
+
- **Path params**: None
|
|
1273
|
+
- **Query params**: `archived`, `kind`, `limit`, `offset`, `order_by`, `search`
|
|
1274
|
+
- **Response codes**: `200`
|
|
1275
|
+
- **Transport options**: None
|
|
1276
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1277
|
+
|
|
1278
|
+
**Inputs**
|
|
1279
|
+
|
|
1280
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1281
|
+
- Client transport options: None
|
|
1282
|
+
|
|
1283
|
+
**Outputs**
|
|
1284
|
+
|
|
1285
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; curren...`
|
|
1286
|
+
- OpenAPI response codes: `200`
|
|
1287
|
+
|
|
1288
|
+
```ts
|
|
1289
|
+
import posthog from "@utdk/posthog";
|
|
1290
|
+
|
|
1291
|
+
type EnvironmentsLlmAnalyticsScoreDefinitionsListInput = Parameters<typeof posthog.environmentsLlmAnalyticsScoreDefinitionsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1292
|
+
type EnvironmentsLlmAnalyticsScoreDefinitionsListOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsScoreDefinitionsList>>;
|
|
1293
|
+
|
|
1294
|
+
const result: EnvironmentsLlmAnalyticsScoreDefinitionsListOutput = await posthog.environmentsLlmAnalyticsScoreDefinitionsList();
|
|
1295
|
+
|
|
1296
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; curren...
|
|
1297
|
+
```
|
|
1298
|
+
|
|
1299
|
+
### `posthog.environmentsLlmAnalyticsScoreDefinitionsCreate`
|
|
1300
|
+
|
|
1301
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/score_definitions/`
|
|
1302
|
+
- **OpenAPI operationId**: `environments_llm_analytics_score_definitions_create`
|
|
1303
|
+
- **Path params**: None
|
|
1304
|
+
- **Query params**: None
|
|
1305
|
+
- **Response codes**: `201`
|
|
1306
|
+
- **Transport options**: None
|
|
1307
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1308
|
+
|
|
1309
|
+
**Inputs**
|
|
1310
|
+
|
|
1311
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1312
|
+
- Client transport options: None
|
|
1313
|
+
|
|
1314
|
+
**Outputs**
|
|
1315
|
+
|
|
1316
|
+
- Client return type: `{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...`
|
|
1317
|
+
- OpenAPI response codes: `201`
|
|
1318
|
+
|
|
1319
|
+
```ts
|
|
1320
|
+
import posthog from "@utdk/posthog";
|
|
1321
|
+
|
|
1322
|
+
type EnvironmentsLlmAnalyticsScoreDefinitionsCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsScoreDefinitionsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1323
|
+
type EnvironmentsLlmAnalyticsScoreDefinitionsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsScoreDefinitionsCreate>>;
|
|
1324
|
+
|
|
1325
|
+
const result: EnvironmentsLlmAnalyticsScoreDefinitionsCreateOutput = await posthog.environmentsLlmAnalyticsScoreDefinitionsCreate();
|
|
1326
|
+
|
|
1327
|
+
// Result shape (from schema): { id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...
|
|
1328
|
+
```
|
|
1329
|
+
|
|
1330
|
+
### `posthog.environmentsLlmAnalyticsScoreDefinitionsRetrieve`
|
|
1331
|
+
|
|
1332
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/score_definitions/{id}/`
|
|
1333
|
+
- **OpenAPI operationId**: `environments_llm_analytics_score_definitions_retrieve`
|
|
1334
|
+
- **Path params**: `id`
|
|
1335
|
+
- **Query params**: None
|
|
1336
|
+
- **Response codes**: `200`
|
|
1337
|
+
- **Transport options**: None
|
|
1338
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1339
|
+
|
|
1340
|
+
**Inputs**
|
|
1341
|
+
|
|
1342
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1343
|
+
- Client transport options: None
|
|
1344
|
+
|
|
1345
|
+
**Outputs**
|
|
1346
|
+
|
|
1347
|
+
- Client return type: `{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...`
|
|
1348
|
+
- OpenAPI response codes: `200`
|
|
1349
|
+
|
|
1350
|
+
```ts
|
|
1351
|
+
import posthog from "@utdk/posthog";
|
|
1352
|
+
|
|
1353
|
+
type EnvironmentsLlmAnalyticsScoreDefinitionsRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsScoreDefinitionsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1354
|
+
type EnvironmentsLlmAnalyticsScoreDefinitionsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsScoreDefinitionsRetrieve>>;
|
|
1355
|
+
|
|
1356
|
+
const result: EnvironmentsLlmAnalyticsScoreDefinitionsRetrieveOutput = await posthog.environmentsLlmAnalyticsScoreDefinitionsRetrieve();
|
|
1357
|
+
|
|
1358
|
+
// Result shape (from schema): { id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...
|
|
1359
|
+
```
|
|
1360
|
+
|
|
1361
|
+
### `posthog.environmentsLlmAnalyticsScoreDefinitionsPartialUpdate`
|
|
1362
|
+
|
|
1363
|
+
- **HTTP**: `PATCH /api/environments/{environment_id}/llm_analytics/score_definitions/{id}/`
|
|
1364
|
+
- **OpenAPI operationId**: `environments_llm_analytics_score_definitions_partial_update`
|
|
1365
|
+
- **Path params**: `id`
|
|
1366
|
+
- **Query params**: None
|
|
1367
|
+
- **Response codes**: `200`
|
|
1368
|
+
- **Transport options**: None
|
|
1369
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1370
|
+
|
|
1371
|
+
**Inputs**
|
|
1372
|
+
|
|
1373
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1374
|
+
- Client transport options: None
|
|
1375
|
+
|
|
1376
|
+
**Outputs**
|
|
1377
|
+
|
|
1378
|
+
- Client return type: `{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...`
|
|
1379
|
+
- OpenAPI response codes: `200`
|
|
1380
|
+
|
|
1381
|
+
```ts
|
|
1382
|
+
import posthog from "@utdk/posthog";
|
|
1383
|
+
|
|
1384
|
+
type EnvironmentsLlmAnalyticsScoreDefinitionsPartialUpdateInput = Parameters<typeof posthog.environmentsLlmAnalyticsScoreDefinitionsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1385
|
+
type EnvironmentsLlmAnalyticsScoreDefinitionsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsScoreDefinitionsPartialUpdate>>;
|
|
1386
|
+
|
|
1387
|
+
const result: EnvironmentsLlmAnalyticsScoreDefinitionsPartialUpdateOutput = await posthog.environmentsLlmAnalyticsScoreDefinitionsPartialUpdate();
|
|
1388
|
+
|
|
1389
|
+
// Result shape (from schema): { id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...
|
|
1390
|
+
```
|
|
1391
|
+
|
|
1392
|
+
### `posthog.environmentsLlmAnalyticsScoreDefinitionsNewVersionCreate`
|
|
1393
|
+
|
|
1394
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/score_definitions/{id}/new_version/`
|
|
1395
|
+
- **OpenAPI operationId**: `environments_llm_analytics_score_definitions_new_version_create`
|
|
1396
|
+
- **Path params**: `id`
|
|
1397
|
+
- **Query params**: None
|
|
1398
|
+
- **Response codes**: `200`
|
|
1399
|
+
- **Transport options**: None
|
|
1400
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1401
|
+
|
|
1402
|
+
**Inputs**
|
|
1403
|
+
|
|
1404
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1405
|
+
- Client transport options: None
|
|
1406
|
+
|
|
1407
|
+
**Outputs**
|
|
1408
|
+
|
|
1409
|
+
- Client return type: `{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...`
|
|
1410
|
+
- OpenAPI response codes: `200`
|
|
1411
|
+
|
|
1412
|
+
```ts
|
|
1413
|
+
import posthog from "@utdk/posthog";
|
|
1414
|
+
|
|
1415
|
+
type EnvironmentsLlmAnalyticsScoreDefinitionsNewVersionCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsScoreDefinitionsNewVersionCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1416
|
+
type EnvironmentsLlmAnalyticsScoreDefinitionsNewVersionCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsScoreDefinitionsNewVersionCreate>>;
|
|
1417
|
+
|
|
1418
|
+
const result: EnvironmentsLlmAnalyticsScoreDefinitionsNewVersionCreateOutput = await posthog.environmentsLlmAnalyticsScoreDefinitionsNewVersionCreate();
|
|
1419
|
+
|
|
1420
|
+
// Result shape (from schema): { id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...
|
|
1421
|
+
```
|
|
1422
|
+
|
|
1423
|
+
### `posthog.environmentsLlmAnalyticsTraceReviewsList`
|
|
1424
|
+
|
|
1425
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/trace_reviews/`
|
|
1426
|
+
- **OpenAPI operationId**: `environments_llm_analytics_trace_reviews_list`
|
|
1427
|
+
- **Path params**: None
|
|
1428
|
+
- **Query params**: `definition_id`, `definition_id__in`, `limit`, `offset`, `order_by`, `search`, `trace_id`, `trace_id__in`
|
|
1429
|
+
- **Response codes**: `200`
|
|
1430
|
+
- **Transport options**: None
|
|
1431
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1432
|
+
|
|
1433
|
+
**Inputs**
|
|
1434
|
+
|
|
1435
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1436
|
+
- Client transport options: None
|
|
1437
|
+
|
|
1438
|
+
**Outputs**
|
|
1439
|
+
|
|
1440
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: numb...`
|
|
1441
|
+
- OpenAPI response codes: `200`
|
|
1442
|
+
|
|
1443
|
+
```ts
|
|
1444
|
+
import posthog from "@utdk/posthog";
|
|
1445
|
+
|
|
1446
|
+
type EnvironmentsLlmAnalyticsTraceReviewsListInput = Parameters<typeof posthog.environmentsLlmAnalyticsTraceReviewsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1447
|
+
type EnvironmentsLlmAnalyticsTraceReviewsListOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsTraceReviewsList>>;
|
|
1448
|
+
|
|
1449
|
+
const result: EnvironmentsLlmAnalyticsTraceReviewsListOutput = await posthog.environmentsLlmAnalyticsTraceReviewsList();
|
|
1450
|
+
|
|
1451
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: numb...
|
|
1452
|
+
```
|
|
1453
|
+
|
|
1454
|
+
### `posthog.environmentsLlmAnalyticsTraceReviewsCreate`
|
|
1455
|
+
|
|
1456
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/trace_reviews/`
|
|
1457
|
+
- **OpenAPI operationId**: `environments_llm_analytics_trace_reviews_create`
|
|
1458
|
+
- **Path params**: None
|
|
1459
|
+
- **Query params**: None
|
|
1460
|
+
- **Response codes**: `201`
|
|
1461
|
+
- **Transport options**: None
|
|
1462
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1463
|
+
|
|
1464
|
+
**Inputs**
|
|
1465
|
+
|
|
1466
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1467
|
+
- Client transport options: None
|
|
1468
|
+
|
|
1469
|
+
**Outputs**
|
|
1470
|
+
|
|
1471
|
+
- Client return type: `{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
1472
|
+
- OpenAPI response codes: `201`
|
|
1473
|
+
|
|
1474
|
+
```ts
|
|
1475
|
+
import posthog from "@utdk/posthog";
|
|
1476
|
+
|
|
1477
|
+
type EnvironmentsLlmAnalyticsTraceReviewsCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsTraceReviewsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1478
|
+
type EnvironmentsLlmAnalyticsTraceReviewsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsTraceReviewsCreate>>;
|
|
1479
|
+
|
|
1480
|
+
const result: EnvironmentsLlmAnalyticsTraceReviewsCreateOutput = await posthog.environmentsLlmAnalyticsTraceReviewsCreate();
|
|
1481
|
+
|
|
1482
|
+
// Result shape (from schema): { id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
1483
|
+
```
|
|
1484
|
+
|
|
1485
|
+
### `posthog.environmentsLlmAnalyticsTraceReviewsDestroy`
|
|
1486
|
+
|
|
1487
|
+
- **HTTP**: `DELETE /api/environments/{environment_id}/llm_analytics/trace_reviews/{id}/`
|
|
1488
|
+
- **OpenAPI operationId**: `environments_llm_analytics_trace_reviews_destroy`
|
|
1489
|
+
- **Path params**: `id`
|
|
1490
|
+
- **Query params**: None
|
|
1491
|
+
- **Response codes**: `204`
|
|
1492
|
+
- **Transport options**: None
|
|
1493
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1494
|
+
|
|
1495
|
+
**Inputs**
|
|
1496
|
+
|
|
1497
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1498
|
+
- Client transport options: None
|
|
1499
|
+
|
|
1500
|
+
**Outputs**
|
|
1501
|
+
|
|
1502
|
+
- Client return type: `unknown`
|
|
1503
|
+
- OpenAPI response codes: `204`
|
|
1504
|
+
|
|
1505
|
+
```ts
|
|
1506
|
+
import posthog from "@utdk/posthog";
|
|
1507
|
+
|
|
1508
|
+
type EnvironmentsLlmAnalyticsTraceReviewsDestroyInput = Parameters<typeof posthog.environmentsLlmAnalyticsTraceReviewsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1509
|
+
type EnvironmentsLlmAnalyticsTraceReviewsDestroyOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsTraceReviewsDestroy>>;
|
|
1510
|
+
|
|
1511
|
+
const result: EnvironmentsLlmAnalyticsTraceReviewsDestroyOutput = await posthog.environmentsLlmAnalyticsTraceReviewsDestroy();
|
|
1512
|
+
|
|
1513
|
+
// Result shape (from schema): unknown
|
|
1514
|
+
```
|
|
1515
|
+
|
|
1516
|
+
### `posthog.environmentsLlmAnalyticsTraceReviewsRetrieve`
|
|
1517
|
+
|
|
1518
|
+
- **HTTP**: `GET /api/environments/{environment_id}/llm_analytics/trace_reviews/{id}/`
|
|
1519
|
+
- **OpenAPI operationId**: `environments_llm_analytics_trace_reviews_retrieve`
|
|
1520
|
+
- **Path params**: `id`
|
|
1521
|
+
- **Query params**: None
|
|
1522
|
+
- **Response codes**: `200`
|
|
1523
|
+
- **Transport options**: None
|
|
1524
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1525
|
+
|
|
1526
|
+
**Inputs**
|
|
1527
|
+
|
|
1528
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1529
|
+
- Client transport options: None
|
|
1530
|
+
|
|
1531
|
+
**Outputs**
|
|
1532
|
+
|
|
1533
|
+
- Client return type: `{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
1534
|
+
- OpenAPI response codes: `200`
|
|
1535
|
+
|
|
1536
|
+
```ts
|
|
1537
|
+
import posthog from "@utdk/posthog";
|
|
1538
|
+
|
|
1539
|
+
type EnvironmentsLlmAnalyticsTraceReviewsRetrieveInput = Parameters<typeof posthog.environmentsLlmAnalyticsTraceReviewsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1540
|
+
type EnvironmentsLlmAnalyticsTraceReviewsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsTraceReviewsRetrieve>>;
|
|
1541
|
+
|
|
1542
|
+
const result: EnvironmentsLlmAnalyticsTraceReviewsRetrieveOutput = await posthog.environmentsLlmAnalyticsTraceReviewsRetrieve();
|
|
1543
|
+
|
|
1544
|
+
// Result shape (from schema): { id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
1545
|
+
```
|
|
1546
|
+
|
|
1547
|
+
### `posthog.environmentsLlmAnalyticsTraceReviewsPartialUpdate`
|
|
1548
|
+
|
|
1549
|
+
- **HTTP**: `PATCH /api/environments/{environment_id}/llm_analytics/trace_reviews/{id}/`
|
|
1550
|
+
- **OpenAPI operationId**: `environments_llm_analytics_trace_reviews_partial_update`
|
|
1551
|
+
- **Path params**: `id`
|
|
1552
|
+
- **Query params**: None
|
|
1553
|
+
- **Response codes**: `200`
|
|
1554
|
+
- **Transport options**: None
|
|
1555
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1556
|
+
|
|
1557
|
+
**Inputs**
|
|
1558
|
+
|
|
1559
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1560
|
+
- Client transport options: None
|
|
1561
|
+
|
|
1562
|
+
**Outputs**
|
|
1563
|
+
|
|
1564
|
+
- Client return type: `{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
1565
|
+
- OpenAPI response codes: `200`
|
|
1566
|
+
|
|
1567
|
+
```ts
|
|
1568
|
+
import posthog from "@utdk/posthog";
|
|
1569
|
+
|
|
1570
|
+
type EnvironmentsLlmAnalyticsTraceReviewsPartialUpdateInput = Parameters<typeof posthog.environmentsLlmAnalyticsTraceReviewsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1571
|
+
type EnvironmentsLlmAnalyticsTraceReviewsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsTraceReviewsPartialUpdate>>;
|
|
1572
|
+
|
|
1573
|
+
const result: EnvironmentsLlmAnalyticsTraceReviewsPartialUpdateOutput = await posthog.environmentsLlmAnalyticsTraceReviewsPartialUpdate();
|
|
1574
|
+
|
|
1575
|
+
// Result shape (from schema): { id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
1576
|
+
```
|
|
1577
|
+
|
|
1578
|
+
### `posthog.environmentsLlmAnalyticsTranslateCreate`
|
|
1579
|
+
|
|
1580
|
+
- **HTTP**: `POST /api/environments/{environment_id}/llm_analytics/translate/`
|
|
1581
|
+
- **What it does**: Translate text to target language.
|
|
1582
|
+
- **OpenAPI operationId**: `environments_llm_analytics_translate_create`
|
|
1583
|
+
- **Path params**: None
|
|
1584
|
+
- **Query params**: None
|
|
1585
|
+
- **Response codes**: `200`
|
|
1586
|
+
- **Transport options**: None
|
|
1587
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1588
|
+
|
|
1589
|
+
**Inputs**
|
|
1590
|
+
|
|
1591
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1592
|
+
- Client transport options: None
|
|
1593
|
+
|
|
1594
|
+
**Outputs**
|
|
1595
|
+
|
|
1596
|
+
- Client return type: `{ [key: string]: unknown }`
|
|
1597
|
+
- OpenAPI response codes: `200`
|
|
1598
|
+
|
|
1599
|
+
```ts
|
|
1600
|
+
import posthog from "@utdk/posthog";
|
|
1601
|
+
|
|
1602
|
+
type EnvironmentsLlmAnalyticsTranslateCreateInput = Parameters<typeof posthog.environmentsLlmAnalyticsTranslateCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1603
|
+
type EnvironmentsLlmAnalyticsTranslateCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLlmAnalyticsTranslateCreate>>;
|
|
1604
|
+
|
|
1605
|
+
const result: EnvironmentsLlmAnalyticsTranslateCreateOutput = await posthog.environmentsLlmAnalyticsTranslateCreate();
|
|
1606
|
+
|
|
1607
|
+
// Result shape (from schema): { [key: string]: unknown }
|
|
1608
|
+
```
|
|
1609
|
+
|
|
1610
|
+
### `posthog.llmAnalyticsClusteringConfigList`
|
|
1611
|
+
|
|
1612
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/clustering_config/`
|
|
1613
|
+
- **What it does**: Team-level clustering configuration (event filters for automated pipelines).
|
|
1614
|
+
- **OpenAPI operationId**: `llm_analytics_clustering_config_list`
|
|
1615
|
+
- **Path params**: None
|
|
1616
|
+
- **Query params**: None
|
|
1617
|
+
- **Response codes**: `200`
|
|
1618
|
+
- **Transport options**: None
|
|
1619
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1620
|
+
|
|
1621
|
+
**Inputs**
|
|
1622
|
+
|
|
1623
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1624
|
+
- Client transport options: None
|
|
1625
|
+
|
|
1626
|
+
**Outputs**
|
|
1627
|
+
|
|
1628
|
+
- Client return type: `{ event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }`
|
|
1629
|
+
- OpenAPI response codes: `200`
|
|
1630
|
+
|
|
1631
|
+
```ts
|
|
1632
|
+
import posthog from "@utdk/posthog";
|
|
1633
|
+
|
|
1634
|
+
type LlmAnalyticsClusteringConfigListInput = Parameters<typeof posthog.llmAnalyticsClusteringConfigList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1635
|
+
type LlmAnalyticsClusteringConfigListOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsClusteringConfigList>>;
|
|
1636
|
+
|
|
1637
|
+
const result: LlmAnalyticsClusteringConfigListOutput = await posthog.llmAnalyticsClusteringConfigList();
|
|
1638
|
+
|
|
1639
|
+
// Result shape (from schema): { event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }
|
|
1640
|
+
```
|
|
1641
|
+
|
|
1642
|
+
### `posthog.llmAnalyticsClusteringConfigSetEventFiltersCreate`
|
|
1643
|
+
|
|
1644
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/clustering_config/set_event_filters/`
|
|
1645
|
+
- **What it does**: Team-level clustering configuration (event filters for automated pipelines).
|
|
1646
|
+
- **OpenAPI operationId**: `llm_analytics_clustering_config_set_event_filters_create`
|
|
1647
|
+
- **Path params**: None
|
|
1648
|
+
- **Query params**: None
|
|
1649
|
+
- **Response codes**: `200`
|
|
1650
|
+
- **Transport options**: None
|
|
1651
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1652
|
+
|
|
1653
|
+
**Inputs**
|
|
1654
|
+
|
|
1655
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1656
|
+
- Client transport options: None
|
|
1657
|
+
|
|
1658
|
+
**Outputs**
|
|
1659
|
+
|
|
1660
|
+
- Client return type: `{ event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }`
|
|
1661
|
+
- OpenAPI response codes: `200`
|
|
1662
|
+
|
|
1663
|
+
```ts
|
|
1664
|
+
import posthog from "@utdk/posthog";
|
|
1665
|
+
|
|
1666
|
+
type LlmAnalyticsClusteringConfigSetEventFiltersCreateInput = Parameters<typeof posthog.llmAnalyticsClusteringConfigSetEventFiltersCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1667
|
+
type LlmAnalyticsClusteringConfigSetEventFiltersCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsClusteringConfigSetEventFiltersCreate>>;
|
|
1668
|
+
|
|
1669
|
+
const result: LlmAnalyticsClusteringConfigSetEventFiltersCreateOutput = await posthog.llmAnalyticsClusteringConfigSetEventFiltersCreate();
|
|
1670
|
+
|
|
1671
|
+
// Result shape (from schema): { event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }
|
|
1672
|
+
```
|
|
1673
|
+
|
|
1674
|
+
### `posthog.llmAnalyticsClusteringJobsList`
|
|
1675
|
+
|
|
1676
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/clustering_jobs/`
|
|
1677
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
1678
|
+
- **OpenAPI operationId**: `llm_analytics_clustering_jobs_list`
|
|
1679
|
+
- **Path params**: None
|
|
1680
|
+
- **Query params**: `limit`, `offset`
|
|
1681
|
+
- **Response codes**: `200`
|
|
1682
|
+
- **Transport options**: None
|
|
1683
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1684
|
+
|
|
1685
|
+
**Inputs**
|
|
1686
|
+
|
|
1687
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1688
|
+
- Client transport options: None
|
|
1689
|
+
|
|
1690
|
+
**Outputs**
|
|
1691
|
+
|
|
1692
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: strin...`
|
|
1693
|
+
- OpenAPI response codes: `200`
|
|
1694
|
+
|
|
1695
|
+
```ts
|
|
1696
|
+
import posthog from "@utdk/posthog";
|
|
1697
|
+
|
|
1698
|
+
type LlmAnalyticsClusteringJobsListInput = Parameters<typeof posthog.llmAnalyticsClusteringJobsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1699
|
+
type LlmAnalyticsClusteringJobsListOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsClusteringJobsList>>;
|
|
1700
|
+
|
|
1701
|
+
const result: LlmAnalyticsClusteringJobsListOutput = await posthog.llmAnalyticsClusteringJobsList();
|
|
1702
|
+
|
|
1703
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: strin...
|
|
1704
|
+
```
|
|
1705
|
+
|
|
1706
|
+
### `posthog.llmAnalyticsClusteringJobsCreate`
|
|
1707
|
+
|
|
1708
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/clustering_jobs/`
|
|
1709
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
1710
|
+
- **OpenAPI operationId**: `llm_analytics_clustering_jobs_create`
|
|
1711
|
+
- **Path params**: None
|
|
1712
|
+
- **Query params**: None
|
|
1713
|
+
- **Response codes**: `201`
|
|
1714
|
+
- **Transport options**: None
|
|
1715
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1716
|
+
|
|
1717
|
+
**Inputs**
|
|
1718
|
+
|
|
1719
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1720
|
+
- Client transport options: None
|
|
1721
|
+
|
|
1722
|
+
**Outputs**
|
|
1723
|
+
|
|
1724
|
+
- Client return type: `{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }`
|
|
1725
|
+
- OpenAPI response codes: `201`
|
|
1726
|
+
|
|
1727
|
+
```ts
|
|
1728
|
+
import posthog from "@utdk/posthog";
|
|
1729
|
+
|
|
1730
|
+
type LlmAnalyticsClusteringJobsCreateInput = Parameters<typeof posthog.llmAnalyticsClusteringJobsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1731
|
+
type LlmAnalyticsClusteringJobsCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsClusteringJobsCreate>>;
|
|
1732
|
+
|
|
1733
|
+
const result: LlmAnalyticsClusteringJobsCreateOutput = await posthog.llmAnalyticsClusteringJobsCreate();
|
|
1734
|
+
|
|
1735
|
+
// Result shape (from schema): { id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }
|
|
1736
|
+
```
|
|
1737
|
+
|
|
1738
|
+
### `posthog.llmAnalyticsClusteringJobsDestroy`
|
|
1739
|
+
|
|
1740
|
+
- **HTTP**: `DELETE /api/projects/{project_id}/llm_analytics/clustering_jobs/{id}/`
|
|
1741
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
1742
|
+
- **OpenAPI operationId**: `llm_analytics_clustering_jobs_destroy`
|
|
1743
|
+
- **Path params**: `id`
|
|
1744
|
+
- **Query params**: None
|
|
1745
|
+
- **Response codes**: `204`
|
|
1746
|
+
- **Transport options**: None
|
|
1747
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1748
|
+
|
|
1749
|
+
**Inputs**
|
|
1750
|
+
|
|
1751
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1752
|
+
- Client transport options: None
|
|
1753
|
+
|
|
1754
|
+
**Outputs**
|
|
1755
|
+
|
|
1756
|
+
- Client return type: `unknown`
|
|
1757
|
+
- OpenAPI response codes: `204`
|
|
1758
|
+
|
|
1759
|
+
```ts
|
|
1760
|
+
import posthog from "@utdk/posthog";
|
|
1761
|
+
|
|
1762
|
+
type LlmAnalyticsClusteringJobsDestroyInput = Parameters<typeof posthog.llmAnalyticsClusteringJobsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1763
|
+
type LlmAnalyticsClusteringJobsDestroyOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsClusteringJobsDestroy>>;
|
|
1764
|
+
|
|
1765
|
+
const result: LlmAnalyticsClusteringJobsDestroyOutput = await posthog.llmAnalyticsClusteringJobsDestroy();
|
|
1766
|
+
|
|
1767
|
+
// Result shape (from schema): unknown
|
|
1768
|
+
```
|
|
1769
|
+
|
|
1770
|
+
### `posthog.llmAnalyticsClusteringJobsRetrieve`
|
|
1771
|
+
|
|
1772
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/clustering_jobs/{id}/`
|
|
1773
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
1774
|
+
- **OpenAPI operationId**: `llm_analytics_clustering_jobs_retrieve`
|
|
1775
|
+
- **Path params**: `id`
|
|
1776
|
+
- **Query params**: None
|
|
1777
|
+
- **Response codes**: `200`
|
|
1778
|
+
- **Transport options**: None
|
|
1779
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1780
|
+
|
|
1781
|
+
**Inputs**
|
|
1782
|
+
|
|
1783
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1784
|
+
- Client transport options: None
|
|
1785
|
+
|
|
1786
|
+
**Outputs**
|
|
1787
|
+
|
|
1788
|
+
- Client return type: `{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }`
|
|
1789
|
+
- OpenAPI response codes: `200`
|
|
1790
|
+
|
|
1791
|
+
```ts
|
|
1792
|
+
import posthog from "@utdk/posthog";
|
|
1793
|
+
|
|
1794
|
+
type LlmAnalyticsClusteringJobsRetrieveInput = Parameters<typeof posthog.llmAnalyticsClusteringJobsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1795
|
+
type LlmAnalyticsClusteringJobsRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsClusteringJobsRetrieve>>;
|
|
1796
|
+
|
|
1797
|
+
const result: LlmAnalyticsClusteringJobsRetrieveOutput = await posthog.llmAnalyticsClusteringJobsRetrieve();
|
|
1798
|
+
|
|
1799
|
+
// Result shape (from schema): { id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }
|
|
1800
|
+
```
|
|
1801
|
+
|
|
1802
|
+
### `posthog.llmAnalyticsClusteringJobsPartialUpdate`
|
|
1803
|
+
|
|
1804
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/llm_analytics/clustering_jobs/{id}/`
|
|
1805
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
1806
|
+
- **OpenAPI operationId**: `llm_analytics_clustering_jobs_partial_update`
|
|
1807
|
+
- **Path params**: `id`
|
|
1808
|
+
- **Query params**: None
|
|
1809
|
+
- **Response codes**: `200`
|
|
1810
|
+
- **Transport options**: None
|
|
1811
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1812
|
+
|
|
1813
|
+
**Inputs**
|
|
1814
|
+
|
|
1815
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1816
|
+
- Client transport options: None
|
|
1817
|
+
|
|
1818
|
+
**Outputs**
|
|
1819
|
+
|
|
1820
|
+
- Client return type: `{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }`
|
|
1821
|
+
- OpenAPI response codes: `200`
|
|
1822
|
+
|
|
1823
|
+
```ts
|
|
1824
|
+
import posthog from "@utdk/posthog";
|
|
1825
|
+
|
|
1826
|
+
type LlmAnalyticsClusteringJobsPartialUpdateInput = Parameters<typeof posthog.llmAnalyticsClusteringJobsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1827
|
+
type LlmAnalyticsClusteringJobsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsClusteringJobsPartialUpdate>>;
|
|
1828
|
+
|
|
1829
|
+
const result: LlmAnalyticsClusteringJobsPartialUpdateOutput = await posthog.llmAnalyticsClusteringJobsPartialUpdate();
|
|
1830
|
+
|
|
1831
|
+
// Result shape (from schema): { id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }
|
|
1832
|
+
```
|
|
1833
|
+
|
|
1834
|
+
### `posthog.llmAnalyticsClusteringJobsUpdate`
|
|
1835
|
+
|
|
1836
|
+
- **HTTP**: `PUT /api/projects/{project_id}/llm_analytics/clustering_jobs/{id}/`
|
|
1837
|
+
- **What it does**: CRUD for clustering job configurations (max 10 per team).
|
|
1838
|
+
- **OpenAPI operationId**: `llm_analytics_clustering_jobs_update`
|
|
1839
|
+
- **Path params**: `id`
|
|
1840
|
+
- **Query params**: None
|
|
1841
|
+
- **Response codes**: `200`
|
|
1842
|
+
- **Transport options**: None
|
|
1843
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1844
|
+
|
|
1845
|
+
**Inputs**
|
|
1846
|
+
|
|
1847
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1848
|
+
- Client transport options: None
|
|
1849
|
+
|
|
1850
|
+
**Outputs**
|
|
1851
|
+
|
|
1852
|
+
- Client return type: `{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }`
|
|
1853
|
+
- OpenAPI response codes: `200`
|
|
1854
|
+
|
|
1855
|
+
```ts
|
|
1856
|
+
import posthog from "@utdk/posthog";
|
|
1857
|
+
|
|
1858
|
+
type LlmAnalyticsClusteringJobsUpdateInput = Parameters<typeof posthog.llmAnalyticsClusteringJobsUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1859
|
+
type LlmAnalyticsClusteringJobsUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsClusteringJobsUpdate>>;
|
|
1860
|
+
|
|
1861
|
+
const result: LlmAnalyticsClusteringJobsUpdateOutput = await posthog.llmAnalyticsClusteringJobsUpdate();
|
|
1862
|
+
|
|
1863
|
+
// Result shape (from schema): { id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }
|
|
1864
|
+
```
|
|
1865
|
+
|
|
1866
|
+
### `posthog.llmAnalyticsEvaluationConfigRetrieve`
|
|
1867
|
+
|
|
1868
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/evaluation_config/`
|
|
1869
|
+
- **What it does**: Get the evaluation config for this team
|
|
1870
|
+
- **OpenAPI operationId**: `llm_analytics_evaluation_config_retrieve`
|
|
1871
|
+
- **Path params**: None
|
|
1872
|
+
- **Query params**: None
|
|
1873
|
+
- **Response codes**: `200`
|
|
1874
|
+
- **Transport options**: None
|
|
1875
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1876
|
+
|
|
1877
|
+
**Inputs**
|
|
1878
|
+
|
|
1879
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1880
|
+
- Client transport options: None
|
|
1881
|
+
|
|
1882
|
+
**Outputs**
|
|
1883
|
+
|
|
1884
|
+
- Client return type: `{ trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "g...`
|
|
1885
|
+
- OpenAPI response codes: `200`
|
|
1886
|
+
|
|
1887
|
+
```ts
|
|
1888
|
+
import posthog from "@utdk/posthog";
|
|
1889
|
+
|
|
1890
|
+
type LlmAnalyticsEvaluationConfigRetrieveInput = Parameters<typeof posthog.llmAnalyticsEvaluationConfigRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1891
|
+
type LlmAnalyticsEvaluationConfigRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsEvaluationConfigRetrieve>>;
|
|
1892
|
+
|
|
1893
|
+
const result: LlmAnalyticsEvaluationConfigRetrieveOutput = await posthog.llmAnalyticsEvaluationConfigRetrieve();
|
|
1894
|
+
|
|
1895
|
+
// Result shape (from schema): { trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "g...
|
|
1896
|
+
```
|
|
1897
|
+
|
|
1898
|
+
### `posthog.llmAnalyticsEvaluationConfigSetActiveKeyCreate`
|
|
1899
|
+
|
|
1900
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/evaluation_config/set_active_key/`
|
|
1901
|
+
- **What it does**: Set the active provider key for evaluations
|
|
1902
|
+
- **OpenAPI operationId**: `llm_analytics_evaluation_config_set_active_key_create`
|
|
1903
|
+
- **Path params**: None
|
|
1904
|
+
- **Query params**: None
|
|
1905
|
+
- **Response codes**: `200`
|
|
1906
|
+
- **Transport options**: None
|
|
1907
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1908
|
+
|
|
1909
|
+
**Inputs**
|
|
1910
|
+
|
|
1911
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1912
|
+
- Client transport options: None
|
|
1913
|
+
|
|
1914
|
+
**Outputs**
|
|
1915
|
+
|
|
1916
|
+
- Client return type: `{ trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "g...`
|
|
1917
|
+
- OpenAPI response codes: `200`
|
|
1918
|
+
|
|
1919
|
+
```ts
|
|
1920
|
+
import posthog from "@utdk/posthog";
|
|
1921
|
+
|
|
1922
|
+
type LlmAnalyticsEvaluationConfigSetActiveKeyCreateInput = Parameters<typeof posthog.llmAnalyticsEvaluationConfigSetActiveKeyCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1923
|
+
type LlmAnalyticsEvaluationConfigSetActiveKeyCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsEvaluationConfigSetActiveKeyCreate>>;
|
|
1924
|
+
|
|
1925
|
+
const result: LlmAnalyticsEvaluationConfigSetActiveKeyCreateOutput = await posthog.llmAnalyticsEvaluationConfigSetActiveKeyCreate();
|
|
1926
|
+
|
|
1927
|
+
// Result shape (from schema): { trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "g...
|
|
1928
|
+
```
|
|
1929
|
+
|
|
1930
|
+
### `posthog.llmAnalyticsEvaluationReportsList`
|
|
1931
|
+
|
|
1932
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/evaluation_reports/`
|
|
1933
|
+
- **What it does**: CRUD for evaluation report configurations + report run history.
|
|
1934
|
+
- **OpenAPI operationId**: `llm_analytics_evaluation_reports_list`
|
|
1935
|
+
- **Path params**: None
|
|
1936
|
+
- **Query params**: `evaluation`, `limit`, `offset`
|
|
1937
|
+
- **Response codes**: `200`
|
|
1938
|
+
- **Transport options**: None
|
|
1939
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1940
|
+
|
|
1941
|
+
**Inputs**
|
|
1942
|
+
|
|
1943
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1944
|
+
- Client transport options: None
|
|
1945
|
+
|
|
1946
|
+
**Outputs**
|
|
1947
|
+
|
|
1948
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_del...`
|
|
1949
|
+
- OpenAPI response codes: `200`
|
|
1950
|
+
|
|
1951
|
+
```ts
|
|
1952
|
+
import posthog from "@utdk/posthog";
|
|
1953
|
+
|
|
1954
|
+
type LlmAnalyticsEvaluationReportsListInput = Parameters<typeof posthog.llmAnalyticsEvaluationReportsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1955
|
+
type LlmAnalyticsEvaluationReportsListOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsEvaluationReportsList>>;
|
|
1956
|
+
|
|
1957
|
+
const result: LlmAnalyticsEvaluationReportsListOutput = await posthog.llmAnalyticsEvaluationReportsList();
|
|
1958
|
+
|
|
1959
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_del...
|
|
1960
|
+
```
|
|
1961
|
+
|
|
1962
|
+
### `posthog.llmAnalyticsEvaluationReportsCreate`
|
|
1963
|
+
|
|
1964
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/evaluation_reports/`
|
|
1965
|
+
- **What it does**: CRUD for evaluation report configurations + report run history.
|
|
1966
|
+
- **OpenAPI operationId**: `llm_analytics_evaluation_reports_create`
|
|
1967
|
+
- **Path params**: None
|
|
1968
|
+
- **Query params**: None
|
|
1969
|
+
- **Response codes**: `201`
|
|
1970
|
+
- **Transport options**: None
|
|
1971
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1972
|
+
|
|
1973
|
+
**Inputs**
|
|
1974
|
+
|
|
1975
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1976
|
+
- Client transport options: None
|
|
1977
|
+
|
|
1978
|
+
**Outputs**
|
|
1979
|
+
|
|
1980
|
+
- Client return type: `{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...`
|
|
1981
|
+
- OpenAPI response codes: `201`
|
|
1982
|
+
|
|
1983
|
+
```ts
|
|
1984
|
+
import posthog from "@utdk/posthog";
|
|
1985
|
+
|
|
1986
|
+
type LlmAnalyticsEvaluationReportsCreateInput = Parameters<typeof posthog.llmAnalyticsEvaluationReportsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1987
|
+
type LlmAnalyticsEvaluationReportsCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsEvaluationReportsCreate>>;
|
|
1988
|
+
|
|
1989
|
+
const result: LlmAnalyticsEvaluationReportsCreateOutput = await posthog.llmAnalyticsEvaluationReportsCreate();
|
|
1990
|
+
|
|
1991
|
+
// Result shape (from schema): { id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...
|
|
1992
|
+
```
|
|
1993
|
+
|
|
1994
|
+
### `posthog.llmAnalyticsEvaluationReportsDestroy`
|
|
1995
|
+
|
|
1996
|
+
- **HTTP**: `DELETE /api/projects/{project_id}/llm_analytics/evaluation_reports/{id}/`
|
|
1997
|
+
- **What it does**: Evaluation report configs are deleted only when their evaluation is deleted. Use PATCH enabled=false to stop delivery.
|
|
1998
|
+
- **OpenAPI operationId**: `llm_analytics_evaluation_reports_destroy`
|
|
1999
|
+
- **Path params**: `id`
|
|
2000
|
+
- **Query params**: None
|
|
2001
|
+
- **Response codes**: `405`
|
|
2002
|
+
- **Transport options**: None
|
|
2003
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2004
|
+
|
|
2005
|
+
**Inputs**
|
|
2006
|
+
|
|
2007
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2008
|
+
- Client transport options: None
|
|
2009
|
+
|
|
2010
|
+
**Outputs**
|
|
2011
|
+
|
|
2012
|
+
- Client return type: `unknown`
|
|
2013
|
+
- OpenAPI response codes: `405`
|
|
2014
|
+
|
|
2015
|
+
```ts
|
|
2016
|
+
import posthog from "@utdk/posthog";
|
|
2017
|
+
|
|
2018
|
+
type LlmAnalyticsEvaluationReportsDestroyInput = Parameters<typeof posthog.llmAnalyticsEvaluationReportsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2019
|
+
type LlmAnalyticsEvaluationReportsDestroyOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsEvaluationReportsDestroy>>;
|
|
2020
|
+
|
|
2021
|
+
const result: LlmAnalyticsEvaluationReportsDestroyOutput = await posthog.llmAnalyticsEvaluationReportsDestroy();
|
|
2022
|
+
|
|
2023
|
+
// Result shape (from schema): unknown
|
|
2024
|
+
```
|
|
2025
|
+
|
|
2026
|
+
### `posthog.llmAnalyticsEvaluationReportsRetrieve`
|
|
2027
|
+
|
|
2028
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/evaluation_reports/{id}/`
|
|
2029
|
+
- **What it does**: CRUD for evaluation report configurations + report run history.
|
|
2030
|
+
- **OpenAPI operationId**: `llm_analytics_evaluation_reports_retrieve`
|
|
2031
|
+
- **Path params**: `id`
|
|
2032
|
+
- **Query params**: None
|
|
2033
|
+
- **Response codes**: `200`
|
|
2034
|
+
- **Transport options**: None
|
|
2035
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2036
|
+
|
|
2037
|
+
**Inputs**
|
|
2038
|
+
|
|
2039
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2040
|
+
- Client transport options: None
|
|
2041
|
+
|
|
2042
|
+
**Outputs**
|
|
2043
|
+
|
|
2044
|
+
- Client return type: `{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...`
|
|
2045
|
+
- OpenAPI response codes: `200`
|
|
2046
|
+
|
|
2047
|
+
```ts
|
|
2048
|
+
import posthog from "@utdk/posthog";
|
|
2049
|
+
|
|
2050
|
+
type LlmAnalyticsEvaluationReportsRetrieveInput = Parameters<typeof posthog.llmAnalyticsEvaluationReportsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2051
|
+
type LlmAnalyticsEvaluationReportsRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsEvaluationReportsRetrieve>>;
|
|
2052
|
+
|
|
2053
|
+
const result: LlmAnalyticsEvaluationReportsRetrieveOutput = await posthog.llmAnalyticsEvaluationReportsRetrieve();
|
|
2054
|
+
|
|
2055
|
+
// Result shape (from schema): { id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...
|
|
2056
|
+
```
|
|
2057
|
+
|
|
2058
|
+
### `posthog.llmAnalyticsEvaluationReportsPartialUpdate`
|
|
2059
|
+
|
|
2060
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/llm_analytics/evaluation_reports/{id}/`
|
|
2061
|
+
- **What it does**: CRUD for evaluation report configurations + report run history.
|
|
2062
|
+
- **OpenAPI operationId**: `llm_analytics_evaluation_reports_partial_update`
|
|
2063
|
+
- **Path params**: `id`
|
|
2064
|
+
- **Query params**: None
|
|
2065
|
+
- **Response codes**: `200`
|
|
2066
|
+
- **Transport options**: None
|
|
2067
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2068
|
+
|
|
2069
|
+
**Inputs**
|
|
2070
|
+
|
|
2071
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2072
|
+
- Client transport options: None
|
|
2073
|
+
|
|
2074
|
+
**Outputs**
|
|
2075
|
+
|
|
2076
|
+
- Client return type: `{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...`
|
|
2077
|
+
- OpenAPI response codes: `200`
|
|
2078
|
+
|
|
2079
|
+
```ts
|
|
2080
|
+
import posthog from "@utdk/posthog";
|
|
2081
|
+
|
|
2082
|
+
type LlmAnalyticsEvaluationReportsPartialUpdateInput = Parameters<typeof posthog.llmAnalyticsEvaluationReportsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2083
|
+
type LlmAnalyticsEvaluationReportsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsEvaluationReportsPartialUpdate>>;
|
|
2084
|
+
|
|
2085
|
+
const result: LlmAnalyticsEvaluationReportsPartialUpdateOutput = await posthog.llmAnalyticsEvaluationReportsPartialUpdate();
|
|
2086
|
+
|
|
2087
|
+
// Result shape (from schema): { id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...
|
|
2088
|
+
```
|
|
2089
|
+
|
|
2090
|
+
### `posthog.llmAnalyticsEvaluationReportsUpdate`
|
|
2091
|
+
|
|
2092
|
+
- **HTTP**: `PUT /api/projects/{project_id}/llm_analytics/evaluation_reports/{id}/`
|
|
2093
|
+
- **What it does**: CRUD for evaluation report configurations + report run history.
|
|
2094
|
+
- **OpenAPI operationId**: `llm_analytics_evaluation_reports_update`
|
|
2095
|
+
- **Path params**: `id`
|
|
2096
|
+
- **Query params**: None
|
|
2097
|
+
- **Response codes**: `200`
|
|
2098
|
+
- **Transport options**: None
|
|
2099
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2100
|
+
|
|
2101
|
+
**Inputs**
|
|
2102
|
+
|
|
2103
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2104
|
+
- Client transport options: None
|
|
2105
|
+
|
|
2106
|
+
**Outputs**
|
|
2107
|
+
|
|
2108
|
+
- Client return type: `{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...`
|
|
2109
|
+
- OpenAPI response codes: `200`
|
|
2110
|
+
|
|
2111
|
+
```ts
|
|
2112
|
+
import posthog from "@utdk/posthog";
|
|
2113
|
+
|
|
2114
|
+
type LlmAnalyticsEvaluationReportsUpdateInput = Parameters<typeof posthog.llmAnalyticsEvaluationReportsUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2115
|
+
type LlmAnalyticsEvaluationReportsUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsEvaluationReportsUpdate>>;
|
|
2116
|
+
|
|
2117
|
+
const result: LlmAnalyticsEvaluationReportsUpdateOutput = await posthog.llmAnalyticsEvaluationReportsUpdate();
|
|
2118
|
+
|
|
2119
|
+
// Result shape (from schema): { id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: nu...
|
|
2120
|
+
```
|
|
2121
|
+
|
|
2122
|
+
### `posthog.llmAnalyticsEvaluationReportsGenerateCreate`
|
|
2123
|
+
|
|
2124
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/evaluation_reports/{id}/generate/`
|
|
2125
|
+
- **What it does**: Trigger immediate report generation.
|
|
2126
|
+
- **OpenAPI operationId**: `llm_analytics_evaluation_reports_generate_create`
|
|
2127
|
+
- **Path params**: `id`
|
|
2128
|
+
- **Query params**: None
|
|
2129
|
+
- **Response codes**: `202`
|
|
2130
|
+
- **Transport options**: None
|
|
2131
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2132
|
+
|
|
2133
|
+
**Inputs**
|
|
2134
|
+
|
|
2135
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2136
|
+
- Client transport options: None
|
|
2137
|
+
|
|
2138
|
+
**Outputs**
|
|
2139
|
+
|
|
2140
|
+
- Client return type: `unknown`
|
|
2141
|
+
- OpenAPI response codes: `202`
|
|
2142
|
+
|
|
2143
|
+
```ts
|
|
2144
|
+
import posthog from "@utdk/posthog";
|
|
2145
|
+
|
|
2146
|
+
type LlmAnalyticsEvaluationReportsGenerateCreateInput = Parameters<typeof posthog.llmAnalyticsEvaluationReportsGenerateCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2147
|
+
type LlmAnalyticsEvaluationReportsGenerateCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsEvaluationReportsGenerateCreate>>;
|
|
2148
|
+
|
|
2149
|
+
const result: LlmAnalyticsEvaluationReportsGenerateCreateOutput = await posthog.llmAnalyticsEvaluationReportsGenerateCreate();
|
|
2150
|
+
|
|
2151
|
+
// Result shape (from schema): unknown
|
|
2152
|
+
```
|
|
2153
|
+
|
|
2154
|
+
### `posthog.llmAnalyticsEvaluationReportsRunsList`
|
|
2155
|
+
|
|
2156
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/evaluation_reports/{id}/runs/`
|
|
2157
|
+
- **What it does**: List report runs (history) for this report.
|
|
2158
|
+
- **OpenAPI operationId**: `llm_analytics_evaluation_reports_runs_list`
|
|
2159
|
+
- **Path params**: `id`
|
|
2160
|
+
- **Query params**: `limit`, `offset`
|
|
2161
|
+
- **Response codes**: `200`
|
|
2162
|
+
- **Transport options**: None
|
|
2163
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2164
|
+
|
|
2165
|
+
**Inputs**
|
|
2166
|
+
|
|
2167
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2168
|
+
- Client transport options: None
|
|
2169
|
+
|
|
2170
|
+
**Outputs**
|
|
2171
|
+
|
|
2172
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; report: string; content: unknown; metadata: unknown; period_start: string; period_end: string; delivery_status: "pending" | "deliv...`
|
|
2173
|
+
- OpenAPI response codes: `200`
|
|
2174
|
+
|
|
2175
|
+
```ts
|
|
2176
|
+
import posthog from "@utdk/posthog";
|
|
2177
|
+
|
|
2178
|
+
type LlmAnalyticsEvaluationReportsRunsListInput = Parameters<typeof posthog.llmAnalyticsEvaluationReportsRunsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2179
|
+
type LlmAnalyticsEvaluationReportsRunsListOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsEvaluationReportsRunsList>>;
|
|
2180
|
+
|
|
2181
|
+
const result: LlmAnalyticsEvaluationReportsRunsListOutput = await posthog.llmAnalyticsEvaluationReportsRunsList();
|
|
2182
|
+
|
|
2183
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; report: string; content: unknown; metadata: unknown; period_start: string; period_end: string; delivery_status: "pending" | "deliv...
|
|
2184
|
+
```
|
|
2185
|
+
|
|
2186
|
+
### `posthog.llmAnalyticsModelsRetrieve`
|
|
2187
|
+
|
|
2188
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/models/`
|
|
2189
|
+
- **What it does**: List available models for a provider.
|
|
2190
|
+
- **OpenAPI operationId**: `llm_analytics_models_retrieve`
|
|
2191
|
+
- **Path params**: None
|
|
2192
|
+
- **Query params**: `key_id`, `provider`
|
|
2193
|
+
- **Response codes**: `200`
|
|
2194
|
+
- **Transport options**: None
|
|
2195
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2196
|
+
|
|
2197
|
+
**Inputs**
|
|
2198
|
+
|
|
2199
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2200
|
+
- Client transport options: None
|
|
2201
|
+
|
|
2202
|
+
**Outputs**
|
|
2203
|
+
|
|
2204
|
+
- Client return type: `{ models: ({ id: string; posthog_available: boolean })[] }`
|
|
2205
|
+
- OpenAPI response codes: `200`
|
|
2206
|
+
|
|
2207
|
+
```ts
|
|
2208
|
+
import posthog from "@utdk/posthog";
|
|
2209
|
+
|
|
2210
|
+
type LlmAnalyticsModelsRetrieveInput = Parameters<typeof posthog.llmAnalyticsModelsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2211
|
+
type LlmAnalyticsModelsRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsModelsRetrieve>>;
|
|
2212
|
+
|
|
2213
|
+
const result: LlmAnalyticsModelsRetrieveOutput = await posthog.llmAnalyticsModelsRetrieve();
|
|
2214
|
+
|
|
2215
|
+
// Result shape (from schema): { models: ({ id: string; posthog_available: boolean })[] }
|
|
2216
|
+
```
|
|
2217
|
+
|
|
2218
|
+
### `posthog.llmAnalyticsParserRecipesList`
|
|
2219
|
+
|
|
2220
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/parser_recipes/`
|
|
2221
|
+
- **OpenAPI operationId**: `llm_analytics_parser_recipes_list`
|
|
2222
|
+
- **Path params**: None
|
|
2223
|
+
- **Query params**: `limit`, `offset`
|
|
2224
|
+
- **Response codes**: `200`
|
|
2225
|
+
- **Transport options**: None
|
|
2226
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2227
|
+
|
|
2228
|
+
**Inputs**
|
|
2229
|
+
|
|
2230
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2231
|
+
- Client transport options: None
|
|
2232
|
+
|
|
2233
|
+
**Outputs**
|
|
2234
|
+
|
|
2235
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?...`
|
|
2236
|
+
- OpenAPI response codes: `200`
|
|
2237
|
+
|
|
2238
|
+
```ts
|
|
2239
|
+
import posthog from "@utdk/posthog";
|
|
2240
|
+
|
|
2241
|
+
type LlmAnalyticsParserRecipesListInput = Parameters<typeof posthog.llmAnalyticsParserRecipesList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2242
|
+
type LlmAnalyticsParserRecipesListOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsParserRecipesList>>;
|
|
2243
|
+
|
|
2244
|
+
const result: LlmAnalyticsParserRecipesListOutput = await posthog.llmAnalyticsParserRecipesList();
|
|
2245
|
+
|
|
2246
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?...
|
|
2247
|
+
```
|
|
2248
|
+
|
|
2249
|
+
### `posthog.llmAnalyticsParserRecipesCreate`
|
|
2250
|
+
|
|
2251
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/parser_recipes/`
|
|
2252
|
+
- **OpenAPI operationId**: `llm_analytics_parser_recipes_create`
|
|
2253
|
+
- **Path params**: None
|
|
2254
|
+
- **Query params**: None
|
|
2255
|
+
- **Response codes**: `201`
|
|
2256
|
+
- **Transport options**: None
|
|
2257
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2258
|
+
|
|
2259
|
+
**Inputs**
|
|
2260
|
+
|
|
2261
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2262
|
+
- Client transport options: None
|
|
2263
|
+
|
|
2264
|
+
**Outputs**
|
|
2265
|
+
|
|
2266
|
+
- Client return type: `{ id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_confi...`
|
|
2267
|
+
- OpenAPI response codes: `201`
|
|
2268
|
+
|
|
2269
|
+
```ts
|
|
2270
|
+
import posthog from "@utdk/posthog";
|
|
2271
|
+
|
|
2272
|
+
type LlmAnalyticsParserRecipesCreateInput = Parameters<typeof posthog.llmAnalyticsParserRecipesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2273
|
+
type LlmAnalyticsParserRecipesCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsParserRecipesCreate>>;
|
|
2274
|
+
|
|
2275
|
+
const result: LlmAnalyticsParserRecipesCreateOutput = await posthog.llmAnalyticsParserRecipesCreate();
|
|
2276
|
+
|
|
2277
|
+
// Result shape (from schema): { id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_confi...
|
|
2278
|
+
```
|
|
2279
|
+
|
|
2280
|
+
### `posthog.llmAnalyticsParserRecipesDestroy`
|
|
2281
|
+
|
|
2282
|
+
- **HTTP**: `DELETE /api/projects/{project_id}/llm_analytics/parser_recipes/{id}/`
|
|
2283
|
+
- **OpenAPI operationId**: `llm_analytics_parser_recipes_destroy`
|
|
2284
|
+
- **Path params**: `id`
|
|
2285
|
+
- **Query params**: None
|
|
2286
|
+
- **Response codes**: `204`
|
|
2287
|
+
- **Transport options**: None
|
|
2288
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2289
|
+
|
|
2290
|
+
**Inputs**
|
|
2291
|
+
|
|
2292
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2293
|
+
- Client transport options: None
|
|
2294
|
+
|
|
2295
|
+
**Outputs**
|
|
2296
|
+
|
|
2297
|
+
- Client return type: `unknown`
|
|
2298
|
+
- OpenAPI response codes: `204`
|
|
2299
|
+
|
|
2300
|
+
```ts
|
|
2301
|
+
import posthog from "@utdk/posthog";
|
|
2302
|
+
|
|
2303
|
+
type LlmAnalyticsParserRecipesDestroyInput = Parameters<typeof posthog.llmAnalyticsParserRecipesDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2304
|
+
type LlmAnalyticsParserRecipesDestroyOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsParserRecipesDestroy>>;
|
|
2305
|
+
|
|
2306
|
+
const result: LlmAnalyticsParserRecipesDestroyOutput = await posthog.llmAnalyticsParserRecipesDestroy();
|
|
2307
|
+
|
|
2308
|
+
// Result shape (from schema): unknown
|
|
2309
|
+
```
|
|
2310
|
+
|
|
2311
|
+
### `posthog.llmAnalyticsParserRecipesRetrieve`
|
|
2312
|
+
|
|
2313
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/parser_recipes/{id}/`
|
|
2314
|
+
- **OpenAPI operationId**: `llm_analytics_parser_recipes_retrieve`
|
|
2315
|
+
- **Path params**: `id`
|
|
2316
|
+
- **Query params**: None
|
|
2317
|
+
- **Response codes**: `200`
|
|
2318
|
+
- **Transport options**: None
|
|
2319
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2320
|
+
|
|
2321
|
+
**Inputs**
|
|
2322
|
+
|
|
2323
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2324
|
+
- Client transport options: None
|
|
2325
|
+
|
|
2326
|
+
**Outputs**
|
|
2327
|
+
|
|
2328
|
+
- Client return type: `{ id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_confi...`
|
|
2329
|
+
- OpenAPI response codes: `200`
|
|
2330
|
+
|
|
2331
|
+
```ts
|
|
2332
|
+
import posthog from "@utdk/posthog";
|
|
2333
|
+
|
|
2334
|
+
type LlmAnalyticsParserRecipesRetrieveInput = Parameters<typeof posthog.llmAnalyticsParserRecipesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2335
|
+
type LlmAnalyticsParserRecipesRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsParserRecipesRetrieve>>;
|
|
2336
|
+
|
|
2337
|
+
const result: LlmAnalyticsParserRecipesRetrieveOutput = await posthog.llmAnalyticsParserRecipesRetrieve();
|
|
2338
|
+
|
|
2339
|
+
// Result shape (from schema): { id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_confi...
|
|
2340
|
+
```
|
|
2341
|
+
|
|
2342
|
+
### `posthog.llmAnalyticsParserRecipesPartialUpdate`
|
|
2343
|
+
|
|
2344
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/llm_analytics/parser_recipes/{id}/`
|
|
2345
|
+
- **OpenAPI operationId**: `llm_analytics_parser_recipes_partial_update`
|
|
2346
|
+
- **Path params**: `id`
|
|
2347
|
+
- **Query params**: None
|
|
2348
|
+
- **Response codes**: `200`
|
|
2349
|
+
- **Transport options**: None
|
|
2350
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2351
|
+
|
|
2352
|
+
**Inputs**
|
|
2353
|
+
|
|
2354
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2355
|
+
- Client transport options: None
|
|
2356
|
+
|
|
2357
|
+
**Outputs**
|
|
2358
|
+
|
|
2359
|
+
- Client return type: `{ id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_confi...`
|
|
2360
|
+
- OpenAPI response codes: `200`
|
|
2361
|
+
|
|
2362
|
+
```ts
|
|
2363
|
+
import posthog from "@utdk/posthog";
|
|
2364
|
+
|
|
2365
|
+
type LlmAnalyticsParserRecipesPartialUpdateInput = Parameters<typeof posthog.llmAnalyticsParserRecipesPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2366
|
+
type LlmAnalyticsParserRecipesPartialUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsParserRecipesPartialUpdate>>;
|
|
2367
|
+
|
|
2368
|
+
const result: LlmAnalyticsParserRecipesPartialUpdateOutput = await posthog.llmAnalyticsParserRecipesPartialUpdate();
|
|
2369
|
+
|
|
2370
|
+
// Result shape (from schema): { id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_confi...
|
|
2371
|
+
```
|
|
2372
|
+
|
|
2373
|
+
### `posthog.llmAnalyticsProviderKeyValidationsCreate`
|
|
2374
|
+
|
|
2375
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/provider_key_validations/`
|
|
2376
|
+
- **What it does**: Validate LLM provider API keys without persisting them
|
|
2377
|
+
- **OpenAPI operationId**: `llm_analytics_provider_key_validations_create`
|
|
2378
|
+
- **Path params**: None
|
|
2379
|
+
- **Query params**: None
|
|
2380
|
+
- **Response codes**: `200`
|
|
2381
|
+
- **Transport options**: None
|
|
2382
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2383
|
+
|
|
2384
|
+
**Inputs**
|
|
2385
|
+
|
|
2386
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2387
|
+
- Client transport options: None
|
|
2388
|
+
|
|
2389
|
+
**Outputs**
|
|
2390
|
+
|
|
2391
|
+
- Client return type: `{ [key: string]: unknown }`
|
|
2392
|
+
- OpenAPI response codes: `200`
|
|
2393
|
+
|
|
2394
|
+
```ts
|
|
2395
|
+
import posthog from "@utdk/posthog";
|
|
2396
|
+
|
|
2397
|
+
type LlmAnalyticsProviderKeyValidationsCreateInput = Parameters<typeof posthog.llmAnalyticsProviderKeyValidationsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2398
|
+
type LlmAnalyticsProviderKeyValidationsCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeyValidationsCreate>>;
|
|
2399
|
+
|
|
2400
|
+
const result: LlmAnalyticsProviderKeyValidationsCreateOutput = await posthog.llmAnalyticsProviderKeyValidationsCreate();
|
|
2401
|
+
|
|
2402
|
+
// Result shape (from schema): { [key: string]: unknown }
|
|
2403
|
+
```
|
|
2404
|
+
|
|
2405
|
+
### `posthog.llmAnalyticsProviderKeysList`
|
|
2406
|
+
|
|
2407
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/provider_keys/`
|
|
2408
|
+
- **OpenAPI operationId**: `llm_analytics_provider_keys_list`
|
|
2409
|
+
- **Path params**: None
|
|
2410
|
+
- **Query params**: `limit`, `offset`
|
|
2411
|
+
- **Response codes**: `200`
|
|
2412
|
+
- **Transport options**: None
|
|
2413
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2414
|
+
|
|
2415
|
+
**Inputs**
|
|
2416
|
+
|
|
2417
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2418
|
+
- Client transport options: None
|
|
2419
|
+
|
|
2420
|
+
**Outputs**
|
|
2421
|
+
|
|
2422
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; ...`
|
|
2423
|
+
- OpenAPI response codes: `200`
|
|
2424
|
+
|
|
2425
|
+
```ts
|
|
2426
|
+
import posthog from "@utdk/posthog";
|
|
2427
|
+
|
|
2428
|
+
type LlmAnalyticsProviderKeysListInput = Parameters<typeof posthog.llmAnalyticsProviderKeysList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2429
|
+
type LlmAnalyticsProviderKeysListOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeysList>>;
|
|
2430
|
+
|
|
2431
|
+
const result: LlmAnalyticsProviderKeysListOutput = await posthog.llmAnalyticsProviderKeysList();
|
|
2432
|
+
|
|
2433
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; ...
|
|
2434
|
+
```
|
|
2435
|
+
|
|
2436
|
+
### `posthog.llmAnalyticsProviderKeysCreate`
|
|
2437
|
+
|
|
2438
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/provider_keys/`
|
|
2439
|
+
- **OpenAPI operationId**: `llm_analytics_provider_keys_create`
|
|
2440
|
+
- **Path params**: None
|
|
2441
|
+
- **Query params**: None
|
|
2442
|
+
- **Response codes**: `201`
|
|
2443
|
+
- **Transport options**: None
|
|
2444
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2445
|
+
|
|
2446
|
+
**Inputs**
|
|
2447
|
+
|
|
2448
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2449
|
+
- Client transport options: None
|
|
2450
|
+
|
|
2451
|
+
**Outputs**
|
|
2452
|
+
|
|
2453
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
2454
|
+
- OpenAPI response codes: `201`
|
|
2455
|
+
|
|
2456
|
+
```ts
|
|
2457
|
+
import posthog from "@utdk/posthog";
|
|
2458
|
+
|
|
2459
|
+
type LlmAnalyticsProviderKeysCreateInput = Parameters<typeof posthog.llmAnalyticsProviderKeysCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2460
|
+
type LlmAnalyticsProviderKeysCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeysCreate>>;
|
|
2461
|
+
|
|
2462
|
+
const result: LlmAnalyticsProviderKeysCreateOutput = await posthog.llmAnalyticsProviderKeysCreate();
|
|
2463
|
+
|
|
2464
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
2465
|
+
```
|
|
2466
|
+
|
|
2467
|
+
### `posthog.llmAnalyticsProviderKeysDestroy`
|
|
2468
|
+
|
|
2469
|
+
- **HTTP**: `DELETE /api/projects/{project_id}/llm_analytics/provider_keys/{id}/`
|
|
2470
|
+
- **OpenAPI operationId**: `llm_analytics_provider_keys_destroy`
|
|
2471
|
+
- **Path params**: `id`
|
|
2472
|
+
- **Query params**: None
|
|
2473
|
+
- **Response codes**: `204`
|
|
2474
|
+
- **Transport options**: None
|
|
2475
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2476
|
+
|
|
2477
|
+
**Inputs**
|
|
2478
|
+
|
|
2479
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2480
|
+
- Client transport options: None
|
|
2481
|
+
|
|
2482
|
+
**Outputs**
|
|
2483
|
+
|
|
2484
|
+
- Client return type: `unknown`
|
|
2485
|
+
- OpenAPI response codes: `204`
|
|
2486
|
+
|
|
2487
|
+
```ts
|
|
2488
|
+
import posthog from "@utdk/posthog";
|
|
2489
|
+
|
|
2490
|
+
type LlmAnalyticsProviderKeysDestroyInput = Parameters<typeof posthog.llmAnalyticsProviderKeysDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2491
|
+
type LlmAnalyticsProviderKeysDestroyOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeysDestroy>>;
|
|
2492
|
+
|
|
2493
|
+
const result: LlmAnalyticsProviderKeysDestroyOutput = await posthog.llmAnalyticsProviderKeysDestroy();
|
|
2494
|
+
|
|
2495
|
+
// Result shape (from schema): unknown
|
|
2496
|
+
```
|
|
2497
|
+
|
|
2498
|
+
### `posthog.llmAnalyticsProviderKeysRetrieve`
|
|
2499
|
+
|
|
2500
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/provider_keys/{id}/`
|
|
2501
|
+
- **OpenAPI operationId**: `llm_analytics_provider_keys_retrieve`
|
|
2502
|
+
- **Path params**: `id`
|
|
2503
|
+
- **Query params**: None
|
|
2504
|
+
- **Response codes**: `200`
|
|
2505
|
+
- **Transport options**: None
|
|
2506
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2507
|
+
|
|
2508
|
+
**Inputs**
|
|
2509
|
+
|
|
2510
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2511
|
+
- Client transport options: None
|
|
2512
|
+
|
|
2513
|
+
**Outputs**
|
|
2514
|
+
|
|
2515
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
2516
|
+
- OpenAPI response codes: `200`
|
|
2517
|
+
|
|
2518
|
+
```ts
|
|
2519
|
+
import posthog from "@utdk/posthog";
|
|
2520
|
+
|
|
2521
|
+
type LlmAnalyticsProviderKeysRetrieveInput = Parameters<typeof posthog.llmAnalyticsProviderKeysRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2522
|
+
type LlmAnalyticsProviderKeysRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeysRetrieve>>;
|
|
2523
|
+
|
|
2524
|
+
const result: LlmAnalyticsProviderKeysRetrieveOutput = await posthog.llmAnalyticsProviderKeysRetrieve();
|
|
2525
|
+
|
|
2526
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
2527
|
+
```
|
|
2528
|
+
|
|
2529
|
+
### `posthog.llmAnalyticsProviderKeysPartialUpdate`
|
|
2530
|
+
|
|
2531
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/llm_analytics/provider_keys/{id}/`
|
|
2532
|
+
- **OpenAPI operationId**: `llm_analytics_provider_keys_partial_update`
|
|
2533
|
+
- **Path params**: `id`
|
|
2534
|
+
- **Query params**: None
|
|
2535
|
+
- **Response codes**: `200`
|
|
2536
|
+
- **Transport options**: None
|
|
2537
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2538
|
+
|
|
2539
|
+
**Inputs**
|
|
2540
|
+
|
|
2541
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2542
|
+
- Client transport options: None
|
|
2543
|
+
|
|
2544
|
+
**Outputs**
|
|
2545
|
+
|
|
2546
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
2547
|
+
- OpenAPI response codes: `200`
|
|
2548
|
+
|
|
2549
|
+
```ts
|
|
2550
|
+
import posthog from "@utdk/posthog";
|
|
2551
|
+
|
|
2552
|
+
type LlmAnalyticsProviderKeysPartialUpdateInput = Parameters<typeof posthog.llmAnalyticsProviderKeysPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2553
|
+
type LlmAnalyticsProviderKeysPartialUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeysPartialUpdate>>;
|
|
2554
|
+
|
|
2555
|
+
const result: LlmAnalyticsProviderKeysPartialUpdateOutput = await posthog.llmAnalyticsProviderKeysPartialUpdate();
|
|
2556
|
+
|
|
2557
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
2558
|
+
```
|
|
2559
|
+
|
|
2560
|
+
### `posthog.llmAnalyticsProviderKeysUpdate`
|
|
2561
|
+
|
|
2562
|
+
- **HTTP**: `PUT /api/projects/{project_id}/llm_analytics/provider_keys/{id}/`
|
|
2563
|
+
- **OpenAPI operationId**: `llm_analytics_provider_keys_update`
|
|
2564
|
+
- **Path params**: `id`
|
|
2565
|
+
- **Query params**: None
|
|
2566
|
+
- **Response codes**: `200`
|
|
2567
|
+
- **Transport options**: None
|
|
2568
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2569
|
+
|
|
2570
|
+
**Inputs**
|
|
2571
|
+
|
|
2572
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2573
|
+
- Client transport options: None
|
|
2574
|
+
|
|
2575
|
+
**Outputs**
|
|
2576
|
+
|
|
2577
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
2578
|
+
- OpenAPI response codes: `200`
|
|
2579
|
+
|
|
2580
|
+
```ts
|
|
2581
|
+
import posthog from "@utdk/posthog";
|
|
2582
|
+
|
|
2583
|
+
type LlmAnalyticsProviderKeysUpdateInput = Parameters<typeof posthog.llmAnalyticsProviderKeysUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2584
|
+
type LlmAnalyticsProviderKeysUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeysUpdate>>;
|
|
2585
|
+
|
|
2586
|
+
const result: LlmAnalyticsProviderKeysUpdateOutput = await posthog.llmAnalyticsProviderKeysUpdate();
|
|
2587
|
+
|
|
2588
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
2589
|
+
```
|
|
2590
|
+
|
|
2591
|
+
### `posthog.llmAnalyticsProviderKeysAssignCreate`
|
|
2592
|
+
|
|
2593
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/provider_keys/{id}/assign/`
|
|
2594
|
+
- **What it does**: Assign this key to evaluations and optionally re-enable them.
|
|
2595
|
+
- **OpenAPI operationId**: `llm_analytics_provider_keys_assign_create`
|
|
2596
|
+
- **Path params**: `id`
|
|
2597
|
+
- **Query params**: None
|
|
2598
|
+
- **Response codes**: `200`
|
|
2599
|
+
- **Transport options**: None
|
|
2600
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2601
|
+
|
|
2602
|
+
**Inputs**
|
|
2603
|
+
|
|
2604
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2605
|
+
- Client transport options: None
|
|
2606
|
+
|
|
2607
|
+
**Outputs**
|
|
2608
|
+
|
|
2609
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
2610
|
+
- OpenAPI response codes: `200`
|
|
2611
|
+
|
|
2612
|
+
```ts
|
|
2613
|
+
import posthog from "@utdk/posthog";
|
|
2614
|
+
|
|
2615
|
+
type LlmAnalyticsProviderKeysAssignCreateInput = Parameters<typeof posthog.llmAnalyticsProviderKeysAssignCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2616
|
+
type LlmAnalyticsProviderKeysAssignCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeysAssignCreate>>;
|
|
2617
|
+
|
|
2618
|
+
const result: LlmAnalyticsProviderKeysAssignCreateOutput = await posthog.llmAnalyticsProviderKeysAssignCreate();
|
|
2619
|
+
|
|
2620
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
2621
|
+
```
|
|
2622
|
+
|
|
2623
|
+
### `posthog.llmAnalyticsProviderKeysDependentConfigsRetrieve`
|
|
2624
|
+
|
|
2625
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/provider_keys/{id}/dependent_configs/`
|
|
2626
|
+
- **What it does**: Get evaluations using this key and alternative keys for replacement.
|
|
2627
|
+
- **OpenAPI operationId**: `llm_analytics_provider_keys_dependent_configs_retrieve`
|
|
2628
|
+
- **Path params**: `id`
|
|
2629
|
+
- **Query params**: None
|
|
2630
|
+
- **Response codes**: `200`
|
|
2631
|
+
- **Transport options**: None
|
|
2632
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2633
|
+
|
|
2634
|
+
**Inputs**
|
|
2635
|
+
|
|
2636
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2637
|
+
- Client transport options: None
|
|
2638
|
+
|
|
2639
|
+
**Outputs**
|
|
2640
|
+
|
|
2641
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
2642
|
+
- OpenAPI response codes: `200`
|
|
2643
|
+
|
|
2644
|
+
```ts
|
|
2645
|
+
import posthog from "@utdk/posthog";
|
|
2646
|
+
|
|
2647
|
+
type LlmAnalyticsProviderKeysDependentConfigsRetrieveInput = Parameters<typeof posthog.llmAnalyticsProviderKeysDependentConfigsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2648
|
+
type LlmAnalyticsProviderKeysDependentConfigsRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeysDependentConfigsRetrieve>>;
|
|
2649
|
+
|
|
2650
|
+
const result: LlmAnalyticsProviderKeysDependentConfigsRetrieveOutput = await posthog.llmAnalyticsProviderKeysDependentConfigsRetrieve();
|
|
2651
|
+
|
|
2652
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
2653
|
+
```
|
|
2654
|
+
|
|
2655
|
+
### `posthog.llmAnalyticsProviderKeysValidateCreate`
|
|
2656
|
+
|
|
2657
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/provider_keys/{id}/validate/`
|
|
2658
|
+
- **OpenAPI operationId**: `llm_analytics_provider_keys_validate_create`
|
|
2659
|
+
- **Path params**: `id`
|
|
2660
|
+
- **Query params**: None
|
|
2661
|
+
- **Response codes**: `200`
|
|
2662
|
+
- **Transport options**: None
|
|
2663
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2664
|
+
|
|
2665
|
+
**Inputs**
|
|
2666
|
+
|
|
2667
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2668
|
+
- Client transport options: None
|
|
2669
|
+
|
|
2670
|
+
**Outputs**
|
|
2671
|
+
|
|
2672
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
2673
|
+
- OpenAPI response codes: `200`
|
|
2674
|
+
|
|
2675
|
+
```ts
|
|
2676
|
+
import posthog from "@utdk/posthog";
|
|
2677
|
+
|
|
2678
|
+
type LlmAnalyticsProviderKeysValidateCreateInput = Parameters<typeof posthog.llmAnalyticsProviderKeysValidateCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2679
|
+
type LlmAnalyticsProviderKeysValidateCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeysValidateCreate>>;
|
|
2680
|
+
|
|
2681
|
+
const result: LlmAnalyticsProviderKeysValidateCreateOutput = await posthog.llmAnalyticsProviderKeysValidateCreate();
|
|
2682
|
+
|
|
2683
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
2684
|
+
```
|
|
2685
|
+
|
|
2686
|
+
### `posthog.llmAnalyticsProviderKeysTrialEvaluationsRetrieve`
|
|
2687
|
+
|
|
2688
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/provider_keys/trial_evaluations/`
|
|
2689
|
+
- **What it does**: List enabled evaluations currently using trial credits for a given provider.
|
|
2690
|
+
- **OpenAPI operationId**: `llm_analytics_provider_keys_trial_evaluations_retrieve`
|
|
2691
|
+
- **Path params**: None
|
|
2692
|
+
- **Query params**: None
|
|
2693
|
+
- **Response codes**: `200`
|
|
2694
|
+
- **Transport options**: None
|
|
2695
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2696
|
+
|
|
2697
|
+
**Inputs**
|
|
2698
|
+
|
|
2699
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2700
|
+
- Client transport options: None
|
|
2701
|
+
|
|
2702
|
+
**Outputs**
|
|
2703
|
+
|
|
2704
|
+
- Client return type: `{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...`
|
|
2705
|
+
- OpenAPI response codes: `200`
|
|
2706
|
+
|
|
2707
|
+
```ts
|
|
2708
|
+
import posthog from "@utdk/posthog";
|
|
2709
|
+
|
|
2710
|
+
type LlmAnalyticsProviderKeysTrialEvaluationsRetrieveInput = Parameters<typeof posthog.llmAnalyticsProviderKeysTrialEvaluationsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2711
|
+
type LlmAnalyticsProviderKeysTrialEvaluationsRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsProviderKeysTrialEvaluationsRetrieve>>;
|
|
2712
|
+
|
|
2713
|
+
const result: LlmAnalyticsProviderKeysTrialEvaluationsRetrieveOutput = await posthog.llmAnalyticsProviderKeysTrialEvaluationsRetrieve();
|
|
2714
|
+
|
|
2715
|
+
// Result shape (from schema): { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message:...
|
|
2716
|
+
```
|
|
2717
|
+
|
|
2718
|
+
### `posthog.llmAnalyticsReviewQueueItemsList`
|
|
2719
|
+
|
|
2720
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/review_queue_items/`
|
|
2721
|
+
- **OpenAPI operationId**: `llm_analytics_review_queue_items_list`
|
|
2722
|
+
- **Path params**: None
|
|
2723
|
+
- **Query params**: `limit`, `offset`, `order_by`, `queue_id`, `search`, `trace_id`, `trace_id__in`
|
|
2724
|
+
- **Response codes**: `200`
|
|
2725
|
+
- **Transport options**: None
|
|
2726
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2727
|
+
|
|
2728
|
+
**Inputs**
|
|
2729
|
+
|
|
2730
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2731
|
+
- Client transport options: None
|
|
2732
|
+
|
|
2733
|
+
**Outputs**
|
|
2734
|
+
|
|
2735
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; u...`
|
|
2736
|
+
- OpenAPI response codes: `200`
|
|
2737
|
+
|
|
2738
|
+
```ts
|
|
2739
|
+
import posthog from "@utdk/posthog";
|
|
2740
|
+
|
|
2741
|
+
type LlmAnalyticsReviewQueueItemsListInput = Parameters<typeof posthog.llmAnalyticsReviewQueueItemsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2742
|
+
type LlmAnalyticsReviewQueueItemsListOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsReviewQueueItemsList>>;
|
|
2743
|
+
|
|
2744
|
+
const result: LlmAnalyticsReviewQueueItemsListOutput = await posthog.llmAnalyticsReviewQueueItemsList();
|
|
2745
|
+
|
|
2746
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; u...
|
|
2747
|
+
```
|
|
2748
|
+
|
|
2749
|
+
### `posthog.llmAnalyticsReviewQueueItemsCreate`
|
|
2750
|
+
|
|
2751
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/review_queue_items/`
|
|
2752
|
+
- **OpenAPI operationId**: `llm_analytics_review_queue_items_create`
|
|
2753
|
+
- **Path params**: None
|
|
2754
|
+
- **Query params**: None
|
|
2755
|
+
- **Response codes**: `201`
|
|
2756
|
+
- **Transport options**: None
|
|
2757
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2758
|
+
|
|
2759
|
+
**Inputs**
|
|
2760
|
+
|
|
2761
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2762
|
+
- Client transport options: None
|
|
2763
|
+
|
|
2764
|
+
**Outputs**
|
|
2765
|
+
|
|
2766
|
+
- Client return type: `{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...`
|
|
2767
|
+
- OpenAPI response codes: `201`
|
|
2768
|
+
|
|
2769
|
+
```ts
|
|
2770
|
+
import posthog from "@utdk/posthog";
|
|
2771
|
+
|
|
2772
|
+
type LlmAnalyticsReviewQueueItemsCreateInput = Parameters<typeof posthog.llmAnalyticsReviewQueueItemsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2773
|
+
type LlmAnalyticsReviewQueueItemsCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsReviewQueueItemsCreate>>;
|
|
2774
|
+
|
|
2775
|
+
const result: LlmAnalyticsReviewQueueItemsCreateOutput = await posthog.llmAnalyticsReviewQueueItemsCreate();
|
|
2776
|
+
|
|
2777
|
+
// Result shape (from schema): { id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...
|
|
2778
|
+
```
|
|
2779
|
+
|
|
2780
|
+
### `posthog.llmAnalyticsReviewQueueItemsDestroy`
|
|
2781
|
+
|
|
2782
|
+
- **HTTP**: `DELETE /api/projects/{project_id}/llm_analytics/review_queue_items/{id}/`
|
|
2783
|
+
- **OpenAPI operationId**: `llm_analytics_review_queue_items_destroy`
|
|
2784
|
+
- **Path params**: `id`
|
|
2785
|
+
- **Query params**: None
|
|
2786
|
+
- **Response codes**: `204`
|
|
2787
|
+
- **Transport options**: None
|
|
2788
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2789
|
+
|
|
2790
|
+
**Inputs**
|
|
2791
|
+
|
|
2792
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2793
|
+
- Client transport options: None
|
|
2794
|
+
|
|
2795
|
+
**Outputs**
|
|
2796
|
+
|
|
2797
|
+
- Client return type: `unknown`
|
|
2798
|
+
- OpenAPI response codes: `204`
|
|
2799
|
+
|
|
2800
|
+
```ts
|
|
2801
|
+
import posthog from "@utdk/posthog";
|
|
2802
|
+
|
|
2803
|
+
type LlmAnalyticsReviewQueueItemsDestroyInput = Parameters<typeof posthog.llmAnalyticsReviewQueueItemsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2804
|
+
type LlmAnalyticsReviewQueueItemsDestroyOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsReviewQueueItemsDestroy>>;
|
|
2805
|
+
|
|
2806
|
+
const result: LlmAnalyticsReviewQueueItemsDestroyOutput = await posthog.llmAnalyticsReviewQueueItemsDestroy();
|
|
2807
|
+
|
|
2808
|
+
// Result shape (from schema): unknown
|
|
2809
|
+
```
|
|
2810
|
+
|
|
2811
|
+
### `posthog.llmAnalyticsReviewQueueItemsRetrieve`
|
|
2812
|
+
|
|
2813
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/review_queue_items/{id}/`
|
|
2814
|
+
- **OpenAPI operationId**: `llm_analytics_review_queue_items_retrieve`
|
|
2815
|
+
- **Path params**: `id`
|
|
2816
|
+
- **Query params**: None
|
|
2817
|
+
- **Response codes**: `200`
|
|
2818
|
+
- **Transport options**: None
|
|
2819
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2820
|
+
|
|
2821
|
+
**Inputs**
|
|
2822
|
+
|
|
2823
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2824
|
+
- Client transport options: None
|
|
2825
|
+
|
|
2826
|
+
**Outputs**
|
|
2827
|
+
|
|
2828
|
+
- Client return type: `{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...`
|
|
2829
|
+
- OpenAPI response codes: `200`
|
|
2830
|
+
|
|
2831
|
+
```ts
|
|
2832
|
+
import posthog from "@utdk/posthog";
|
|
2833
|
+
|
|
2834
|
+
type LlmAnalyticsReviewQueueItemsRetrieveInput = Parameters<typeof posthog.llmAnalyticsReviewQueueItemsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2835
|
+
type LlmAnalyticsReviewQueueItemsRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsReviewQueueItemsRetrieve>>;
|
|
2836
|
+
|
|
2837
|
+
const result: LlmAnalyticsReviewQueueItemsRetrieveOutput = await posthog.llmAnalyticsReviewQueueItemsRetrieve();
|
|
2838
|
+
|
|
2839
|
+
// Result shape (from schema): { id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...
|
|
2840
|
+
```
|
|
2841
|
+
|
|
2842
|
+
### `posthog.llmAnalyticsReviewQueueItemsPartialUpdate`
|
|
2843
|
+
|
|
2844
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/llm_analytics/review_queue_items/{id}/`
|
|
2845
|
+
- **OpenAPI operationId**: `llm_analytics_review_queue_items_partial_update`
|
|
2846
|
+
- **Path params**: `id`
|
|
2847
|
+
- **Query params**: None
|
|
2848
|
+
- **Response codes**: `200`
|
|
2849
|
+
- **Transport options**: None
|
|
2850
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2851
|
+
|
|
2852
|
+
**Inputs**
|
|
2853
|
+
|
|
2854
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2855
|
+
- Client transport options: None
|
|
2856
|
+
|
|
2857
|
+
**Outputs**
|
|
2858
|
+
|
|
2859
|
+
- Client return type: `{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...`
|
|
2860
|
+
- OpenAPI response codes: `200`
|
|
2861
|
+
|
|
2862
|
+
```ts
|
|
2863
|
+
import posthog from "@utdk/posthog";
|
|
2864
|
+
|
|
2865
|
+
type LlmAnalyticsReviewQueueItemsPartialUpdateInput = Parameters<typeof posthog.llmAnalyticsReviewQueueItemsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2866
|
+
type LlmAnalyticsReviewQueueItemsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsReviewQueueItemsPartialUpdate>>;
|
|
2867
|
+
|
|
2868
|
+
const result: LlmAnalyticsReviewQueueItemsPartialUpdateOutput = await posthog.llmAnalyticsReviewQueueItemsPartialUpdate();
|
|
2869
|
+
|
|
2870
|
+
// Result shape (from schema): { id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: ...
|
|
2871
|
+
```
|
|
2872
|
+
|
|
2873
|
+
### `posthog.llmAnalyticsReviewQueuesList`
|
|
2874
|
+
|
|
2875
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/review_queues/`
|
|
2876
|
+
- **OpenAPI operationId**: `llm_analytics_review_queues_list`
|
|
2877
|
+
- **Path params**: None
|
|
2878
|
+
- **Query params**: `limit`, `name`, `offset`, `order_by`, `search`
|
|
2879
|
+
- **Response codes**: `200`
|
|
2880
|
+
- **Transport options**: None
|
|
2881
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2882
|
+
|
|
2883
|
+
**Inputs**
|
|
2884
|
+
|
|
2885
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2886
|
+
- Client transport options: None
|
|
2887
|
+
|
|
2888
|
+
**Outputs**
|
|
2889
|
+
|
|
2890
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; d...`
|
|
2891
|
+
- OpenAPI response codes: `200`
|
|
2892
|
+
|
|
2893
|
+
```ts
|
|
2894
|
+
import posthog from "@utdk/posthog";
|
|
2895
|
+
|
|
2896
|
+
type LlmAnalyticsReviewQueuesListInput = Parameters<typeof posthog.llmAnalyticsReviewQueuesList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2897
|
+
type LlmAnalyticsReviewQueuesListOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsReviewQueuesList>>;
|
|
2898
|
+
|
|
2899
|
+
const result: LlmAnalyticsReviewQueuesListOutput = await posthog.llmAnalyticsReviewQueuesList();
|
|
2900
|
+
|
|
2901
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; d...
|
|
2902
|
+
```
|
|
2903
|
+
|
|
2904
|
+
### `posthog.llmAnalyticsReviewQueuesCreate`
|
|
2905
|
+
|
|
2906
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/review_queues/`
|
|
2907
|
+
- **OpenAPI operationId**: `llm_analytics_review_queues_create`
|
|
2908
|
+
- **Path params**: None
|
|
2909
|
+
- **Query params**: None
|
|
2910
|
+
- **Response codes**: `201`
|
|
2911
|
+
- **Transport options**: None
|
|
2912
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2913
|
+
|
|
2914
|
+
**Inputs**
|
|
2915
|
+
|
|
2916
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2917
|
+
- Client transport options: None
|
|
2918
|
+
|
|
2919
|
+
**Outputs**
|
|
2920
|
+
|
|
2921
|
+
- Client return type: `{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...`
|
|
2922
|
+
- OpenAPI response codes: `201`
|
|
2923
|
+
|
|
2924
|
+
```ts
|
|
2925
|
+
import posthog from "@utdk/posthog";
|
|
2926
|
+
|
|
2927
|
+
type LlmAnalyticsReviewQueuesCreateInput = Parameters<typeof posthog.llmAnalyticsReviewQueuesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2928
|
+
type LlmAnalyticsReviewQueuesCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsReviewQueuesCreate>>;
|
|
2929
|
+
|
|
2930
|
+
const result: LlmAnalyticsReviewQueuesCreateOutput = await posthog.llmAnalyticsReviewQueuesCreate();
|
|
2931
|
+
|
|
2932
|
+
// Result shape (from schema): { id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...
|
|
2933
|
+
```
|
|
2934
|
+
|
|
2935
|
+
### `posthog.llmAnalyticsReviewQueuesDestroy`
|
|
2936
|
+
|
|
2937
|
+
- **HTTP**: `DELETE /api/projects/{project_id}/llm_analytics/review_queues/{id}/`
|
|
2938
|
+
- **OpenAPI operationId**: `llm_analytics_review_queues_destroy`
|
|
2939
|
+
- **Path params**: `id`
|
|
2940
|
+
- **Query params**: None
|
|
2941
|
+
- **Response codes**: `204`
|
|
2942
|
+
- **Transport options**: None
|
|
2943
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2944
|
+
|
|
2945
|
+
**Inputs**
|
|
2946
|
+
|
|
2947
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2948
|
+
- Client transport options: None
|
|
2949
|
+
|
|
2950
|
+
**Outputs**
|
|
2951
|
+
|
|
2952
|
+
- Client return type: `unknown`
|
|
2953
|
+
- OpenAPI response codes: `204`
|
|
2954
|
+
|
|
2955
|
+
```ts
|
|
2956
|
+
import posthog from "@utdk/posthog";
|
|
2957
|
+
|
|
2958
|
+
type LlmAnalyticsReviewQueuesDestroyInput = Parameters<typeof posthog.llmAnalyticsReviewQueuesDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2959
|
+
type LlmAnalyticsReviewQueuesDestroyOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsReviewQueuesDestroy>>;
|
|
2960
|
+
|
|
2961
|
+
const result: LlmAnalyticsReviewQueuesDestroyOutput = await posthog.llmAnalyticsReviewQueuesDestroy();
|
|
2962
|
+
|
|
2963
|
+
// Result shape (from schema): unknown
|
|
2964
|
+
```
|
|
2965
|
+
|
|
2966
|
+
### `posthog.llmAnalyticsReviewQueuesRetrieve`
|
|
2967
|
+
|
|
2968
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/review_queues/{id}/`
|
|
2969
|
+
- **OpenAPI operationId**: `llm_analytics_review_queues_retrieve`
|
|
2970
|
+
- **Path params**: `id`
|
|
2971
|
+
- **Query params**: None
|
|
2972
|
+
- **Response codes**: `200`
|
|
2973
|
+
- **Transport options**: None
|
|
2974
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2975
|
+
|
|
2976
|
+
**Inputs**
|
|
2977
|
+
|
|
2978
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2979
|
+
- Client transport options: None
|
|
2980
|
+
|
|
2981
|
+
**Outputs**
|
|
2982
|
+
|
|
2983
|
+
- Client return type: `{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...`
|
|
2984
|
+
- OpenAPI response codes: `200`
|
|
2985
|
+
|
|
2986
|
+
```ts
|
|
2987
|
+
import posthog from "@utdk/posthog";
|
|
2988
|
+
|
|
2989
|
+
type LlmAnalyticsReviewQueuesRetrieveInput = Parameters<typeof posthog.llmAnalyticsReviewQueuesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2990
|
+
type LlmAnalyticsReviewQueuesRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsReviewQueuesRetrieve>>;
|
|
2991
|
+
|
|
2992
|
+
const result: LlmAnalyticsReviewQueuesRetrieveOutput = await posthog.llmAnalyticsReviewQueuesRetrieve();
|
|
2993
|
+
|
|
2994
|
+
// Result shape (from schema): { id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...
|
|
2995
|
+
```
|
|
2996
|
+
|
|
2997
|
+
### `posthog.llmAnalyticsReviewQueuesPartialUpdate`
|
|
2998
|
+
|
|
2999
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/llm_analytics/review_queues/{id}/`
|
|
3000
|
+
- **OpenAPI operationId**: `llm_analytics_review_queues_partial_update`
|
|
3001
|
+
- **Path params**: `id`
|
|
3002
|
+
- **Query params**: None
|
|
3003
|
+
- **Response codes**: `200`
|
|
3004
|
+
- **Transport options**: None
|
|
3005
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3006
|
+
|
|
3007
|
+
**Inputs**
|
|
3008
|
+
|
|
3009
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3010
|
+
- Client transport options: None
|
|
3011
|
+
|
|
3012
|
+
**Outputs**
|
|
3013
|
+
|
|
3014
|
+
- Client return type: `{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...`
|
|
3015
|
+
- OpenAPI response codes: `200`
|
|
3016
|
+
|
|
3017
|
+
```ts
|
|
3018
|
+
import posthog from "@utdk/posthog";
|
|
3019
|
+
|
|
3020
|
+
type LlmAnalyticsReviewQueuesPartialUpdateInput = Parameters<typeof posthog.llmAnalyticsReviewQueuesPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3021
|
+
type LlmAnalyticsReviewQueuesPartialUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsReviewQueuesPartialUpdate>>;
|
|
3022
|
+
|
|
3023
|
+
const result: LlmAnalyticsReviewQueuesPartialUpdateOutput = await posthog.llmAnalyticsReviewQueuesPartialUpdate();
|
|
3024
|
+
|
|
3025
|
+
// Result shape (from schema): { id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email:...
|
|
3026
|
+
```
|
|
3027
|
+
|
|
3028
|
+
### `posthog.llmAnalyticsScoreDefinitionsList`
|
|
3029
|
+
|
|
3030
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/score_definitions/`
|
|
3031
|
+
- **OpenAPI operationId**: `llm_analytics_score_definitions_list`
|
|
3032
|
+
- **Path params**: None
|
|
3033
|
+
- **Query params**: `archived`, `kind`, `limit`, `offset`, `order_by`, `search`
|
|
3034
|
+
- **Response codes**: `200`
|
|
3035
|
+
- **Transport options**: None
|
|
3036
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3037
|
+
|
|
3038
|
+
**Inputs**
|
|
3039
|
+
|
|
3040
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3041
|
+
- Client transport options: None
|
|
3042
|
+
|
|
3043
|
+
**Outputs**
|
|
3044
|
+
|
|
3045
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; curren...`
|
|
3046
|
+
- OpenAPI response codes: `200`
|
|
3047
|
+
|
|
3048
|
+
```ts
|
|
3049
|
+
import posthog from "@utdk/posthog";
|
|
3050
|
+
|
|
3051
|
+
type LlmAnalyticsScoreDefinitionsListInput = Parameters<typeof posthog.llmAnalyticsScoreDefinitionsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3052
|
+
type LlmAnalyticsScoreDefinitionsListOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsScoreDefinitionsList>>;
|
|
3053
|
+
|
|
3054
|
+
const result: LlmAnalyticsScoreDefinitionsListOutput = await posthog.llmAnalyticsScoreDefinitionsList();
|
|
3055
|
+
|
|
3056
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; curren...
|
|
3057
|
+
```
|
|
3058
|
+
|
|
3059
|
+
### `posthog.llmAnalyticsScoreDefinitionsCreate`
|
|
3060
|
+
|
|
3061
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/score_definitions/`
|
|
3062
|
+
- **OpenAPI operationId**: `llm_analytics_score_definitions_create`
|
|
3063
|
+
- **Path params**: None
|
|
3064
|
+
- **Query params**: None
|
|
3065
|
+
- **Response codes**: `201`
|
|
3066
|
+
- **Transport options**: None
|
|
3067
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3068
|
+
|
|
3069
|
+
**Inputs**
|
|
3070
|
+
|
|
3071
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3072
|
+
- Client transport options: None
|
|
3073
|
+
|
|
3074
|
+
**Outputs**
|
|
3075
|
+
|
|
3076
|
+
- Client return type: `{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...`
|
|
3077
|
+
- OpenAPI response codes: `201`
|
|
3078
|
+
|
|
3079
|
+
```ts
|
|
3080
|
+
import posthog from "@utdk/posthog";
|
|
3081
|
+
|
|
3082
|
+
type LlmAnalyticsScoreDefinitionsCreateInput = Parameters<typeof posthog.llmAnalyticsScoreDefinitionsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3083
|
+
type LlmAnalyticsScoreDefinitionsCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsScoreDefinitionsCreate>>;
|
|
3084
|
+
|
|
3085
|
+
const result: LlmAnalyticsScoreDefinitionsCreateOutput = await posthog.llmAnalyticsScoreDefinitionsCreate();
|
|
3086
|
+
|
|
3087
|
+
// Result shape (from schema): { id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...
|
|
3088
|
+
```
|
|
3089
|
+
|
|
3090
|
+
### `posthog.llmAnalyticsScoreDefinitionsRetrieve`
|
|
3091
|
+
|
|
3092
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/score_definitions/{id}/`
|
|
3093
|
+
- **OpenAPI operationId**: `llm_analytics_score_definitions_retrieve`
|
|
3094
|
+
- **Path params**: `id`
|
|
3095
|
+
- **Query params**: None
|
|
3096
|
+
- **Response codes**: `200`
|
|
3097
|
+
- **Transport options**: None
|
|
3098
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3099
|
+
|
|
3100
|
+
**Inputs**
|
|
3101
|
+
|
|
3102
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3103
|
+
- Client transport options: None
|
|
3104
|
+
|
|
3105
|
+
**Outputs**
|
|
3106
|
+
|
|
3107
|
+
- Client return type: `{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...`
|
|
3108
|
+
- OpenAPI response codes: `200`
|
|
3109
|
+
|
|
3110
|
+
```ts
|
|
3111
|
+
import posthog from "@utdk/posthog";
|
|
3112
|
+
|
|
3113
|
+
type LlmAnalyticsScoreDefinitionsRetrieveInput = Parameters<typeof posthog.llmAnalyticsScoreDefinitionsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3114
|
+
type LlmAnalyticsScoreDefinitionsRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsScoreDefinitionsRetrieve>>;
|
|
3115
|
+
|
|
3116
|
+
const result: LlmAnalyticsScoreDefinitionsRetrieveOutput = await posthog.llmAnalyticsScoreDefinitionsRetrieve();
|
|
3117
|
+
|
|
3118
|
+
// Result shape (from schema): { id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...
|
|
3119
|
+
```
|
|
3120
|
+
|
|
3121
|
+
### `posthog.llmAnalyticsScoreDefinitionsPartialUpdate`
|
|
3122
|
+
|
|
3123
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/llm_analytics/score_definitions/{id}/`
|
|
3124
|
+
- **OpenAPI operationId**: `llm_analytics_score_definitions_partial_update`
|
|
3125
|
+
- **Path params**: `id`
|
|
3126
|
+
- **Query params**: None
|
|
3127
|
+
- **Response codes**: `200`
|
|
3128
|
+
- **Transport options**: None
|
|
3129
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3130
|
+
|
|
3131
|
+
**Inputs**
|
|
3132
|
+
|
|
3133
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3134
|
+
- Client transport options: None
|
|
3135
|
+
|
|
3136
|
+
**Outputs**
|
|
3137
|
+
|
|
3138
|
+
- Client return type: `{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...`
|
|
3139
|
+
- OpenAPI response codes: `200`
|
|
3140
|
+
|
|
3141
|
+
```ts
|
|
3142
|
+
import posthog from "@utdk/posthog";
|
|
3143
|
+
|
|
3144
|
+
type LlmAnalyticsScoreDefinitionsPartialUpdateInput = Parameters<typeof posthog.llmAnalyticsScoreDefinitionsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3145
|
+
type LlmAnalyticsScoreDefinitionsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsScoreDefinitionsPartialUpdate>>;
|
|
3146
|
+
|
|
3147
|
+
const result: LlmAnalyticsScoreDefinitionsPartialUpdateOutput = await posthog.llmAnalyticsScoreDefinitionsPartialUpdate();
|
|
3148
|
+
|
|
3149
|
+
// Result shape (from schema): { id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...
|
|
3150
|
+
```
|
|
3151
|
+
|
|
3152
|
+
### `posthog.llmAnalyticsScoreDefinitionsNewVersionCreate`
|
|
3153
|
+
|
|
3154
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/score_definitions/{id}/new_version/`
|
|
3155
|
+
- **OpenAPI operationId**: `llm_analytics_score_definitions_new_version_create`
|
|
3156
|
+
- **Path params**: `id`
|
|
3157
|
+
- **Query params**: None
|
|
3158
|
+
- **Response codes**: `200`
|
|
3159
|
+
- **Transport options**: None
|
|
3160
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3161
|
+
|
|
3162
|
+
**Inputs**
|
|
3163
|
+
|
|
3164
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3165
|
+
- Client transport options: None
|
|
3166
|
+
|
|
3167
|
+
**Outputs**
|
|
3168
|
+
|
|
3169
|
+
- Client return type: `{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...`
|
|
3170
|
+
- OpenAPI response codes: `200`
|
|
3171
|
+
|
|
3172
|
+
```ts
|
|
3173
|
+
import posthog from "@utdk/posthog";
|
|
3174
|
+
|
|
3175
|
+
type LlmAnalyticsScoreDefinitionsNewVersionCreateInput = Parameters<typeof posthog.llmAnalyticsScoreDefinitionsNewVersionCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3176
|
+
type LlmAnalyticsScoreDefinitionsNewVersionCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsScoreDefinitionsNewVersionCreate>>;
|
|
3177
|
+
|
|
3178
|
+
const result: LlmAnalyticsScoreDefinitionsNewVersionCreateOutput = await posthog.llmAnalyticsScoreDefinitionsNewVersionCreate();
|
|
3179
|
+
|
|
3180
|
+
// Result shape (from schema): { id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: stri...
|
|
3181
|
+
```
|
|
3182
|
+
|
|
3183
|
+
### `posthog.llmAnalyticsTraceReviewsList`
|
|
3184
|
+
|
|
3185
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/trace_reviews/`
|
|
3186
|
+
- **OpenAPI operationId**: `llm_analytics_trace_reviews_list`
|
|
3187
|
+
- **Path params**: None
|
|
3188
|
+
- **Query params**: `definition_id`, `definition_id__in`, `limit`, `offset`, `order_by`, `search`, `trace_id`, `trace_id__in`
|
|
3189
|
+
- **Response codes**: `200`
|
|
3190
|
+
- **Transport options**: None
|
|
3191
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3192
|
+
|
|
3193
|
+
**Inputs**
|
|
3194
|
+
|
|
3195
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3196
|
+
- Client transport options: None
|
|
3197
|
+
|
|
3198
|
+
**Outputs**
|
|
3199
|
+
|
|
3200
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: numb...`
|
|
3201
|
+
- OpenAPI response codes: `200`
|
|
3202
|
+
|
|
3203
|
+
```ts
|
|
3204
|
+
import posthog from "@utdk/posthog";
|
|
3205
|
+
|
|
3206
|
+
type LlmAnalyticsTraceReviewsListInput = Parameters<typeof posthog.llmAnalyticsTraceReviewsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3207
|
+
type LlmAnalyticsTraceReviewsListOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsTraceReviewsList>>;
|
|
3208
|
+
|
|
3209
|
+
const result: LlmAnalyticsTraceReviewsListOutput = await posthog.llmAnalyticsTraceReviewsList();
|
|
3210
|
+
|
|
3211
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: numb...
|
|
3212
|
+
```
|
|
3213
|
+
|
|
3214
|
+
### `posthog.llmAnalyticsTraceReviewsCreate`
|
|
3215
|
+
|
|
3216
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/trace_reviews/`
|
|
3217
|
+
- **OpenAPI operationId**: `llm_analytics_trace_reviews_create`
|
|
3218
|
+
- **Path params**: None
|
|
3219
|
+
- **Query params**: None
|
|
3220
|
+
- **Response codes**: `201`
|
|
3221
|
+
- **Transport options**: None
|
|
3222
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3223
|
+
|
|
3224
|
+
**Inputs**
|
|
3225
|
+
|
|
3226
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3227
|
+
- Client transport options: None
|
|
3228
|
+
|
|
3229
|
+
**Outputs**
|
|
3230
|
+
|
|
3231
|
+
- Client return type: `{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
3232
|
+
- OpenAPI response codes: `201`
|
|
3233
|
+
|
|
3234
|
+
```ts
|
|
3235
|
+
import posthog from "@utdk/posthog";
|
|
3236
|
+
|
|
3237
|
+
type LlmAnalyticsTraceReviewsCreateInput = Parameters<typeof posthog.llmAnalyticsTraceReviewsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3238
|
+
type LlmAnalyticsTraceReviewsCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsTraceReviewsCreate>>;
|
|
3239
|
+
|
|
3240
|
+
const result: LlmAnalyticsTraceReviewsCreateOutput = await posthog.llmAnalyticsTraceReviewsCreate();
|
|
3241
|
+
|
|
3242
|
+
// Result shape (from schema): { id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
3243
|
+
```
|
|
3244
|
+
|
|
3245
|
+
### `posthog.llmAnalyticsTraceReviewsDestroy`
|
|
3246
|
+
|
|
3247
|
+
- **HTTP**: `DELETE /api/projects/{project_id}/llm_analytics/trace_reviews/{id}/`
|
|
3248
|
+
- **OpenAPI operationId**: `llm_analytics_trace_reviews_destroy`
|
|
3249
|
+
- **Path params**: `id`
|
|
3250
|
+
- **Query params**: None
|
|
3251
|
+
- **Response codes**: `204`
|
|
3252
|
+
- **Transport options**: None
|
|
3253
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3254
|
+
|
|
3255
|
+
**Inputs**
|
|
3256
|
+
|
|
3257
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3258
|
+
- Client transport options: None
|
|
3259
|
+
|
|
3260
|
+
**Outputs**
|
|
3261
|
+
|
|
3262
|
+
- Client return type: `unknown`
|
|
3263
|
+
- OpenAPI response codes: `204`
|
|
3264
|
+
|
|
3265
|
+
```ts
|
|
3266
|
+
import posthog from "@utdk/posthog";
|
|
3267
|
+
|
|
3268
|
+
type LlmAnalyticsTraceReviewsDestroyInput = Parameters<typeof posthog.llmAnalyticsTraceReviewsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3269
|
+
type LlmAnalyticsTraceReviewsDestroyOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsTraceReviewsDestroy>>;
|
|
3270
|
+
|
|
3271
|
+
const result: LlmAnalyticsTraceReviewsDestroyOutput = await posthog.llmAnalyticsTraceReviewsDestroy();
|
|
3272
|
+
|
|
3273
|
+
// Result shape (from schema): unknown
|
|
3274
|
+
```
|
|
3275
|
+
|
|
3276
|
+
### `posthog.llmAnalyticsTraceReviewsRetrieve`
|
|
3277
|
+
|
|
3278
|
+
- **HTTP**: `GET /api/projects/{project_id}/llm_analytics/trace_reviews/{id}/`
|
|
3279
|
+
- **OpenAPI operationId**: `llm_analytics_trace_reviews_retrieve`
|
|
3280
|
+
- **Path params**: `id`
|
|
3281
|
+
- **Query params**: None
|
|
3282
|
+
- **Response codes**: `200`
|
|
3283
|
+
- **Transport options**: None
|
|
3284
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3285
|
+
|
|
3286
|
+
**Inputs**
|
|
3287
|
+
|
|
3288
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3289
|
+
- Client transport options: None
|
|
3290
|
+
|
|
3291
|
+
**Outputs**
|
|
3292
|
+
|
|
3293
|
+
- Client return type: `{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
3294
|
+
- OpenAPI response codes: `200`
|
|
3295
|
+
|
|
3296
|
+
```ts
|
|
3297
|
+
import posthog from "@utdk/posthog";
|
|
3298
|
+
|
|
3299
|
+
type LlmAnalyticsTraceReviewsRetrieveInput = Parameters<typeof posthog.llmAnalyticsTraceReviewsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3300
|
+
type LlmAnalyticsTraceReviewsRetrieveOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsTraceReviewsRetrieve>>;
|
|
3301
|
+
|
|
3302
|
+
const result: LlmAnalyticsTraceReviewsRetrieveOutput = await posthog.llmAnalyticsTraceReviewsRetrieve();
|
|
3303
|
+
|
|
3304
|
+
// Result shape (from schema): { id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
3305
|
+
```
|
|
3306
|
+
|
|
3307
|
+
### `posthog.llmAnalyticsTraceReviewsPartialUpdate`
|
|
3308
|
+
|
|
3309
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/llm_analytics/trace_reviews/{id}/`
|
|
3310
|
+
- **OpenAPI operationId**: `llm_analytics_trace_reviews_partial_update`
|
|
3311
|
+
- **Path params**: `id`
|
|
3312
|
+
- **Query params**: None
|
|
3313
|
+
- **Response codes**: `200`
|
|
3314
|
+
- **Transport options**: None
|
|
3315
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3316
|
+
|
|
3317
|
+
**Inputs**
|
|
3318
|
+
|
|
3319
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3320
|
+
- Client transport options: None
|
|
3321
|
+
|
|
3322
|
+
**Outputs**
|
|
3323
|
+
|
|
3324
|
+
- Client return type: `{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
3325
|
+
- OpenAPI response codes: `200`
|
|
3326
|
+
|
|
3327
|
+
```ts
|
|
3328
|
+
import posthog from "@utdk/posthog";
|
|
3329
|
+
|
|
3330
|
+
type LlmAnalyticsTraceReviewsPartialUpdateInput = Parameters<typeof posthog.llmAnalyticsTraceReviewsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3331
|
+
type LlmAnalyticsTraceReviewsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsTraceReviewsPartialUpdate>>;
|
|
3332
|
+
|
|
3333
|
+
const result: LlmAnalyticsTraceReviewsPartialUpdateOutput = await posthog.llmAnalyticsTraceReviewsPartialUpdate();
|
|
3334
|
+
|
|
3335
|
+
// Result shape (from schema): { id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
3336
|
+
```
|
|
3337
|
+
|
|
3338
|
+
### `posthog.llmAnalyticsTranslateCreate`
|
|
3339
|
+
|
|
3340
|
+
- **HTTP**: `POST /api/projects/{project_id}/llm_analytics/translate/`
|
|
3341
|
+
- **What it does**: Translate text to target language.
|
|
3342
|
+
- **OpenAPI operationId**: `llm_analytics_translate_create`
|
|
3343
|
+
- **Path params**: None
|
|
3344
|
+
- **Query params**: None
|
|
3345
|
+
- **Response codes**: `200`
|
|
3346
|
+
- **Transport options**: None
|
|
3347
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
3348
|
+
|
|
3349
|
+
**Inputs**
|
|
3350
|
+
|
|
3351
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
3352
|
+
- Client transport options: None
|
|
3353
|
+
|
|
3354
|
+
**Outputs**
|
|
3355
|
+
|
|
3356
|
+
- Client return type: `{ [key: string]: unknown }`
|
|
3357
|
+
- OpenAPI response codes: `200`
|
|
3358
|
+
|
|
3359
|
+
```ts
|
|
3360
|
+
import posthog from "@utdk/posthog";
|
|
3361
|
+
|
|
3362
|
+
type LlmAnalyticsTranslateCreateInput = Parameters<typeof posthog.llmAnalyticsTranslateCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
3363
|
+
type LlmAnalyticsTranslateCreateOutput = Awaited<ReturnType<typeof posthog.llmAnalyticsTranslateCreate>>;
|
|
3364
|
+
|
|
3365
|
+
const result: LlmAnalyticsTranslateCreateOutput = await posthog.llmAnalyticsTranslateCreate();
|
|
3366
|
+
|
|
3367
|
+
// Result shape (from schema): { [key: string]: unknown }
|
|
3368
|
+
```
|
|
3369
|
+
|
|
3370
|
+
|
|
3371
|
+
<!-- prompt-hash:
|
|
3372
|
+
8c3694991a4c289225f05a4e8f1e098cc74d085a088d7dffd82f00d93797b7f8
|
|
3373
|
+
-->
|