Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit 0e6d8b6

Browse files
authored
fix(agent): type artifact upload provenance
Generated-By: PostHog Code Task-Id: 45da9f78-5b15-4cfe-a8a5-9afcbd6b4755
1 parent ffe73ad commit 0e6d8b6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/agent/src/posthog-api.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const DEFAULT_USER_AGENT = `posthog/agent.hog.dev; version: ${packageJson.versio
1717
export interface TaskArtifactUploadPayload {
1818
name: string;
1919
type: ArtifactType;
20+
source?: string;
2021
content: string;
2122
/** Encoding of `content`. With "base64" the backend stores the decoded bytes. */
2223
content_encoding?: "utf-8" | "base64";
@@ -26,6 +27,7 @@ export interface TaskArtifactUploadPayload {
2627
export interface TaskArtifactPrepareUploadPayload {
2728
name: string;
2829
type: ArtifactType;
30+
source?: string;
2931
size: number;
3032
content_type?: string;
3133
}
@@ -34,6 +36,7 @@ export interface PreparedTaskArtifactUpload {
3436
id: string;
3537
name: string;
3638
type: ArtifactType;
39+
source?: string;
3740
size: number;
3841
content_type?: string;
3942
storage_path: string;
@@ -51,6 +54,7 @@ export interface TaskArtifactFinalizeUploadPayload {
5154
id: string;
5255
name: string;
5356
type: ArtifactType;
57+
source?: string;
5458
storage_path: string;
5559
content_type?: string;
5660
}

0 commit comments

Comments
 (0)