@mcoda/codali 0.1.89 → 0.1.91
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/cli/DatasetCommand.d.ts +38 -0
- package/dist/cli/DatasetCommand.d.ts.map +1 -0
- package/dist/cli/DatasetCommand.js +959 -0
- package/dist/cli/EvalCommand.d.ts +3 -0
- package/dist/cli/EvalCommand.d.ts.map +1 -1
- package/dist/cli/EvalCommand.js +55 -1
- package/dist/cli/ImprovementCommand.d.ts +97 -0
- package/dist/cli/ImprovementCommand.d.ts.map +1 -0
- package/dist/cli/ImprovementCommand.js +1879 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +15 -0
- package/dist/dataset-cli.d.ts +3 -0
- package/dist/dataset-cli.d.ts.map +1 -0
- package/dist/dataset-cli.js +30 -0
- package/dist/eval/CodaliGatewayLiveHarness.d.ts +90 -1
- package/dist/eval/CodaliGatewayLiveHarness.d.ts.map +1 -1
- package/dist/eval/CodaliGatewayLiveHarness.js +443 -9
- package/dist/eval/GatewayDatasetEval.d.ts +70 -0
- package/dist/eval/GatewayDatasetEval.d.ts.map +1 -0
- package/dist/eval/GatewayDatasetEval.js +477 -0
- package/dist/eval/GatewayEvalSuite.d.ts +52 -0
- package/dist/eval/GatewayEvalSuite.d.ts.map +1 -1
- package/dist/eval/GatewayEvalSuite.js +135 -1
- package/dist/gateway/CodaliGateway.d.ts +4 -0
- package/dist/gateway/CodaliGateway.d.ts.map +1 -1
- package/dist/gateway/CodaliGateway.js +37 -1
- package/dist/gateway/CodaliGatewaySchemas.d.ts.map +1 -1
- package/dist/gateway/CodaliGatewaySchemas.js +0 -4
- package/dist/gateway/CodaliGatewayStore.d.ts.map +1 -1
- package/dist/gateway/CodaliGatewayStore.js +1 -0
- package/dist/gateway/GatewayPlanner.d.ts.map +1 -1
- package/dist/gateway/GatewayPlanner.js +355 -41
- package/dist/gateway/GatewayStateMachine.d.ts +1 -0
- package/dist/gateway/GatewayStateMachine.d.ts.map +1 -1
- package/dist/gateway/GatewayStateMachine.js +221 -5
- package/dist/improvement/CandidateReleaseBuilder.d.ts +201 -0
- package/dist/improvement/CandidateReleaseBuilder.d.ts.map +1 -0
- package/dist/improvement/CandidateReleaseBuilder.js +1175 -0
- package/dist/improvement/DatasetEligibilityGate.d.ts +75 -0
- package/dist/improvement/DatasetEligibilityGate.d.ts.map +1 -0
- package/dist/improvement/DatasetEligibilityGate.js +497 -0
- package/dist/improvement/DatasetExportManifestReader.d.ts +88 -0
- package/dist/improvement/DatasetExportManifestReader.d.ts.map +1 -0
- package/dist/improvement/DatasetExportManifestReader.js +333 -0
- package/dist/improvement/DocdexRetrievalCandidateBuilder.d.ts +192 -0
- package/dist/improvement/DocdexRetrievalCandidateBuilder.d.ts.map +1 -0
- package/dist/improvement/DocdexRetrievalCandidateBuilder.js +625 -0
- package/dist/improvement/EvalReplayCandidateBuilder.d.ts +173 -0
- package/dist/improvement/EvalReplayCandidateBuilder.d.ts.map +1 -0
- package/dist/improvement/EvalReplayCandidateBuilder.js +363 -0
- package/dist/improvement/FineTuneJobPlanner.d.ts +281 -0
- package/dist/improvement/FineTuneJobPlanner.d.ts.map +1 -0
- package/dist/improvement/FineTuneJobPlanner.js +823 -0
- package/dist/improvement/ImprovementEvalRunner.d.ts +50 -0
- package/dist/improvement/ImprovementEvalRunner.d.ts.map +1 -0
- package/dist/improvement/ImprovementEvalRunner.js +648 -0
- package/dist/improvement/ImprovementPolicy.d.ts +272 -0
- package/dist/improvement/ImprovementPolicy.d.ts.map +1 -0
- package/dist/improvement/ImprovementPolicy.js +1450 -0
- package/dist/improvement/ModelRouterCandidateBuilder.d.ts +186 -0
- package/dist/improvement/ModelRouterCandidateBuilder.d.ts.map +1 -0
- package/dist/improvement/ModelRouterCandidateBuilder.js +880 -0
- package/dist/improvement/OperatorInspector.d.ts +182 -0
- package/dist/improvement/OperatorInspector.d.ts.map +1 -0
- package/dist/improvement/OperatorInspector.js +604 -0
- package/dist/improvement/ProductionGovernance.d.ts +91 -0
- package/dist/improvement/ProductionGovernance.d.ts.map +1 -0
- package/dist/improvement/ProductionGovernance.js +329 -0
- package/dist/improvement/PromptSchemaToolMetadataCandidateBuilder.d.ts +152 -0
- package/dist/improvement/PromptSchemaToolMetadataCandidateBuilder.d.ts.map +1 -0
- package/dist/improvement/PromptSchemaToolMetadataCandidateBuilder.js +480 -0
- package/dist/improvement/PublishOrchestrator.d.ts +113 -0
- package/dist/improvement/PublishOrchestrator.d.ts.map +1 -0
- package/dist/improvement/PublishOrchestrator.js +590 -0
- package/dist/improvement/ReleaseOutcomeReporter.d.ts +133 -0
- package/dist/improvement/ReleaseOutcomeReporter.d.ts.map +1 -0
- package/dist/improvement/ReleaseOutcomeReporter.js +501 -0
- package/dist/improvement/StorageServiceImprovementClient.d.ts +71 -0
- package/dist/improvement/StorageServiceImprovementClient.d.ts.map +1 -0
- package/dist/improvement/StorageServiceImprovementClient.js +245 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -0
- package/dist/runtime/CodaliRuntime.d.ts +0 -2
- package/dist/runtime/CodaliRuntime.d.ts.map +1 -1
- package/dist/runtime/CodaliRuntime.js +0 -5
- package/dist/storage/CodaliDatasetPrivacyEngine.d.ts +138 -0
- package/dist/storage/CodaliDatasetPrivacyEngine.d.ts.map +1 -0
- package/dist/storage/CodaliDatasetPrivacyEngine.js +417 -0
- package/dist/storage/CodaliFeedbackReviewIngestion.d.ts +50 -0
- package/dist/storage/CodaliFeedbackReviewIngestion.d.ts.map +1 -0
- package/dist/storage/CodaliFeedbackReviewIngestion.js +141 -0
- package/dist/storage/CodaliStorageContracts.d.ts +337 -0
- package/dist/storage/CodaliStorageContracts.d.ts.map +1 -0
- package/dist/storage/CodaliStorageContracts.js +1555 -0
- package/dist/storage/DatasetExportJob.d.ts +51 -0
- package/dist/storage/DatasetExportJob.d.ts.map +1 -0
- package/dist/storage/DatasetExportJob.js +358 -0
- package/dist/storage/DatasetReviewQueue.d.ts +98 -0
- package/dist/storage/DatasetReviewQueue.d.ts.map +1 -0
- package/dist/storage/DatasetReviewQueue.js +426 -0
- package/dist/storage/GatewayDatasetStore.d.ts +233 -0
- package/dist/storage/GatewayDatasetStore.d.ts.map +1 -0
- package/dist/storage/GatewayDatasetStore.js +2070 -0
- package/package.json +5 -4
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { CODALI_STORAGE_CONTRACT_SCHEMA_VERSION, validateCodaliStorageFeedbackRecord, validateCodaliStorageReviewRecord, } from "./CodaliStorageContracts.js";
|
|
2
|
+
export class CodaliFeedbackReviewIngestionError extends Error {
|
|
3
|
+
constructor(message, issues) {
|
|
4
|
+
super(message);
|
|
5
|
+
this.issues = issues;
|
|
6
|
+
this.name = "CodaliFeedbackReviewIngestionError";
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export const createCodaliFeedbackReviewLocalOnlyPrivacy = (overrides = {}) => ({
|
|
10
|
+
schemaVersion: CODALI_STORAGE_CONTRACT_SCHEMA_VERSION,
|
|
11
|
+
classification: overrides.classification ?? "internal",
|
|
12
|
+
containsPersonalData: overrides.containsPersonalData ?? false,
|
|
13
|
+
redactionStatus: overrides.redactionStatus ?? "not_required",
|
|
14
|
+
uploadAllowed: overrides.uploadAllowed ?? false,
|
|
15
|
+
exportAllowed: overrides.exportAllowed ?? false,
|
|
16
|
+
trainingAllowed: overrides.trainingAllowed ?? false,
|
|
17
|
+
...(overrides.policyTags ? { policyTags: overrides.policyTags } : {}),
|
|
18
|
+
...(overrides.retentionUntil ? { retentionUntil: overrides.retentionUntil } : {}),
|
|
19
|
+
...(overrides.deletionRequestedAt ? { deletionRequestedAt: overrides.deletionRequestedAt } : {}),
|
|
20
|
+
...(overrides.redactionSummary ? { redactionSummary: overrides.redactionSummary } : {}),
|
|
21
|
+
...(overrides.metadata ? { metadata: overrides.metadata } : {}),
|
|
22
|
+
});
|
|
23
|
+
export const defaultCodaliStorageReviewPromotionTarget = (decision) => {
|
|
24
|
+
if (decision === "approved")
|
|
25
|
+
return "gold";
|
|
26
|
+
if (decision === "rejected")
|
|
27
|
+
return "reject";
|
|
28
|
+
return "silver";
|
|
29
|
+
};
|
|
30
|
+
export const normalizeCodaliFeedbackReviewRequesterScope = (requesterScope) => ({
|
|
31
|
+
...requesterScope,
|
|
32
|
+
visibility: requesterScope.visibility ?? "requester",
|
|
33
|
+
tenantWide: requesterScope.tenantWide ?? false,
|
|
34
|
+
});
|
|
35
|
+
export const buildCodaliStorageFeedbackRecord = (input) => {
|
|
36
|
+
const record = {
|
|
37
|
+
schemaVersion: CODALI_STORAGE_CONTRACT_SCHEMA_VERSION,
|
|
38
|
+
recordType: "feedback_record",
|
|
39
|
+
feedbackId: input.feedbackId,
|
|
40
|
+
createdAt: input.createdAt ?? new Date().toISOString(),
|
|
41
|
+
source: input.source,
|
|
42
|
+
runId: input.runId,
|
|
43
|
+
deletionGroupId: input.deletionGroupId ?? `delete-group-${input.runId}`,
|
|
44
|
+
productScope: input.productScope,
|
|
45
|
+
requesterScope: normalizeCodaliFeedbackReviewRequesterScope(input.requesterScope),
|
|
46
|
+
candidateRecords: input.candidateRecords,
|
|
47
|
+
targetType: input.targetType,
|
|
48
|
+
targetId: input.targetId,
|
|
49
|
+
...(input.rating !== undefined ? { rating: input.rating } : {}),
|
|
50
|
+
...(input.comment ? { comment: input.comment } : {}),
|
|
51
|
+
...(input.labels ? { labels: input.labels } : {}),
|
|
52
|
+
privacy: createCodaliFeedbackReviewLocalOnlyPrivacy(input.privacy),
|
|
53
|
+
...(input.metadata ? { metadata: input.metadata } : {}),
|
|
54
|
+
};
|
|
55
|
+
const result = validateCodaliStorageFeedbackRecord(record);
|
|
56
|
+
if (!result.ok) {
|
|
57
|
+
throw new CodaliFeedbackReviewIngestionError("Invalid Codali feedback record.", result.issues);
|
|
58
|
+
}
|
|
59
|
+
return result.value;
|
|
60
|
+
};
|
|
61
|
+
export const buildCodaliStorageReviewRecord = (input) => {
|
|
62
|
+
const promotionTarget = input.promotionTarget ?? defaultCodaliStorageReviewPromotionTarget(input.decision);
|
|
63
|
+
const record = {
|
|
64
|
+
schemaVersion: CODALI_STORAGE_CONTRACT_SCHEMA_VERSION,
|
|
65
|
+
recordType: "review_record",
|
|
66
|
+
reviewId: input.reviewId,
|
|
67
|
+
createdAt: input.createdAt ?? new Date().toISOString(),
|
|
68
|
+
reviewerType: input.reviewerType,
|
|
69
|
+
...(input.reviewerId ? { reviewerId: input.reviewerId } : {}),
|
|
70
|
+
runId: input.runId,
|
|
71
|
+
deletionGroupId: input.deletionGroupId ?? `delete-group-${input.runId}`,
|
|
72
|
+
productScope: input.productScope,
|
|
73
|
+
requesterScope: normalizeCodaliFeedbackReviewRequesterScope(input.requesterScope),
|
|
74
|
+
candidateRecords: input.candidateRecords,
|
|
75
|
+
targetType: input.targetType,
|
|
76
|
+
targetId: input.targetId,
|
|
77
|
+
decision: input.decision,
|
|
78
|
+
...(input.reasons ? { reasons: input.reasons } : {}),
|
|
79
|
+
...(input.labels ? { labels: input.labels } : {}),
|
|
80
|
+
promotionTarget,
|
|
81
|
+
...(input.promotedRecordIds ? { promotedRecordIds: input.promotedRecordIds } : {}),
|
|
82
|
+
privacy: createCodaliFeedbackReviewLocalOnlyPrivacy(input.privacy),
|
|
83
|
+
...(input.metadata ? { metadata: input.metadata } : {}),
|
|
84
|
+
};
|
|
85
|
+
const result = validateCodaliStorageReviewRecord(record);
|
|
86
|
+
if (!result.ok) {
|
|
87
|
+
throw new CodaliFeedbackReviewIngestionError("Invalid Codali review record.", result.issues);
|
|
88
|
+
}
|
|
89
|
+
return result.value;
|
|
90
|
+
};
|
|
91
|
+
export const applyCodaliStorageReviewPromotion = (input) => {
|
|
92
|
+
const promotionTarget = input.review.promotionTarget ??
|
|
93
|
+
defaultCodaliStorageReviewPromotionTarget(input.review.decision);
|
|
94
|
+
const promotedIds = new Set((input.review.promotedRecordIds?.length
|
|
95
|
+
? input.review.promotedRecordIds
|
|
96
|
+
: input.review.candidateRecords
|
|
97
|
+
.filter((candidate) => candidate.recordType === "dataset_record")
|
|
98
|
+
.map((candidate) => candidate.recordId)));
|
|
99
|
+
const reviewLabels = uniqueStrings([
|
|
100
|
+
...(input.review.labels ?? []),
|
|
101
|
+
`review:${input.review.decision}`,
|
|
102
|
+
`review:${promotionTarget}`,
|
|
103
|
+
]);
|
|
104
|
+
const reviewedAt = input.reviewedAt ?? input.review.createdAt;
|
|
105
|
+
return input.records.map((record) => {
|
|
106
|
+
if (!promotedIds.has(record.recordId))
|
|
107
|
+
return record;
|
|
108
|
+
const labels = uniqueStrings([
|
|
109
|
+
...(record.quality?.labels ?? []),
|
|
110
|
+
...reviewLabels,
|
|
111
|
+
]);
|
|
112
|
+
return {
|
|
113
|
+
...record,
|
|
114
|
+
quality: {
|
|
115
|
+
...(record.quality ?? {}),
|
|
116
|
+
score: promotedQualityScore(promotionTarget, record.quality?.score),
|
|
117
|
+
labels,
|
|
118
|
+
reviewed: true,
|
|
119
|
+
},
|
|
120
|
+
metadata: {
|
|
121
|
+
...(record.metadata ?? {}),
|
|
122
|
+
reviewId: input.review.reviewId,
|
|
123
|
+
reviewRunId: input.review.runId,
|
|
124
|
+
reviewDecision: input.review.decision,
|
|
125
|
+
reviewPromotionTarget: promotionTarget,
|
|
126
|
+
reviewLabels,
|
|
127
|
+
reviewReasons: input.review.reasons ?? [],
|
|
128
|
+
reviewDeletionGroupId: input.review.deletionGroupId,
|
|
129
|
+
rawTraceIncluded: false,
|
|
130
|
+
reviewedAt,
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
const promotedQualityScore = (promotionTarget, existingScore) => {
|
|
136
|
+
if (promotionTarget === "reject")
|
|
137
|
+
return 0;
|
|
138
|
+
const floor = promotionTarget === "gold" ? 0.95 : 0.7;
|
|
139
|
+
return Math.max(existingScore ?? 0, floor);
|
|
140
|
+
};
|
|
141
|
+
const uniqueStrings = (values) => Array.from(new Set(values));
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
export declare const CODALI_STORAGE_CONTRACT_SCHEMA_VERSION: "codali.storage.v1";
|
|
2
|
+
export declare const CODALI_STORAGE_CONTRACT_SCHEMA_VERSIONS: readonly ["codali.storage.v1"];
|
|
3
|
+
export declare const CODALI_STORAGE_CONTRACT_MIN_COMPATIBLE_SCHEMA_VERSION: "codali.storage.v1";
|
|
4
|
+
export declare const CODALI_STORAGE_CONTRACT_FIXTURE_SCHEMA_VERSION: "codali.storage.fixtures.v1";
|
|
5
|
+
export declare const CODALI_STORAGE_CONTRACT_SCHEMA_COMPATIBILITY: {
|
|
6
|
+
readonly current: "codali.storage.v1";
|
|
7
|
+
readonly minCompatible: "codali.storage.v1";
|
|
8
|
+
readonly supported: readonly ["codali.storage.v1"];
|
|
9
|
+
readonly fixture: "codali.storage.fixtures.v1";
|
|
10
|
+
};
|
|
11
|
+
export declare const CODALI_STORAGE_CONTRACT_DISTRIBUTION: {
|
|
12
|
+
readonly mode: "published_package";
|
|
13
|
+
readonly packageName: "@mcoda/codali";
|
|
14
|
+
readonly modulePath: "@mcoda/codali";
|
|
15
|
+
readonly sourcePath: "packages/codali/src/storage/CodaliStorageContracts.ts";
|
|
16
|
+
readonly fixturePath: "docs/contracts/codali-storage/v1/contract-fixtures.json";
|
|
17
|
+
};
|
|
18
|
+
export type CodaliStorageSchemaVersion = (typeof CODALI_STORAGE_CONTRACT_SCHEMA_VERSIONS)[number];
|
|
19
|
+
export type CodaliStorageContractDistribution = typeof CODALI_STORAGE_CONTRACT_DISTRIBUTION;
|
|
20
|
+
export type CodaliStorageRecordType = "gateway_record" | "dataset_record" | "export_manifest" | "feedback_record" | "review_record" | "improvement_record";
|
|
21
|
+
export type CodaliStoragePrivacyClassification = "public" | "internal" | "confidential" | "restricted";
|
|
22
|
+
export type CodaliStorageRedactionStatus = "not_required" | "pending" | "redacted" | "blocked";
|
|
23
|
+
export type CodaliStorageObjectRefKind = "payload" | "trace" | "artifact" | "dataset" | "export" | "evidence";
|
|
24
|
+
export type CodaliStorageObjectRetentionClass = "transient" | "standard" | "dataset" | "legal_hold" | "do_not_store";
|
|
25
|
+
export type CodaliStorageGatewayStatus = "succeeded" | "failed" | "partial" | "needs_clarification";
|
|
26
|
+
export type CodaliStorageDatasetKind = "gateway_answer" | "tool_trace" | "model_call" | "evaluation" | "curated_example";
|
|
27
|
+
export type CodaliStorageExportFormat = "jsonl" | "json" | "parquet" | "bundle";
|
|
28
|
+
export type CodaliStorageExportKind = "eval-replay" | "prompt-regression" | "extractor-sft" | "tool-router-sft" | "planner-sft" | "verifier-sft" | "query-expander-sft" | "repair-sft" | "context-refiner-sft" | "rag-reranker" | "model-router";
|
|
29
|
+
export type CodaliStorageFeedbackSource = "user" | "operator" | "automated_eval";
|
|
30
|
+
export type CodaliStorageReviewDecision = "approved" | "rejected" | "needs_changes" | "escalated";
|
|
31
|
+
export type CodaliStorageReviewerType = "human" | "automated";
|
|
32
|
+
export type CodaliStorageRequesterScopeVisibility = "requester" | "conversation" | "product" | "tenant";
|
|
33
|
+
export type CodaliStorageReviewPromotionTarget = "gold" | "silver" | "reject";
|
|
34
|
+
export type CodaliStorageImprovementKind = "prompt" | "policy" | "model_selection" | "tooling" | "evaluation" | "other";
|
|
35
|
+
export type CodaliStorageImprovementStatus = "proposed" | "accepted" | "rejected" | "applied";
|
|
36
|
+
export interface CodaliStorageValidationIssue {
|
|
37
|
+
path: string;
|
|
38
|
+
code: string;
|
|
39
|
+
message: string;
|
|
40
|
+
}
|
|
41
|
+
export type CodaliStorageValidationResult<T> = {
|
|
42
|
+
ok: true;
|
|
43
|
+
value: T;
|
|
44
|
+
issues: [];
|
|
45
|
+
} | {
|
|
46
|
+
ok: false;
|
|
47
|
+
issues: CodaliStorageValidationIssue[];
|
|
48
|
+
};
|
|
49
|
+
export interface CodaliStoragePrivacyMetadata {
|
|
50
|
+
schemaVersion: CodaliStorageSchemaVersion;
|
|
51
|
+
classification: CodaliStoragePrivacyClassification;
|
|
52
|
+
containsPersonalData: boolean;
|
|
53
|
+
redactionStatus: CodaliStorageRedactionStatus;
|
|
54
|
+
uploadAllowed: boolean;
|
|
55
|
+
exportAllowed: boolean;
|
|
56
|
+
trainingAllowed: boolean;
|
|
57
|
+
policyTags?: string[];
|
|
58
|
+
retentionUntil?: string;
|
|
59
|
+
deletionRequestedAt?: string;
|
|
60
|
+
redactionSummary?: string;
|
|
61
|
+
metadata?: Record<string, unknown>;
|
|
62
|
+
}
|
|
63
|
+
export interface CodaliStorageObjectPrivacyFlags {
|
|
64
|
+
containsPersonalData: boolean;
|
|
65
|
+
containsSecrets: boolean;
|
|
66
|
+
containsTenantPrivateData: boolean;
|
|
67
|
+
containsSourceCode: boolean;
|
|
68
|
+
containsCustomerData: boolean;
|
|
69
|
+
trainingAllowed: boolean;
|
|
70
|
+
evalAllowed: boolean;
|
|
71
|
+
replayAllowed: boolean;
|
|
72
|
+
exportAllowed: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface CodaliStorageObjectOwnerScope {
|
|
75
|
+
tenantHash: string;
|
|
76
|
+
productId: string;
|
|
77
|
+
deploymentId?: string;
|
|
78
|
+
runId?: string;
|
|
79
|
+
ownerType: string;
|
|
80
|
+
ownerId: string;
|
|
81
|
+
}
|
|
82
|
+
export interface CodaliStorageObjectRef {
|
|
83
|
+
schemaVersion: CodaliStorageSchemaVersion;
|
|
84
|
+
refId: string;
|
|
85
|
+
kind: CodaliStorageObjectRefKind;
|
|
86
|
+
uri?: string;
|
|
87
|
+
bucket?: string;
|
|
88
|
+
key?: string;
|
|
89
|
+
contentHash: string;
|
|
90
|
+
byteSize: number;
|
|
91
|
+
mimeType: string;
|
|
92
|
+
privacyFlags: CodaliStorageObjectPrivacyFlags;
|
|
93
|
+
ownerScope: CodaliStorageObjectOwnerScope;
|
|
94
|
+
ownerScopeHash?: string;
|
|
95
|
+
deletionGroupId: string;
|
|
96
|
+
retentionClass: CodaliStorageObjectRetentionClass;
|
|
97
|
+
mediaType?: string;
|
|
98
|
+
sizeBytes?: number;
|
|
99
|
+
sha256?: string;
|
|
100
|
+
createdAt?: string;
|
|
101
|
+
metadata?: Record<string, unknown>;
|
|
102
|
+
}
|
|
103
|
+
export interface CodaliStorageGatewayRecord {
|
|
104
|
+
schemaVersion: CodaliStorageSchemaVersion;
|
|
105
|
+
recordType: "gateway_record";
|
|
106
|
+
recordId: string;
|
|
107
|
+
runId: string;
|
|
108
|
+
createdAt: string;
|
|
109
|
+
status: CodaliStorageGatewayStatus;
|
|
110
|
+
query: string;
|
|
111
|
+
answerSummary?: string;
|
|
112
|
+
requestRef?: CodaliStorageObjectRef;
|
|
113
|
+
responseRef?: CodaliStorageObjectRef;
|
|
114
|
+
traceRef?: CodaliStorageObjectRef;
|
|
115
|
+
answerRef?: CodaliStorageObjectRef;
|
|
116
|
+
model?: {
|
|
117
|
+
provider?: string;
|
|
118
|
+
model?: string;
|
|
119
|
+
agentId?: string;
|
|
120
|
+
role?: string;
|
|
121
|
+
};
|
|
122
|
+
usage?: {
|
|
123
|
+
inputTokens?: number;
|
|
124
|
+
outputTokens?: number;
|
|
125
|
+
totalTokens?: number;
|
|
126
|
+
};
|
|
127
|
+
privacy: CodaliStoragePrivacyMetadata;
|
|
128
|
+
metadata?: Record<string, unknown>;
|
|
129
|
+
}
|
|
130
|
+
export interface CodaliStorageDatasetRecord {
|
|
131
|
+
schemaVersion: CodaliStorageSchemaVersion;
|
|
132
|
+
recordType: "dataset_record";
|
|
133
|
+
recordId: string;
|
|
134
|
+
datasetKind: CodaliStorageDatasetKind;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
sourceGatewayRecordId?: string;
|
|
137
|
+
inputRef: CodaliStorageObjectRef;
|
|
138
|
+
outputRef?: CodaliStorageObjectRef;
|
|
139
|
+
evidenceRefs?: CodaliStorageObjectRef[];
|
|
140
|
+
quality?: {
|
|
141
|
+
score?: number;
|
|
142
|
+
labels?: string[];
|
|
143
|
+
reviewed?: boolean;
|
|
144
|
+
};
|
|
145
|
+
privacy: CodaliStoragePrivacyMetadata;
|
|
146
|
+
metadata?: Record<string, unknown>;
|
|
147
|
+
}
|
|
148
|
+
export interface CodaliStorageExportManifestRecordRef {
|
|
149
|
+
recordType: CodaliStorageRecordType;
|
|
150
|
+
recordId: string;
|
|
151
|
+
schemaVersion: CodaliStorageSchemaVersion;
|
|
152
|
+
objectRef?: CodaliStorageObjectRef;
|
|
153
|
+
}
|
|
154
|
+
export interface CodaliStorageExportPrivacySummary {
|
|
155
|
+
recordCount: number;
|
|
156
|
+
containsPersonalData: boolean;
|
|
157
|
+
containsSecrets: boolean;
|
|
158
|
+
containsTenantPrivateData: boolean;
|
|
159
|
+
containsSourceCode: boolean;
|
|
160
|
+
containsCustomerData: boolean;
|
|
161
|
+
exportAllowedCount: number;
|
|
162
|
+
trainingAllowedCount: number;
|
|
163
|
+
evalAllowedCount: number;
|
|
164
|
+
replayAllowedCount: number;
|
|
165
|
+
classifications: Record<string, number>;
|
|
166
|
+
redactionStatuses: Record<string, number>;
|
|
167
|
+
policyTags?: string[];
|
|
168
|
+
}
|
|
169
|
+
export interface CodaliStorageExportLineage {
|
|
170
|
+
exportKind: CodaliStorageExportKind;
|
|
171
|
+
sourceRecordIds: string[];
|
|
172
|
+
sourceGatewayRecordIds?: string[];
|
|
173
|
+
sourceObjectHashes: string[];
|
|
174
|
+
generatedBy?: string;
|
|
175
|
+
}
|
|
176
|
+
export interface CodaliStorageExportDeletionGroupSnapshot {
|
|
177
|
+
capturedAt: string;
|
|
178
|
+
deletionGroupIds: string[];
|
|
179
|
+
byRecordId: Record<string, string[]>;
|
|
180
|
+
}
|
|
181
|
+
export interface CodaliStorageExportManifest {
|
|
182
|
+
schemaVersion: CodaliStorageSchemaVersion;
|
|
183
|
+
recordType: "export_manifest";
|
|
184
|
+
manifestId: string;
|
|
185
|
+
createdAt: string;
|
|
186
|
+
exportKind: CodaliStorageExportKind;
|
|
187
|
+
exportFormat: CodaliStorageExportFormat;
|
|
188
|
+
recordCount: number;
|
|
189
|
+
records: CodaliStorageExportManifestRecordRef[];
|
|
190
|
+
artifactRefs: CodaliStorageObjectRef[];
|
|
191
|
+
checksum: string;
|
|
192
|
+
privacySummary: CodaliStorageExportPrivacySummary;
|
|
193
|
+
lineage: CodaliStorageExportLineage;
|
|
194
|
+
deletionGroupSnapshot: CodaliStorageExportDeletionGroupSnapshot;
|
|
195
|
+
generatedBy?: string;
|
|
196
|
+
privacy: CodaliStoragePrivacyMetadata;
|
|
197
|
+
metadata?: Record<string, unknown>;
|
|
198
|
+
}
|
|
199
|
+
export interface CodaliStorageProductScope {
|
|
200
|
+
productId: string;
|
|
201
|
+
tenantHash: string;
|
|
202
|
+
deploymentId?: string;
|
|
203
|
+
environment?: string;
|
|
204
|
+
metadata?: Record<string, unknown>;
|
|
205
|
+
}
|
|
206
|
+
export interface CodaliStorageRequesterScope {
|
|
207
|
+
requesterHash: string;
|
|
208
|
+
conversationHash?: string;
|
|
209
|
+
requesterType?: string;
|
|
210
|
+
visibility: CodaliStorageRequesterScopeVisibility;
|
|
211
|
+
tenantWide: boolean;
|
|
212
|
+
metadata?: Record<string, unknown>;
|
|
213
|
+
}
|
|
214
|
+
export interface CodaliStorageCandidateRecordRef {
|
|
215
|
+
recordType: CodaliStorageRecordType;
|
|
216
|
+
recordId: string;
|
|
217
|
+
datasetKind?: CodaliStorageDatasetKind;
|
|
218
|
+
objectRef?: CodaliStorageObjectRef;
|
|
219
|
+
labels?: string[];
|
|
220
|
+
role?: string;
|
|
221
|
+
metadata?: Record<string, unknown>;
|
|
222
|
+
}
|
|
223
|
+
export interface CodaliStorageFeedbackRecord {
|
|
224
|
+
schemaVersion: CodaliStorageSchemaVersion;
|
|
225
|
+
recordType: "feedback_record";
|
|
226
|
+
feedbackId: string;
|
|
227
|
+
createdAt: string;
|
|
228
|
+
source: CodaliStorageFeedbackSource;
|
|
229
|
+
runId: string;
|
|
230
|
+
deletionGroupId: string;
|
|
231
|
+
productScope: CodaliStorageProductScope;
|
|
232
|
+
requesterScope: CodaliStorageRequesterScope;
|
|
233
|
+
candidateRecords: CodaliStorageCandidateRecordRef[];
|
|
234
|
+
targetType: CodaliStorageRecordType;
|
|
235
|
+
targetId: string;
|
|
236
|
+
rating?: number;
|
|
237
|
+
comment?: string;
|
|
238
|
+
labels?: string[];
|
|
239
|
+
privacy: CodaliStoragePrivacyMetadata;
|
|
240
|
+
metadata?: Record<string, unknown>;
|
|
241
|
+
}
|
|
242
|
+
export interface CodaliStorageReviewRecord {
|
|
243
|
+
schemaVersion: CodaliStorageSchemaVersion;
|
|
244
|
+
recordType: "review_record";
|
|
245
|
+
reviewId: string;
|
|
246
|
+
createdAt: string;
|
|
247
|
+
reviewerType: CodaliStorageReviewerType;
|
|
248
|
+
reviewerId?: string;
|
|
249
|
+
runId: string;
|
|
250
|
+
deletionGroupId: string;
|
|
251
|
+
productScope: CodaliStorageProductScope;
|
|
252
|
+
requesterScope: CodaliStorageRequesterScope;
|
|
253
|
+
candidateRecords: CodaliStorageCandidateRecordRef[];
|
|
254
|
+
targetType: CodaliStorageRecordType;
|
|
255
|
+
targetId: string;
|
|
256
|
+
decision: CodaliStorageReviewDecision;
|
|
257
|
+
reasons?: string[];
|
|
258
|
+
labels?: string[];
|
|
259
|
+
promotionTarget?: CodaliStorageReviewPromotionTarget;
|
|
260
|
+
promotedRecordIds?: string[];
|
|
261
|
+
privacy: CodaliStoragePrivacyMetadata;
|
|
262
|
+
metadata?: Record<string, unknown>;
|
|
263
|
+
}
|
|
264
|
+
export interface CodaliStorageImprovementRecord {
|
|
265
|
+
schemaVersion: CodaliStorageSchemaVersion;
|
|
266
|
+
recordType: "improvement_record";
|
|
267
|
+
improvementId: string;
|
|
268
|
+
createdAt: string;
|
|
269
|
+
improvementKind: CodaliStorageImprovementKind;
|
|
270
|
+
status: CodaliStorageImprovementStatus;
|
|
271
|
+
summary: string;
|
|
272
|
+
sourceRecordIds: string[];
|
|
273
|
+
trainingEligible: boolean;
|
|
274
|
+
exportManifestId?: string;
|
|
275
|
+
candidateRef?: CodaliStorageObjectRef;
|
|
276
|
+
privacy: CodaliStoragePrivacyMetadata;
|
|
277
|
+
metadata?: Record<string, unknown>;
|
|
278
|
+
}
|
|
279
|
+
export type CodaliStorageRecord = CodaliStorageGatewayRecord | CodaliStorageDatasetRecord | CodaliStorageExportManifest | CodaliStorageFeedbackRecord | CodaliStorageReviewRecord | CodaliStorageImprovementRecord;
|
|
280
|
+
export interface CodaliStorageContractFixtureSet {
|
|
281
|
+
schemaVersion: typeof CODALI_STORAGE_CONTRACT_FIXTURE_SCHEMA_VERSION;
|
|
282
|
+
contractSchemaVersion: CodaliStorageSchemaVersion;
|
|
283
|
+
distribution: CodaliStorageContractDistribution;
|
|
284
|
+
fixtures: {
|
|
285
|
+
privacyMetadata: CodaliStoragePrivacyMetadata;
|
|
286
|
+
objectRef: CodaliStorageObjectRef;
|
|
287
|
+
gatewayRecord: CodaliStorageGatewayRecord;
|
|
288
|
+
datasetRecord: CodaliStorageDatasetRecord;
|
|
289
|
+
exportManifest: CodaliStorageExportManifest;
|
|
290
|
+
feedbackRecord: CodaliStorageFeedbackRecord;
|
|
291
|
+
reviewRecord: CodaliStorageReviewRecord;
|
|
292
|
+
improvementRecord: CodaliStorageImprovementRecord;
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
export type CodaliStorageContractJsonSchema = {
|
|
296
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
297
|
+
readonly $id: string;
|
|
298
|
+
readonly title: string;
|
|
299
|
+
readonly type: "object";
|
|
300
|
+
readonly additionalProperties: true;
|
|
301
|
+
readonly required: readonly string[];
|
|
302
|
+
readonly properties: Record<string, unknown>;
|
|
303
|
+
};
|
|
304
|
+
export type CodaliStorageContractSchemaName = "privacyMetadata" | "objectRef" | "gatewayRecord" | "datasetRecord" | "exportManifest" | "feedbackRecord" | "reviewRecord" | "improvementRecord";
|
|
305
|
+
export declare const CODALI_STORAGE_CONTRACT_JSON_SCHEMAS: {
|
|
306
|
+
readonly privacyMetadata: CodaliStorageContractJsonSchema;
|
|
307
|
+
readonly objectRef: CodaliStorageContractJsonSchema;
|
|
308
|
+
readonly gatewayRecord: CodaliStorageContractJsonSchema;
|
|
309
|
+
readonly datasetRecord: CodaliStorageContractJsonSchema;
|
|
310
|
+
readonly exportManifest: CodaliStorageContractJsonSchema;
|
|
311
|
+
readonly feedbackRecord: CodaliStorageContractJsonSchema;
|
|
312
|
+
readonly reviewRecord: CodaliStorageContractJsonSchema;
|
|
313
|
+
readonly improvementRecord: CodaliStorageContractJsonSchema;
|
|
314
|
+
};
|
|
315
|
+
export declare const CODALI_STORAGE_EXPORT_KINDS: readonly CodaliStorageExportKind[];
|
|
316
|
+
export declare const isCodaliStorageValidationOk: <T>(result: CodaliStorageValidationResult<T>) => result is {
|
|
317
|
+
ok: true;
|
|
318
|
+
value: T;
|
|
319
|
+
issues: [];
|
|
320
|
+
};
|
|
321
|
+
export declare const isCodaliStoragePrivacyExportAllowed: (privacy: CodaliStoragePrivacyMetadata) => boolean;
|
|
322
|
+
export declare const isCodaliStoragePrivacyTrainingAllowed: (privacy: CodaliStoragePrivacyMetadata) => boolean;
|
|
323
|
+
export declare const isCodaliStoragePrivacyUploadAllowed: (privacy: CodaliStoragePrivacyMetadata) => boolean;
|
|
324
|
+
export declare const isCodaliStorageRecordExportAllowed: (record: {
|
|
325
|
+
privacy: CodaliStoragePrivacyMetadata;
|
|
326
|
+
}) => boolean;
|
|
327
|
+
export declare const validateCodaliStoragePrivacyMetadata: (input: unknown) => CodaliStorageValidationResult<CodaliStoragePrivacyMetadata>;
|
|
328
|
+
export declare const validateCodaliStorageObjectRef: (input: unknown) => CodaliStorageValidationResult<CodaliStorageObjectRef>;
|
|
329
|
+
export declare const validateCodaliStorageGatewayRecord: (input: unknown) => CodaliStorageValidationResult<CodaliStorageGatewayRecord>;
|
|
330
|
+
export declare const validateCodaliStorageDatasetRecord: (input: unknown) => CodaliStorageValidationResult<CodaliStorageDatasetRecord>;
|
|
331
|
+
export declare const validateCodaliStorageExportManifest: (input: unknown) => CodaliStorageValidationResult<CodaliStorageExportManifest>;
|
|
332
|
+
export declare const validateCodaliStorageFeedbackRecord: (input: unknown) => CodaliStorageValidationResult<CodaliStorageFeedbackRecord>;
|
|
333
|
+
export declare const validateCodaliStorageReviewRecord: (input: unknown) => CodaliStorageValidationResult<CodaliStorageReviewRecord>;
|
|
334
|
+
export declare const validateCodaliStorageImprovementRecord: (input: unknown) => CodaliStorageValidationResult<CodaliStorageImprovementRecord>;
|
|
335
|
+
export declare const validateCodaliStorageRecord: (input: unknown) => CodaliStorageValidationResult<CodaliStorageRecord>;
|
|
336
|
+
export declare const validateCodaliStorageContractFixtureSet: (input: unknown) => CodaliStorageValidationResult<CodaliStorageContractFixtureSet>;
|
|
337
|
+
//# sourceMappingURL=CodaliStorageContracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodaliStorageContracts.d.ts","sourceRoot":"","sources":["../../src/storage/CodaliStorageContracts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sCAAsC,EAAG,mBAA4B,CAAC;AAEnF,eAAO,MAAM,uCAAuC,gCAE1C,CAAC;AAEX,eAAO,MAAM,qDAAqD,qBAC1B,CAAC;AAEzC,eAAO,MAAM,8CAA8C,EACzD,4BAAqC,CAAC;AAExC,eAAO,MAAM,4CAA4C;;;;;CAK/C,CAAC;AAEX,eAAO,MAAM,oCAAoC;;;;;;CAMvC,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,uCAAuC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,MAAM,MAAM,iCAAiC,GAC3C,OAAO,oCAAoC,CAAC;AAE9C,MAAM,MAAM,uBAAuB,GAC/B,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,oBAAoB,CAAC;AAEzB,MAAM,MAAM,kCAAkC,GAC1C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