@bli-cockpit/telemetry-core 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-artifacts.d.ts +224 -0
- package/dist/agent-artifacts.js +141 -0
- package/dist/evidence-upload.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/ingest-dto.d.ts +5 -5
- package/dist/privacy.d.ts +1 -1
- package/dist/source-adapter.d.ts +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const AGENT_IMAGE_ARTIFACT_MAX_FILE_BYTES: number;
|
|
3
|
+
export declare const AGENT_IMAGE_ARTIFACT_MAX_REPORT_ITEMS = 100;
|
|
4
|
+
export declare const AgentArtifactSourceSchema: z.ZodEnum<{
|
|
5
|
+
codex: "codex";
|
|
6
|
+
claude_code: "claude_code";
|
|
7
|
+
}>;
|
|
8
|
+
export type AgentArtifactSource = z.infer<typeof AgentArtifactSourceSchema>;
|
|
9
|
+
export declare const AgentArtifactKindSchema: z.ZodEnum<{
|
|
10
|
+
screenshot: "screenshot";
|
|
11
|
+
image_attachment: "image_attachment";
|
|
12
|
+
}>;
|
|
13
|
+
export type AgentArtifactKind = z.infer<typeof AgentArtifactKindSchema>;
|
|
14
|
+
export declare const AgentArtifactCaptureOriginSchema: z.ZodEnum<{
|
|
15
|
+
agent_session_attachment: "agent_session_attachment";
|
|
16
|
+
}>;
|
|
17
|
+
export type AgentArtifactCaptureOrigin = z.infer<typeof AgentArtifactCaptureOriginSchema>;
|
|
18
|
+
export declare const AgentArtifactRedactionStatusSchema: z.ZodEnum<{
|
|
19
|
+
not_started: "not_started";
|
|
20
|
+
pending: "pending";
|
|
21
|
+
redacted: "redacted";
|
|
22
|
+
safe_for_metadata: "safe_for_metadata";
|
|
23
|
+
blocked: "blocked";
|
|
24
|
+
}>;
|
|
25
|
+
export type AgentArtifactRedactionStatus = z.infer<typeof AgentArtifactRedactionStatusSchema>;
|
|
26
|
+
export declare const AgentArtifactOcrStatusSchema: z.ZodEnum<{
|
|
27
|
+
not_started: "not_started";
|
|
28
|
+
pending: "pending";
|
|
29
|
+
completed: "completed";
|
|
30
|
+
failed: "failed";
|
|
31
|
+
skipped: "skipped";
|
|
32
|
+
}>;
|
|
33
|
+
export type AgentArtifactOcrStatus = z.infer<typeof AgentArtifactOcrStatusSchema>;
|
|
34
|
+
export declare const AgentImageArtifactMediaTypeSchema: z.ZodEnum<{
|
|
35
|
+
"image/png": "image/png";
|
|
36
|
+
"image/jpeg": "image/jpeg";
|
|
37
|
+
}>;
|
|
38
|
+
export type AgentImageArtifactMediaType = z.infer<typeof AgentImageArtifactMediaTypeSchema>;
|
|
39
|
+
export declare const AgentImageArtifactStorageBucketSchema: z.ZodLiteral<"ambient-raw-evidence">;
|
|
40
|
+
export type AgentImageArtifactStorageBucket = z.infer<typeof AgentImageArtifactStorageBucketSchema>;
|
|
41
|
+
export declare const AgentImageArtifactStorageMetadataSchema: z.ZodObject<{
|
|
42
|
+
storage_bucket: z.ZodLiteral<"ambient-raw-evidence">;
|
|
43
|
+
object_key: z.ZodString;
|
|
44
|
+
content_hash_sha256: z.ZodString;
|
|
45
|
+
byte_size: z.ZodNumber;
|
|
46
|
+
media_type: z.ZodEnum<{
|
|
47
|
+
"image/png": "image/png";
|
|
48
|
+
"image/jpeg": "image/jpeg";
|
|
49
|
+
}>;
|
|
50
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
perceptual_hash: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
export type AgentImageArtifactStorageMetadata = z.infer<typeof AgentImageArtifactStorageMetadataSchema>;
|
|
55
|
+
export declare const AgentImageArtifactBindingSchema: z.ZodObject<{
|
|
56
|
+
operator_user_id: z.ZodOptional<z.ZodString>;
|
|
57
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
58
|
+
work_session_id: z.ZodOptional<z.ZodString>;
|
|
59
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
60
|
+
ticket_id: z.ZodOptional<z.ZodString>;
|
|
61
|
+
repo_fingerprint: z.ZodOptional<z.ZodString>;
|
|
62
|
+
worktree_fingerprint: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export type AgentImageArtifactBinding = z.infer<typeof AgentImageArtifactBindingSchema>;
|
|
65
|
+
export declare const AgentImageArtifactSchema: z.ZodObject<{
|
|
66
|
+
storage_bucket: z.ZodLiteral<"ambient-raw-evidence">;
|
|
67
|
+
object_key: z.ZodString;
|
|
68
|
+
content_hash_sha256: z.ZodString;
|
|
69
|
+
byte_size: z.ZodNumber;
|
|
70
|
+
media_type: z.ZodEnum<{
|
|
71
|
+
"image/png": "image/png";
|
|
72
|
+
"image/jpeg": "image/jpeg";
|
|
73
|
+
}>;
|
|
74
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
perceptual_hash: z.ZodOptional<z.ZodString>;
|
|
77
|
+
operator_user_id: z.ZodOptional<z.ZodString>;
|
|
78
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
79
|
+
work_session_id: z.ZodOptional<z.ZodString>;
|
|
80
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
81
|
+
ticket_id: z.ZodOptional<z.ZodString>;
|
|
82
|
+
repo_fingerprint: z.ZodOptional<z.ZodString>;
|
|
83
|
+
worktree_fingerprint: z.ZodOptional<z.ZodString>;
|
|
84
|
+
artifact_id: z.ZodOptional<z.ZodString>;
|
|
85
|
+
raw_evidence_pointer_id: z.ZodString;
|
|
86
|
+
agent_source: z.ZodEnum<{
|
|
87
|
+
codex: "codex";
|
|
88
|
+
claude_code: "claude_code";
|
|
89
|
+
}>;
|
|
90
|
+
source_session_id: z.ZodString;
|
|
91
|
+
source_message_id: z.ZodOptional<z.ZodString>;
|
|
92
|
+
turn_index: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
occurred_at: z.ZodString;
|
|
94
|
+
artifact_kind: z.ZodDefault<z.ZodEnum<{
|
|
95
|
+
screenshot: "screenshot";
|
|
96
|
+
image_attachment: "image_attachment";
|
|
97
|
+
}>>;
|
|
98
|
+
capture_origin: z.ZodDefault<z.ZodEnum<{
|
|
99
|
+
agent_session_attachment: "agent_session_attachment";
|
|
100
|
+
}>>;
|
|
101
|
+
redaction_status: z.ZodDefault<z.ZodEnum<{
|
|
102
|
+
not_started: "not_started";
|
|
103
|
+
pending: "pending";
|
|
104
|
+
redacted: "redacted";
|
|
105
|
+
safe_for_metadata: "safe_for_metadata";
|
|
106
|
+
blocked: "blocked";
|
|
107
|
+
}>>;
|
|
108
|
+
ocr_status: z.ZodDefault<z.ZodEnum<{
|
|
109
|
+
not_started: "not_started";
|
|
110
|
+
pending: "pending";
|
|
111
|
+
completed: "completed";
|
|
112
|
+
failed: "failed";
|
|
113
|
+
skipped: "skipped";
|
|
114
|
+
}>>;
|
|
115
|
+
ocr_text_redacted: z.ZodOptional<z.ZodString>;
|
|
116
|
+
labels: z.ZodDefault<z.ZodObject<{
|
|
117
|
+
attachment_role: z.ZodOptional<z.ZodString>;
|
|
118
|
+
collector_upload_state: z.ZodOptional<z.ZodEnum<{
|
|
119
|
+
uploaded: "uploaded";
|
|
120
|
+
reused_existing: "reused_existing";
|
|
121
|
+
}>>;
|
|
122
|
+
source_sidecar_id: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
}, z.core.$strict>;
|
|
125
|
+
export type AgentImageArtifact = z.infer<typeof AgentImageArtifactSchema>;
|
|
126
|
+
export declare const AgentImageArtifactReportRequestSchema: z.ZodObject<{
|
|
127
|
+
schema_version: z.ZodLiteral<"ambient-agent-image-artifacts.v1">;
|
|
128
|
+
generated_at: z.ZodString;
|
|
129
|
+
provenance: z.ZodObject<{
|
|
130
|
+
capture_source: z.ZodEnum<{
|
|
131
|
+
unknown: "unknown";
|
|
132
|
+
codex_jsonl: "codex_jsonl";
|
|
133
|
+
codex_otel: "codex_otel";
|
|
134
|
+
car_state: "car_state";
|
|
135
|
+
git_state: "git_state";
|
|
136
|
+
github_state: "github_state";
|
|
137
|
+
linear_state: "linear_state";
|
|
138
|
+
mcp_local: "mcp_local";
|
|
139
|
+
claude_jsonl: "claude_jsonl";
|
|
140
|
+
claude_hooks: "claude_hooks";
|
|
141
|
+
manual_event: "manual_event";
|
|
142
|
+
collector_runtime: "collector_runtime";
|
|
143
|
+
}>;
|
|
144
|
+
capture_adapter_version: z.ZodString;
|
|
145
|
+
collector_version: z.ZodString;
|
|
146
|
+
repo: z.ZodString;
|
|
147
|
+
branch: z.ZodString;
|
|
148
|
+
repo_label: z.ZodOptional<z.ZodString>;
|
|
149
|
+
repo_fingerprint: z.ZodOptional<z.ZodString>;
|
|
150
|
+
repo_origin_url: z.ZodOptional<z.ZodString>;
|
|
151
|
+
worktree_label: z.ZodOptional<z.ZodString>;
|
|
152
|
+
worktree_fingerprint: z.ZodOptional<z.ZodString>;
|
|
153
|
+
worktree_is_primary: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
operator_id: z.ZodString;
|
|
155
|
+
session_id: z.ZodString;
|
|
156
|
+
work_context_id: z.ZodString;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
artifacts: z.ZodArray<z.ZodObject<{
|
|
159
|
+
storage_bucket: z.ZodLiteral<"ambient-raw-evidence">;
|
|
160
|
+
object_key: z.ZodString;
|
|
161
|
+
content_hash_sha256: z.ZodString;
|
|
162
|
+
byte_size: z.ZodNumber;
|
|
163
|
+
media_type: z.ZodEnum<{
|
|
164
|
+
"image/png": "image/png";
|
|
165
|
+
"image/jpeg": "image/jpeg";
|
|
166
|
+
}>;
|
|
167
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
perceptual_hash: z.ZodOptional<z.ZodString>;
|
|
170
|
+
operator_user_id: z.ZodOptional<z.ZodString>;
|
|
171
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
172
|
+
work_session_id: z.ZodOptional<z.ZodString>;
|
|
173
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
174
|
+
ticket_id: z.ZodOptional<z.ZodString>;
|
|
175
|
+
repo_fingerprint: z.ZodOptional<z.ZodString>;
|
|
176
|
+
worktree_fingerprint: z.ZodOptional<z.ZodString>;
|
|
177
|
+
artifact_id: z.ZodOptional<z.ZodString>;
|
|
178
|
+
raw_evidence_pointer_id: z.ZodString;
|
|
179
|
+
agent_source: z.ZodEnum<{
|
|
180
|
+
codex: "codex";
|
|
181
|
+
claude_code: "claude_code";
|
|
182
|
+
}>;
|
|
183
|
+
source_session_id: z.ZodString;
|
|
184
|
+
source_message_id: z.ZodOptional<z.ZodString>;
|
|
185
|
+
turn_index: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
occurred_at: z.ZodString;
|
|
187
|
+
artifact_kind: z.ZodDefault<z.ZodEnum<{
|
|
188
|
+
screenshot: "screenshot";
|
|
189
|
+
image_attachment: "image_attachment";
|
|
190
|
+
}>>;
|
|
191
|
+
capture_origin: z.ZodDefault<z.ZodEnum<{
|
|
192
|
+
agent_session_attachment: "agent_session_attachment";
|
|
193
|
+
}>>;
|
|
194
|
+
redaction_status: z.ZodDefault<z.ZodEnum<{
|
|
195
|
+
not_started: "not_started";
|
|
196
|
+
pending: "pending";
|
|
197
|
+
redacted: "redacted";
|
|
198
|
+
safe_for_metadata: "safe_for_metadata";
|
|
199
|
+
blocked: "blocked";
|
|
200
|
+
}>>;
|
|
201
|
+
ocr_status: z.ZodDefault<z.ZodEnum<{
|
|
202
|
+
not_started: "not_started";
|
|
203
|
+
pending: "pending";
|
|
204
|
+
completed: "completed";
|
|
205
|
+
failed: "failed";
|
|
206
|
+
skipped: "skipped";
|
|
207
|
+
}>>;
|
|
208
|
+
ocr_text_redacted: z.ZodOptional<z.ZodString>;
|
|
209
|
+
labels: z.ZodDefault<z.ZodObject<{
|
|
210
|
+
attachment_role: z.ZodOptional<z.ZodString>;
|
|
211
|
+
collector_upload_state: z.ZodOptional<z.ZodEnum<{
|
|
212
|
+
uploaded: "uploaded";
|
|
213
|
+
reused_existing: "reused_existing";
|
|
214
|
+
}>>;
|
|
215
|
+
source_sidecar_id: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, z.core.$strict>>;
|
|
217
|
+
}, z.core.$strict>>;
|
|
218
|
+
}, z.core.$strict>;
|
|
219
|
+
export type AgentImageArtifactReportRequest = z.infer<typeof AgentImageArtifactReportRequestSchema>;
|
|
220
|
+
export declare const AgentImageArtifactReportResponseSchema: z.ZodObject<{
|
|
221
|
+
ok: z.ZodLiteral<true>;
|
|
222
|
+
recorded_count: z.ZodNumber;
|
|
223
|
+
}, z.core.$strict>;
|
|
224
|
+
export type AgentImageArtifactReportResponse = z.infer<typeof AgentImageArtifactReportResponseSchema>;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CaptureProvenanceSchema, IsoDateTimeSchema, NonEmptyStringSchema, Sha256Schema, } from "./common.js";
|
|
3
|
+
export const AGENT_IMAGE_ARTIFACT_MAX_FILE_BYTES = 10 * 1024 * 1024;
|
|
4
|
+
export const AGENT_IMAGE_ARTIFACT_MAX_REPORT_ITEMS = 100;
|
|
5
|
+
const UuidSchema = z.string().uuid();
|
|
6
|
+
export const AgentArtifactSourceSchema = z.enum(["codex", "claude_code"]);
|
|
7
|
+
export const AgentArtifactKindSchema = z.enum([
|
|
8
|
+
"screenshot",
|
|
9
|
+
"image_attachment",
|
|
10
|
+
]);
|
|
11
|
+
export const AgentArtifactCaptureOriginSchema = z.enum([
|
|
12
|
+
"agent_session_attachment",
|
|
13
|
+
]);
|
|
14
|
+
export const AgentArtifactRedactionStatusSchema = z.enum([
|
|
15
|
+
"not_started",
|
|
16
|
+
"pending",
|
|
17
|
+
"redacted",
|
|
18
|
+
"safe_for_metadata",
|
|
19
|
+
"blocked",
|
|
20
|
+
]);
|
|
21
|
+
export const AgentArtifactOcrStatusSchema = z.enum([
|
|
22
|
+
"not_started",
|
|
23
|
+
"pending",
|
|
24
|
+
"completed",
|
|
25
|
+
"failed",
|
|
26
|
+
"skipped",
|
|
27
|
+
]);
|
|
28
|
+
export const AgentImageArtifactMediaTypeSchema = z.enum([
|
|
29
|
+
"image/png",
|
|
30
|
+
"image/jpeg",
|
|
31
|
+
]);
|
|
32
|
+
export const AgentImageArtifactStorageBucketSchema = z.literal("ambient-raw-evidence");
|
|
33
|
+
const AgentImageArtifactLabelsSchema = z
|
|
34
|
+
.object({
|
|
35
|
+
attachment_role: NonEmptyStringSchema.max(160).optional(),
|
|
36
|
+
collector_upload_state: z
|
|
37
|
+
.enum(["uploaded", "reused_existing"])
|
|
38
|
+
.optional(),
|
|
39
|
+
source_sidecar_id: NonEmptyStringSchema.max(160).optional(),
|
|
40
|
+
})
|
|
41
|
+
.strict();
|
|
42
|
+
const AgentImageArtifactStorageMetadataShape = {
|
|
43
|
+
storage_bucket: AgentImageArtifactStorageBucketSchema,
|
|
44
|
+
object_key: NonEmptyStringSchema,
|
|
45
|
+
content_hash_sha256: Sha256Schema,
|
|
46
|
+
byte_size: z
|
|
47
|
+
.number()
|
|
48
|
+
.int()
|
|
49
|
+
.positive()
|
|
50
|
+
.max(AGENT_IMAGE_ARTIFACT_MAX_FILE_BYTES),
|
|
51
|
+
media_type: AgentImageArtifactMediaTypeSchema,
|
|
52
|
+
width: z.number().int().positive().optional(),
|
|
53
|
+
height: z.number().int().positive().optional(),
|
|
54
|
+
perceptual_hash: NonEmptyStringSchema.optional(),
|
|
55
|
+
};
|
|
56
|
+
export const AgentImageArtifactStorageMetadataSchema = z
|
|
57
|
+
.object(AgentImageArtifactStorageMetadataShape)
|
|
58
|
+
.strict()
|
|
59
|
+
.superRefine((metadata, context) => {
|
|
60
|
+
if ((metadata.width === undefined && metadata.height !== undefined) ||
|
|
61
|
+
(metadata.width !== undefined && metadata.height === undefined)) {
|
|
62
|
+
context.addIssue({
|
|
63
|
+
code: "custom",
|
|
64
|
+
message: "image dimensions must include both width and height",
|
|
65
|
+
path: metadata.width === undefined ? ["width"] : ["height"],
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
const AgentImageArtifactBindingShape = {
|
|
70
|
+
operator_user_id: UuidSchema.optional(),
|
|
71
|
+
team_id: UuidSchema.optional(),
|
|
72
|
+
work_session_id: UuidSchema.optional(),
|
|
73
|
+
task_id: UuidSchema.optional(),
|
|
74
|
+
ticket_id: NonEmptyStringSchema.max(80).optional(),
|
|
75
|
+
repo_fingerprint: NonEmptyStringSchema.max(160).optional(),
|
|
76
|
+
worktree_fingerprint: NonEmptyStringSchema.max(160).optional(),
|
|
77
|
+
};
|
|
78
|
+
export const AgentImageArtifactBindingSchema = z
|
|
79
|
+
.object(AgentImageArtifactBindingShape)
|
|
80
|
+
.strict();
|
|
81
|
+
export const AgentImageArtifactSchema = z
|
|
82
|
+
.object({
|
|
83
|
+
artifact_id: UuidSchema.optional(),
|
|
84
|
+
raw_evidence_pointer_id: NonEmptyStringSchema,
|
|
85
|
+
agent_source: AgentArtifactSourceSchema,
|
|
86
|
+
source_session_id: NonEmptyStringSchema.max(160),
|
|
87
|
+
source_message_id: NonEmptyStringSchema.max(240).optional(),
|
|
88
|
+
turn_index: z.number().int().nonnegative().optional(),
|
|
89
|
+
occurred_at: IsoDateTimeSchema,
|
|
90
|
+
artifact_kind: AgentArtifactKindSchema.default("image_attachment"),
|
|
91
|
+
capture_origin: AgentArtifactCaptureOriginSchema.default("agent_session_attachment"),
|
|
92
|
+
redaction_status: AgentArtifactRedactionStatusSchema.default("not_started"),
|
|
93
|
+
ocr_status: AgentArtifactOcrStatusSchema.default("not_started"),
|
|
94
|
+
ocr_text_redacted: z.string().trim().min(1).max(50000).optional(),
|
|
95
|
+
labels: AgentImageArtifactLabelsSchema.default({}),
|
|
96
|
+
...AgentImageArtifactBindingShape,
|
|
97
|
+
...AgentImageArtifactStorageMetadataShape,
|
|
98
|
+
})
|
|
99
|
+
.strict()
|
|
100
|
+
.superRefine((artifact, context) => {
|
|
101
|
+
if ((artifact.width === undefined && artifact.height !== undefined) ||
|
|
102
|
+
(artifact.width !== undefined && artifact.height === undefined)) {
|
|
103
|
+
context.addIssue({
|
|
104
|
+
code: "custom",
|
|
105
|
+
message: "image dimensions must include both width and height",
|
|
106
|
+
path: artifact.width === undefined ? ["width"] : ["height"],
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
if (artifact.ocr_text_redacted && artifact.ocr_status !== "completed") {
|
|
110
|
+
context.addIssue({
|
|
111
|
+
code: "custom",
|
|
112
|
+
message: "redacted OCR text requires completed OCR status",
|
|
113
|
+
path: ["ocr_status"],
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
if (artifact.ocr_text_redacted &&
|
|
117
|
+
!["redacted", "safe_for_metadata"].includes(artifact.redaction_status)) {
|
|
118
|
+
context.addIssue({
|
|
119
|
+
code: "custom",
|
|
120
|
+
message: "redacted OCR text requires redacted metadata status",
|
|
121
|
+
path: ["redaction_status"],
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
export const AgentImageArtifactReportRequestSchema = z
|
|
126
|
+
.object({
|
|
127
|
+
schema_version: z.literal("ambient-agent-image-artifacts.v1"),
|
|
128
|
+
generated_at: IsoDateTimeSchema,
|
|
129
|
+
provenance: CaptureProvenanceSchema,
|
|
130
|
+
artifacts: z
|
|
131
|
+
.array(AgentImageArtifactSchema)
|
|
132
|
+
.min(1)
|
|
133
|
+
.max(AGENT_IMAGE_ARTIFACT_MAX_REPORT_ITEMS),
|
|
134
|
+
})
|
|
135
|
+
.strict();
|
|
136
|
+
export const AgentImageArtifactReportResponseSchema = z
|
|
137
|
+
.object({
|
|
138
|
+
ok: z.literal(true),
|
|
139
|
+
recorded_count: z.number().int().nonnegative(),
|
|
140
|
+
})
|
|
141
|
+
.strict();
|
|
@@ -265,10 +265,10 @@ export type RawEvidenceUploadCommitResponse = z.infer<typeof RawEvidenceUploadCo
|
|
|
265
265
|
* pack or silently dropped. No content-bearing fields are allowed.
|
|
266
266
|
*/
|
|
267
267
|
export declare const CodexSessionAttributionStateSchema: z.ZodEnum<{
|
|
268
|
+
skipped: "skipped";
|
|
268
269
|
attributed: "attributed";
|
|
269
270
|
ambiguous: "ambiguous";
|
|
270
271
|
unattributed: "unattributed";
|
|
271
|
-
skipped: "skipped";
|
|
272
272
|
}>;
|
|
273
273
|
export type CodexSessionAttributionState = z.infer<typeof CodexSessionAttributionStateSchema>;
|
|
274
274
|
export declare const CodexSessionUploadStateSchema: z.ZodEnum<{
|
|
@@ -297,10 +297,10 @@ export declare const CodexSessionAttributionSchema: z.ZodObject<{
|
|
|
297
297
|
}>>;
|
|
298
298
|
observed_at: z.ZodString;
|
|
299
299
|
attribution_state: z.ZodEnum<{
|
|
300
|
+
skipped: "skipped";
|
|
300
301
|
attributed: "attributed";
|
|
301
302
|
ambiguous: "ambiguous";
|
|
302
303
|
unattributed: "unattributed";
|
|
303
|
-
skipped: "skipped";
|
|
304
304
|
}>;
|
|
305
305
|
attribution_reason: z.ZodString;
|
|
306
306
|
attribution_score: z.ZodOptional<z.ZodNumber>;
|
|
@@ -364,10 +364,10 @@ export declare const CodexSessionAttributionReportRequestSchema: z.ZodObject<{
|
|
|
364
364
|
}>>;
|
|
365
365
|
observed_at: z.ZodString;
|
|
366
366
|
attribution_state: z.ZodEnum<{
|
|
367
|
+
skipped: "skipped";
|
|
367
368
|
attributed: "attributed";
|
|
368
369
|
ambiguous: "ambiguous";
|
|
369
370
|
unattributed: "unattributed";
|
|
370
|
-
skipped: "skipped";
|
|
371
371
|
}>;
|
|
372
372
|
attribution_reason: z.ZodString;
|
|
373
373
|
attribution_score: z.ZodOptional<z.ZodNumber>;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/ingest-dto.d.ts
CHANGED
|
@@ -74,8 +74,8 @@ export declare const TelemetryIngestEventDtoSchema: z.ZodObject<{
|
|
|
74
74
|
remote_durable_raw_evidence: "remote_durable_raw_evidence";
|
|
75
75
|
}>;
|
|
76
76
|
redaction_status: z.ZodEnum<{
|
|
77
|
-
metadata_only: "metadata_only";
|
|
78
77
|
redacted: "redacted";
|
|
78
|
+
metadata_only: "metadata_only";
|
|
79
79
|
raw_local_only: "raw_local_only";
|
|
80
80
|
raw_remote_short_retention: "raw_remote_short_retention";
|
|
81
81
|
raw_remote_durable: "raw_remote_durable";
|
|
@@ -397,8 +397,8 @@ export declare const TelemetryIngestEnvelopeSchema: z.ZodObject<{
|
|
|
397
397
|
remote_durable_raw_evidence: "remote_durable_raw_evidence";
|
|
398
398
|
}>;
|
|
399
399
|
redaction_status: z.ZodEnum<{
|
|
400
|
-
metadata_only: "metadata_only";
|
|
401
400
|
redacted: "redacted";
|
|
401
|
+
metadata_only: "metadata_only";
|
|
402
402
|
raw_local_only: "raw_local_only";
|
|
403
403
|
raw_remote_short_retention: "raw_remote_short_retention";
|
|
404
404
|
raw_remote_durable: "raw_remote_durable";
|
|
@@ -590,10 +590,10 @@ export declare const TelemetryIngestEnvelopeSchema: z.ZodObject<{
|
|
|
590
590
|
}, z.core.$strict>;
|
|
591
591
|
work_context_id: z.ZodOptional<z.ZodString>;
|
|
592
592
|
status: z.ZodEnum<{
|
|
593
|
-
|
|
593
|
+
failed: "failed";
|
|
594
594
|
skipped: "skipped";
|
|
595
|
+
ok: "ok";
|
|
595
596
|
partial: "partial";
|
|
596
|
-
failed: "failed";
|
|
597
597
|
}>;
|
|
598
598
|
started_at: z.ZodString;
|
|
599
599
|
finished_at: z.ZodOptional<z.ZodString>;
|
|
@@ -611,8 +611,8 @@ export declare const TelemetryIngestEnvelopeSchema: z.ZodObject<{
|
|
|
611
611
|
remote_durable_raw_evidence: "remote_durable_raw_evidence";
|
|
612
612
|
}>;
|
|
613
613
|
redaction_status: z.ZodEnum<{
|
|
614
|
-
metadata_only: "metadata_only";
|
|
615
614
|
redacted: "redacted";
|
|
615
|
+
metadata_only: "metadata_only";
|
|
616
616
|
raw_local_only: "raw_local_only";
|
|
617
617
|
raw_remote_short_retention: "raw_remote_short_retention";
|
|
618
618
|
raw_remote_durable: "raw_remote_durable";
|
package/dist/privacy.d.ts
CHANGED
|
@@ -77,8 +77,8 @@ export declare const RedactionMetadataSchema: z.ZodObject<{
|
|
|
77
77
|
remote_durable_raw_evidence: "remote_durable_raw_evidence";
|
|
78
78
|
}>;
|
|
79
79
|
redaction_status: z.ZodEnum<{
|
|
80
|
-
metadata_only: "metadata_only";
|
|
81
80
|
redacted: "redacted";
|
|
81
|
+
metadata_only: "metadata_only";
|
|
82
82
|
raw_local_only: "raw_local_only";
|
|
83
83
|
raw_remote_short_retention: "raw_remote_short_retention";
|
|
84
84
|
raw_remote_durable: "raw_remote_durable";
|
package/dist/source-adapter.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare const SourceScanEventSummarySchema: z.ZodObject<{
|
|
|
31
31
|
remote_durable_raw_evidence: "remote_durable_raw_evidence";
|
|
32
32
|
}>;
|
|
33
33
|
redaction_status: z.ZodEnum<{
|
|
34
|
-
metadata_only: "metadata_only";
|
|
35
34
|
redacted: "redacted";
|
|
35
|
+
metadata_only: "metadata_only";
|
|
36
36
|
raw_local_only: "raw_local_only";
|
|
37
37
|
raw_remote_short_retention: "raw_remote_short_retention";
|
|
38
38
|
raw_remote_durable: "raw_remote_durable";
|
|
@@ -98,10 +98,10 @@ export declare const SourceScanResultSchema: z.ZodObject<{
|
|
|
98
98
|
}, z.core.$strict>;
|
|
99
99
|
work_context_id: z.ZodOptional<z.ZodString>;
|
|
100
100
|
status: z.ZodEnum<{
|
|
101
|
-
|
|
101
|
+
failed: "failed";
|
|
102
102
|
skipped: "skipped";
|
|
103
|
+
ok: "ok";
|
|
103
104
|
partial: "partial";
|
|
104
|
-
failed: "failed";
|
|
105
105
|
}>;
|
|
106
106
|
started_at: z.ZodString;
|
|
107
107
|
finished_at: z.ZodOptional<z.ZodString>;
|
|
@@ -119,8 +119,8 @@ export declare const SourceScanResultSchema: z.ZodObject<{
|
|
|
119
119
|
remote_durable_raw_evidence: "remote_durable_raw_evidence";
|
|
120
120
|
}>;
|
|
121
121
|
redaction_status: z.ZodEnum<{
|
|
122
|
-
metadata_only: "metadata_only";
|
|
123
122
|
redacted: "redacted";
|
|
123
|
+
metadata_only: "metadata_only";
|
|
124
124
|
raw_local_only: "raw_local_only";
|
|
125
125
|
raw_remote_short_retention: "raw_remote_short_retention";
|
|
126
126
|
raw_remote_durable: "raw_remote_durable";
|