@taiga-ai/mcp-server 0.41.0-dev.1244 → 0.42.0-dev.1246
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/README.md +10 -10
- package/dist/index.js +2371 -962
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28675,1053 +28675,1044 @@ function createdInitiativesOf(result) {
|
|
|
28675
28675
|
return parsed.success ? parsed.data.createdInitiatives : null;
|
|
28676
28676
|
}
|
|
28677
28677
|
//#endregion
|
|
28678
|
-
//#region ../../packages/types/dist/
|
|
28678
|
+
//#region ../../packages/types/dist/findings.js
|
|
28679
28679
|
/**
|
|
28680
|
-
*
|
|
28681
|
-
* keeps its requests, and what Taiga reads from and writes to them.
|
|
28680
|
+
* Maintenance taxonomy + API DTOs.
|
|
28682
28681
|
*
|
|
28683
|
-
*
|
|
28684
|
-
*
|
|
28685
|
-
*
|
|
28686
|
-
*
|
|
28682
|
+
* Single source of truth shared by the `maintenance_*` DB schema, the
|
|
28683
|
+
* maintenance API, the maintenance batch agent's output contract, and the
|
|
28684
|
+
* Maintaining page. Maintenance is the operational-hygiene system of record,
|
|
28685
|
+
* deliberately SEPARATE from the product backlog.
|
|
28687
28686
|
*/
|
|
28688
|
-
const TRACKER_PROVIDERS = [
|
|
28689
|
-
"jira",
|
|
28690
|
-
"servicenow",
|
|
28691
|
-
"linear"
|
|
28692
|
-
];
|
|
28693
|
-
/** What a connection's last check found. `auth_failed` stops further calls until it is checked again. */
|
|
28694
|
-
const TRACKER_CONNECTION_STATUSES = [
|
|
28695
|
-
"valid",
|
|
28696
|
-
"auth_failed",
|
|
28697
|
-
"unreachable"
|
|
28698
|
-
];
|
|
28699
|
-
/** What kind of place a provider files tickets in, in its own word. */
|
|
28700
|
-
const TRACKER_PLACE_KINDS = [
|
|
28701
|
-
"project",
|
|
28702
|
-
"table",
|
|
28703
|
-
"team"
|
|
28704
|
-
];
|
|
28705
28687
|
/**
|
|
28706
|
-
*
|
|
28707
|
-
*
|
|
28688
|
+
* - vulnerable_dependency / outdated_dependency: the dependency scanner
|
|
28689
|
+
* - secret: the secrets scanner -- a credential committed to the repository
|
|
28690
|
+
* - sast: the SAST scanner over Taiga-authored rules -- an insecure code pattern
|
|
28691
|
+
* - iac_misconfig: the IaC scanner -- a Terraform/Kubernetes/Dockerfile/CI misconfiguration
|
|
28692
|
+
*
|
|
28693
|
+
* Which tool implements each category lives in the agents' scanner manifest
|
|
28694
|
+
* (apps/agents/core/src/agent_core/scanners/scanners.toml), not here.
|
|
28695
|
+
*
|
|
28696
|
+
* Column semantics per kind (PRO-1350, PRO-1725): the dependency-shaped
|
|
28697
|
+
* columns are reused rather than nulled so grouping and the UI keep working.
|
|
28698
|
+
* For code kinds `ecosystem` is the CATEGORY (secrets / sast / iac), never the
|
|
28699
|
+
* tool, so swapping a tool does not change a finding's identity; the tool that
|
|
28700
|
+
* reported it is `data.tool`. `packageName` is the RULE id, so "group by
|
|
28701
|
+
* package" reads "CKV_AWS_20 x4"; file, line, snippet and rule URL live in
|
|
28702
|
+
* `sourcePaths` + `data`.
|
|
28703
|
+
*
|
|
28704
|
+
* Canonical copy; the DB schema (findings.ts) self-defines the
|
|
28705
|
+
* same values for its CHECK constraint and the agent (maintenance/models.py)
|
|
28706
|
+
* for its Literal -- keep the three in sync.
|
|
28708
28707
|
*/
|
|
28709
|
-
const
|
|
28710
|
-
"
|
|
28711
|
-
"
|
|
28712
|
-
"
|
|
28713
|
-
"
|
|
28714
|
-
|
|
28715
|
-
|
|
28716
|
-
|
|
28717
|
-
|
|
28718
|
-
|
|
28719
|
-
|
|
28720
|
-
architecture: {
|
|
28721
|
-
required: ["specification"],
|
|
28722
|
-
optional: ["user_flow"]
|
|
28723
|
-
},
|
|
28724
|
-
technology_decisions: {
|
|
28725
|
-
required: ["specification", "architecture"],
|
|
28726
|
-
optional: []
|
|
28727
|
-
},
|
|
28728
|
-
data_flow: {
|
|
28729
|
-
required: ["specification", "architecture"],
|
|
28730
|
-
optional: []
|
|
28731
|
-
},
|
|
28732
|
-
privacy_assessment: {
|
|
28733
|
-
required: ["specification", "architecture"],
|
|
28734
|
-
optional: ["data_flow"]
|
|
28735
|
-
},
|
|
28736
|
-
threat_model: {
|
|
28737
|
-
required: [
|
|
28738
|
-
"specification",
|
|
28739
|
-
"architecture",
|
|
28740
|
-
"privacy_assessment"
|
|
28741
|
-
],
|
|
28742
|
-
optional: ["data_flow"]
|
|
28743
|
-
},
|
|
28744
|
-
risk_register: {
|
|
28745
|
-
required: ["specification"],
|
|
28746
|
-
optional: [
|
|
28747
|
-
"privacy_assessment",
|
|
28748
|
-
"threat_model",
|
|
28749
|
-
"technology_decisions",
|
|
28750
|
-
"architecture",
|
|
28751
|
-
"data_flow"
|
|
28752
|
-
]
|
|
28753
|
-
},
|
|
28754
|
-
service_blueprint: {
|
|
28755
|
-
required: [
|
|
28756
|
-
"specification",
|
|
28757
|
-
"user_flow",
|
|
28758
|
-
"architecture"
|
|
28759
|
-
],
|
|
28760
|
-
optional: ["ui_direction"]
|
|
28761
|
-
}
|
|
28762
|
-
});
|
|
28763
|
-
SETUP_REQUIRED_DOCUMENT_TYPES.filter((type) => type !== "specification");
|
|
28764
|
-
//#endregion
|
|
28765
|
-
//#region ../../packages/types/dist/chat-stream-events.js
|
|
28708
|
+
const MAINTENANCE_FINDING_KINDS = [
|
|
28709
|
+
"vulnerable_dependency",
|
|
28710
|
+
"outdated_dependency",
|
|
28711
|
+
"license_violation",
|
|
28712
|
+
"secret",
|
|
28713
|
+
"sast",
|
|
28714
|
+
"iac_misconfig",
|
|
28715
|
+
"ci",
|
|
28716
|
+
"code_health",
|
|
28717
|
+
"policy_divergence"
|
|
28718
|
+
];
|
|
28766
28719
|
/**
|
|
28767
|
-
*
|
|
28768
|
-
*
|
|
28769
|
-
* a document with its tail cut off reads as finished.
|
|
28720
|
+
* Kinds a finding was once recorded under, by the kind it is now: a Factory on
|
|
28721
|
+
* an older contract still names a CI problem `engineering` (PRO-4697).
|
|
28770
28722
|
*/
|
|
28771
|
-
const
|
|
28772
|
-
/**
|
|
28773
|
-
|
|
28774
|
-
|
|
28775
|
-
|
|
28776
|
-
/** A raw Strands delta: answer text, or a fragment of a tool's input. */
|
|
28777
|
-
const contentBlockDelta = object({ delta: lenient(object({
|
|
28778
|
-
text: lenient(string$2()),
|
|
28779
|
-
toolUse: lenient(jsonObject)
|
|
28780
|
-
})) });
|
|
28723
|
+
const LEGACY_FINDING_KINDS = { engineering: "ci" };
|
|
28724
|
+
/** The kind a finding of `kind` is recorded under: its own, or the one a legacy kind became. */
|
|
28725
|
+
function currentFindingKind(kind) {
|
|
28726
|
+
return LEGACY_FINDING_KINDS[kind] ?? kind;
|
|
28727
|
+
}
|
|
28781
28728
|
/**
|
|
28782
|
-
*
|
|
28783
|
-
*
|
|
28784
|
-
*
|
|
28729
|
+
* The kinds whose remediation is a CODE change rather than a version bump
|
|
28730
|
+
* (PRO-1384).
|
|
28731
|
+
*
|
|
28732
|
+
* Shared rather than duplicated per side, because the two sides disagreeing is
|
|
28733
|
+
* a silent dead feature: the API decides whether a remediation is ACCEPTED and
|
|
28734
|
+
* the web decides whether the button is OFFERED, and when this split lived only
|
|
28735
|
+
* in the API the client kept gating on `recommendedVersion` -- which a code
|
|
28736
|
+
* finding never has -- so the endpoint was reachable and unreachable at the
|
|
28737
|
+
* same time.
|
|
28738
|
+
*
|
|
28739
|
+
* A dependency is fixed by moving to a published version, so the absence of one
|
|
28740
|
+
* is a real blocker. A code finding has no version by construction.
|
|
28785
28741
|
*/
|
|
28786
|
-
const
|
|
28787
|
-
|
|
28788
|
-
|
|
28789
|
-
|
|
28790
|
-
|
|
28791
|
-
|
|
28792
|
-
|
|
28793
|
-
|
|
28794
|
-
|
|
28795
|
-
|
|
28796
|
-
|
|
28797
|
-
initiativeProposal: unknown$1().optional(),
|
|
28798
|
-
initiativeEditProposal: unknown$1().optional(),
|
|
28799
|
-
generatedDocument: unknown$1().optional(),
|
|
28800
|
-
documentSections: unknown$1().optional(),
|
|
28801
|
-
specUpdate: unknown$1().optional(),
|
|
28802
|
-
flowSections: unknown$1().optional()
|
|
28803
|
-
});
|
|
28804
|
-
object({
|
|
28805
|
-
status: unknown$1().optional(),
|
|
28806
|
-
error: lenient(string$2()),
|
|
28807
|
-
code: lenient(string$2()),
|
|
28808
|
-
message: lenient(object({
|
|
28809
|
-
role: unknown$1().optional(),
|
|
28810
|
-
content: lenient(array(unknown$1()))
|
|
28811
|
-
})),
|
|
28812
|
-
event: lenient(chatStreamFrameEvent)
|
|
28813
|
-
});
|
|
28814
|
-
//#endregion
|
|
28815
|
-
//#region ../../packages/types/dist/chat-stream-payloads.js
|
|
28742
|
+
const CODE_REMEDIATION_KINDS = [
|
|
28743
|
+
"secret",
|
|
28744
|
+
"sast",
|
|
28745
|
+
"iac_misconfig",
|
|
28746
|
+
"ci",
|
|
28747
|
+
"code_health"
|
|
28748
|
+
];
|
|
28749
|
+
/** True when the fix is a code change, so no fixed version is required. */
|
|
28750
|
+
function isCodeRemediationKind(kind) {
|
|
28751
|
+
return CODE_REMEDIATION_KINDS.includes(currentFindingKind(kind));
|
|
28752
|
+
}
|
|
28816
28753
|
/**
|
|
28817
|
-
*
|
|
28818
|
-
* renders, each read by ONE set of rules (PRO-2735).
|
|
28754
|
+
* Whether a remediation build IN THIS REPOSITORY may act on the finding.
|
|
28819
28755
|
*
|
|
28820
|
-
*
|
|
28821
|
-
*
|
|
28822
|
-
*
|
|
28823
|
-
* `
|
|
28824
|
-
*
|
|
28756
|
+
* A POSITIVE test, deliberately (PR #1781). `remediableBy` is an open
|
|
28757
|
+
* vocabulary: `pointer_bump` is already a value the CHECK constraint accepts,
|
|
28758
|
+
* reserved for work that does not exist yet, and every gate written as
|
|
28759
|
+
* `!== 'upstream_only'` would wave it straight through into planning and a
|
|
28760
|
+
* build with no idea what to do with it. A value this release does not
|
|
28761
|
+
* understand is not a value it may act on.
|
|
28825
28762
|
*
|
|
28826
|
-
*
|
|
28827
|
-
*
|
|
28828
|
-
*
|
|
28829
|
-
* rendered from the metadata, and the proposals' buttons perform a write.
|
|
28763
|
+
* Absent or null reads as `coding_agent`: rows written before PRO-1837 carry
|
|
28764
|
+
* no value at all and are ordinary first-party findings, so the migration's
|
|
28765
|
+
* default and this predicate agree.
|
|
28830
28766
|
*/
|
|
28767
|
+
function isAgentRemediable(finding) {
|
|
28768
|
+
return !finding.remediableBy || finding.remediableBy === "coding_agent";
|
|
28769
|
+
}
|
|
28831
28770
|
/**
|
|
28832
|
-
*
|
|
28833
|
-
*
|
|
28834
|
-
*
|
|
28835
|
-
*
|
|
28771
|
+
* Whether a finding can be remediated right now (PRO-1384, PRO-1448, PRO-1837).
|
|
28772
|
+
*
|
|
28773
|
+
* Three shapes of "not fixable": a dependency finding with no advised version
|
|
28774
|
+
* to bump to; a secret that exists only in git history; and a finding whose
|
|
28775
|
+
* code belongs to another repository. A code finding (secret, sast,
|
|
28776
|
+
* iac_misconfig) in this repository is otherwise always fixable -- its remedy
|
|
28777
|
+
* is a change at the location, not a version. Three surfaces (the row, the
|
|
28778
|
+
* group header, the detail page) each hand-wrote this and one drifted: a code
|
|
28779
|
+
* finding had a Fix button in the list and none on its own page. One
|
|
28780
|
+
* predicate, so a rule added here reaches every surface at once.
|
|
28836
28781
|
*/
|
|
28837
|
-
|
|
28838
|
-
|
|
28839
|
-
|
|
28840
|
-
|
|
28841
|
-
|
|
28842
|
-
|
|
28843
|
-
|
|
28844
|
-
}
|
|
28845
|
-
|
|
28846
|
-
|
|
28847
|
-
return
|
|
28782
|
+
function isFixableFinding(finding) {
|
|
28783
|
+
if (finding.status !== "open") return false;
|
|
28784
|
+
if (finding.location?.historyOnly) return false;
|
|
28785
|
+
if (!isAgentRemediable(finding)) return false;
|
|
28786
|
+
if (finding.fingerprint?.startsWith("base-image:") || finding.baseImageFix) {
|
|
28787
|
+
if (finding.baseImageFix) return finding.baseImageFix.way === "move" || finding.baseImageFix.way === "upgrade";
|
|
28788
|
+
return typeof finding.baseMove === "boolean" ? finding.baseMove : baseImageMoveRemoves(finding.data);
|
|
28789
|
+
}
|
|
28790
|
+
if (finding.kind === "vulnerable_dependency" && isMaliciousPackageFinding(finding)) return true;
|
|
28791
|
+
if (isPinBlocked(finding)) return false;
|
|
28792
|
+
return isCodeRemediationKind(finding.kind) || !!finding.recommendedVersion;
|
|
28848
28793
|
}
|
|
28849
|
-
object({
|
|
28850
|
-
title: string$2().trim().min(1).max(MAX_PROPOSAL_TITLE_CHARS),
|
|
28851
|
-
description: string$2().trim().min(1).max(MAX_PROPOSAL_DESCRIPTION_CHARS),
|
|
28852
|
-
productId: string$2().trim().min(1),
|
|
28853
|
-
revision: unknown$1().optional()
|
|
28854
|
-
}).transform(({ revision, ...proposal }) => ({
|
|
28855
|
-
...proposal,
|
|
28856
|
-
...revisionOf(revision)
|
|
28857
|
-
}));
|
|
28858
|
-
object({
|
|
28859
|
-
initiativeId: string$2().trim().min(1),
|
|
28860
|
-
description: contentWithin(MAX_EDIT_DESCRIPTION_CHARS),
|
|
28861
|
-
basedOn: object({
|
|
28862
|
-
updatedAt: string$2().trim().min(1),
|
|
28863
|
-
descriptionHash: string$2().regex(/^[0-9a-f]{64}$/)
|
|
28864
|
-
})
|
|
28865
|
-
});
|
|
28866
|
-
object({
|
|
28867
|
-
title: string$2().trim().min(1).max(200),
|
|
28868
|
-
kind: string$2().trim().min(1).max(80),
|
|
28869
|
-
markdown: contentWithin(MAX_GENERATED_DOCUMENT_CHARS),
|
|
28870
|
-
revision: unknown$1().optional()
|
|
28871
|
-
}).transform(({ revision, ...document }) => ({
|
|
28872
|
-
...document,
|
|
28873
|
-
...revisionOf(revision)
|
|
28874
|
-
}));
|
|
28875
|
-
const UNSUPPORTED_REASONS = [
|
|
28876
|
-
"no_quote",
|
|
28877
|
-
"unsupplied_document",
|
|
28878
|
-
"not_in_document"
|
|
28879
|
-
];
|
|
28880
|
-
const OUTCOMES = [
|
|
28881
|
-
"verified",
|
|
28882
|
-
"paraphrase_supported",
|
|
28883
|
-
"repointed",
|
|
28884
|
-
"unsupported"
|
|
28885
|
-
];
|
|
28886
28794
|
/**
|
|
28887
|
-
*
|
|
28888
|
-
*
|
|
28889
|
-
*
|
|
28795
|
+
* Whether a Fix cannot work: another package's pin caps this finding's fix, and
|
|
28796
|
+
* the last fix ended still vulnerable against it (`opentelemetry-api` under
|
|
28797
|
+
* `aws-opentelemetry-distro`'s `==1.44.0`). Another would spend a run to meet
|
|
28798
|
+
* it again. Blocked with no such fix, a person's Fix still runs (AC-17): they
|
|
28799
|
+
* may know a way round. The gate lifts the hold when the pin moves.
|
|
28890
28800
|
*/
|
|
28891
|
-
function
|
|
28892
|
-
return
|
|
28801
|
+
function isPinBlocked(finding) {
|
|
28802
|
+
return finding.autoFixHeld?.reason === "blocked_by_dependency" && finding.autoFixHeld.fixFailed === true;
|
|
28803
|
+
}
|
|
28804
|
+
function baseImageMoveRemoves(data) {
|
|
28805
|
+
const baseImage = typeof data === "object" && data !== null ? data.baseImage : null;
|
|
28806
|
+
const bases = typeof baseImage === "object" && baseImage !== null ? baseImage.bases : null;
|
|
28807
|
+
return Array.isArray(bases) && bases.length > 0 && bases.every((b) => typeof b === "object" && b !== null && typeof b.movesTo === "string" && b.removed === true);
|
|
28893
28808
|
}
|
|
28894
28809
|
/**
|
|
28895
|
-
*
|
|
28896
|
-
*
|
|
28897
|
-
*
|
|
28898
|
-
*
|
|
28899
|
-
*
|
|
28900
|
-
*
|
|
28901
|
-
*/
|
|
28902
|
-
const origin = _enum(PRODUCT_DOCUMENT_ORIGINS).optional();
|
|
28903
|
-
/** One statement the check could not support; a missing reason is malformed. */
|
|
28904
|
-
const unverifiedCitation = object({
|
|
28905
|
-
documentType: string$2(),
|
|
28906
|
-
version: number$1(),
|
|
28907
|
-
origin,
|
|
28908
|
-
section: lenient(string$2()),
|
|
28909
|
-
reason: string$2()
|
|
28910
|
-
}).transform((u) => ({
|
|
28911
|
-
documentType: u.documentType,
|
|
28912
|
-
version: u.version,
|
|
28913
|
-
...u.origin === void 0 ? {} : { origin: u.origin },
|
|
28914
|
-
...u.section === void 0 ? {} : { section: u.section },
|
|
28915
|
-
reason: unsupportedReason(u.reason)
|
|
28916
|
-
}));
|
|
28917
|
-
/**
|
|
28918
|
-
* One marker's outcome, strictly: an entry with no 1-based marker index, no
|
|
28919
|
-
* source, or an outcome this contract does not name is dropped rather than
|
|
28920
|
-
* guessed at, because the outcome decides whether the claim renders as a
|
|
28921
|
-
* reference at all.
|
|
28810
|
+
* A malicious package (OSV `MAL-*`): its advisory id or one of its aliases
|
|
28811
|
+
* says so, or its tier is Act now with no KEV listing, which only a malware
|
|
28812
|
+
* advisory earns (`findingTierReason`). The id and aliases come first: a
|
|
28813
|
+
* malware report that also aliases a KEV-listed CVE is tiered `kev`. Its fix
|
|
28814
|
+
* is removing the package, not a version. The one rule the API's gate, its
|
|
28815
|
+
* Fix, the web and the MCP read (PRO-3601).
|
|
28922
28816
|
*/
|
|
28923
|
-
|
|
28924
|
-
|
|
28925
|
-
|
|
28926
|
-
|
|
28927
|
-
|
|
28928
|
-
|
|
28929
|
-
|
|
28930
|
-
|
|
28931
|
-
resolvedSection: lenient(string$2()),
|
|
28932
|
-
resolvedDocumentType: lenient(string$2()),
|
|
28933
|
-
resolvedVersion: lenient(number$1()),
|
|
28934
|
-
resolvedOrigin: origin
|
|
28935
|
-
}).transform((o) => ({
|
|
28936
|
-
markerIndex: o.markerIndex,
|
|
28937
|
-
documentType: o.documentType,
|
|
28938
|
-
version: o.version,
|
|
28939
|
-
...o.origin === void 0 ? {} : { origin: o.origin },
|
|
28940
|
-
...o.section === void 0 ? {} : { section: o.section },
|
|
28941
|
-
outcome: o.outcome,
|
|
28942
|
-
...o.outcome === "unsupported" ? { reason: unsupportedReason(o.reason) } : {},
|
|
28943
|
-
...o.resolvedSection === void 0 ? {} : { resolvedSection: o.resolvedSection },
|
|
28944
|
-
...o.resolvedDocumentType !== void 0 && o.resolvedVersion !== void 0 ? {
|
|
28945
|
-
resolvedDocumentType: o.resolvedDocumentType,
|
|
28946
|
-
resolvedVersion: o.resolvedVersion,
|
|
28947
|
-
...o.resolvedOrigin === void 0 ? {} : { resolvedOrigin: o.resolvedOrigin }
|
|
28948
|
-
} : {}
|
|
28949
|
-
}));
|
|
28950
|
-
object({
|
|
28951
|
-
verified: number$1(),
|
|
28952
|
-
unverified: lenientList(unverifiedCitation),
|
|
28953
|
-
outcomes: lenientList(citationOutcome).catch([]).optional()
|
|
28954
|
-
}).transform(({ verified, unverified, outcomes }) => ({
|
|
28955
|
-
verified: Math.max(0, Math.trunc(verified)),
|
|
28956
|
-
unverified,
|
|
28957
|
-
...outcomes === void 0 ? {} : { outcomes }
|
|
28958
|
-
}));
|
|
28959
|
-
//#endregion
|
|
28960
|
-
//#region ../../packages/types/dist/registries.js
|
|
28817
|
+
function isMaliciousPackageFinding(finding) {
|
|
28818
|
+
if (typeof finding.malicious === "boolean") return finding.malicious;
|
|
28819
|
+
const mal = (id) => typeof id === "string" && /^MAL-/i.test(id);
|
|
28820
|
+
if (mal(finding.advisoryId)) return true;
|
|
28821
|
+
const aliases = finding.data && typeof finding.data === "object" ? finding.data.aliases : void 0;
|
|
28822
|
+
if (Array.isArray(aliases) && aliases.some(mal)) return true;
|
|
28823
|
+
return finding.tier === "act_now" && finding.kevListedAt == null;
|
|
28824
|
+
}
|
|
28961
28825
|
/**
|
|
28962
|
-
* The
|
|
28963
|
-
*
|
|
28964
|
-
*
|
|
28965
|
-
* its credential (PRO-2916); Gradle builds name theirs in their own build
|
|
28966
|
-
* scripts and get none yet (PRO-2928).
|
|
28826
|
+
* The scanner CATEGORIES a sweep reports, in the order the agent reports them
|
|
28827
|
+
* (PRO-1725). Outcomes are keyed on the category, not the tool, so replacing a
|
|
28828
|
+
* tool in the agents' scanner manifest changes nothing here.
|
|
28967
28829
|
*/
|
|
28968
|
-
const
|
|
28969
|
-
"
|
|
28970
|
-
"
|
|
28971
|
-
"
|
|
28972
|
-
"
|
|
28973
|
-
"go",
|
|
28974
|
-
"cargo",
|
|
28975
|
-
"maven",
|
|
28976
|
-
"rubygems",
|
|
28977
|
-
"composer"
|
|
28978
|
-
];
|
|
28979
|
-
const REGISTRY_VENDORS = [
|
|
28980
|
-
"npmjs",
|
|
28981
|
-
"github",
|
|
28982
|
-
"gcp_artifact",
|
|
28983
|
-
"generic",
|
|
28984
|
-
"hcp_terraform",
|
|
28985
|
-
"scalr",
|
|
28986
|
-
"azure_artifacts",
|
|
28987
|
-
"jfrog",
|
|
28988
|
-
"git_host",
|
|
28989
|
-
"aws_codeartifact"
|
|
28830
|
+
const MAINTENANCE_SCANNERS = [
|
|
28831
|
+
"deps",
|
|
28832
|
+
"secrets",
|
|
28833
|
+
"sast",
|
|
28834
|
+
"iac"
|
|
28990
28835
|
];
|
|
28991
|
-
|
|
28992
|
-
|
|
28993
|
-
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
|
|
28997
|
-
"
|
|
28998
|
-
"
|
|
28836
|
+
new Map(Object.entries({
|
|
28837
|
+
deps: [
|
|
28838
|
+
"vulnerable_dependency",
|
|
28839
|
+
"outdated_dependency",
|
|
28840
|
+
"license_violation"
|
|
28841
|
+
],
|
|
28842
|
+
secrets: ["secret"],
|
|
28843
|
+
sast: ["sast"],
|
|
28844
|
+
iac: ["iac_misconfig"]
|
|
28845
|
+
}).flatMap(([scanner, kinds]) => kinds.map((kind) => [kind, scanner])));
|
|
28846
|
+
const MAINTENANCE_FINDING_SEVERITIES = [
|
|
28847
|
+
"critical",
|
|
28848
|
+
"high",
|
|
28849
|
+
"medium",
|
|
28850
|
+
"low",
|
|
28851
|
+
"none"
|
|
28999
28852
|
];
|
|
29000
|
-
|
|
29001
|
-
|
|
29002
|
-
|
|
29003
|
-
"
|
|
29004
|
-
"
|
|
29005
|
-
"
|
|
29006
|
-
"error",
|
|
29007
|
-
"suspended",
|
|
29008
|
-
"disconnected"
|
|
28853
|
+
const MAINTENANCE_FINDING_STATUSES = [
|
|
28854
|
+
"open",
|
|
28855
|
+
"remediating",
|
|
28856
|
+
"resolved",
|
|
28857
|
+
"ignored",
|
|
28858
|
+
"superseded"
|
|
29009
28859
|
];
|
|
29010
28860
|
/**
|
|
29011
|
-
*
|
|
29012
|
-
*
|
|
29013
|
-
*
|
|
29014
|
-
*
|
|
29015
|
-
*
|
|
29016
|
-
*
|
|
29017
|
-
* project slugs. So a tenant that could write this key could plant a row
|
|
29018
|
-
* claiming another tenant's account name, wait for that callback, and have the
|
|
29019
|
-
* victim's `deployConfig` (accountId, deployRoleArn, stateBucket) delivered to
|
|
29020
|
-
* their own environment.
|
|
29021
|
-
*
|
|
29022
|
-
* `accountKey` is the same identity in unguessable form
|
|
29023
|
-
* (`sha256(tenantId:productId:envType)`), and is what the AFT module is named
|
|
29024
|
-
* for -- equally not the caller's to assert.
|
|
28861
|
+
* Why a human dismissed a finding (required when ignoring). Modelled on
|
|
28862
|
+
* Dependabot's dismiss-reason enum + Snyk's ignore reasons:
|
|
28863
|
+
* - false_positive: not actually a vulnerability / inaccurate advisory
|
|
28864
|
+
* - not_reachable: the vulnerable code path isn't used by this project
|
|
28865
|
+
* - accepted_risk: understood and tolerated (usually time-boxed via expiry)
|
|
28866
|
+
* - wont_fix: won't address (e.g. no fix available, or out of scope)
|
|
29025
28867
|
*
|
|
29026
|
-
*
|
|
29027
|
-
*
|
|
29028
|
-
* update path merges and persists the RAW config precisely so Zod does not
|
|
29029
|
-
* strip them off managed rows, which is what made a tenant-supplied value
|
|
29030
|
-
* durable. Rejecting rather than stripping, so a client sending one is told,
|
|
29031
|
-
* instead of silently having it dropped.
|
|
28868
|
+
* Canonical copy; the DB schema (findings.ts) self-defines the same
|
|
28869
|
+
* values for its CHECK constraint -- keep the two in sync.
|
|
29032
28870
|
*/
|
|
29033
|
-
const
|
|
29034
|
-
|
|
29035
|
-
|
|
29036
|
-
|
|
29037
|
-
|
|
29038
|
-
const TAIGA_MANAGED_PROVIDER_CONFIG_MESSAGE = `providerConfig may not set ${TAIGA_MANAGED_PROVIDER_CONFIG_KEYS.join(" or ")}: Taiga's provisioning owns those keys`;
|
|
29039
|
-
//#endregion
|
|
29040
|
-
//#region ../../packages/types/dist/environments.js
|
|
29041
|
-
const ENVIRONMENT_TYPES = [
|
|
29042
|
-
"development",
|
|
29043
|
-
"staging",
|
|
29044
|
-
"production",
|
|
29045
|
-
"preview",
|
|
29046
|
-
"qa",
|
|
29047
|
-
"load_test",
|
|
29048
|
-
"custom"
|
|
28871
|
+
const MAINTENANCE_IGNORE_REASONS = [
|
|
28872
|
+
"false_positive",
|
|
28873
|
+
"not_reachable",
|
|
28874
|
+
"accepted_risk",
|
|
28875
|
+
"wont_fix"
|
|
29049
28876
|
];
|
|
29050
|
-
//#endregion
|
|
29051
|
-
//#region ../../packages/types/dist/monitoring-rollups.js
|
|
29052
28877
|
/**
|
|
29053
|
-
*
|
|
29054
|
-
*
|
|
29055
|
-
|
|
29056
|
-
|
|
29057
|
-
|
|
29058
|
-
|
|
29059
|
-
|
|
29060
|
-
|
|
29061
|
-
|
|
29062
|
-
|
|
29063
|
-
|
|
29064
|
-
|
|
29065
|
-
|
|
29066
|
-
|
|
29067
|
-
|
|
29068
|
-
|
|
29069
|
-
|
|
29070
|
-
|
|
29071
|
-
|
|
29072
|
-
|
|
29073
|
-
|
|
29074
|
-
|
|
29075
|
-
|
|
29076
|
-
|
|
29077
|
-
|
|
29078
|
-
|
|
29079
|
-
|
|
29080
|
-
|
|
29081
|
-
|
|
29082
|
-
|
|
29083
|
-
|
|
29084
|
-
|
|
29085
|
-
|
|
28878
|
+
* What one lockfile's group list says, read against what its osv-scanner
|
|
28879
|
+
* (osv-scalibr) extractor actually writes. Checked per extractor, because the
|
|
28880
|
+
* same list means different things in different files:
|
|
28881
|
+
*
|
|
28882
|
+
* - package-lock.json / npm-shrinkwrap.json: every package entry carries npm's
|
|
28883
|
+
* `dev` / `optional` / `devOptional` flags, transitive ones included, so an
|
|
28884
|
+
* EMPTY list is a runtime dependency, `dev` alone is dev-only, `optional`
|
|
28885
|
+
* alone is shipped, and `dev` + `optional` (devOptional) is left undecided.
|
|
28886
|
+
* - pnpm-lock.yaml: `dev` comes from a per-package `dev: true` that lockfile
|
|
28887
|
+
* v9 no longer writes, so an empty list says nothing; `dev` still means dev.
|
|
28888
|
+
* From a v9 lockfile the sweep walks the `snapshots` graph (PRO-2943): a
|
|
28889
|
+
* copy reachable from any workspace's `dependencies` or
|
|
28890
|
+
* `optionalDependencies` gets Taiga's own `prod` and reads runtime; one
|
|
28891
|
+
* reachable only from `devDependencies` gets `dev`. From an older lockfile
|
|
28892
|
+
* only a copy a workspace declares under `dependencies` or
|
|
28893
|
+
* `optionalDependencies` gets `prod`, and the rest stays unknown.
|
|
28894
|
+
* - poetry.lock: group names with `main` dropped; a non-main, non-optional
|
|
28895
|
+
* group is not in the runtime install. Poetry 1.x lockfiles carry no groups
|
|
28896
|
+
* at all, so an empty list says nothing.
|
|
28897
|
+
* - uv.lock: only direct members of a group are tagged, so an empty list says
|
|
28898
|
+
* nothing; `dev` means dev. Where osv-scanner said nothing, the sweep walks
|
|
28899
|
+
* the lockfile's package graph (PRO-2994): a package reachable from any
|
|
28900
|
+
* workspace member's runtime dependencies gets `prod` and reads runtime,
|
|
28901
|
+
* one reachable only from its development groups gets `dev`.
|
|
28902
|
+
* - bun.lock, yarn.lock, composer.lock, Cargo.lock, Gemfile.lock and NuGet's
|
|
28903
|
+
* packages.lock.json: where osv-scanner names no group, the sweep walks the
|
|
28904
|
+
* lockfile's graph (PRO-3395) and writes `prod` for a package reachable from
|
|
28905
|
+
* a runtime declaration and `dev` for one reachable only from development
|
|
28906
|
+
* ones, where the lockfile or its manifest says which is which (Cargo,
|
|
28907
|
+
* Gemfile and NuGet do not). `prod` reads runtime, `dev` alone dev.
|
|
28908
|
+
* - The sweep's `prod` reads runtime in package-lock.json and poetry.lock as
|
|
28909
|
+
* well, where the graph decides a package osv-scanner said nothing about.
|
|
28910
|
+
* - go.mod/go.sum and the rest carry no group information: unknown whatever
|
|
28911
|
+
* the list says.
|
|
28912
|
+
*
|
|
28913
|
+
* Anything this cannot place is `unknown`, never `runtime`: a wrong "runtime"
|
|
28914
|
+
* on a build tool is the claim this exists to stop, and a wrong "dev only" on a
|
|
28915
|
+
* shipped package is worse.
|
|
28916
|
+
*/
|
|
28917
|
+
function lockfileScope(path, groups) {
|
|
28918
|
+
const name = path.slice(path.lastIndexOf("/") + 1);
|
|
28919
|
+
const set = new Set(groups.map((g) => g.trim().toLowerCase()).filter((g) => g !== ""));
|
|
28920
|
+
if (set.has("taiga:runtime")) return "runtime";
|
|
28921
|
+
if (set.has("taiga:dev")) return "dev";
|
|
28922
|
+
switch (name) {
|
|
28923
|
+
case "package-lock.json":
|
|
28924
|
+
case "npm-shrinkwrap.json": {
|
|
28925
|
+
if (set.size === 0 || set.has("prod")) return "runtime";
|
|
28926
|
+
const dev = set.has("dev");
|
|
28927
|
+
const optional = set.has("optional");
|
|
28928
|
+
if (dev && optional) return "unknown";
|
|
28929
|
+
if (dev) return "dev";
|
|
28930
|
+
if (optional && set.size === 1) return "runtime";
|
|
28931
|
+
return "unknown";
|
|
28932
|
+
}
|
|
28933
|
+
case "pnpm-lock.yaml":
|
|
28934
|
+
if (set.has("prod")) return "runtime";
|
|
28935
|
+
return set.size === 1 && set.has("dev") ? "dev" : "unknown";
|
|
28936
|
+
case "uv.lock":
|
|
28937
|
+
case "bun.lock":
|
|
28938
|
+
case "yarn.lock":
|
|
28939
|
+
case "composer.lock":
|
|
28940
|
+
case "Cargo.lock":
|
|
28941
|
+
case "Gemfile.lock":
|
|
28942
|
+
case "packages.lock.json":
|
|
28943
|
+
if (set.has("prod")) return "runtime";
|
|
28944
|
+
return set.size === 1 && set.has("dev") ? "dev" : "unknown";
|
|
28945
|
+
case "pom.xml":
|
|
28946
|
+
if (set.has("prod") || set.has("compile") || set.has("runtime")) return "runtime";
|
|
28947
|
+
return set.size > 0 && [...set].every((g) => g === "test" || g === "dev") ? "dev" : "unknown";
|
|
28948
|
+
case "poetry.lock":
|
|
28949
|
+
if (set.has("taiga:prod")) return "runtime";
|
|
28950
|
+
return set.size > 0 && !set.has("optional") && !set.has("main") ? "dev" : "unknown";
|
|
28951
|
+
default: return "unknown";
|
|
29086
28952
|
}
|
|
29087
|
-
}
|
|
29088
|
-
Object.keys(METRICS);
|
|
29089
|
-
Object.fromEntries(Object.entries(METRICS).map(([name, spec]) => [name, spec.weight]));
|
|
29090
|
-
//#endregion
|
|
29091
|
-
//#region ../../packages/types/dist/api-keys.js
|
|
28953
|
+
}
|
|
29092
28954
|
/**
|
|
29093
|
-
*
|
|
29094
|
-
*
|
|
29095
|
-
*
|
|
29096
|
-
*
|
|
29097
|
-
* Convention: "resource:action" matching the existing Capability type.
|
|
28955
|
+
* The kinds that are a package in a lockfile (PRO-2862): the ones with a
|
|
28956
|
+
* dependency scope, a relation and an inventory entry. A code kind reuses the
|
|
28957
|
+
* dependency columns for its rule and category and has none of those.
|
|
29098
28958
|
*/
|
|
29099
|
-
const
|
|
29100
|
-
"
|
|
29101
|
-
"
|
|
29102
|
-
"
|
|
29103
|
-
"backlog:write",
|
|
29104
|
-
"factories:read",
|
|
29105
|
-
"factories:documents:write",
|
|
29106
|
-
"users:read",
|
|
29107
|
-
"tenant:documents:read",
|
|
29108
|
-
"tenant:documents:write",
|
|
29109
|
-
"vcs:read",
|
|
29110
|
-
"customDocuments:read",
|
|
29111
|
-
"customDocuments:write",
|
|
29112
|
-
"customDocuments:delete",
|
|
29113
|
-
"factories:write",
|
|
29114
|
-
"vcs:manage"
|
|
28959
|
+
const DEPENDENCY_FINDING_KINDS = [
|
|
28960
|
+
"vulnerable_dependency",
|
|
28961
|
+
"outdated_dependency",
|
|
28962
|
+
"license_violation"
|
|
29115
28963
|
];
|
|
29116
|
-
|
|
28964
|
+
function isDependencyFindingKind(kind) {
|
|
28965
|
+
return DEPENDENCY_FINDING_KINDS.includes(kind);
|
|
28966
|
+
}
|
|
29117
28967
|
/**
|
|
29118
|
-
*
|
|
29119
|
-
*
|
|
29120
|
-
*
|
|
28968
|
+
* Whether a dependency finding sits only in development dependencies, in at
|
|
28969
|
+
* least one runtime dependency set, or in lockfiles that do not say. Decided
|
|
28970
|
+
* per lockfile (`lockfileScope`) and combined pessimistically: one runtime
|
|
28971
|
+
* lockfile makes the finding runtime, one lockfile that cannot say makes it
|
|
28972
|
+
* unknown, and only all-dev reads as dev. Groups the sweep did not record
|
|
28973
|
+
* (older images, code kinds) are unknown. Presentation only: the tier and the
|
|
28974
|
+
* auto-remediation gate do not read this, and a malicious package runs its
|
|
28975
|
+
* install script in any group.
|
|
29121
28976
|
*/
|
|
29122
|
-
|
|
29123
|
-
"
|
|
29124
|
-
|
|
29125
|
-
|
|
29126
|
-
|
|
29127
|
-
|
|
29128
|
-
|
|
29129
|
-
|
|
29130
|
-
|
|
29131
|
-
|
|
29132
|
-
|
|
29133
|
-
|
|
29134
|
-
|
|
29135
|
-
|
|
29136
|
-
|
|
29137
|
-
/** Longest request for changes from Taiga (PRO-3035): about four pages of prose. */
|
|
29138
|
-
const CHANGE_REQUEST_MAX_CHARS = 1e4;
|
|
29139
|
-
//#endregion
|
|
29140
|
-
//#region ../../packages/types/dist/notifications.js
|
|
28977
|
+
function dependencyScope(finding) {
|
|
28978
|
+
if (!isDependencyFindingKind(finding.kind)) return "unknown";
|
|
28979
|
+
return scopeFromGroups(finding.dependencyGroups);
|
|
28980
|
+
}
|
|
28981
|
+
/** The scope read from per-lockfile groups alone: for an inventory record, which is a package by construction. */
|
|
28982
|
+
function scopeFromGroups(dependencyGroups) {
|
|
28983
|
+
const entries = Object.entries(dependencyGroups ?? {});
|
|
28984
|
+
if (entries.length === 0) return "unknown";
|
|
28985
|
+
return combineScopes(entries.map(([path, groups]) => lockfileScope(path, Array.isArray(groups) ? groups : [])));
|
|
28986
|
+
}
|
|
28987
|
+
function combineScopes(scopes) {
|
|
28988
|
+
if (scopes.includes("runtime")) return "runtime";
|
|
28989
|
+
if (scopes.includes("unknown") || scopes.length === 0) return "unknown";
|
|
28990
|
+
return "dev";
|
|
28991
|
+
}
|
|
29141
28992
|
/**
|
|
29142
|
-
*
|
|
29143
|
-
*
|
|
29144
|
-
*
|
|
29145
|
-
*
|
|
29146
|
-
*
|
|
29147
|
-
*
|
|
28993
|
+
* Whether the repository declares the package itself. Per lockfile the sweep
|
|
28994
|
+
* says direct or transitive; across lockfiles one direct declaration makes the
|
|
28995
|
+
* finding direct (that copy is the repository's to bump), transitive only when
|
|
28996
|
+
* every readable lockfile says so, unknown when the sweep could read none of
|
|
28997
|
+
* them or did not record it (older images, code kinds). Presentation only; the
|
|
28998
|
+
* remediation step already finds every resolved copy and its parent itself.
|
|
29148
28999
|
*/
|
|
29149
|
-
|
|
29150
|
-
"
|
|
29151
|
-
|
|
29152
|
-
|
|
29153
|
-
|
|
29000
|
+
function dependencyRelation(finding) {
|
|
29001
|
+
if (!isDependencyFindingKind(finding.kind)) return "unknown";
|
|
29002
|
+
return relationFromLockfiles(finding.dependencyRelation);
|
|
29003
|
+
}
|
|
29004
|
+
/** The relation read from per-lockfile answers alone: for an inventory record, which is a package by construction. */
|
|
29005
|
+
function relationFromLockfiles(dependencyRelation) {
|
|
29006
|
+
const values = Object.values(dependencyRelation ?? {});
|
|
29007
|
+
if (values.includes("direct")) return "direct";
|
|
29008
|
+
if (values.length > 0 && values.every((v) => v === "transitive")) return "transitive";
|
|
29009
|
+
return "unknown";
|
|
29010
|
+
}
|
|
29011
|
+
new Set(CODE_REMEDIATION_KINDS);
|
|
29012
|
+
/** A non-empty string, or null. */
|
|
29013
|
+
const locationText = string$2().min(1).nullable().catch(null);
|
|
29014
|
+
/**
|
|
29015
|
+
* A source line is a positive integer or nothing: the response schema declares
|
|
29016
|
+
* `int()`, so a fractional value here would fail serialization for the WHOLE
|
|
29017
|
+
* list rather than blank one row; and 0 is "no position" for scanners that
|
|
29018
|
+
* report [0, 0] for a check with no concrete line.
|
|
29019
|
+
*/
|
|
29020
|
+
const sourceLine = number$1().refine((n) => Number.isInteger(n) && n > 0).nullable().catch(null);
|
|
29021
|
+
object({
|
|
29022
|
+
rule_id: locationText,
|
|
29023
|
+
rule_url: locationText,
|
|
29024
|
+
tool: locationText,
|
|
29025
|
+
line: sourceLine,
|
|
29026
|
+
end_line: sourceLine,
|
|
29027
|
+
resource: locationText,
|
|
29028
|
+
in_tree: unknown$1().optional(),
|
|
29029
|
+
commit: string$2().regex(/^[0-9a-f]{7,40}$/).nullable().catch(null)
|
|
29030
|
+
}).transform((d) => ({
|
|
29031
|
+
ruleId: d.rule_id,
|
|
29032
|
+
ruleUrl: d.rule_url,
|
|
29033
|
+
tool: d.tool,
|
|
29034
|
+
line: d.line,
|
|
29035
|
+
endLine: d.end_line,
|
|
29036
|
+
resource: d.resource,
|
|
29037
|
+
historyOnly: d.in_tree === false,
|
|
29038
|
+
commit: d.commit
|
|
29039
|
+
}));
|
|
29040
|
+
/**
|
|
29041
|
+
* The sources whose findings no agent scanner's outcome decides (PRO-4070):
|
|
29042
|
+
* the API's runtime judge (PRO-3659) and base OS judge (PRO-4074), and the
|
|
29043
|
+
* base image reading (PRO-1728) and the reading of what a Dockerfile installs
|
|
29044
|
+
* (PRO-4077), whose findings the agent drafts but only a sweep that read them
|
|
29045
|
+
* may settle.
|
|
29046
|
+
*/
|
|
29047
|
+
const MAINTENANCE_JUDGED_SOURCES = [
|
|
29048
|
+
"runtime",
|
|
29049
|
+
"base_os",
|
|
29050
|
+
"base_image",
|
|
29051
|
+
"dockerfile_install",
|
|
29052
|
+
...["ci_analysis", "code_health"],
|
|
29053
|
+
"policy"
|
|
29054
|
+
];
|
|
29055
|
+
[...MAINTENANCE_SCANNERS, ...MAINTENANCE_JUDGED_SOURCES];
|
|
29056
|
+
new Set(MAINTENANCE_SCANNERS);
|
|
29057
|
+
/** The reasons that come and go with a sweep: a finding naming the file holds rather than resolves. */
|
|
29058
|
+
const MAINTENANCE_DOCKERFILE_INSTALL_HELD_REASONS = [
|
|
29059
|
+
"base_not_read",
|
|
29060
|
+
"definition_unreadable",
|
|
29061
|
+
"index_unavailable",
|
|
29062
|
+
"over_limit"
|
|
29154
29063
|
];
|
|
29155
|
-
//#endregion
|
|
29156
|
-
//#region ../../packages/types/dist/requests.js
|
|
29157
29064
|
/**
|
|
29158
|
-
*
|
|
29065
|
+
* The licences a package may carry without a `license_violation` finding
|
|
29066
|
+
* (PRO-2862), as SPDX identifiers. osv-scanner evaluates each package's
|
|
29067
|
+
* licence expression against this list, so `MIT OR GPL-3.0-only` passes and
|
|
29068
|
+
* `Apache-2.0 AND LGPL-3.0-or-later` does not.
|
|
29159
29069
|
*
|
|
29160
|
-
*
|
|
29161
|
-
*
|
|
29162
|
-
*
|
|
29163
|
-
*
|
|
29164
|
-
*
|
|
29165
|
-
*
|
|
29166
|
-
*
|
|
29167
|
-
*
|
|
29168
|
-
*
|
|
29169
|
-
*
|
|
29170
|
-
*
|
|
29171
|
-
*
|
|
29172
|
-
* - `maintenance_review` a product's maintenance findings wait on a
|
|
29173
|
-
* person's review (PRO-2702): one per product, raised when
|
|
29174
|
-
* a sweep brings news. Advisory: nothing waits on it.
|
|
29175
|
-
* - `policy_review` a product's policy divergences wait on a person's
|
|
29176
|
-
* review (PRO-2702): one per product, raised when an
|
|
29177
|
-
* assessment after a refresh finds new ones. Advisory.
|
|
29178
|
-
* - `document_check` something the document pipeline found in one of a
|
|
29179
|
-
* product's documents waited on a person (PRO-2703): a
|
|
29180
|
-
* reference or fact it could not fix, or a product decision
|
|
29181
|
-
* only a person can make. One per check, under its key
|
|
29182
|
-
* (`<documentType>:doc-lint`, `:facts`,
|
|
29183
|
-
* `:decision:<hash>`), on the product. Retired: no longer
|
|
29184
|
-
* raised, and none is open -- a document asks for a review
|
|
29185
|
-
* and nothing else. Its closed rows remain.
|
|
29186
|
-
* - `license_review` a licence nobody approved is in use in a product
|
|
29187
|
-
* (PRO-3313): one per product and licence, under the
|
|
29188
|
-
* licence's SPDX id as its key, for whoever can change the
|
|
29189
|
-
* organization's approved list. Advisory.
|
|
29190
|
-
* - `policy_attestation` a product's controls about how it is run wait on a
|
|
29191
|
-
* person's word (PRO-4239): the breach drill, the DPIA under
|
|
29192
|
-
* review, the processors under contract -- what no scanner
|
|
29193
|
-
* or document shows. One per product, raised while any such
|
|
29194
|
-
* control has no current attestation or has one about to
|
|
29195
|
-
* run out, and answered by attesting them, on the
|
|
29196
|
-
* Regulations tab or in Action required's pane. Advisory.
|
|
29197
|
-
* - `scope_question` a product's scope questions wait on a person (PRO-4425):
|
|
29198
|
-
* what the product is and does, as far as the organization's
|
|
29199
|
-
* regulations care, which Discovery proposed an answer to
|
|
29200
|
-
* and nobody confirmed, or proposed anew against a confirmed
|
|
29201
|
-
* answer. One per product, raised while any asked question
|
|
29202
|
-
* has no confirmed answer or a newer proposal, and answered
|
|
29203
|
-
* by confirming each on the Regulations tab. Advisory.
|
|
29070
|
+
* The default for regulated enterprises (PRO-3310), by classification: on it
|
|
29071
|
+
* when Google's licence policy classes it "notice" or "unencumbered" and the
|
|
29072
|
+
* Apache Software Foundation's puts it in Category A (where it lists it), and
|
|
29073
|
+
* the Blue Oak Council does not rate it Lead -- the permissive family, which
|
|
29074
|
+
* no copyleft obligation follows however the software ships. Approval is not
|
|
29075
|
+
* compliance: each licence's own conditions still apply (notices, Apache's
|
|
29076
|
+
* change notices on modified files). So MPL-2.0 (Google reciprocal, Apache B), OFL-1.1 (Google by
|
|
29077
|
+
* exception, Apache B) and WTFPL (Blue Oak Lead) are not; Unicode-3.0, which
|
|
29078
|
+
* most Rust builds carry through unicode-ident, is. Anything else raises a
|
|
29079
|
+
* finding the product decides on. The starting value of every organization's
|
|
29080
|
+
* list, which a tenant admin can replace (PRO-2896, `tenantLicenseAllowlist`);
|
|
29081
|
+
* an organization with its own list keeps it. `UNKNOWN` is never a violation.
|
|
29204
29082
|
*/
|
|
29205
|
-
const
|
|
29206
|
-
"
|
|
29207
|
-
"
|
|
29208
|
-
"
|
|
29209
|
-
"
|
|
29210
|
-
"
|
|
29211
|
-
"
|
|
29212
|
-
"
|
|
29213
|
-
"
|
|
29214
|
-
"
|
|
29215
|
-
"
|
|
29216
|
-
"
|
|
29217
|
-
|
|
29218
|
-
|
|
29219
|
-
|
|
29220
|
-
"
|
|
29221
|
-
"
|
|
29222
|
-
"
|
|
29223
|
-
"
|
|
29224
|
-
"
|
|
29225
|
-
"
|
|
29226
|
-
"
|
|
29227
|
-
"
|
|
29228
|
-
"
|
|
29229
|
-
"
|
|
29230
|
-
"
|
|
29231
|
-
"
|
|
29232
|
-
"attested",
|
|
29233
|
-
"answered"
|
|
29083
|
+
const DEFAULT_LICENSE_ALLOWLIST = [
|
|
29084
|
+
"MIT",
|
|
29085
|
+
"Apache-2.0",
|
|
29086
|
+
"BSD-2-Clause",
|
|
29087
|
+
"BSD-3-Clause",
|
|
29088
|
+
"BSD-2-Clause-Patent",
|
|
29089
|
+
"ISC",
|
|
29090
|
+
"X11",
|
|
29091
|
+
"MIT-CMU",
|
|
29092
|
+
"MIT-0",
|
|
29093
|
+
"0BSD",
|
|
29094
|
+
"Zlib",
|
|
29095
|
+
"BSL-1.0",
|
|
29096
|
+
"PostgreSQL",
|
|
29097
|
+
"NCSA",
|
|
29098
|
+
"UPL-1.0",
|
|
29099
|
+
"BlueOak-1.0.0",
|
|
29100
|
+
"PSF-2.0",
|
|
29101
|
+
"Python-2.0",
|
|
29102
|
+
"CNRI-Python",
|
|
29103
|
+
"Unicode-3.0",
|
|
29104
|
+
"Unicode-DFS-2016",
|
|
29105
|
+
"Unlicense",
|
|
29106
|
+
"CC0-1.0",
|
|
29107
|
+
"CC-BY-4.0",
|
|
29108
|
+
"CDLA-Permissive-2.0",
|
|
29109
|
+
"Artistic-2.0"
|
|
29234
29110
|
];
|
|
29235
|
-
/** The most ids an answer's `seen` carries; a longer list is not sent, and the review is not checked. */
|
|
29236
|
-
const REVIEW_SEEN_MAX = 1e4;
|
|
29237
|
-
//#endregion
|
|
29238
|
-
//#region ../../packages/types/dist/findings.js
|
|
29239
29111
|
/**
|
|
29240
|
-
*
|
|
29241
|
-
*
|
|
29242
|
-
*
|
|
29243
|
-
*
|
|
29244
|
-
* Maintaining page. Maintenance is the operational-hygiene system of record,
|
|
29245
|
-
* deliberately SEPARATE from the product backlog.
|
|
29112
|
+
* The longest licence string the package list filters by (PRO-2920). The
|
|
29113
|
+
* inventory keeps every expression whole whatever its length; this bounds only
|
|
29114
|
+
* the query string, far above any expression seen. A longer one is listed in
|
|
29115
|
+
* the summary and the SBOM, and cannot be opened as a filter.
|
|
29246
29116
|
*/
|
|
29117
|
+
const MAINTENANCE_LICENSE_FILTER_MAX = 4096;
|
|
29118
|
+
/** osv-scanner's words for a licence deps.dev could not name. */
|
|
29119
|
+
const UNKNOWN_LICENSES = ["UNKNOWN", "non-standard"];
|
|
29120
|
+
[...MAINTENANCE_DOCKERFILE_INSTALL_HELD_REASONS];
|
|
29121
|
+
const FIX_STAGES = [
|
|
29122
|
+
"under_way",
|
|
29123
|
+
"awaiting_sweep",
|
|
29124
|
+
"did_not_clear"
|
|
29125
|
+
];
|
|
29126
|
+
function licensePackageStanding(decisions, pkg) {
|
|
29127
|
+
const name = pkg.platformBuildOf ?? pkg.packageName;
|
|
29128
|
+
const own = decisions.filter((d) => d.ecosystem === pkg.ecosystem && d.packageName === name).sort((a, b) => a.decidedAt.localeCompare(b.decidedAt) || a.id.localeCompare(b.id));
|
|
29129
|
+
const latest = /* @__PURE__ */ new Map();
|
|
29130
|
+
const replacements = /* @__PURE__ */ new Map();
|
|
29131
|
+
for (const d of own) if (d.action === "replace") replacements.set(d.productRepositoryId, d);
|
|
29132
|
+
else latest.set(d.license, d);
|
|
29133
|
+
const allowed = [...latest.values()].find((d) => d.action === "allow") ?? null;
|
|
29134
|
+
const fixes = [...replacements.values()].flatMap((d) => {
|
|
29135
|
+
if (!d.backlogItemId || !d.initiative || d.initiative.state === "canceled") return [];
|
|
29136
|
+
const stage = d.initiative.state !== "done" ? "under_way" : d.initiative.sweptSince ? "did_not_clear" : "awaiting_sweep";
|
|
29137
|
+
return [{
|
|
29138
|
+
backlogItemId: d.backlogItemId,
|
|
29139
|
+
stage
|
|
29140
|
+
}];
|
|
29141
|
+
});
|
|
29142
|
+
return {
|
|
29143
|
+
allowed,
|
|
29144
|
+
fix: FIX_STAGES.flatMap((stage) => fixes.filter((f) => f.stage === stage))[0] ?? null
|
|
29145
|
+
};
|
|
29146
|
+
}
|
|
29147
|
+
/** The longest attestation link taken, in characters (PRO-4387). */
|
|
29148
|
+
const ATTESTATION_LINK_MAX_LENGTH = 2e3;
|
|
29247
29149
|
/**
|
|
29248
|
-
*
|
|
29249
|
-
*
|
|
29250
|
-
*
|
|
29251
|
-
*
|
|
29252
|
-
*
|
|
29253
|
-
* Which tool implements each category lives in the agents' scanner manifest
|
|
29254
|
-
* (apps/agents/core/src/agent_core/scanners/scanners.toml), not here.
|
|
29255
|
-
*
|
|
29256
|
-
* Column semantics per kind (PRO-1350, PRO-1725): the dependency-shaped
|
|
29257
|
-
* columns are reused rather than nulled so grouping and the UI keep working.
|
|
29258
|
-
* For code kinds `ecosystem` is the CATEGORY (secrets / sast / iac), never the
|
|
29259
|
-
* tool, so swapping a tool does not change a finding's identity; the tool that
|
|
29260
|
-
* reported it is `data.tool`. `packageName` is the RULE id, so "group by
|
|
29261
|
-
* package" reads "CKV_AWS_20 x4"; file, line, snippet and rule URL live in
|
|
29262
|
-
* `sourcePaths` + `data`.
|
|
29263
|
-
*
|
|
29264
|
-
* Canonical copy; the DB schema (findings.ts) self-defines the
|
|
29265
|
-
* same values for its CHECK constraint and the agent (maintenance/models.py)
|
|
29266
|
-
* for its Literal -- keep the three in sync.
|
|
29150
|
+
* Whether `value` is a link an attestation may carry (PRO-4387): an absolute
|
|
29151
|
+
* http or https URL, no longer than {@link ATTESTATION_LINK_MAX_LENGTH}. Any
|
|
29152
|
+
* other scheme (`javascript:`, `data:`, `file:`) is refused, because the link
|
|
29153
|
+
* is shown to every reader of the control and opened on a click.
|
|
29267
29154
|
*/
|
|
29268
|
-
|
|
29269
|
-
|
|
29270
|
-
"
|
|
29271
|
-
|
|
29272
|
-
|
|
29273
|
-
|
|
29274
|
-
|
|
29275
|
-
|
|
29276
|
-
|
|
29277
|
-
|
|
29155
|
+
function isAttestationLink(value) {
|
|
29156
|
+
if (value.length === 0 || value.length > 2e3) return false;
|
|
29157
|
+
if (/[\s<>"]/.test(value) || Array.from(value).some((char) => char.charCodeAt(0) < 32 || char.charCodeAt(0) === 127)) return false;
|
|
29158
|
+
try {
|
|
29159
|
+
const url = new URL(value);
|
|
29160
|
+
return (url.protocol === "https:" || url.protocol === "http:") && url.hostname.length > 0;
|
|
29161
|
+
} catch {
|
|
29162
|
+
return false;
|
|
29163
|
+
}
|
|
29164
|
+
}
|
|
29165
|
+
//#endregion
|
|
29166
|
+
//#region ../../packages/types/dist/trackers.js
|
|
29167
|
+
const TRACKER_PROVIDERS = [
|
|
29168
|
+
"jira",
|
|
29169
|
+
"servicenow",
|
|
29170
|
+
"linear"
|
|
29171
|
+
];
|
|
29172
|
+
/** What a connection's last check found. `auth_failed` stops further calls until it is checked again. */
|
|
29173
|
+
const TRACKER_CONNECTION_STATUSES = [
|
|
29174
|
+
"valid",
|
|
29175
|
+
"auth_failed",
|
|
29176
|
+
"unreachable"
|
|
29177
|
+
];
|
|
29178
|
+
/** What kind of place a provider files tickets in, in its own word. */
|
|
29179
|
+
const TRACKER_PLACE_KINDS = [
|
|
29180
|
+
"project",
|
|
29181
|
+
"table",
|
|
29182
|
+
"team"
|
|
29278
29183
|
];
|
|
29279
29184
|
/**
|
|
29280
|
-
*
|
|
29281
|
-
*
|
|
29185
|
+
* What a refresh of one source answers. `busy` is another refresh of the
|
|
29186
|
+
* same source still running: nothing was read, and its result will arrive.
|
|
29282
29187
|
*/
|
|
29283
|
-
const
|
|
29284
|
-
|
|
29285
|
-
|
|
29286
|
-
|
|
29287
|
-
|
|
29188
|
+
const TICKET_REFRESH_OUTCOMES = [...[
|
|
29189
|
+
"read",
|
|
29190
|
+
"unreachable",
|
|
29191
|
+
"refused",
|
|
29192
|
+
"rejected"
|
|
29193
|
+
], "busy"];
|
|
29194
|
+
const DOCUMENT_INPUTS = Object.freeze({
|
|
29195
|
+
user_flow: {
|
|
29196
|
+
required: ["specification"],
|
|
29197
|
+
optional: []
|
|
29198
|
+
},
|
|
29199
|
+
architecture: {
|
|
29200
|
+
required: ["specification"],
|
|
29201
|
+
optional: ["user_flow"]
|
|
29202
|
+
},
|
|
29203
|
+
technology_decisions: {
|
|
29204
|
+
required: ["specification", "architecture"],
|
|
29205
|
+
optional: []
|
|
29206
|
+
},
|
|
29207
|
+
data_flow: {
|
|
29208
|
+
required: ["specification", "architecture"],
|
|
29209
|
+
optional: []
|
|
29210
|
+
},
|
|
29211
|
+
privacy_assessment: {
|
|
29212
|
+
required: ["specification", "architecture"],
|
|
29213
|
+
optional: ["data_flow"]
|
|
29214
|
+
},
|
|
29215
|
+
threat_model: {
|
|
29216
|
+
required: [
|
|
29217
|
+
"specification",
|
|
29218
|
+
"architecture",
|
|
29219
|
+
"privacy_assessment"
|
|
29220
|
+
],
|
|
29221
|
+
optional: ["data_flow"]
|
|
29222
|
+
},
|
|
29223
|
+
risk_register: {
|
|
29224
|
+
required: ["specification"],
|
|
29225
|
+
optional: [
|
|
29226
|
+
"privacy_assessment",
|
|
29227
|
+
"threat_model",
|
|
29228
|
+
"technology_decisions",
|
|
29229
|
+
"architecture",
|
|
29230
|
+
"data_flow"
|
|
29231
|
+
]
|
|
29232
|
+
},
|
|
29233
|
+
service_blueprint: {
|
|
29234
|
+
required: [
|
|
29235
|
+
"specification",
|
|
29236
|
+
"user_flow",
|
|
29237
|
+
"architecture"
|
|
29238
|
+
],
|
|
29239
|
+
optional: ["ui_direction"]
|
|
29240
|
+
}
|
|
29241
|
+
});
|
|
29242
|
+
SETUP_REQUIRED_DOCUMENT_TYPES.filter((type) => type !== "specification");
|
|
29243
|
+
//#endregion
|
|
29244
|
+
//#region ../../packages/types/dist/chat-stream-events.js
|
|
29288
29245
|
/**
|
|
29289
|
-
* The
|
|
29290
|
-
*
|
|
29291
|
-
*
|
|
29292
|
-
* Shared rather than duplicated per side, because the two sides disagreeing is
|
|
29293
|
-
* a silent dead feature: the API decides whether a remediation is ACCEPTED and
|
|
29294
|
-
* the web decides whether the button is OFFERED, and when this split lived only
|
|
29295
|
-
* in the API the client kept gating on `recommendedVersion` -- which a code
|
|
29296
|
-
* finding never has -- so the endpoint was reachable and unreachable at the
|
|
29297
|
-
* same time.
|
|
29298
|
-
*
|
|
29299
|
-
* A dependency is fixed by moving to a published version, so the absence of one
|
|
29300
|
-
* is a real blocker. A code finding has no version by construction.
|
|
29246
|
+
* The longest generated document, in UTF-16 units: a long brief of a dozen
|
|
29247
|
+
* pages. A document past it is refused by the agent rather than clipped, since
|
|
29248
|
+
* a document with its tail cut off reads as finished.
|
|
29301
29249
|
*/
|
|
29302
|
-
const
|
|
29303
|
-
|
|
29304
|
-
|
|
29305
|
-
|
|
29306
|
-
|
|
29307
|
-
|
|
29308
|
-
|
|
29309
|
-
|
|
29310
|
-
|
|
29311
|
-
|
|
29312
|
-
}
|
|
29250
|
+
const MAX_GENERATED_DOCUMENT_CHARS = 4e4;
|
|
29251
|
+
/** A JSON object whose keys a reader walks itself. */
|
|
29252
|
+
const jsonObject = record(string$2(), unknown$1());
|
|
29253
|
+
/** The raw Strands block a tool call starts in. */
|
|
29254
|
+
const contentBlockStart = object({ start: lenient(object({ toolUse: lenient(jsonObject) })) });
|
|
29255
|
+
/** A raw Strands delta: answer text, or a fragment of a tool's input. */
|
|
29256
|
+
const contentBlockDelta = object({ delta: lenient(object({
|
|
29257
|
+
text: lenient(string$2()),
|
|
29258
|
+
toolUse: lenient(jsonObject)
|
|
29259
|
+
})) });
|
|
29313
29260
|
/**
|
|
29314
|
-
*
|
|
29315
|
-
*
|
|
29316
|
-
*
|
|
29317
|
-
* vocabulary: `pointer_bump` is already a value the CHECK constraint accepts,
|
|
29318
|
-
* reserved for work that does not exist yet, and every gate written as
|
|
29319
|
-
* `!== 'upstream_only'` would wave it straight through into planning and a
|
|
29320
|
-
* build with no idea what to do with it. A value this release does not
|
|
29321
|
-
* understand is not a value it may act on.
|
|
29322
|
-
*
|
|
29323
|
-
* Absent or null reads as `coding_agent`: rows written before PRO-1837 carry
|
|
29324
|
-
* no value at all and are ordinary first-party findings, so the migration's
|
|
29325
|
-
* default and this predicate agree.
|
|
29261
|
+
* A frame's `event`, with the keys a reader dispatches on named. The raw
|
|
29262
|
+
* Strands blocks are read here; each synthesized payload is left as it came
|
|
29263
|
+
* and parsed by the reader that acts on it. Every other key passes through.
|
|
29326
29264
|
*/
|
|
29327
|
-
|
|
29328
|
-
|
|
29329
|
-
|
|
29265
|
+
const chatStreamFrameEvent = looseObject({
|
|
29266
|
+
contentBlockStart: lenient(contentBlockStart),
|
|
29267
|
+
contentBlockDelta: lenient(contentBlockDelta),
|
|
29268
|
+
toolStatus: unknown$1().optional(),
|
|
29269
|
+
retry: unknown$1().optional(),
|
|
29270
|
+
citations: unknown$1().optional(),
|
|
29271
|
+
citationCheck: unknown$1().optional(),
|
|
29272
|
+
usage: unknown$1().optional(),
|
|
29273
|
+
thought: unknown$1().optional(),
|
|
29274
|
+
plan: unknown$1().optional(),
|
|
29275
|
+
readPause: unknown$1().optional(),
|
|
29276
|
+
initiativeProposal: unknown$1().optional(),
|
|
29277
|
+
initiativeEditProposal: unknown$1().optional(),
|
|
29278
|
+
generatedDocument: unknown$1().optional(),
|
|
29279
|
+
documentSections: unknown$1().optional(),
|
|
29280
|
+
specUpdate: unknown$1().optional(),
|
|
29281
|
+
flowSections: unknown$1().optional()
|
|
29282
|
+
});
|
|
29283
|
+
object({
|
|
29284
|
+
status: unknown$1().optional(),
|
|
29285
|
+
error: lenient(string$2()),
|
|
29286
|
+
code: lenient(string$2()),
|
|
29287
|
+
message: lenient(object({
|
|
29288
|
+
role: unknown$1().optional(),
|
|
29289
|
+
content: lenient(array(unknown$1()))
|
|
29290
|
+
})),
|
|
29291
|
+
event: lenient(chatStreamFrameEvent)
|
|
29292
|
+
});
|
|
29293
|
+
//#endregion
|
|
29294
|
+
//#region ../../packages/types/dist/chat-stream-payloads.js
|
|
29330
29295
|
/**
|
|
29331
|
-
*
|
|
29296
|
+
* The synthesized chat stream payloads that the API persists and the browser
|
|
29297
|
+
* renders, each read by ONE set of rules (PRO-2735).
|
|
29332
29298
|
*
|
|
29333
|
-
*
|
|
29334
|
-
*
|
|
29335
|
-
*
|
|
29336
|
-
*
|
|
29337
|
-
* is
|
|
29338
|
-
*
|
|
29339
|
-
*
|
|
29340
|
-
*
|
|
29299
|
+
* The API reads a payload before it saves it with the answer, and the browser
|
|
29300
|
+
* reads it again, live and from the saved message. The two copies of these
|
|
29301
|
+
* readers used to be kept in step by hand (`chat/routes/stream.ts`,
|
|
29302
|
+
* `product-chat/live-turn.ts`); one shared reader means the card a live
|
|
29303
|
+
* stream draws is the card the reloaded transcript draws.
|
|
29304
|
+
*
|
|
29305
|
+
* Each reader takes the payload (the value under its key in `event`, or in the
|
|
29306
|
+
* message metadata) and returns the checked value or null. A payload that
|
|
29307
|
+
* fails is dropped whole, never stored half understood: every one of them is
|
|
29308
|
+
* rendered from the metadata, and the proposals' buttons perform a write.
|
|
29341
29309
|
*/
|
|
29342
|
-
function isFixableFinding(finding) {
|
|
29343
|
-
if (finding.status !== "open") return false;
|
|
29344
|
-
if (finding.location?.historyOnly) return false;
|
|
29345
|
-
if (!isAgentRemediable(finding)) return false;
|
|
29346
|
-
if (finding.fingerprint?.startsWith("base-image:") || finding.baseImageFix) {
|
|
29347
|
-
if (finding.baseImageFix) return finding.baseImageFix.way === "move" || finding.baseImageFix.way === "upgrade";
|
|
29348
|
-
return typeof finding.baseMove === "boolean" ? finding.baseMove : baseImageMoveRemoves(finding.data);
|
|
29349
|
-
}
|
|
29350
|
-
if (finding.kind === "vulnerable_dependency" && isMaliciousPackageFinding(finding)) return true;
|
|
29351
|
-
if (isPinBlocked(finding)) return false;
|
|
29352
|
-
return isCodeRemediationKind(finding.kind) || !!finding.recommendedVersion;
|
|
29353
|
-
}
|
|
29354
29310
|
/**
|
|
29355
|
-
*
|
|
29356
|
-
*
|
|
29357
|
-
*
|
|
29358
|
-
*
|
|
29359
|
-
* may know a way round. The gate lifts the hold when the pin moves.
|
|
29311
|
+
* The bounds `createBacklogItemBody` enforces on a proposed initiative
|
|
29312
|
+
* (PRO-1879). A proposal outside them would draw a card whose button opens a
|
|
29313
|
+
* dialog the create refuses; the agent applies them too, so a value outside
|
|
29314
|
+
* them is a malformed frame rather than a long brief to trim.
|
|
29360
29315
|
*/
|
|
29361
|
-
|
|
29362
|
-
|
|
29316
|
+
const MAX_PROPOSAL_TITLE_CHARS = 500;
|
|
29317
|
+
const MAX_PROPOSAL_DESCRIPTION_CHARS = 2e4;
|
|
29318
|
+
/** `updateBacklogItemBody`'s own bound on a description. */
|
|
29319
|
+
const MAX_EDIT_DESCRIPTION_CHARS = 2e4;
|
|
29320
|
+
/** Text that is not empty once trimmed and fits `max` as written. */
|
|
29321
|
+
function contentWithin(max) {
|
|
29322
|
+
return string$2().refine((text) => text.trim().length > 0 && text.length <= max);
|
|
29363
29323
|
}
|
|
29364
|
-
|
|
29365
|
-
|
|
29366
|
-
|
|
29367
|
-
return Array.isArray(bases) && bases.length > 0 && bases.every((b) => typeof b === "object" && b !== null && typeof b.movesTo === "string" && b.removed === true);
|
|
29324
|
+
/** `revision` counts only as the literal `true`; anything else leaves it off. */
|
|
29325
|
+
function revisionOf(revision) {
|
|
29326
|
+
return revision === true ? { revision: true } : {};
|
|
29368
29327
|
}
|
|
29328
|
+
object({
|
|
29329
|
+
title: string$2().trim().min(1).max(MAX_PROPOSAL_TITLE_CHARS),
|
|
29330
|
+
description: string$2().trim().min(1).max(MAX_PROPOSAL_DESCRIPTION_CHARS),
|
|
29331
|
+
productId: string$2().trim().min(1),
|
|
29332
|
+
revision: unknown$1().optional()
|
|
29333
|
+
}).transform(({ revision, ...proposal }) => ({
|
|
29334
|
+
...proposal,
|
|
29335
|
+
...revisionOf(revision)
|
|
29336
|
+
}));
|
|
29337
|
+
object({
|
|
29338
|
+
initiativeId: string$2().trim().min(1),
|
|
29339
|
+
description: contentWithin(MAX_EDIT_DESCRIPTION_CHARS),
|
|
29340
|
+
basedOn: object({
|
|
29341
|
+
updatedAt: string$2().trim().min(1),
|
|
29342
|
+
descriptionHash: string$2().regex(/^[0-9a-f]{64}$/)
|
|
29343
|
+
})
|
|
29344
|
+
});
|
|
29345
|
+
object({
|
|
29346
|
+
title: string$2().trim().min(1).max(200),
|
|
29347
|
+
kind: string$2().trim().min(1).max(80),
|
|
29348
|
+
markdown: contentWithin(MAX_GENERATED_DOCUMENT_CHARS),
|
|
29349
|
+
revision: unknown$1().optional()
|
|
29350
|
+
}).transform(({ revision, ...document }) => ({
|
|
29351
|
+
...document,
|
|
29352
|
+
...revisionOf(revision)
|
|
29353
|
+
}));
|
|
29354
|
+
const UNSUPPORTED_REASONS = [
|
|
29355
|
+
"no_quote",
|
|
29356
|
+
"unsupplied_document",
|
|
29357
|
+
"not_in_document"
|
|
29358
|
+
];
|
|
29359
|
+
const OUTCOMES = [
|
|
29360
|
+
"verified",
|
|
29361
|
+
"paraphrase_supported",
|
|
29362
|
+
"repointed",
|
|
29363
|
+
"unsupported"
|
|
29364
|
+
];
|
|
29369
29365
|
/**
|
|
29370
|
-
* A
|
|
29371
|
-
*
|
|
29372
|
-
*
|
|
29373
|
-
* malware report that also aliases a KEV-listed CVE is tiered `kev`. Its fix
|
|
29374
|
-
* is removing the package, not a version. The one rule the API's gate, its
|
|
29375
|
-
* Fix, the web and the MCP read (PRO-3601).
|
|
29366
|
+
* A reason a newer agent sends, or the `quote_not_found` an agent before
|
|
29367
|
+
* PRO-1752 sent, still names an unsupported statement; either reads as the
|
|
29368
|
+
* least specific reason.
|
|
29376
29369
|
*/
|
|
29377
|
-
function
|
|
29378
|
-
|
|
29379
|
-
const mal = (id) => typeof id === "string" && /^MAL-/i.test(id);
|
|
29380
|
-
if (mal(finding.advisoryId)) return true;
|
|
29381
|
-
const aliases = finding.data && typeof finding.data === "object" ? finding.data.aliases : void 0;
|
|
29382
|
-
if (Array.isArray(aliases) && aliases.some(mal)) return true;
|
|
29383
|
-
return finding.tier === "act_now" && finding.kevListedAt == null;
|
|
29370
|
+
function unsupportedReason(value) {
|
|
29371
|
+
return UNSUPPORTED_REASONS.find((reason) => reason === value) ?? "not_in_document";
|
|
29384
29372
|
}
|
|
29385
29373
|
/**
|
|
29386
|
-
*
|
|
29387
|
-
*
|
|
29388
|
-
*
|
|
29374
|
+
* Which document timeline an entry names (PRO-1731). Absent from an agent
|
|
29375
|
+
* older than PRO-1731, and absent means plan; left off rather than written in,
|
|
29376
|
+
* so "did not say" stays distinguishable from "said plan". A timeline this
|
|
29377
|
+
* contract does not know fails the entry: the origin decides which document a
|
|
29378
|
+
* chip opens, and reading an unknown one as plan links to words that are not
|
|
29379
|
+
* there.
|
|
29389
29380
|
*/
|
|
29390
|
-
const
|
|
29391
|
-
|
|
29392
|
-
|
|
29393
|
-
|
|
29394
|
-
|
|
29381
|
+
const origin = _enum(PRODUCT_DOCUMENT_ORIGINS).optional();
|
|
29382
|
+
/** One statement the check could not support; a missing reason is malformed. */
|
|
29383
|
+
const unverifiedCitation = object({
|
|
29384
|
+
documentType: string$2(),
|
|
29385
|
+
version: number$1(),
|
|
29386
|
+
origin,
|
|
29387
|
+
section: lenient(string$2()),
|
|
29388
|
+
reason: string$2()
|
|
29389
|
+
}).transform((u) => ({
|
|
29390
|
+
documentType: u.documentType,
|
|
29391
|
+
version: u.version,
|
|
29392
|
+
...u.origin === void 0 ? {} : { origin: u.origin },
|
|
29393
|
+
...u.section === void 0 ? {} : { section: u.section },
|
|
29394
|
+
reason: unsupportedReason(u.reason)
|
|
29395
|
+
}));
|
|
29396
|
+
/**
|
|
29397
|
+
* One marker's outcome, strictly: an entry with no 1-based marker index, no
|
|
29398
|
+
* source, or an outcome this contract does not name is dropped rather than
|
|
29399
|
+
* guessed at, because the outcome decides whether the claim renders as a
|
|
29400
|
+
* reference at all.
|
|
29401
|
+
*/
|
|
29402
|
+
const citationOutcome = object({
|
|
29403
|
+
markerIndex: number$1().refine((n) => Number.isInteger(n) && n >= 1),
|
|
29404
|
+
documentType: string$2(),
|
|
29405
|
+
version: number$1(),
|
|
29406
|
+
origin,
|
|
29407
|
+
section: lenient(string$2()),
|
|
29408
|
+
outcome: _enum(OUTCOMES),
|
|
29409
|
+
reason: unknown$1().optional(),
|
|
29410
|
+
resolvedSection: lenient(string$2()),
|
|
29411
|
+
resolvedDocumentType: lenient(string$2()),
|
|
29412
|
+
resolvedVersion: lenient(number$1()),
|
|
29413
|
+
resolvedOrigin: origin
|
|
29414
|
+
}).transform((o) => ({
|
|
29415
|
+
markerIndex: o.markerIndex,
|
|
29416
|
+
documentType: o.documentType,
|
|
29417
|
+
version: o.version,
|
|
29418
|
+
...o.origin === void 0 ? {} : { origin: o.origin },
|
|
29419
|
+
...o.section === void 0 ? {} : { section: o.section },
|
|
29420
|
+
outcome: o.outcome,
|
|
29421
|
+
...o.outcome === "unsupported" ? { reason: unsupportedReason(o.reason) } : {},
|
|
29422
|
+
...o.resolvedSection === void 0 ? {} : { resolvedSection: o.resolvedSection },
|
|
29423
|
+
...o.resolvedDocumentType !== void 0 && o.resolvedVersion !== void 0 ? {
|
|
29424
|
+
resolvedDocumentType: o.resolvedDocumentType,
|
|
29425
|
+
resolvedVersion: o.resolvedVersion,
|
|
29426
|
+
...o.resolvedOrigin === void 0 ? {} : { resolvedOrigin: o.resolvedOrigin }
|
|
29427
|
+
} : {}
|
|
29428
|
+
}));
|
|
29429
|
+
object({
|
|
29430
|
+
verified: number$1(),
|
|
29431
|
+
unverified: lenientList(unverifiedCitation),
|
|
29432
|
+
outcomes: lenientList(citationOutcome).catch([]).optional()
|
|
29433
|
+
}).transform(({ verified, unverified, outcomes }) => ({
|
|
29434
|
+
verified: Math.max(0, Math.trunc(verified)),
|
|
29435
|
+
unverified,
|
|
29436
|
+
...outcomes === void 0 ? {} : { outcomes }
|
|
29437
|
+
}));
|
|
29438
|
+
//#endregion
|
|
29439
|
+
//#region ../../packages/types/dist/registries.js
|
|
29440
|
+
/**
|
|
29441
|
+
* The package ecosystems a registry can serve: every ecosystem the coding
|
|
29442
|
+
* agent builds (its skills and its image), keyed by the install tooling that
|
|
29443
|
+
* reads the credential. `maven` is a Maven repository, and Maven builds get
|
|
29444
|
+
* its credential (PRO-2916); Gradle builds name theirs in their own build
|
|
29445
|
+
* scripts and get none yet (PRO-2928).
|
|
29446
|
+
*/
|
|
29447
|
+
const REGISTRY_ECOSYSTEMS = [
|
|
29448
|
+
"npm",
|
|
29449
|
+
"terraform",
|
|
29450
|
+
"pypi",
|
|
29451
|
+
"nuget",
|
|
29452
|
+
"go",
|
|
29453
|
+
"cargo",
|
|
29454
|
+
"maven",
|
|
29455
|
+
"rubygems",
|
|
29456
|
+
"composer"
|
|
29395
29457
|
];
|
|
29396
|
-
|
|
29397
|
-
|
|
29398
|
-
|
|
29399
|
-
|
|
29400
|
-
|
|
29401
|
-
|
|
29402
|
-
|
|
29403
|
-
|
|
29404
|
-
|
|
29405
|
-
|
|
29406
|
-
|
|
29407
|
-
"critical",
|
|
29408
|
-
"high",
|
|
29409
|
-
"medium",
|
|
29410
|
-
"low",
|
|
29411
|
-
"none"
|
|
29458
|
+
const REGISTRY_VENDORS = [
|
|
29459
|
+
"npmjs",
|
|
29460
|
+
"github",
|
|
29461
|
+
"gcp_artifact",
|
|
29462
|
+
"generic",
|
|
29463
|
+
"hcp_terraform",
|
|
29464
|
+
"scalr",
|
|
29465
|
+
"azure_artifacts",
|
|
29466
|
+
"jfrog",
|
|
29467
|
+
"git_host",
|
|
29468
|
+
"aws_codeartifact"
|
|
29412
29469
|
];
|
|
29413
|
-
|
|
29414
|
-
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29418
|
-
"
|
|
29470
|
+
/** An IAM role ARN, as the CodeArtifact credential takes it. */
|
|
29471
|
+
const AWS_ROLE_ARN_PATTERN = /^arn:aws:iam::\d{12}:role\/[\w+=,.@/-]{1,512}$/;
|
|
29472
|
+
//#endregion
|
|
29473
|
+
//#region ../../packages/types/dist/gitlab.js
|
|
29474
|
+
const GITLAB_CONNECTION_STATUSES = [
|
|
29475
|
+
"valid",
|
|
29476
|
+
"auth_failed",
|
|
29477
|
+
"unreachable"
|
|
29478
|
+
];
|
|
29479
|
+
//#endregion
|
|
29480
|
+
//#region ../../packages/types/dist/cloud-connections.js
|
|
29481
|
+
const CLOUD_CONNECTION_STATUSES = [
|
|
29482
|
+
"pending_setup",
|
|
29483
|
+
"validating",
|
|
29484
|
+
"active",
|
|
29485
|
+
"error",
|
|
29486
|
+
"suspended",
|
|
29487
|
+
"disconnected"
|
|
29419
29488
|
];
|
|
29420
29489
|
/**
|
|
29421
|
-
*
|
|
29422
|
-
* Dependabot's dismiss-reason enum + Snyk's ignore reasons:
|
|
29423
|
-
* - false_positive: not actually a vulnerability / inaccurate advisory
|
|
29424
|
-
* - not_reachable: the vulnerable code path isn't used by this project
|
|
29425
|
-
* - accepted_risk: understood and tolerated (usually time-boxed via expiry)
|
|
29426
|
-
* - wont_fix: won't address (e.g. no fix available, or out of scope)
|
|
29490
|
+
* Keys in `providerConfig` that only Taiga's provisioning path may write.
|
|
29427
29491
|
*
|
|
29428
|
-
*
|
|
29429
|
-
*
|
|
29430
|
-
|
|
29431
|
-
|
|
29432
|
-
|
|
29433
|
-
|
|
29434
|
-
|
|
29435
|
-
|
|
29436
|
-
];
|
|
29437
|
-
/**
|
|
29438
|
-
* What one lockfile's group list says, read against what its osv-scanner
|
|
29439
|
-
* (osv-scalibr) extractor actually writes. Checked per extractor, because the
|
|
29440
|
-
* same list means different things in different files:
|
|
29492
|
+
* PRO-858. `accountName` is the correlation key the AFT account-ready callback
|
|
29493
|
+
* arrives with, and the webhook resolves it under service context with no
|
|
29494
|
+
* tenant predicate -- it has to, because the callback carries no tenant. It is
|
|
29495
|
+
* also guessable: `generateAccountName` derives it from tenant, team and
|
|
29496
|
+
* project slugs. So a tenant that could write this key could plant a row
|
|
29497
|
+
* claiming another tenant's account name, wait for that callback, and have the
|
|
29498
|
+
* victim's `deployConfig` (accountId, deployRoleArn, stateBucket) delivered to
|
|
29499
|
+
* their own environment.
|
|
29441
29500
|
*
|
|
29442
|
-
*
|
|
29443
|
-
*
|
|
29444
|
-
*
|
|
29445
|
-
* alone is shipped, and `dev` + `optional` (devOptional) is left undecided.
|
|
29446
|
-
* - pnpm-lock.yaml: `dev` comes from a per-package `dev: true` that lockfile
|
|
29447
|
-
* v9 no longer writes, so an empty list says nothing; `dev` still means dev.
|
|
29448
|
-
* From a v9 lockfile the sweep walks the `snapshots` graph (PRO-2943): a
|
|
29449
|
-
* copy reachable from any workspace's `dependencies` or
|
|
29450
|
-
* `optionalDependencies` gets Taiga's own `prod` and reads runtime; one
|
|
29451
|
-
* reachable only from `devDependencies` gets `dev`. From an older lockfile
|
|
29452
|
-
* only a copy a workspace declares under `dependencies` or
|
|
29453
|
-
* `optionalDependencies` gets `prod`, and the rest stays unknown.
|
|
29454
|
-
* - poetry.lock: group names with `main` dropped; a non-main, non-optional
|
|
29455
|
-
* group is not in the runtime install. Poetry 1.x lockfiles carry no groups
|
|
29456
|
-
* at all, so an empty list says nothing.
|
|
29457
|
-
* - uv.lock: only direct members of a group are tagged, so an empty list says
|
|
29458
|
-
* nothing; `dev` means dev. Where osv-scanner said nothing, the sweep walks
|
|
29459
|
-
* the lockfile's package graph (PRO-2994): a package reachable from any
|
|
29460
|
-
* workspace member's runtime dependencies gets `prod` and reads runtime,
|
|
29461
|
-
* one reachable only from its development groups gets `dev`.
|
|
29462
|
-
* - bun.lock, yarn.lock, composer.lock, Cargo.lock, Gemfile.lock and NuGet's
|
|
29463
|
-
* packages.lock.json: where osv-scanner names no group, the sweep walks the
|
|
29464
|
-
* lockfile's graph (PRO-3395) and writes `prod` for a package reachable from
|
|
29465
|
-
* a runtime declaration and `dev` for one reachable only from development
|
|
29466
|
-
* ones, where the lockfile or its manifest says which is which (Cargo,
|
|
29467
|
-
* Gemfile and NuGet do not). `prod` reads runtime, `dev` alone dev.
|
|
29468
|
-
* - The sweep's `prod` reads runtime in package-lock.json and poetry.lock as
|
|
29469
|
-
* well, where the graph decides a package osv-scanner said nothing about.
|
|
29470
|
-
* - go.mod/go.sum and the rest carry no group information: unknown whatever
|
|
29471
|
-
* the list says.
|
|
29501
|
+
* `accountKey` is the same identity in unguessable form
|
|
29502
|
+
* (`sha256(tenantId:productId:envType)`), and is what the AFT module is named
|
|
29503
|
+
* for -- equally not the caller's to assert.
|
|
29472
29504
|
*
|
|
29473
|
-
*
|
|
29474
|
-
*
|
|
29475
|
-
*
|
|
29505
|
+
* Neither is tenant-facing: no provider schema models them, and
|
|
29506
|
+
* `providerConfigProblem` documents them as the shape a MANAGED row has. The
|
|
29507
|
+
* update path merges and persists the RAW config precisely so Zod does not
|
|
29508
|
+
* strip them off managed rows, which is what made a tenant-supplied value
|
|
29509
|
+
* durable. Rejecting rather than stripping, so a client sending one is told,
|
|
29510
|
+
* instead of silently having it dropped.
|
|
29476
29511
|
*/
|
|
29477
|
-
|
|
29478
|
-
|
|
29479
|
-
|
|
29480
|
-
|
|
29481
|
-
if (set.has("taiga:dev")) return "dev";
|
|
29482
|
-
switch (name) {
|
|
29483
|
-
case "package-lock.json":
|
|
29484
|
-
case "npm-shrinkwrap.json": {
|
|
29485
|
-
if (set.size === 0 || set.has("prod")) return "runtime";
|
|
29486
|
-
const dev = set.has("dev");
|
|
29487
|
-
const optional = set.has("optional");
|
|
29488
|
-
if (dev && optional) return "unknown";
|
|
29489
|
-
if (dev) return "dev";
|
|
29490
|
-
if (optional && set.size === 1) return "runtime";
|
|
29491
|
-
return "unknown";
|
|
29492
|
-
}
|
|
29493
|
-
case "pnpm-lock.yaml":
|
|
29494
|
-
if (set.has("prod")) return "runtime";
|
|
29495
|
-
return set.size === 1 && set.has("dev") ? "dev" : "unknown";
|
|
29496
|
-
case "uv.lock":
|
|
29497
|
-
case "bun.lock":
|
|
29498
|
-
case "yarn.lock":
|
|
29499
|
-
case "composer.lock":
|
|
29500
|
-
case "Cargo.lock":
|
|
29501
|
-
case "Gemfile.lock":
|
|
29502
|
-
case "packages.lock.json":
|
|
29503
|
-
if (set.has("prod")) return "runtime";
|
|
29504
|
-
return set.size === 1 && set.has("dev") ? "dev" : "unknown";
|
|
29505
|
-
case "pom.xml":
|
|
29506
|
-
if (set.has("prod") || set.has("compile") || set.has("runtime")) return "runtime";
|
|
29507
|
-
return set.size > 0 && [...set].every((g) => g === "test" || g === "dev") ? "dev" : "unknown";
|
|
29508
|
-
case "poetry.lock":
|
|
29509
|
-
if (set.has("taiga:prod")) return "runtime";
|
|
29510
|
-
return set.size > 0 && !set.has("optional") && !set.has("main") ? "dev" : "unknown";
|
|
29511
|
-
default: return "unknown";
|
|
29512
|
-
}
|
|
29512
|
+
const TAIGA_MANAGED_PROVIDER_CONFIG_KEYS = ["accountName", "accountKey"];
|
|
29513
|
+
/** Whether `config` leaves alone the keys only Taiga's provisioning writes. */
|
|
29514
|
+
function isTenantWritableProviderConfig(config) {
|
|
29515
|
+
return !TAIGA_MANAGED_PROVIDER_CONFIG_KEYS.some((key) => key in config);
|
|
29513
29516
|
}
|
|
29514
|
-
|
|
29515
|
-
|
|
29516
|
-
|
|
29517
|
-
|
|
29518
|
-
|
|
29519
|
-
|
|
29520
|
-
"
|
|
29521
|
-
"
|
|
29522
|
-
"
|
|
29517
|
+
const TAIGA_MANAGED_PROVIDER_CONFIG_MESSAGE = `providerConfig may not set ${TAIGA_MANAGED_PROVIDER_CONFIG_KEYS.join(" or ")}: Taiga's provisioning owns those keys`;
|
|
29518
|
+
//#endregion
|
|
29519
|
+
//#region ../../packages/types/dist/environments.js
|
|
29520
|
+
const ENVIRONMENT_TYPES = [
|
|
29521
|
+
"development",
|
|
29522
|
+
"staging",
|
|
29523
|
+
"production",
|
|
29524
|
+
"preview",
|
|
29525
|
+
"qa",
|
|
29526
|
+
"load_test",
|
|
29527
|
+
"custom"
|
|
29523
29528
|
];
|
|
29524
|
-
|
|
29525
|
-
|
|
29526
|
-
}
|
|
29527
|
-
/**
|
|
29528
|
-
* Whether a dependency finding sits only in development dependencies, in at
|
|
29529
|
-
* least one runtime dependency set, or in lockfiles that do not say. Decided
|
|
29530
|
-
* per lockfile (`lockfileScope`) and combined pessimistically: one runtime
|
|
29531
|
-
* lockfile makes the finding runtime, one lockfile that cannot say makes it
|
|
29532
|
-
* unknown, and only all-dev reads as dev. Groups the sweep did not record
|
|
29533
|
-
* (older images, code kinds) are unknown. Presentation only: the tier and the
|
|
29534
|
-
* auto-remediation gate do not read this, and a malicious package runs its
|
|
29535
|
-
* install script in any group.
|
|
29536
|
-
*/
|
|
29537
|
-
function dependencyScope(finding) {
|
|
29538
|
-
if (!isDependencyFindingKind(finding.kind)) return "unknown";
|
|
29539
|
-
return scopeFromGroups(finding.dependencyGroups);
|
|
29540
|
-
}
|
|
29541
|
-
/** The scope read from per-lockfile groups alone: for an inventory record, which is a package by construction. */
|
|
29542
|
-
function scopeFromGroups(dependencyGroups) {
|
|
29543
|
-
const entries = Object.entries(dependencyGroups ?? {});
|
|
29544
|
-
if (entries.length === 0) return "unknown";
|
|
29545
|
-
return combineScopes(entries.map(([path, groups]) => lockfileScope(path, Array.isArray(groups) ? groups : [])));
|
|
29546
|
-
}
|
|
29547
|
-
function combineScopes(scopes) {
|
|
29548
|
-
if (scopes.includes("runtime")) return "runtime";
|
|
29549
|
-
if (scopes.includes("unknown") || scopes.length === 0) return "unknown";
|
|
29550
|
-
return "dev";
|
|
29551
|
-
}
|
|
29552
|
-
/**
|
|
29553
|
-
* Whether the repository declares the package itself. Per lockfile the sweep
|
|
29554
|
-
* says direct or transitive; across lockfiles one direct declaration makes the
|
|
29555
|
-
* finding direct (that copy is the repository's to bump), transitive only when
|
|
29556
|
-
* every readable lockfile says so, unknown when the sweep could read none of
|
|
29557
|
-
* them or did not record it (older images, code kinds). Presentation only; the
|
|
29558
|
-
* remediation step already finds every resolved copy and its parent itself.
|
|
29559
|
-
*/
|
|
29560
|
-
function dependencyRelation(finding) {
|
|
29561
|
-
if (!isDependencyFindingKind(finding.kind)) return "unknown";
|
|
29562
|
-
return relationFromLockfiles(finding.dependencyRelation);
|
|
29563
|
-
}
|
|
29564
|
-
/** The relation read from per-lockfile answers alone: for an inventory record, which is a package by construction. */
|
|
29565
|
-
function relationFromLockfiles(dependencyRelation) {
|
|
29566
|
-
const values = Object.values(dependencyRelation ?? {});
|
|
29567
|
-
if (values.includes("direct")) return "direct";
|
|
29568
|
-
if (values.length > 0 && values.every((v) => v === "transitive")) return "transitive";
|
|
29569
|
-
return "unknown";
|
|
29570
|
-
}
|
|
29571
|
-
new Set(CODE_REMEDIATION_KINDS);
|
|
29572
|
-
/** A non-empty string, or null. */
|
|
29573
|
-
const locationText = string$2().min(1).nullable().catch(null);
|
|
29529
|
+
//#endregion
|
|
29530
|
+
//#region ../../packages/types/dist/monitoring-rollups.js
|
|
29574
29531
|
/**
|
|
29575
|
-
*
|
|
29576
|
-
*
|
|
29577
|
-
* list rather than blank one row; and 0 is "no position" for scanners that
|
|
29578
|
-
* report [0, 0] for a check with no concrete line.
|
|
29532
|
+
* Core Web Vitals weighted heaviest (LCP/INP/CLS are Google's "Core" trio);
|
|
29533
|
+
* FCP/TTFB are supporting signals. Thresholds are the published web.dev values.
|
|
29579
29534
|
*/
|
|
29580
|
-
const
|
|
29581
|
-
|
|
29582
|
-
|
|
29583
|
-
|
|
29584
|
-
|
|
29585
|
-
|
|
29586
|
-
|
|
29587
|
-
|
|
29588
|
-
|
|
29589
|
-
|
|
29590
|
-
|
|
29591
|
-
|
|
29592
|
-
|
|
29593
|
-
|
|
29594
|
-
|
|
29595
|
-
|
|
29596
|
-
|
|
29597
|
-
|
|
29598
|
-
|
|
29599
|
-
|
|
29535
|
+
const METRICS = {
|
|
29536
|
+
LCP: {
|
|
29537
|
+
good: 2500,
|
|
29538
|
+
ni: 4e3,
|
|
29539
|
+
unit: "ms",
|
|
29540
|
+
weight: 30
|
|
29541
|
+
},
|
|
29542
|
+
INP: {
|
|
29543
|
+
good: 200,
|
|
29544
|
+
ni: 500,
|
|
29545
|
+
unit: "ms",
|
|
29546
|
+
weight: 30
|
|
29547
|
+
},
|
|
29548
|
+
CLS: {
|
|
29549
|
+
good: .1,
|
|
29550
|
+
ni: .25,
|
|
29551
|
+
unit: "score",
|
|
29552
|
+
weight: 25
|
|
29553
|
+
},
|
|
29554
|
+
FCP: {
|
|
29555
|
+
good: 1800,
|
|
29556
|
+
ni: 3e3,
|
|
29557
|
+
unit: "ms",
|
|
29558
|
+
weight: 10
|
|
29559
|
+
},
|
|
29560
|
+
TTFB: {
|
|
29561
|
+
good: 800,
|
|
29562
|
+
ni: 1800,
|
|
29563
|
+
unit: "ms",
|
|
29564
|
+
weight: 5
|
|
29565
|
+
}
|
|
29566
|
+
};
|
|
29567
|
+
Object.keys(METRICS);
|
|
29568
|
+
Object.fromEntries(Object.entries(METRICS).map(([name, spec]) => [name, spec.weight]));
|
|
29569
|
+
//#endregion
|
|
29570
|
+
//#region ../../packages/types/dist/api-keys.js
|
|
29600
29571
|
/**
|
|
29601
|
-
*
|
|
29602
|
-
*
|
|
29603
|
-
*
|
|
29604
|
-
*
|
|
29605
|
-
*
|
|
29572
|
+
* API key scopes control what operations a key can perform.
|
|
29573
|
+
* Scopes act as a ceiling -- the effective permissions are the intersection
|
|
29574
|
+
* of the key's scopes and the user's role-based capabilities.
|
|
29575
|
+
*
|
|
29576
|
+
* Convention: "resource:action" matching the existing Capability type.
|
|
29606
29577
|
*/
|
|
29607
|
-
const
|
|
29608
|
-
"
|
|
29609
|
-
"
|
|
29610
|
-
"
|
|
29611
|
-
"
|
|
29612
|
-
|
|
29613
|
-
"
|
|
29614
|
-
|
|
29615
|
-
|
|
29616
|
-
|
|
29617
|
-
|
|
29618
|
-
|
|
29619
|
-
"
|
|
29620
|
-
"
|
|
29621
|
-
"
|
|
29622
|
-
"
|
|
29578
|
+
const API_KEY_SCOPES = [
|
|
29579
|
+
"products:read",
|
|
29580
|
+
"products:write",
|
|
29581
|
+
"backlog:read",
|
|
29582
|
+
"backlog:write",
|
|
29583
|
+
"factories:read",
|
|
29584
|
+
"factories:documents:write",
|
|
29585
|
+
"users:read",
|
|
29586
|
+
"tenant:documents:read",
|
|
29587
|
+
"tenant:documents:write",
|
|
29588
|
+
"vcs:read",
|
|
29589
|
+
"customDocuments:read",
|
|
29590
|
+
"customDocuments:write",
|
|
29591
|
+
"customDocuments:delete",
|
|
29592
|
+
"factories:write",
|
|
29593
|
+
"vcs:manage"
|
|
29623
29594
|
];
|
|
29595
|
+
const API_KEY_PREFIX = "taiga_sk_live_";
|
|
29624
29596
|
/**
|
|
29625
|
-
* The
|
|
29626
|
-
*
|
|
29627
|
-
*
|
|
29628
|
-
* `Apache-2.0 AND LGPL-3.0-or-later` does not.
|
|
29629
|
-
*
|
|
29630
|
-
* The default for regulated enterprises (PRO-3310), by classification: on it
|
|
29631
|
-
* when Google's licence policy classes it "notice" or "unencumbered" and the
|
|
29632
|
-
* Apache Software Foundation's puts it in Category A (where it lists it), and
|
|
29633
|
-
* the Blue Oak Council does not rate it Lead -- the permissive family, which
|
|
29634
|
-
* no copyleft obligation follows however the software ships. Approval is not
|
|
29635
|
-
* compliance: each licence's own conditions still apply (notices, Apache's
|
|
29636
|
-
* change notices on modified files). So MPL-2.0 (Google reciprocal, Apache B), OFL-1.1 (Google by
|
|
29637
|
-
* exception, Apache B) and WTFPL (Blue Oak Lead) are not; Unicode-3.0, which
|
|
29638
|
-
* most Rust builds carry through unicode-ident, is. Anything else raises a
|
|
29639
|
-
* finding the product decides on. The starting value of every organization's
|
|
29640
|
-
* list, which a tenant admin can replace (PRO-2896, `tenantLicenseAllowlist`);
|
|
29641
|
-
* an organization with its own list keeps it. `UNKNOWN` is never a violation.
|
|
29597
|
+
* The groups the MCP server's tools come in (PRO-2838). A key may name the ones
|
|
29598
|
+
* its AI tool sees; null is every one. This is focus, not security: a tool the
|
|
29599
|
+
* key's role or scopes do not allow is never offered, whatever is named here.
|
|
29642
29600
|
*/
|
|
29643
|
-
const
|
|
29644
|
-
"
|
|
29645
|
-
"
|
|
29646
|
-
"
|
|
29647
|
-
"
|
|
29648
|
-
"
|
|
29649
|
-
"ISC",
|
|
29650
|
-
"X11",
|
|
29651
|
-
"MIT-CMU",
|
|
29652
|
-
"MIT-0",
|
|
29653
|
-
"0BSD",
|
|
29654
|
-
"Zlib",
|
|
29655
|
-
"BSL-1.0",
|
|
29656
|
-
"PostgreSQL",
|
|
29657
|
-
"NCSA",
|
|
29658
|
-
"UPL-1.0",
|
|
29659
|
-
"BlueOak-1.0.0",
|
|
29660
|
-
"PSF-2.0",
|
|
29661
|
-
"Python-2.0",
|
|
29662
|
-
"CNRI-Python",
|
|
29663
|
-
"Unicode-3.0",
|
|
29664
|
-
"Unicode-DFS-2016",
|
|
29665
|
-
"Unlicense",
|
|
29666
|
-
"CC0-1.0",
|
|
29667
|
-
"CC-BY-4.0",
|
|
29668
|
-
"CDLA-Permissive-2.0",
|
|
29669
|
-
"Artistic-2.0"
|
|
29601
|
+
const MCP_TOOLSETS = [
|
|
29602
|
+
"core",
|
|
29603
|
+
"operate",
|
|
29604
|
+
"setup",
|
|
29605
|
+
"observe",
|
|
29606
|
+
"documents"
|
|
29670
29607
|
];
|
|
29608
|
+
Object.freeze({
|
|
29609
|
+
required: false,
|
|
29610
|
+
gracePeriodDays: 0,
|
|
29611
|
+
requiredSince: null
|
|
29612
|
+
});
|
|
29613
|
+
[...TURN_EVENT_TRIGGERS];
|
|
29614
|
+
/** What a member can ask the admins for (PRO-4544, PRO-4545). */
|
|
29615
|
+
const ACCESS_REQUEST_KINDS = ["auroras", "write_access"];
|
|
29616
|
+
/** Longest request for changes from Taiga (PRO-3035): about four pages of prose. */
|
|
29617
|
+
const CHANGE_REQUEST_MAX_CHARS = 1e4;
|
|
29618
|
+
//#endregion
|
|
29619
|
+
//#region ../../packages/types/dist/notifications.js
|
|
29671
29620
|
/**
|
|
29672
|
-
*
|
|
29673
|
-
*
|
|
29674
|
-
*
|
|
29675
|
-
*
|
|
29621
|
+
* What the contact is FOR, in the AWS alternate-contacts sense.
|
|
29622
|
+
*
|
|
29623
|
+
* Only `default` is populated today. The column exists from day one anyway,
|
|
29624
|
+
* because retrofitting a type onto rows already in the wild means guessing what
|
|
29625
|
+
* each one was for. `security`, `operations` and `billing` become meaningful
|
|
29626
|
+
* once there are event classes to route to them.
|
|
29676
29627
|
*/
|
|
29677
|
-
const
|
|
29678
|
-
|
|
29679
|
-
|
|
29680
|
-
|
|
29681
|
-
|
|
29682
|
-
"under_way",
|
|
29683
|
-
"awaiting_sweep",
|
|
29684
|
-
"did_not_clear"
|
|
29628
|
+
const NOTIFICATION_CONTACT_TYPES = [
|
|
29629
|
+
"default",
|
|
29630
|
+
"security",
|
|
29631
|
+
"operations",
|
|
29632
|
+
"billing"
|
|
29685
29633
|
];
|
|
29686
|
-
|
|
29687
|
-
|
|
29688
|
-
const own = decisions.filter((d) => d.ecosystem === pkg.ecosystem && d.packageName === name).sort((a, b) => a.decidedAt.localeCompare(b.decidedAt) || a.id.localeCompare(b.id));
|
|
29689
|
-
const latest = /* @__PURE__ */ new Map();
|
|
29690
|
-
const replacements = /* @__PURE__ */ new Map();
|
|
29691
|
-
for (const d of own) if (d.action === "replace") replacements.set(d.productRepositoryId, d);
|
|
29692
|
-
else latest.set(d.license, d);
|
|
29693
|
-
const allowed = [...latest.values()].find((d) => d.action === "allow") ?? null;
|
|
29694
|
-
const fixes = [...replacements.values()].flatMap((d) => {
|
|
29695
|
-
if (!d.backlogItemId || !d.initiative || d.initiative.state === "canceled") return [];
|
|
29696
|
-
const stage = d.initiative.state !== "done" ? "under_way" : d.initiative.sweptSince ? "did_not_clear" : "awaiting_sweep";
|
|
29697
|
-
return [{
|
|
29698
|
-
backlogItemId: d.backlogItemId,
|
|
29699
|
-
stage
|
|
29700
|
-
}];
|
|
29701
|
-
});
|
|
29702
|
-
return {
|
|
29703
|
-
allowed,
|
|
29704
|
-
fix: FIX_STAGES.flatMap((stage) => fixes.filter((f) => f.stage === stage))[0] ?? null
|
|
29705
|
-
};
|
|
29706
|
-
}
|
|
29707
|
-
/** The longest attestation link taken, in characters (PRO-4387). */
|
|
29708
|
-
const ATTESTATION_LINK_MAX_LENGTH = 2e3;
|
|
29634
|
+
//#endregion
|
|
29635
|
+
//#region ../../packages/types/dist/requests.js
|
|
29709
29636
|
/**
|
|
29710
|
-
*
|
|
29711
|
-
*
|
|
29712
|
-
*
|
|
29713
|
-
*
|
|
29637
|
+
* What a request asks for. Mirrored by a database CHECK on `requests.kind`.
|
|
29638
|
+
*
|
|
29639
|
+
* - `stop` the line stopped on an initiative and waits on a person
|
|
29640
|
+
* to choose a way on (PRO-2616): the needs-human flag, as a
|
|
29641
|
+
* request.
|
|
29642
|
+
* - `plan_review` a plan landed with the build gate closed and waits on a
|
|
29643
|
+
* person's verdict before anything is built (PRO-2617).
|
|
29644
|
+
* - `pr_review` a build's pull request waits on a person to review and
|
|
29645
|
+
* merge it, auto-merge not owning it (PRO-2655).
|
|
29646
|
+
* - `setup` a manual setup task an agent identified (a variable, a
|
|
29647
|
+
* secret, a DNS record...) waits on a person (PRO-2700).
|
|
29648
|
+
* Advisory: nothing waits on it.
|
|
29649
|
+
* - `document_review` a published document version waits on a person's
|
|
29650
|
+
* sign-off (PRO-2701). Advisory: nothing waits on it.
|
|
29651
|
+
* - `maintenance_review` a product's maintenance findings wait on a
|
|
29652
|
+
* person's review (PRO-2702): one per product, raised when
|
|
29653
|
+
* a sweep brings news. Advisory: nothing waits on it.
|
|
29654
|
+
* - `policy_review` a product's policy divergences wait on a person's
|
|
29655
|
+
* review (PRO-2702): one per product, raised when an
|
|
29656
|
+
* assessment after a refresh finds new ones. Advisory.
|
|
29657
|
+
* - `document_check` something the document pipeline found in one of a
|
|
29658
|
+
* product's documents waited on a person (PRO-2703): a
|
|
29659
|
+
* reference or fact it could not fix, or a product decision
|
|
29660
|
+
* only a person can make. One per check, under its key
|
|
29661
|
+
* (`<documentType>:doc-lint`, `:facts`,
|
|
29662
|
+
* `:decision:<hash>`), on the product. Retired: no longer
|
|
29663
|
+
* raised, and none is open -- a document asks for a review
|
|
29664
|
+
* and nothing else. Its closed rows remain.
|
|
29665
|
+
* - `license_review` a licence nobody approved is in use in a product
|
|
29666
|
+
* (PRO-3313): one per product and licence, under the
|
|
29667
|
+
* licence's SPDX id as its key, for whoever can change the
|
|
29668
|
+
* organization's approved list. Advisory.
|
|
29669
|
+
* - `policy_attestation` a product's controls about how it is run wait on a
|
|
29670
|
+
* person's word (PRO-4239): the breach drill, the DPIA under
|
|
29671
|
+
* review, the processors under contract -- what no scanner
|
|
29672
|
+
* or document shows. One per product, raised while any such
|
|
29673
|
+
* control has no current attestation or has one about to
|
|
29674
|
+
* run out, and answered by attesting them, on the
|
|
29675
|
+
* Regulations tab or in Action required's pane. Advisory.
|
|
29676
|
+
* - `scope_question` a product's scope questions wait on a person (PRO-4425):
|
|
29677
|
+
* what the product is and does, as far as the organization's
|
|
29678
|
+
* regulations care, which Discovery proposed an answer to
|
|
29679
|
+
* and nobody confirmed, or proposed anew against a confirmed
|
|
29680
|
+
* answer. One per product, raised while any asked question
|
|
29681
|
+
* has no confirmed answer or a newer proposal, and answered
|
|
29682
|
+
* by confirming each on the Regulations tab. Advisory.
|
|
29714
29683
|
*/
|
|
29715
|
-
|
|
29716
|
-
|
|
29717
|
-
|
|
29718
|
-
|
|
29719
|
-
|
|
29720
|
-
|
|
29721
|
-
|
|
29722
|
-
|
|
29723
|
-
|
|
29724
|
-
|
|
29684
|
+
const REQUEST_KINDS = [
|
|
29685
|
+
"stop",
|
|
29686
|
+
"plan_review",
|
|
29687
|
+
"pr_review",
|
|
29688
|
+
"setup",
|
|
29689
|
+
"document_review",
|
|
29690
|
+
"maintenance_review",
|
|
29691
|
+
"policy_review",
|
|
29692
|
+
"document_check",
|
|
29693
|
+
"license_review",
|
|
29694
|
+
"policy_attestation",
|
|
29695
|
+
"scope_question"
|
|
29696
|
+
];
|
|
29697
|
+
/** Every way a request can be answered, whatever its kind. */
|
|
29698
|
+
const REQUEST_EXITS = [
|
|
29699
|
+
"resume_run",
|
|
29700
|
+
"replan",
|
|
29701
|
+
"clear",
|
|
29702
|
+
"leave_line",
|
|
29703
|
+
"approve",
|
|
29704
|
+
"reject",
|
|
29705
|
+
"merge",
|
|
29706
|
+
"close",
|
|
29707
|
+
"request_changes",
|
|
29708
|
+
"done",
|
|
29709
|
+
"dismiss",
|
|
29710
|
+
"reviewed",
|
|
29711
|
+
"attested",
|
|
29712
|
+
"answered"
|
|
29713
|
+
];
|
|
29714
|
+
/** The most ids an answer's `seen` carries; a longer list is not sent, and the review is not checked. */
|
|
29715
|
+
const REVIEW_SEEN_MAX = 1e4;
|
|
29725
29716
|
//#endregion
|
|
29726
29717
|
//#region ../../packages/types/dist/finding-advisory.js
|
|
29727
29718
|
/**
|
|
@@ -37770,6 +37761,1413 @@ function readConfig(version = SERVER_VERSION) {
|
|
|
37770
37761
|
} };
|
|
37771
37762
|
}
|
|
37772
37763
|
//#endregion
|
|
37764
|
+
//#region src/tools/output-schemas.ts
|
|
37765
|
+
/**
|
|
37766
|
+
* Every tool's `outputSchema` (PRO-2848): what its `structuredContent` holds, the same value as its text block, in
|
|
37767
|
+
* the product's words (`toolResult`, errors.ts). The registration wrapper (index.ts) gives each tool its own and
|
|
37768
|
+
* refuses a tool that has none.
|
|
37769
|
+
*
|
|
37770
|
+
* The shapes are this server's views, not the API's types: picked fields, initiative where the API says backlog
|
|
37771
|
+
* item, composites that the API has no route for. So they were read from the results the tools give in this
|
|
37772
|
+
* package's tests, and are kept here, beside the tools. Lenient on purpose, because a result that does not match
|
|
37773
|
+
* its schema fails the call (the SDK validates it): every object is loose, so a field added later passes; every
|
|
37774
|
+
* field is optional and may be null; a field seen holding more than one kind of value is unknown. A schema says
|
|
37775
|
+
* what a field is, and never refuses a result a client could use.
|
|
37776
|
+
*
|
|
37777
|
+
* A tool added or changed: run its tests; a result that no longer matches fails them. Add the fields a client
|
|
37778
|
+
* reads by name.
|
|
37779
|
+
*/
|
|
37780
|
+
/** One DORA metric as DeploymentInsights carries it: its fields, its band and its trend, each optional and nullable. */
|
|
37781
|
+
function dora(fields) {
|
|
37782
|
+
return object({
|
|
37783
|
+
...Object.fromEntries(Object.entries(fields).map(([key, type]) => [key, type.nullable().optional()])),
|
|
37784
|
+
band: string$2().nullable().optional(),
|
|
37785
|
+
trend: unknown$1().optional()
|
|
37786
|
+
}).loose().nullable().optional();
|
|
37787
|
+
}
|
|
37788
|
+
const OUTPUT_SCHEMAS = {
|
|
37789
|
+
taiga_add_knowledge: object({
|
|
37790
|
+
id: string$2().nullable().optional(),
|
|
37791
|
+
factoryId: string$2().nullable().optional(),
|
|
37792
|
+
productId: string$2().nullable().optional(),
|
|
37793
|
+
fileName: string$2().nullable().optional(),
|
|
37794
|
+
mime: string$2().nullable().optional(),
|
|
37795
|
+
status: string$2().nullable().optional(),
|
|
37796
|
+
deduplicated: boolean().nullable().optional()
|
|
37797
|
+
}).loose(),
|
|
37798
|
+
taiga_allow_license: object({
|
|
37799
|
+
findings: number$1().nullable().optional(),
|
|
37800
|
+
findingIds: array(string$2().nullable()).nullable().optional()
|
|
37801
|
+
}).loose(),
|
|
37802
|
+
taiga_allow_license_package: object({
|
|
37803
|
+
licenses: array(string$2().nullable()).nullable().optional(),
|
|
37804
|
+
findings: number$1().nullable().optional()
|
|
37805
|
+
}).loose(),
|
|
37806
|
+
taiga_change_license: object({
|
|
37807
|
+
preview: boolean().nullable().optional(),
|
|
37808
|
+
effect: object({
|
|
37809
|
+
opens: number$1().nullable().optional(),
|
|
37810
|
+
closes: number$1().nullable().optional(),
|
|
37811
|
+
products: array(record(string$2(), unknown$1()).nullable()).nullable().optional()
|
|
37812
|
+
}).loose().nullable().optional(),
|
|
37813
|
+
version: number$1().nullable().optional(),
|
|
37814
|
+
licenses: array(string$2().nullable()).nullable().optional(),
|
|
37815
|
+
custom: boolean().nullable().optional(),
|
|
37816
|
+
approved: array(string$2().nullable()).nullable().optional(),
|
|
37817
|
+
removed: array(unknown$1()).nullable().optional()
|
|
37818
|
+
}).loose(),
|
|
37819
|
+
taiga_create_environment: object({
|
|
37820
|
+
id: string$2().nullable().optional(),
|
|
37821
|
+
name: string$2().nullable().optional(),
|
|
37822
|
+
slug: string$2().nullable().optional(),
|
|
37823
|
+
type: string$2().nullable().optional(),
|
|
37824
|
+
url: unknown$1().optional()
|
|
37825
|
+
}).loose(),
|
|
37826
|
+
taiga_create_factory: object({
|
|
37827
|
+
id: string$2().nullable().optional(),
|
|
37828
|
+
name: string$2().nullable().optional(),
|
|
37829
|
+
slug: string$2().nullable().optional(),
|
|
37830
|
+
isDefault: boolean().nullable().optional()
|
|
37831
|
+
}).loose(),
|
|
37832
|
+
taiga_create_product: object({
|
|
37833
|
+
id: string$2().nullable().optional(),
|
|
37834
|
+
name: string$2().nullable().optional(),
|
|
37835
|
+
slug: string$2().nullable().optional(),
|
|
37836
|
+
status: string$2().nullable().optional(),
|
|
37837
|
+
factoryId: string$2().nullable().optional(),
|
|
37838
|
+
ownsInfrastructure: unknown$1().optional(),
|
|
37839
|
+
ownsDeployment: boolean().nullable().optional(),
|
|
37840
|
+
deploymentNotes: string$2().nullable().optional(),
|
|
37841
|
+
emitDesignStandards: unknown$1().optional(),
|
|
37842
|
+
projectType: string$2().nullable().optional(),
|
|
37843
|
+
readiness: object({
|
|
37844
|
+
ready: unknown$1().optional(),
|
|
37845
|
+
repository: unknown$1().optional(),
|
|
37846
|
+
discoveryStep: unknown$1().optional(),
|
|
37847
|
+
missingDocuments: unknown$1().optional(),
|
|
37848
|
+
nextStep: string$2().nullable().optional(),
|
|
37849
|
+
import: string$2().nullable().optional()
|
|
37850
|
+
}).loose().nullable().optional(),
|
|
37851
|
+
nameNote: string$2().nullable().optional()
|
|
37852
|
+
}).loose(),
|
|
37853
|
+
taiga_delete_initiative: object({
|
|
37854
|
+
id: string$2().nullable().optional(),
|
|
37855
|
+
deleted: boolean().nullable().optional()
|
|
37856
|
+
}).loose(),
|
|
37857
|
+
taiga_delete_knowledge: object({
|
|
37858
|
+
id: string$2().nullable().optional(),
|
|
37859
|
+
deleted: boolean().nullable().optional()
|
|
37860
|
+
}).loose(),
|
|
37861
|
+
taiga_delete_product_document: object({
|
|
37862
|
+
type: string$2().nullable().optional(),
|
|
37863
|
+
deleted: boolean().nullable().optional()
|
|
37864
|
+
}).loose(),
|
|
37865
|
+
taiga_finish_discovery: object({
|
|
37866
|
+
id: string$2().nullable().optional(),
|
|
37867
|
+
name: string$2().nullable().optional(),
|
|
37868
|
+
slug: string$2().nullable().optional(),
|
|
37869
|
+
status: string$2().nullable().optional(),
|
|
37870
|
+
factoryId: string$2().nullable().optional(),
|
|
37871
|
+
ownsInfrastructure: unknown$1().optional(),
|
|
37872
|
+
ownsDeployment: boolean().nullable().optional(),
|
|
37873
|
+
deploymentNotes: string$2().nullable().optional(),
|
|
37874
|
+
emitDesignStandards: unknown$1().optional(),
|
|
37875
|
+
projectType: string$2().nullable().optional()
|
|
37876
|
+
}).loose(),
|
|
37877
|
+
taiga_fix_finding: object({
|
|
37878
|
+
initiativeId: string$2().nullable().optional(),
|
|
37879
|
+
finding: object({
|
|
37880
|
+
id: string$2().nullable().optional(),
|
|
37881
|
+
kind: string$2().nullable().optional(),
|
|
37882
|
+
severity: string$2().nullable().optional(),
|
|
37883
|
+
tier: string$2().nullable().optional(),
|
|
37884
|
+
status: string$2().nullable().optional(),
|
|
37885
|
+
title: string$2().nullable().optional(),
|
|
37886
|
+
ecosystem: string$2().nullable().optional(),
|
|
37887
|
+
packageName: string$2().nullable().optional(),
|
|
37888
|
+
currentVersion: string$2().nullable().optional(),
|
|
37889
|
+
recommendedVersion: string$2().nullable().optional(),
|
|
37890
|
+
advisoryId: string$2().nullable().optional(),
|
|
37891
|
+
remediableBy: string$2().nullable().optional(),
|
|
37892
|
+
dependencyScope: string$2().nullable().optional(),
|
|
37893
|
+
dependencyRelation: string$2().nullable().optional()
|
|
37894
|
+
}).loose().nullable().optional(),
|
|
37895
|
+
findingIds: array(string$2().nullable()).nullable().optional()
|
|
37896
|
+
}).loose(),
|
|
37897
|
+
taiga_fix_policy_violation: object({
|
|
37898
|
+
initiativeId: string$2().nullable().optional(),
|
|
37899
|
+
divergenceIds: array(string$2().nullable()).nullable().optional(),
|
|
37900
|
+
created: boolean().nullable().optional()
|
|
37901
|
+
}).loose(),
|
|
37902
|
+
taiga_follow_initiative: object({
|
|
37903
|
+
initiativeId: string$2().nullable().optional(),
|
|
37904
|
+
following: boolean().nullable().optional()
|
|
37905
|
+
}).loose(),
|
|
37906
|
+
taiga_generate_product_documents: object({ jobIds: array(string$2().nullable()).nullable().optional() }).loose(),
|
|
37907
|
+
taiga_get_delivery_metrics: object({
|
|
37908
|
+
scope: object({
|
|
37909
|
+
factoryId: unknown$1().optional(),
|
|
37910
|
+
products: number$1().nullable().optional(),
|
|
37911
|
+
leftOut: number$1().nullable().optional()
|
|
37912
|
+
}).loose().nullable().optional(),
|
|
37913
|
+
rows: array(unknown$1()).nullable().optional(),
|
|
37914
|
+
leftOut: string$2().nullable().optional(),
|
|
37915
|
+
environmentId: string$2().nullable().optional(),
|
|
37916
|
+
windowDays: number$1().nullable().optional(),
|
|
37917
|
+
generatedAt: string$2().nullable().optional(),
|
|
37918
|
+
frequency: dora({
|
|
37919
|
+
deploysPerWeek: number$1(),
|
|
37920
|
+
totalDeploys: number$1(),
|
|
37921
|
+
series: array(unknown$1())
|
|
37922
|
+
}),
|
|
37923
|
+
leadTime: dora({
|
|
37924
|
+
medianSeconds: number$1(),
|
|
37925
|
+
sampleSize: number$1()
|
|
37926
|
+
}),
|
|
37927
|
+
changeFailureRate: dora({
|
|
37928
|
+
rate: number$1(),
|
|
37929
|
+
failed: number$1(),
|
|
37930
|
+
total: number$1()
|
|
37931
|
+
}),
|
|
37932
|
+
timeToRestore: dora({
|
|
37933
|
+
medianSeconds: number$1(),
|
|
37934
|
+
sampleSize: number$1()
|
|
37935
|
+
}),
|
|
37936
|
+
reworkRate: dora({
|
|
37937
|
+
rate: number$1(),
|
|
37938
|
+
rework: number$1(),
|
|
37939
|
+
total: number$1()
|
|
37940
|
+
}),
|
|
37941
|
+
steeringSignals: object({
|
|
37942
|
+
productId: string$2().nullable().optional(),
|
|
37943
|
+
windowDays: number$1().nullable().optional(),
|
|
37944
|
+
generatedAt: string$2().nullable().optional(),
|
|
37945
|
+
overall: record(string$2(), unknown$1()).nullable().optional(),
|
|
37946
|
+
byVersion: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
37947
|
+
unattributed: record(string$2(), unknown$1()).nullable().optional()
|
|
37948
|
+
}).loose().nullable().optional(),
|
|
37949
|
+
metrics: unknown$1().optional(),
|
|
37950
|
+
note: string$2().nullable().optional()
|
|
37951
|
+
}).loose(),
|
|
37952
|
+
taiga_get_deployments: object({
|
|
37953
|
+
environments: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
37954
|
+
running: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
37955
|
+
deploying: array(unknown$1()).nullable().optional(),
|
|
37956
|
+
history: object({
|
|
37957
|
+
data: array(unknown$1()).nullable().optional(),
|
|
37958
|
+
nextCursor: string$2().nullable().optional()
|
|
37959
|
+
}).loose().nullable().optional(),
|
|
37960
|
+
syncStatus: object({}).loose().nullable().optional(),
|
|
37961
|
+
syncUnavailable: string$2().nullable().optional(),
|
|
37962
|
+
note: string$2().nullable().optional(),
|
|
37963
|
+
unavailable: object({
|
|
37964
|
+
running: string$2().nullable().optional(),
|
|
37965
|
+
history: string$2().nullable().optional()
|
|
37966
|
+
}).loose().nullable().optional()
|
|
37967
|
+
}).loose(),
|
|
37968
|
+
taiga_get_design_token_sync: object({
|
|
37969
|
+
status: string$2().nullable().optional(),
|
|
37970
|
+
alignment: object({
|
|
37971
|
+
version: string$2().nullable().optional(),
|
|
37972
|
+
documentVersion: unknown$1().optional(),
|
|
37973
|
+
status: string$2().nullable().optional(),
|
|
37974
|
+
alignedAt: string$2().nullable().optional(),
|
|
37975
|
+
alignedBy: string$2().nullable().optional(),
|
|
37976
|
+
message: string$2().nullable().optional()
|
|
37977
|
+
}).loose().nullable().optional(),
|
|
37978
|
+
job: object({
|
|
37979
|
+
id: string$2().nullable().optional(),
|
|
37980
|
+
type: string$2().nullable().optional(),
|
|
37981
|
+
status: string$2().nullable().optional(),
|
|
37982
|
+
error: string$2().nullable().optional()
|
|
37983
|
+
}).loose().nullable().optional(),
|
|
37984
|
+
note: string$2().nullable().optional(),
|
|
37985
|
+
error: string$2().nullable().optional(),
|
|
37986
|
+
jobId: string$2().nullable().optional()
|
|
37987
|
+
}).loose(),
|
|
37988
|
+
taiga_get_design_tokens: object({
|
|
37989
|
+
version: string$2().nullable().optional(),
|
|
37990
|
+
documentVersion: number$1().nullable().optional(),
|
|
37991
|
+
categories: array(string$2().nullable()).nullable().optional(),
|
|
37992
|
+
tokens: object({
|
|
37993
|
+
colors: record(string$2(), unknown$1()).nullable().optional(),
|
|
37994
|
+
spacing: record(string$2(), unknown$1()).nullable().optional()
|
|
37995
|
+
}).loose().nullable().optional(),
|
|
37996
|
+
alignment: object({
|
|
37997
|
+
version: string$2().nullable().optional(),
|
|
37998
|
+
documentVersion: unknown$1().optional(),
|
|
37999
|
+
status: string$2().nullable().optional(),
|
|
38000
|
+
alignedAt: string$2().nullable().optional(),
|
|
38001
|
+
alignedBy: string$2().nullable().optional(),
|
|
38002
|
+
message: string$2().nullable().optional()
|
|
38003
|
+
}).loose().nullable().optional(),
|
|
38004
|
+
note: string$2().nullable().optional(),
|
|
38005
|
+
unknownCategories: array(string$2().nullable()).nullable().optional()
|
|
38006
|
+
}).loose(),
|
|
38007
|
+
taiga_get_factory_document: object({
|
|
38008
|
+
id: string$2().nullable().optional(),
|
|
38009
|
+
factoryId: string$2().nullable().optional(),
|
|
38010
|
+
type: string$2().nullable().optional(),
|
|
38011
|
+
name: string$2().nullable().optional(),
|
|
38012
|
+
description: string$2().nullable().optional(),
|
|
38013
|
+
version: number$1().nullable().optional(),
|
|
38014
|
+
isDraft: boolean().nullable().optional(),
|
|
38015
|
+
data: unknown$1().optional()
|
|
38016
|
+
}).loose(),
|
|
38017
|
+
taiga_get_finding: object({
|
|
38018
|
+
id: string$2().nullable().optional(),
|
|
38019
|
+
kind: string$2().nullable().optional(),
|
|
38020
|
+
status: string$2().nullable().optional(),
|
|
38021
|
+
packageName: string$2().nullable().optional(),
|
|
38022
|
+
title: string$2().nullable().optional(),
|
|
38023
|
+
data: object({
|
|
38024
|
+
license: string$2().nullable().optional(),
|
|
38025
|
+
packages: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38026
|
+
packageCount: number$1().nullable().optional(),
|
|
38027
|
+
packagesNote: string$2().nullable().optional(),
|
|
38028
|
+
id: string$2().nullable().optional(),
|
|
38029
|
+
severitySource: string$2().nullable().optional(),
|
|
38030
|
+
cvssScore: number$1().nullable().optional(),
|
|
38031
|
+
baseImage: record(string$2(), unknown$1()).nullable().optional(),
|
|
38032
|
+
summary: string$2().nullable().optional(),
|
|
38033
|
+
details: string$2().nullable().optional(),
|
|
38034
|
+
references: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38035
|
+
referencesNote: string$2().nullable().optional(),
|
|
38036
|
+
affected: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38037
|
+
schema_version: string$2().nullable().optional(),
|
|
38038
|
+
tool: string$2().nullable().optional(),
|
|
38039
|
+
runtime: record(string$2(), unknown$1()).nullable().optional()
|
|
38040
|
+
}).loose().nullable().optional(),
|
|
38041
|
+
dependencyScope: string$2().nullable().optional(),
|
|
38042
|
+
dependencyRelation: string$2().nullable().optional(),
|
|
38043
|
+
fixable: boolean().nullable().optional(),
|
|
38044
|
+
fixNote: string$2().nullable().optional(),
|
|
38045
|
+
dependencyRelationByLockfile: object({ "Cargo.lock": string$2().nullable().optional() }).loose().nullable().optional(),
|
|
38046
|
+
resolvedReason: string$2().nullable().optional(),
|
|
38047
|
+
sweepId: string$2().nullable().optional(),
|
|
38048
|
+
remediation: object({ runId: string$2().nullable().optional() }).loose().nullable().optional(),
|
|
38049
|
+
currentVersion: string$2().nullable().optional(),
|
|
38050
|
+
recommendedVersion: string$2().nullable().optional(),
|
|
38051
|
+
remediableBy: string$2().nullable().optional(),
|
|
38052
|
+
advisoryId: string$2().nullable().optional(),
|
|
38053
|
+
tier: string$2().nullable().optional(),
|
|
38054
|
+
malicious: boolean().nullable().optional(),
|
|
38055
|
+
removal: boolean().nullable().optional(),
|
|
38056
|
+
ecosystem: string$2().nullable().optional(),
|
|
38057
|
+
baseMove: boolean().nullable().optional(),
|
|
38058
|
+
dependencyGroups: object({ "Cargo.lock": array(unknown$1()).nullable().optional() }).loose().nullable().optional(),
|
|
38059
|
+
autoFixHeld: object({
|
|
38060
|
+
reason: string$2().nullable().optional(),
|
|
38061
|
+
currentVersion: string$2().nullable().optional(),
|
|
38062
|
+
targetVersion: string$2().nullable().optional()
|
|
38063
|
+
}).loose().nullable().optional(),
|
|
38064
|
+
severity: string$2().nullable().optional(),
|
|
38065
|
+
previouslyResolvedAt: string$2().nullable().optional(),
|
|
38066
|
+
reintroducedAt: string$2().nullable().optional(),
|
|
38067
|
+
previouslyResolvedReason: string$2().nullable().optional()
|
|
38068
|
+
}).loose(),
|
|
38069
|
+
taiga_get_initiative: object({
|
|
38070
|
+
id: string$2().nullable().optional(),
|
|
38071
|
+
productId: string$2().nullable().optional(),
|
|
38072
|
+
title: string$2().nullable().optional(),
|
|
38073
|
+
description: string$2().nullable().optional(),
|
|
38074
|
+
category: string$2().nullable().optional(),
|
|
38075
|
+
status: string$2().nullable().optional(),
|
|
38076
|
+
state: string$2().nullable().optional(),
|
|
38077
|
+
planningStatus: string$2().nullable().optional(),
|
|
38078
|
+
priority: number$1().nullable().optional(),
|
|
38079
|
+
estimate: number$1().nullable().optional(),
|
|
38080
|
+
origin: string$2().nullable().optional(),
|
|
38081
|
+
needsHumanCause: unknown$1().optional(),
|
|
38082
|
+
acceptanceCriteria: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38083
|
+
technicalContext: object({
|
|
38084
|
+
patterns: array(string$2().nullable()).nullable().optional(),
|
|
38085
|
+
constraints: array(unknown$1()).nullable().optional(),
|
|
38086
|
+
references: array(unknown$1()).nullable().optional()
|
|
38087
|
+
}).loose().nullable().optional(),
|
|
38088
|
+
column: string$2().nullable().optional(),
|
|
38089
|
+
turn: string$2().nullable().optional(),
|
|
38090
|
+
latestRun: object({
|
|
38091
|
+
id: string$2().nullable().optional(),
|
|
38092
|
+
prNumber: number$1().nullable().optional()
|
|
38093
|
+
}).loose().nullable().optional(),
|
|
38094
|
+
criteria: object({
|
|
38095
|
+
met: number$1().nullable().optional(),
|
|
38096
|
+
total: number$1().nullable().optional()
|
|
38097
|
+
}).loose().nullable().optional(),
|
|
38098
|
+
lifecycle: object({
|
|
38099
|
+
pullRequest: record(string$2(), unknown$1()).nullable().optional(),
|
|
38100
|
+
latestRun: record(string$2(), unknown$1()).nullable().optional(),
|
|
38101
|
+
builds: array(record(string$2(), unknown$1()).nullable()).nullable().optional()
|
|
38102
|
+
}).loose().nullable().optional(),
|
|
38103
|
+
assignee: object({
|
|
38104
|
+
id: string$2().nullable().optional(),
|
|
38105
|
+
name: string$2().nullable().optional()
|
|
38106
|
+
}).loose().nullable().optional(),
|
|
38107
|
+
assigneeId: string$2().nullable().optional(),
|
|
38108
|
+
planFailure: object({
|
|
38109
|
+
cause: string$2().nullable().optional(),
|
|
38110
|
+
meaning: string$2().nullable().optional(),
|
|
38111
|
+
at: string$2().nullable().optional(),
|
|
38112
|
+
by: string$2().nullable().optional()
|
|
38113
|
+
}).loose().nullable().optional(),
|
|
38114
|
+
situation: string$2().nullable().optional(),
|
|
38115
|
+
externalRefKey: string$2().nullable().optional(),
|
|
38116
|
+
externalRefUrl: string$2().nullable().optional(),
|
|
38117
|
+
webUrl: string$2().nullable().optional()
|
|
38118
|
+
}).loose(),
|
|
38119
|
+
taiga_get_job: object({
|
|
38120
|
+
id: string$2().nullable().optional(),
|
|
38121
|
+
type: string$2().nullable().optional(),
|
|
38122
|
+
status: string$2().nullable().optional(),
|
|
38123
|
+
outcome: object({
|
|
38124
|
+
outcome: string$2().nullable().optional(),
|
|
38125
|
+
initiatives: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38126
|
+
message: string$2().nullable().optional(),
|
|
38127
|
+
coveredBy: unknown$1().optional(),
|
|
38128
|
+
policy: record(string$2(), unknown$1()).nullable().optional()
|
|
38129
|
+
}).loose().nullable().optional()
|
|
38130
|
+
}).loose(),
|
|
38131
|
+
taiga_get_knowledge: object({
|
|
38132
|
+
id: string$2().nullable().optional(),
|
|
38133
|
+
fileName: string$2().nullable().optional(),
|
|
38134
|
+
mime: string$2().nullable().optional(),
|
|
38135
|
+
status: string$2().nullable().optional(),
|
|
38136
|
+
content: string$2().nullable().optional(),
|
|
38137
|
+
downloadUrl: string$2().nullable().optional(),
|
|
38138
|
+
note: string$2().nullable().optional()
|
|
38139
|
+
}).loose(),
|
|
38140
|
+
taiga_get_line: object({
|
|
38141
|
+
linePaused: boolean().nullable().optional(),
|
|
38142
|
+
entries: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38143
|
+
waitingOn: string$2().nullable().optional(),
|
|
38144
|
+
offTheLine: string$2().nullable().optional(),
|
|
38145
|
+
note: string$2().nullable().optional()
|
|
38146
|
+
}).loose(),
|
|
38147
|
+
taiga_get_model_connection: object({
|
|
38148
|
+
connection: object({
|
|
38149
|
+
id: string$2().nullable().optional(),
|
|
38150
|
+
kind: string$2().nullable().optional(),
|
|
38151
|
+
baseUrl: string$2().nullable().optional(),
|
|
38152
|
+
keyHint: string$2().nullable().optional(),
|
|
38153
|
+
roleArn: unknown$1().optional(),
|
|
38154
|
+
region: unknown$1().optional(),
|
|
38155
|
+
createdAt: string$2().nullable().optional(),
|
|
38156
|
+
updatedAt: string$2().nullable().optional()
|
|
38157
|
+
}).loose().nullable().optional(),
|
|
38158
|
+
trust: object({
|
|
38159
|
+
principalArn: string$2().nullable().optional(),
|
|
38160
|
+
externalId: string$2().nullable().optional()
|
|
38161
|
+
}).loose().nullable().optional()
|
|
38162
|
+
}).loose(),
|
|
38163
|
+
taiga_get_monitoring: object({
|
|
38164
|
+
health: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38165
|
+
windowDays: number$1().nullable().optional(),
|
|
38166
|
+
uptime: object({ uptimePercent: number$1().nullable().optional() }).loose().nullable().optional(),
|
|
38167
|
+
realUserExperience: object({ score: unknown$1().optional() }).loose().nullable().optional(),
|
|
38168
|
+
clientHealth: object({ unavailable: string$2().nullable().optional() }).loose().nullable().optional(),
|
|
38169
|
+
note: string$2().nullable().optional()
|
|
38170
|
+
}).loose(),
|
|
38171
|
+
taiga_get_notices: object({ notices: string$2().nullable().optional() }).loose(),
|
|
38172
|
+
taiga_get_organization_document: object({
|
|
38173
|
+
data: unknown$1().optional(),
|
|
38174
|
+
nextCursor: string$2().nullable().optional(),
|
|
38175
|
+
id: string$2().nullable().optional(),
|
|
38176
|
+
type: string$2().nullable().optional(),
|
|
38177
|
+
name: string$2().nullable().optional(),
|
|
38178
|
+
version: number$1().nullable().optional(),
|
|
38179
|
+
isDraft: boolean().nullable().optional(),
|
|
38180
|
+
omittedSections: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38181
|
+
unknownSections: array(string$2().nullable()).nullable().optional(),
|
|
38182
|
+
outline: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38183
|
+
controls: object({
|
|
38184
|
+
"SEC-5.1": array(string$2().nullable()).nullable().optional(),
|
|
38185
|
+
"TEL-TIC-1.1": array(string$2().nullable()).nullable().optional()
|
|
38186
|
+
}).loose().nullable().optional(),
|
|
38187
|
+
note: string$2().nullable().optional(),
|
|
38188
|
+
tokenAlignment: object({
|
|
38189
|
+
version: string$2().nullable().optional(),
|
|
38190
|
+
documentVersion: unknown$1().optional(),
|
|
38191
|
+
status: string$2().nullable().optional(),
|
|
38192
|
+
alignedAt: string$2().nullable().optional(),
|
|
38193
|
+
alignedBy: string$2().nullable().optional(),
|
|
38194
|
+
message: string$2().nullable().optional()
|
|
38195
|
+
}).loose().nullable().optional()
|
|
38196
|
+
}).loose(),
|
|
38197
|
+
taiga_get_plan: object({
|
|
38198
|
+
id: string$2().nullable().optional(),
|
|
38199
|
+
initiativeId: string$2().nullable().optional(),
|
|
38200
|
+
version: number$1().nullable().optional(),
|
|
38201
|
+
status: string$2().nullable().optional(),
|
|
38202
|
+
repositories: array(string$2().nullable()).nullable().optional(),
|
|
38203
|
+
steps: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38204
|
+
revision: object({
|
|
38205
|
+
revisedFor: string$2().nullable().optional(),
|
|
38206
|
+
previousPlanId: string$2().nullable().optional(),
|
|
38207
|
+
added: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38208
|
+
edited: array(unknown$1()).nullable().optional(),
|
|
38209
|
+
dropped: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38210
|
+
reverted: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38211
|
+
waitsForReview: boolean().nullable().optional(),
|
|
38212
|
+
at: string$2().nullable().optional()
|
|
38213
|
+
}).loose().nullable().optional()
|
|
38214
|
+
}).loose(),
|
|
38215
|
+
taiga_get_policy_standing: object({
|
|
38216
|
+
scope: object({
|
|
38217
|
+
factoryId: unknown$1().optional(),
|
|
38218
|
+
products: number$1().nullable().optional(),
|
|
38219
|
+
leftOut: number$1().nullable().optional()
|
|
38220
|
+
}).loose().nullable().optional(),
|
|
38221
|
+
rows: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38222
|
+
leftOut: string$2().nullable().optional(),
|
|
38223
|
+
summary: object({
|
|
38224
|
+
controlsWithViolations: number$1().nullable().optional(),
|
|
38225
|
+
controlsBreached: number$1().nullable().optional(),
|
|
38226
|
+
controlsDiverged: number$1().nullable().optional(),
|
|
38227
|
+
controlsInPolicies: number$1().nullable().optional(),
|
|
38228
|
+
controlsMet: number$1().nullable().optional(),
|
|
38229
|
+
controlsNotApplicable: number$1().nullable().optional(),
|
|
38230
|
+
controlsNotAssessed: number$1().nullable().optional(),
|
|
38231
|
+
violations: number$1().nullable().optional(),
|
|
38232
|
+
bySeverity: record(string$2(), unknown$1()).nullable().optional(),
|
|
38233
|
+
resolvedViolations: number$1().nullable().optional()
|
|
38234
|
+
}).loose().nullable().optional(),
|
|
38235
|
+
note: string$2().nullable().optional(),
|
|
38236
|
+
wordingNote: string$2().nullable().optional(),
|
|
38237
|
+
productId: string$2().nullable().optional(),
|
|
38238
|
+
hasPolicies: boolean().nullable().optional(),
|
|
38239
|
+
assessment: object({
|
|
38240
|
+
state: string$2().nullable().optional(),
|
|
38241
|
+
assessedAt: string$2().nullable().optional(),
|
|
38242
|
+
verdict: string$2().nullable().optional(),
|
|
38243
|
+
evidence: string$2().nullable().optional(),
|
|
38244
|
+
sourceDocuments: array(string$2().nullable()).nullable().optional()
|
|
38245
|
+
}).loose().nullable().optional(),
|
|
38246
|
+
documents: object({ commit: string$2().nullable().optional() }).loose().nullable().optional(),
|
|
38247
|
+
controls: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38248
|
+
violations: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38249
|
+
canAssess: boolean().nullable().optional(),
|
|
38250
|
+
divergences: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38251
|
+
resolvedDivergences: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38252
|
+
controlCoverage: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38253
|
+
controlId: string$2().nullable().optional(),
|
|
38254
|
+
state: string$2().nullable().optional(),
|
|
38255
|
+
coverage: object({
|
|
38256
|
+
initiatives: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38257
|
+
deferredReason: string$2().nullable().optional(),
|
|
38258
|
+
uncovered: boolean().nullable().optional()
|
|
38259
|
+
}).loose().nullable().optional(),
|
|
38260
|
+
meaning: string$2().nullable().optional(),
|
|
38261
|
+
coverageNote: string$2().nullable().optional(),
|
|
38262
|
+
resolvedNote: string$2().nullable().optional(),
|
|
38263
|
+
id: string$2().nullable().optional(),
|
|
38264
|
+
severity: string$2().nullable().optional(),
|
|
38265
|
+
evidence: string$2().nullable().optional(),
|
|
38266
|
+
title: string$2().nullable().optional(),
|
|
38267
|
+
policyType: string$2().nullable().optional(),
|
|
38268
|
+
text: string$2().nullable().optional(),
|
|
38269
|
+
divergenceCount: number$1().nullable().optional(),
|
|
38270
|
+
findingCount: number$1().nullable().optional(),
|
|
38271
|
+
assessmentNote: string$2().nullable().optional(),
|
|
38272
|
+
findingsNote: string$2().nullable().optional()
|
|
38273
|
+
}).loose(),
|
|
38274
|
+
taiga_get_product: object({
|
|
38275
|
+
id: string$2().nullable().optional(),
|
|
38276
|
+
name: string$2().nullable().optional(),
|
|
38277
|
+
slug: string$2().nullable().optional(),
|
|
38278
|
+
projectType: string$2().nullable().optional(),
|
|
38279
|
+
linePaused: unknown$1().optional(),
|
|
38280
|
+
agentWork: string$2().nullable().optional(),
|
|
38281
|
+
unsetMeans: string$2().nullable().optional(),
|
|
38282
|
+
factoryId: string$2().nullable().optional(),
|
|
38283
|
+
importStatus: string$2().nullable().optional(),
|
|
38284
|
+
status: string$2().nullable().optional(),
|
|
38285
|
+
signalAutonomy: object({
|
|
38286
|
+
vulnerable_dependency_exploited: record(string$2(), unknown$1()).nullable().optional(),
|
|
38287
|
+
vulnerable_dependency_severe: record(string$2(), unknown$1()).nullable().optional()
|
|
38288
|
+
}).loose().nullable().optional(),
|
|
38289
|
+
dailyFixLimit: object({
|
|
38290
|
+
limit: number$1().nullable().optional(),
|
|
38291
|
+
setBy: string$2().nullable().optional()
|
|
38292
|
+
}).loose().nullable().optional(),
|
|
38293
|
+
discoveryStep: string$2().nullable().optional(),
|
|
38294
|
+
ownsInfrastructure: boolean().nullable().optional(),
|
|
38295
|
+
deploymentNotes: unknown$1().optional(),
|
|
38296
|
+
readiness: object({
|
|
38297
|
+
ready: boolean().nullable().optional(),
|
|
38298
|
+
repository: record(string$2(), unknown$1()).nullable().optional(),
|
|
38299
|
+
import: string$2().nullable().optional(),
|
|
38300
|
+
missingDocuments: array(string$2().nullable()).nullable().optional(),
|
|
38301
|
+
nextStep: string$2().nullable().optional(),
|
|
38302
|
+
discoveryStep: string$2().nullable().optional()
|
|
38303
|
+
}).loose().nullable().optional()
|
|
38304
|
+
}).loose(),
|
|
38305
|
+
taiga_get_product_context: object({
|
|
38306
|
+
characters: number$1().nullable().optional(),
|
|
38307
|
+
product: object({
|
|
38308
|
+
id: string$2().nullable().optional(),
|
|
38309
|
+
name: string$2().nullable().optional(),
|
|
38310
|
+
slug: string$2().nullable().optional(),
|
|
38311
|
+
status: string$2().nullable().optional(),
|
|
38312
|
+
factoryId: string$2().nullable().optional(),
|
|
38313
|
+
projectType: string$2().nullable().optional(),
|
|
38314
|
+
defaultOrigin: string$2().nullable().optional(),
|
|
38315
|
+
signalAutonomy: record(string$2(), unknown$1()).nullable().optional(),
|
|
38316
|
+
discoveryStep: string$2().nullable().optional(),
|
|
38317
|
+
readiness: record(string$2(), unknown$1()).nullable().optional()
|
|
38318
|
+
}).loose().nullable().optional(),
|
|
38319
|
+
factory: object({
|
|
38320
|
+
id: string$2().nullable().optional(),
|
|
38321
|
+
name: string$2().nullable().optional(),
|
|
38322
|
+
slug: string$2().nullable().optional(),
|
|
38323
|
+
instructions: string$2().nullable().optional(),
|
|
38324
|
+
instructionsVersion: number$1().nullable().optional(),
|
|
38325
|
+
note: string$2().nullable().optional()
|
|
38326
|
+
}).loose().nullable().optional(),
|
|
38327
|
+
documents: object({
|
|
38328
|
+
origin: string$2().nullable().optional(),
|
|
38329
|
+
specification: record(string$2(), unknown$1()).nullable().optional(),
|
|
38330
|
+
architecture: unknown$1().optional(),
|
|
38331
|
+
notes: array(string$2().nullable()).nullable().optional()
|
|
38332
|
+
}).loose().nullable().optional(),
|
|
38333
|
+
policies: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38334
|
+
initiatives: object({
|
|
38335
|
+
byColumn: record(string$2(), unknown$1()).nullable().optional(),
|
|
38336
|
+
items: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38337
|
+
truncated: boolean().nullable().optional(),
|
|
38338
|
+
note: string$2().nullable().optional(),
|
|
38339
|
+
itemsNote: string$2().nullable().optional()
|
|
38340
|
+
}).loose().nullable().optional(),
|
|
38341
|
+
repositories: object({
|
|
38342
|
+
items: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38343
|
+
truncated: boolean().nullable().optional()
|
|
38344
|
+
}).loose().nullable().optional(),
|
|
38345
|
+
runs: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38346
|
+
actionRequired: object({
|
|
38347
|
+
open: number$1().nullable().optional(),
|
|
38348
|
+
byKind: record(string$2(), unknown$1()).nullable().optional()
|
|
38349
|
+
}).loose().nullable().optional(),
|
|
38350
|
+
maintenance: object({
|
|
38351
|
+
openFindings: number$1().nullable().optional(),
|
|
38352
|
+
bySeverity: record(string$2(), unknown$1()).nullable().optional(),
|
|
38353
|
+
lastSweep: record(string$2(), unknown$1()).nullable().optional()
|
|
38354
|
+
}).loose().nullable().optional(),
|
|
38355
|
+
policyStanding: object({
|
|
38356
|
+
openViolations: number$1().nullable().optional(),
|
|
38357
|
+
bySeverity: record(string$2(), unknown$1()).nullable().optional(),
|
|
38358
|
+
controlsInPolicies: number$1().nullable().optional(),
|
|
38359
|
+
controlsNotAssessed: number$1().nullable().optional(),
|
|
38360
|
+
controlsWithViolations: number$1().nullable().optional(),
|
|
38361
|
+
controlsBreached: number$1().nullable().optional(),
|
|
38362
|
+
controlsDiverged: number$1().nullable().optional(),
|
|
38363
|
+
controlsMet: number$1().nullable().optional(),
|
|
38364
|
+
controlsNotApplicable: number$1().nullable().optional()
|
|
38365
|
+
}).loose().nullable().optional(),
|
|
38366
|
+
notGranted: array(string$2().nullable()).nullable().optional(),
|
|
38367
|
+
unavailable: object({
|
|
38368
|
+
initiatives: string$2().nullable().optional(),
|
|
38369
|
+
repositories: string$2().nullable().optional(),
|
|
38370
|
+
actionRequired: string$2().nullable().optional(),
|
|
38371
|
+
maintenance: string$2().nullable().optional(),
|
|
38372
|
+
policyStanding: string$2().nullable().optional()
|
|
38373
|
+
}).loose().nullable().optional(),
|
|
38374
|
+
readNext: string$2().nullable().optional()
|
|
38375
|
+
}).loose(),
|
|
38376
|
+
taiga_get_product_document: object({
|
|
38377
|
+
projectType: string$2().nullable().optional(),
|
|
38378
|
+
defaultOrigin: string$2().nullable().optional(),
|
|
38379
|
+
plan: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38380
|
+
reality: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38381
|
+
notes: array(string$2().nullable()).nullable().optional(),
|
|
38382
|
+
id: string$2().nullable().optional(),
|
|
38383
|
+
type: string$2().nullable().optional(),
|
|
38384
|
+
version: number$1().nullable().optional(),
|
|
38385
|
+
isDraft: boolean().nullable().optional(),
|
|
38386
|
+
hasDraft: boolean().nullable().optional(),
|
|
38387
|
+
stage: string$2().nullable().optional(),
|
|
38388
|
+
origin: string$2().nullable().optional(),
|
|
38389
|
+
dataKeyCount: number$1().nullable().optional(),
|
|
38390
|
+
createdBy: string$2().nullable().optional(),
|
|
38391
|
+
reviewedAt: string$2().nullable().optional(),
|
|
38392
|
+
reviewedByName: string$2().nullable().optional(),
|
|
38393
|
+
updatedAt: string$2().nullable().optional(),
|
|
38394
|
+
data: object({ sections: record(string$2(), unknown$1()).nullable().optional() }).loose().nullable().optional(),
|
|
38395
|
+
omittedSections: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38396
|
+
outline: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38397
|
+
unknownSections: array(string$2().nullable()).nullable().optional(),
|
|
38398
|
+
note: string$2().nullable().optional(),
|
|
38399
|
+
versions: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38400
|
+
updatedBy: string$2().nullable().optional(),
|
|
38401
|
+
createdAt: string$2().nullable().optional(),
|
|
38402
|
+
published: boolean().nullable().optional(),
|
|
38403
|
+
draft: object({
|
|
38404
|
+
id: string$2().nullable().optional(),
|
|
38405
|
+
type: string$2().nullable().optional(),
|
|
38406
|
+
version: unknown$1().optional(),
|
|
38407
|
+
isDraft: boolean().nullable().optional(),
|
|
38408
|
+
origin: string$2().nullable().optional(),
|
|
38409
|
+
data: record(string$2(), unknown$1()).nullable().optional()
|
|
38410
|
+
}).loose().nullable().optional(),
|
|
38411
|
+
sections: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38412
|
+
next: string$2().nullable().optional()
|
|
38413
|
+
}).loose(),
|
|
38414
|
+
taiga_get_run: object({
|
|
38415
|
+
id: string$2().nullable().optional(),
|
|
38416
|
+
runNumber: number$1().nullable().optional(),
|
|
38417
|
+
initiativeId: string$2().nullable().optional(),
|
|
38418
|
+
status: string$2().nullable().optional(),
|
|
38419
|
+
failedReason: string$2().nullable().optional(),
|
|
38420
|
+
branch: string$2().nullable().optional(),
|
|
38421
|
+
prUrl: string$2().nullable().optional(),
|
|
38422
|
+
prState: string$2().nullable().optional(),
|
|
38423
|
+
completedSteps: number$1().nullable().optional(),
|
|
38424
|
+
totalSteps: number$1().nullable().optional(),
|
|
38425
|
+
targetTitle: string$2().nullable().optional(),
|
|
38426
|
+
hardeningResult: object({
|
|
38427
|
+
findings: array(unknown$1()).nullable().optional(),
|
|
38428
|
+
passed: boolean().nullable().optional(),
|
|
38429
|
+
scanners: record(string$2(), unknown$1()).nullable().optional(),
|
|
38430
|
+
blockingFindings: number$1().nullable().optional(),
|
|
38431
|
+
advisoryFindings: number$1().nullable().optional(),
|
|
38432
|
+
blocking: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38433
|
+
scannerReasons: record(string$2(), unknown$1()).nullable().optional(),
|
|
38434
|
+
notApplicable: array(string$2().nullable()).nullable().optional(),
|
|
38435
|
+
verdict: string$2().nullable().optional(),
|
|
38436
|
+
gaps: array(record(string$2(), unknown$1()).nullable()).nullable().optional()
|
|
38437
|
+
}).loose().nullable().optional(),
|
|
38438
|
+
planId: string$2().nullable().optional(),
|
|
38439
|
+
error: string$2().nullable().optional(),
|
|
38440
|
+
outcome: string$2().nullable().optional(),
|
|
38441
|
+
actions: array(string$2().nullable()).nullable().optional(),
|
|
38442
|
+
lastReplan: object({
|
|
38443
|
+
revisedFor: string$2().nullable().optional(),
|
|
38444
|
+
previousPlanId: unknown$1().optional(),
|
|
38445
|
+
added: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38446
|
+
edited: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38447
|
+
dropped: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38448
|
+
reverted: array(unknown$1()).nullable().optional(),
|
|
38449
|
+
waitsForReview: boolean().nullable().optional(),
|
|
38450
|
+
at: string$2().nullable().optional()
|
|
38451
|
+
}).loose().nullable().optional(),
|
|
38452
|
+
metrics: object({
|
|
38453
|
+
tokens: number$1().nullable().optional(),
|
|
38454
|
+
totalToolCalls: number$1().nullable().optional(),
|
|
38455
|
+
containerImageTag: string$2().nullable().optional()
|
|
38456
|
+
}).loose().nullable().optional(),
|
|
38457
|
+
steps: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38458
|
+
prMerged: boolean().nullable().optional(),
|
|
38459
|
+
failedReasonMeans: string$2().nullable().optional(),
|
|
38460
|
+
nextStep: string$2().nullable().optional(),
|
|
38461
|
+
stoppedIn: string$2().nullable().optional(),
|
|
38462
|
+
webOnlyActions: array(string$2().nullable()).nullable().optional(),
|
|
38463
|
+
mergePosition: number$1().nullable().optional(),
|
|
38464
|
+
prNumber: number$1().nullable().optional(),
|
|
38465
|
+
mergeReadiness: object({
|
|
38466
|
+
state: string$2().nullable().optional(),
|
|
38467
|
+
reason: string$2().nullable().optional(),
|
|
38468
|
+
detail: string$2().nullable().optional(),
|
|
38469
|
+
approvals: number$1().nullable().optional(),
|
|
38470
|
+
diff: record(string$2(), unknown$1()).nullable().optional(),
|
|
38471
|
+
next: string$2().nullable().optional(),
|
|
38472
|
+
said: string$2().nullable().optional()
|
|
38473
|
+
}).loose().nullable().optional(),
|
|
38474
|
+
mergeReadinessNote: string$2().nullable().optional(),
|
|
38475
|
+
createdBy: string$2().nullable().optional(),
|
|
38476
|
+
autoMergeSha: string$2().nullable().optional(),
|
|
38477
|
+
initiativeClosed: unknown$1().optional(),
|
|
38478
|
+
hostsReached: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38479
|
+
hostsReachedNotShown: number$1().nullable().optional(),
|
|
38480
|
+
productId: string$2().nullable().optional(),
|
|
38481
|
+
verificationNote: string$2().nullable().optional(),
|
|
38482
|
+
hardeningNote: string$2().nullable().optional(),
|
|
38483
|
+
scanCoverage: string$2().nullable().optional(),
|
|
38484
|
+
origin: string$2().nullable().optional()
|
|
38485
|
+
}).loose(),
|
|
38486
|
+
taiga_get_sbom: object({
|
|
38487
|
+
bomFormat: string$2().nullable().optional(),
|
|
38488
|
+
specVersion: string$2().nullable().optional(),
|
|
38489
|
+
components: array(record(string$2(), unknown$1()).nullable()).nullable().optional()
|
|
38490
|
+
}).loose(),
|
|
38491
|
+
taiga_ignore_finding: object({
|
|
38492
|
+
id: string$2().nullable().optional(),
|
|
38493
|
+
kind: string$2().nullable().optional(),
|
|
38494
|
+
severity: string$2().nullable().optional(),
|
|
38495
|
+
tier: string$2().nullable().optional(),
|
|
38496
|
+
status: string$2().nullable().optional(),
|
|
38497
|
+
title: string$2().nullable().optional(),
|
|
38498
|
+
ecosystem: string$2().nullable().optional(),
|
|
38499
|
+
packageName: string$2().nullable().optional(),
|
|
38500
|
+
currentVersion: string$2().nullable().optional(),
|
|
38501
|
+
recommendedVersion: string$2().nullable().optional(),
|
|
38502
|
+
advisoryId: string$2().nullable().optional(),
|
|
38503
|
+
remediableBy: string$2().nullable().optional(),
|
|
38504
|
+
dependencyScope: string$2().nullable().optional(),
|
|
38505
|
+
dependencyRelation: string$2().nullable().optional()
|
|
38506
|
+
}).loose(),
|
|
38507
|
+
taiga_link_repository: object({
|
|
38508
|
+
id: string$2().nullable().optional(),
|
|
38509
|
+
provider: string$2().nullable().optional(),
|
|
38510
|
+
repositoryName: string$2().nullable().optional(),
|
|
38511
|
+
repositoryUrl: string$2().nullable().optional(),
|
|
38512
|
+
repositoryDefaultBranch: string$2().nullable().optional(),
|
|
38513
|
+
baseBranch: unknown$1().optional(),
|
|
38514
|
+
effectiveBranch: string$2().nullable().optional(),
|
|
38515
|
+
buildable: boolean().nullable().optional(),
|
|
38516
|
+
isManaged: boolean().nullable().optional(),
|
|
38517
|
+
forges: object({
|
|
38518
|
+
github: record(string$2(), unknown$1()).nullable().optional(),
|
|
38519
|
+
azure_devops: record(string$2(), unknown$1()).nullable().optional(),
|
|
38520
|
+
gitlab: record(string$2(), unknown$1()).nullable().optional()
|
|
38521
|
+
}).loose().nullable().optional(),
|
|
38522
|
+
readiness: object({
|
|
38523
|
+
ready: unknown$1().optional(),
|
|
38524
|
+
repository: unknown$1().optional(),
|
|
38525
|
+
import: string$2().nullable().optional(),
|
|
38526
|
+
missingDocuments: unknown$1().optional(),
|
|
38527
|
+
nextStep: string$2().nullable().optional()
|
|
38528
|
+
}).loose().nullable().optional()
|
|
38529
|
+
}).loose(),
|
|
38530
|
+
taiga_list_action_required: object({
|
|
38531
|
+
summary: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38532
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38533
|
+
totalCount: number$1().nullable().optional(),
|
|
38534
|
+
truncatedNote: string$2().nullable().optional(),
|
|
38535
|
+
licenseReviews: array(record(string$2(), unknown$1()).nullable()).nullable().optional()
|
|
38536
|
+
}).loose(),
|
|
38537
|
+
taiga_list_factories: object({
|
|
38538
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38539
|
+
nextCursor: string$2().nullable().optional()
|
|
38540
|
+
}).loose(),
|
|
38541
|
+
taiga_list_findings: object({
|
|
38542
|
+
scope: object({
|
|
38543
|
+
factoryId: unknown$1().optional(),
|
|
38544
|
+
products: number$1().nullable().optional(),
|
|
38545
|
+
leftOut: number$1().nullable().optional()
|
|
38546
|
+
}).loose().nullable().optional(),
|
|
38547
|
+
rows: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38548
|
+
leftOut: string$2().nullable().optional(),
|
|
38549
|
+
sweep: object({
|
|
38550
|
+
productId: string$2().nullable().optional(),
|
|
38551
|
+
openFindings: number$1().nullable().optional(),
|
|
38552
|
+
severityCounts: record(string$2(), unknown$1()).nullable().optional(),
|
|
38553
|
+
kindCounts: record(string$2(), unknown$1()).nullable().optional(),
|
|
38554
|
+
latestSweeps: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38555
|
+
note: string$2().nullable().optional()
|
|
38556
|
+
}).loose().nullable().optional(),
|
|
38557
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38558
|
+
nextCursor: unknown$1().optional(),
|
|
38559
|
+
sweepNote: string$2().nullable().optional(),
|
|
38560
|
+
totalCount: number$1().nullable().optional(),
|
|
38561
|
+
totalNote: string$2().nullable().optional()
|
|
38562
|
+
}).loose(),
|
|
38563
|
+
taiga_list_initiatives: object({
|
|
38564
|
+
scope: object({
|
|
38565
|
+
factoryId: unknown$1().optional(),
|
|
38566
|
+
products: number$1().nullable().optional(),
|
|
38567
|
+
leftOut: number$1().nullable().optional()
|
|
38568
|
+
}).loose().nullable().optional(),
|
|
38569
|
+
rows: array(unknown$1()).nullable().optional(),
|
|
38570
|
+
leftOut: string$2().nullable().optional(),
|
|
38571
|
+
total: number$1().nullable().optional(),
|
|
38572
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38573
|
+
nextCursor: string$2().nullable().optional(),
|
|
38574
|
+
closedMatches: string$2().nullable().optional(),
|
|
38575
|
+
note: string$2().nullable().optional()
|
|
38576
|
+
}).loose(),
|
|
38577
|
+
taiga_list_knowledge: object({
|
|
38578
|
+
data: array(unknown$1()).nullable().optional(),
|
|
38579
|
+
nextCursor: unknown$1().optional()
|
|
38580
|
+
}).loose(),
|
|
38581
|
+
taiga_list_licenses: object({
|
|
38582
|
+
allowlist: array(string$2().nullable()).nullable().optional(),
|
|
38583
|
+
custom: boolean().nullable().optional(),
|
|
38584
|
+
licenses: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38585
|
+
license: string$2().nullable().optional(),
|
|
38586
|
+
approved: boolean().nullable().optional(),
|
|
38587
|
+
category: string$2().nullable().optional(),
|
|
38588
|
+
packages: number$1().nullable().optional(),
|
|
38589
|
+
products: number$1().nullable().optional(),
|
|
38590
|
+
repositories: number$1().nullable().optional(),
|
|
38591
|
+
usage: array(unknown$1()).nullable().optional(),
|
|
38592
|
+
standing: string$2().nullable().optional(),
|
|
38593
|
+
decidedBy: string$2().nullable().optional(),
|
|
38594
|
+
runtimePackages: number$1().nullable().optional(),
|
|
38595
|
+
unknownScopePackages: number$1().nullable().optional(),
|
|
38596
|
+
name: string$2().nullable().optional(),
|
|
38597
|
+
asks: string$2().nullable().optional(),
|
|
38598
|
+
allowWhen: string$2().nullable().optional(),
|
|
38599
|
+
groups: array(record(string$2(), unknown$1()).nullable()).nullable().optional()
|
|
38600
|
+
}).loose(),
|
|
38601
|
+
taiga_list_linkable_repositories: object({
|
|
38602
|
+
accounts: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38603
|
+
repositories: object({
|
|
38604
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38605
|
+
nextCursor: string$2().nullable().optional()
|
|
38606
|
+
}).loose().nullable().optional(),
|
|
38607
|
+
forges: object({
|
|
38608
|
+
github: record(string$2(), unknown$1()).nullable().optional(),
|
|
38609
|
+
azure_devops: record(string$2(), unknown$1()).nullable().optional(),
|
|
38610
|
+
gitlab: record(string$2(), unknown$1()).nullable().optional()
|
|
38611
|
+
}).loose().nullable().optional(),
|
|
38612
|
+
more: string$2().nullable().optional(),
|
|
38613
|
+
unreadable: array(record(string$2(), unknown$1()).nullable()).nullable().optional()
|
|
38614
|
+
}).loose(),
|
|
38615
|
+
taiga_list_packages: object({
|
|
38616
|
+
licenses: object({
|
|
38617
|
+
licenses: array(unknown$1()).nullable().optional(),
|
|
38618
|
+
allowlist: array(string$2().nullable()).nullable().optional(),
|
|
38619
|
+
productId: string$2().nullable().optional(),
|
|
38620
|
+
totalPackages: number$1().nullable().optional(),
|
|
38621
|
+
inventories: array(unknown$1()).nullable().optional()
|
|
38622
|
+
}).loose().nullable().optional(),
|
|
38623
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38624
|
+
nextCursor: string$2().nullable().optional(),
|
|
38625
|
+
totalCount: number$1().nullable().optional()
|
|
38626
|
+
}).loose(),
|
|
38627
|
+
taiga_list_product_people: object({
|
|
38628
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38629
|
+
more: string$2().nullable().optional()
|
|
38630
|
+
}).loose(),
|
|
38631
|
+
taiga_list_product_repositories: object({
|
|
38632
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38633
|
+
truncated: boolean().nullable().optional(),
|
|
38634
|
+
forges: object({
|
|
38635
|
+
github: record(string$2(), unknown$1()).nullable().optional(),
|
|
38636
|
+
azure_devops: record(string$2(), unknown$1()).nullable().optional()
|
|
38637
|
+
}).loose().nullable().optional()
|
|
38638
|
+
}).loose(),
|
|
38639
|
+
taiga_list_products: object({
|
|
38640
|
+
total: number$1().nullable().optional(),
|
|
38641
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38642
|
+
nextCursor: string$2().nullable().optional(),
|
|
38643
|
+
note: string$2().nullable().optional()
|
|
38644
|
+
}).loose(),
|
|
38645
|
+
taiga_list_repository_branches: object({
|
|
38646
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38647
|
+
truncated: boolean().nullable().optional()
|
|
38648
|
+
}).loose(),
|
|
38649
|
+
taiga_list_runs: object({
|
|
38650
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38651
|
+
nextCursor: string$2().nullable().optional(),
|
|
38652
|
+
note: string$2().nullable().optional()
|
|
38653
|
+
}).loose(),
|
|
38654
|
+
taiga_list_setup_tasks: object({
|
|
38655
|
+
data: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38656
|
+
nextCursor: unknown$1().optional(),
|
|
38657
|
+
recordsOnPage: number$1().nullable().optional()
|
|
38658
|
+
}).loose(),
|
|
38659
|
+
taiga_mark_product_document_reviewed: object({ reviewed: boolean().nullable().optional() }).loose(),
|
|
38660
|
+
taiga_merge_run: object({
|
|
38661
|
+
runId: string$2().nullable().optional(),
|
|
38662
|
+
merged: boolean().nullable().optional(),
|
|
38663
|
+
reason: string$2().nullable().optional(),
|
|
38664
|
+
detail: string$2().nullable().optional(),
|
|
38665
|
+
said: string$2().nullable().optional()
|
|
38666
|
+
}).loose(),
|
|
38667
|
+
taiga_move_initiative: object({
|
|
38668
|
+
id: string$2().nullable().optional(),
|
|
38669
|
+
productId: string$2().nullable().optional(),
|
|
38670
|
+
title: string$2().nullable().optional(),
|
|
38671
|
+
criteria: object({
|
|
38672
|
+
met: number$1().nullable().optional(),
|
|
38673
|
+
total: number$1().nullable().optional()
|
|
38674
|
+
}).loose().nullable().optional(),
|
|
38675
|
+
column: string$2().nullable().optional(),
|
|
38676
|
+
turn: string$2().nullable().optional(),
|
|
38677
|
+
situation: string$2().nullable().optional(),
|
|
38678
|
+
latestRun: unknown$1().optional(),
|
|
38679
|
+
archivedAt: string$2().nullable().optional()
|
|
38680
|
+
}).loose(),
|
|
38681
|
+
taiga_move_product: object({
|
|
38682
|
+
product: object({
|
|
38683
|
+
id: string$2().nullable().optional(),
|
|
38684
|
+
name: string$2().nullable().optional(),
|
|
38685
|
+
slug: string$2().nullable().optional(),
|
|
38686
|
+
status: string$2().nullable().optional(),
|
|
38687
|
+
factoryId: string$2().nullable().optional(),
|
|
38688
|
+
ownsInfrastructure: unknown$1().optional(),
|
|
38689
|
+
ownsDeployment: boolean().nullable().optional(),
|
|
38690
|
+
deploymentNotes: string$2().nullable().optional(),
|
|
38691
|
+
emitDesignStandards: unknown$1().optional(),
|
|
38692
|
+
projectType: string$2().nullable().optional(),
|
|
38693
|
+
readiness: record(string$2(), unknown$1()).nullable().optional()
|
|
38694
|
+
}).loose().nullable().optional(),
|
|
38695
|
+
changed: boolean().nullable().optional(),
|
|
38696
|
+
previousFactoryId: string$2().nullable().optional(),
|
|
38697
|
+
lineStopped: boolean().nullable().optional(),
|
|
38698
|
+
failedDocuments: array(unknown$1()).nullable().optional()
|
|
38699
|
+
}).loose(),
|
|
38700
|
+
taiga_pause_line: object({
|
|
38701
|
+
productId: string$2().nullable().optional(),
|
|
38702
|
+
linePaused: boolean().nullable().optional(),
|
|
38703
|
+
lineStoppedAt: string$2().nullable().optional()
|
|
38704
|
+
}).loose(),
|
|
38705
|
+
taiga_plan_again: object({
|
|
38706
|
+
id: string$2().nullable().optional(),
|
|
38707
|
+
productId: string$2().nullable().optional(),
|
|
38708
|
+
title: string$2().nullable().optional(),
|
|
38709
|
+
criteria: object({
|
|
38710
|
+
met: number$1().nullable().optional(),
|
|
38711
|
+
total: number$1().nullable().optional()
|
|
38712
|
+
}).loose().nullable().optional(),
|
|
38713
|
+
column: string$2().nullable().optional(),
|
|
38714
|
+
turn: string$2().nullable().optional(),
|
|
38715
|
+
situation: string$2().nullable().optional(),
|
|
38716
|
+
latestRun: unknown$1().optional()
|
|
38717
|
+
}).loose(),
|
|
38718
|
+
taiga_preview_product_markets: object({
|
|
38719
|
+
current: object({
|
|
38720
|
+
countries: array(string$2().nullable()).nullable().optional(),
|
|
38721
|
+
homeCountry: string$2().nullable().optional(),
|
|
38722
|
+
available: array(string$2().nullable()).nullable().optional(),
|
|
38723
|
+
withLayer: array(string$2().nullable()).nullable().optional(),
|
|
38724
|
+
notOfferedAtHome: boolean().nullable().optional()
|
|
38725
|
+
}).loose().nullable().optional(),
|
|
38726
|
+
documents: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38727
|
+
regulations: object({
|
|
38728
|
+
added: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38729
|
+
removed: array(unknown$1()).nullable().optional(),
|
|
38730
|
+
affectedProducts: number$1().nullable().optional()
|
|
38731
|
+
}).loose().nullable().optional()
|
|
38732
|
+
}).loose(),
|
|
38733
|
+
taiga_preview_product_move: object({
|
|
38734
|
+
sourceFactoryId: string$2().nullable().optional(),
|
|
38735
|
+
targetFactoryId: string$2().nullable().optional(),
|
|
38736
|
+
loses: array(unknown$1()).nullable().optional(),
|
|
38737
|
+
gains: array(unknown$1()).nullable().optional(),
|
|
38738
|
+
kept: array(unknown$1()).nullable().optional()
|
|
38739
|
+
}).loose(),
|
|
38740
|
+
taiga_publish_factory_document: object({
|
|
38741
|
+
id: string$2().nullable().optional(),
|
|
38742
|
+
type: string$2().nullable().optional(),
|
|
38743
|
+
name: string$2().nullable().optional(),
|
|
38744
|
+
version: number$1().nullable().optional(),
|
|
38745
|
+
isDraft: boolean().nullable().optional(),
|
|
38746
|
+
sections: array(unknown$1()).nullable().optional()
|
|
38747
|
+
}).loose(),
|
|
38748
|
+
taiga_publish_organization_document: object({
|
|
38749
|
+
id: string$2().nullable().optional(),
|
|
38750
|
+
type: string$2().nullable().optional(),
|
|
38751
|
+
name: string$2().nullable().optional(),
|
|
38752
|
+
version: number$1().nullable().optional(),
|
|
38753
|
+
isDraft: boolean().nullable().optional(),
|
|
38754
|
+
sections: array(string$2().nullable()).nullable().optional(),
|
|
38755
|
+
tokenAlignment: object({
|
|
38756
|
+
version: string$2().nullable().optional(),
|
|
38757
|
+
documentVersion: unknown$1().optional(),
|
|
38758
|
+
status: string$2().nullable().optional(),
|
|
38759
|
+
alignedAt: string$2().nullable().optional(),
|
|
38760
|
+
alignedBy: string$2().nullable().optional(),
|
|
38761
|
+
message: string$2().nullable().optional()
|
|
38762
|
+
}).loose().nullable().optional(),
|
|
38763
|
+
warnings: array(string$2().nullable()).nullable().optional()
|
|
38764
|
+
}).loose(),
|
|
38765
|
+
taiga_publish_product_document: object({
|
|
38766
|
+
id: string$2().nullable().optional(),
|
|
38767
|
+
type: string$2().nullable().optional(),
|
|
38768
|
+
version: number$1().nullable().optional(),
|
|
38769
|
+
isDraft: boolean().nullable().optional(),
|
|
38770
|
+
sections: array(string$2().nullable()).nullable().optional(),
|
|
38771
|
+
warnings: object({ unknownPolicyCitations: array(string$2().nullable()).nullable().optional() }).loose().nullable().optional()
|
|
38772
|
+
}).loose(),
|
|
38773
|
+
taiga_queue_initiative: object({
|
|
38774
|
+
id: string$2().nullable().optional(),
|
|
38775
|
+
productId: string$2().nullable().optional(),
|
|
38776
|
+
title: string$2().nullable().optional(),
|
|
38777
|
+
criteria: object({
|
|
38778
|
+
met: number$1().nullable().optional(),
|
|
38779
|
+
total: number$1().nullable().optional()
|
|
38780
|
+
}).loose().nullable().optional(),
|
|
38781
|
+
column: string$2().nullable().optional(),
|
|
38782
|
+
turn: string$2().nullable().optional(),
|
|
38783
|
+
situation: string$2().nullable().optional(),
|
|
38784
|
+
latestRun: unknown$1().optional(),
|
|
38785
|
+
reviewGate: object({
|
|
38786
|
+
buildsWithoutReview: boolean().nullable().optional(),
|
|
38787
|
+
decidedBy: string$2().nullable().optional(),
|
|
38788
|
+
meaning: string$2().nullable().optional()
|
|
38789
|
+
}).loose().nullable().optional(),
|
|
38790
|
+
queue: object({
|
|
38791
|
+
position: number$1().nullable().optional(),
|
|
38792
|
+
of: number$1().nullable().optional(),
|
|
38793
|
+
waitingOn: string$2().nullable().optional()
|
|
38794
|
+
}).loose().nullable().optional(),
|
|
38795
|
+
note: string$2().nullable().optional(),
|
|
38796
|
+
startedNow: boolean().nullable().optional(),
|
|
38797
|
+
autoBuild: boolean().nullable().optional()
|
|
38798
|
+
}).loose(),
|
|
38799
|
+
taiga_refresh_reality_documents: object({ jobId: string$2().nullable().optional() }).loose(),
|
|
38800
|
+
taiga_regenerate_product_document: object({
|
|
38801
|
+
id: string$2().nullable().optional(),
|
|
38802
|
+
type: string$2().nullable().optional(),
|
|
38803
|
+
documentType: string$2().nullable().optional(),
|
|
38804
|
+
status: string$2().nullable().optional()
|
|
38805
|
+
}).loose(),
|
|
38806
|
+
taiga_remove_model_connection: object({ removed: boolean().nullable().optional() }).loose(),
|
|
38807
|
+
taiga_remove_product_document_section: object({
|
|
38808
|
+
id: string$2().nullable().optional(),
|
|
38809
|
+
type: string$2().nullable().optional(),
|
|
38810
|
+
version: unknown$1().optional(),
|
|
38811
|
+
isDraft: boolean().nullable().optional(),
|
|
38812
|
+
origin: string$2().nullable().optional(),
|
|
38813
|
+
sections: array(string$2().nullable()).nullable().optional(),
|
|
38814
|
+
removed: string$2().nullable().optional()
|
|
38815
|
+
}).loose(),
|
|
38816
|
+
taiga_rename_factory: object({
|
|
38817
|
+
id: string$2().nullable().optional(),
|
|
38818
|
+
name: string$2().nullable().optional(),
|
|
38819
|
+
slug: string$2().nullable().optional(),
|
|
38820
|
+
isDefault: boolean().nullable().optional()
|
|
38821
|
+
}).loose(),
|
|
38822
|
+
taiga_reopen_discovery: object({
|
|
38823
|
+
id: string$2().nullable().optional(),
|
|
38824
|
+
name: string$2().nullable().optional(),
|
|
38825
|
+
slug: string$2().nullable().optional(),
|
|
38826
|
+
status: string$2().nullable().optional(),
|
|
38827
|
+
factoryId: string$2().nullable().optional(),
|
|
38828
|
+
ownsInfrastructure: unknown$1().optional(),
|
|
38829
|
+
ownsDeployment: boolean().nullable().optional(),
|
|
38830
|
+
deploymentNotes: string$2().nullable().optional(),
|
|
38831
|
+
emitDesignStandards: unknown$1().optional(),
|
|
38832
|
+
projectType: string$2().nullable().optional(),
|
|
38833
|
+
readiness: object({
|
|
38834
|
+
ready: unknown$1().optional(),
|
|
38835
|
+
repository: unknown$1().optional(),
|
|
38836
|
+
discoveryStep: unknown$1().optional(),
|
|
38837
|
+
missingDocuments: unknown$1().optional(),
|
|
38838
|
+
nextStep: string$2().nullable().optional()
|
|
38839
|
+
}).loose().nullable().optional()
|
|
38840
|
+
}).loose(),
|
|
38841
|
+
taiga_replace_license_package: object({
|
|
38842
|
+
initiativeIds: array(string$2().nullable()).nullable().optional(),
|
|
38843
|
+
raised: number$1().nullable().optional()
|
|
38844
|
+
}).loose(),
|
|
38845
|
+
taiga_request_changes: object({
|
|
38846
|
+
id: string$2().nullable().optional(),
|
|
38847
|
+
runNumber: number$1().nullable().optional(),
|
|
38848
|
+
initiativeId: string$2().nullable().optional(),
|
|
38849
|
+
status: string$2().nullable().optional(),
|
|
38850
|
+
completedSteps: number$1().nullable().optional(),
|
|
38851
|
+
totalSteps: number$1().nullable().optional(),
|
|
38852
|
+
prNumber: number$1().nullable().optional(),
|
|
38853
|
+
outcome: string$2().nullable().optional(),
|
|
38854
|
+
requestId: string$2().nullable().optional(),
|
|
38855
|
+
steer: string$2().nullable().optional(),
|
|
38856
|
+
situation: string$2().nullable().optional()
|
|
38857
|
+
}).loose(),
|
|
38858
|
+
taiga_request_initiatives: object({
|
|
38859
|
+
id: string$2().nullable().optional(),
|
|
38860
|
+
type: string$2().nullable().optional(),
|
|
38861
|
+
status: string$2().nullable().optional(),
|
|
38862
|
+
targetId: string$2().nullable().optional()
|
|
38863
|
+
}).loose(),
|
|
38864
|
+
taiga_resolve_action: object({
|
|
38865
|
+
id: string$2().nullable().optional(),
|
|
38866
|
+
status: string$2().nullable().optional()
|
|
38867
|
+
}).loose(),
|
|
38868
|
+
taiga_resume_initiative: object({
|
|
38869
|
+
id: string$2().nullable().optional(),
|
|
38870
|
+
productId: string$2().nullable().optional(),
|
|
38871
|
+
title: string$2().nullable().optional(),
|
|
38872
|
+
criteria: object({
|
|
38873
|
+
met: number$1().nullable().optional(),
|
|
38874
|
+
total: number$1().nullable().optional()
|
|
38875
|
+
}).loose().nullable().optional(),
|
|
38876
|
+
column: string$2().nullable().optional(),
|
|
38877
|
+
turn: string$2().nullable().optional(),
|
|
38878
|
+
situation: string$2().nullable().optional(),
|
|
38879
|
+
latestRun: unknown$1().optional()
|
|
38880
|
+
}).loose(),
|
|
38881
|
+
taiga_retry_knowledge: object({
|
|
38882
|
+
id: string$2().nullable().optional(),
|
|
38883
|
+
factoryId: string$2().nullable().optional(),
|
|
38884
|
+
productId: string$2().nullable().optional(),
|
|
38885
|
+
fileName: string$2().nullable().optional(),
|
|
38886
|
+
mime: string$2().nullable().optional(),
|
|
38887
|
+
status: string$2().nullable().optional(),
|
|
38888
|
+
deduplicated: boolean().nullable().optional()
|
|
38889
|
+
}).loose(),
|
|
38890
|
+
taiga_review_plan: object({
|
|
38891
|
+
id: string$2().nullable().optional(),
|
|
38892
|
+
productId: string$2().nullable().optional(),
|
|
38893
|
+
title: string$2().nullable().optional(),
|
|
38894
|
+
criteria: object({
|
|
38895
|
+
met: number$1().nullable().optional(),
|
|
38896
|
+
total: number$1().nullable().optional()
|
|
38897
|
+
}).loose().nullable().optional(),
|
|
38898
|
+
column: string$2().nullable().optional(),
|
|
38899
|
+
turn: string$2().nullable().optional(),
|
|
38900
|
+
situation: string$2().nullable().optional(),
|
|
38901
|
+
latestRun: unknown$1().optional()
|
|
38902
|
+
}).loose(),
|
|
38903
|
+
taiga_set_auto_build: object({
|
|
38904
|
+
id: string$2().nullable().optional(),
|
|
38905
|
+
productId: string$2().nullable().optional(),
|
|
38906
|
+
title: string$2().nullable().optional(),
|
|
38907
|
+
autoBuild: boolean().nullable().optional(),
|
|
38908
|
+
criteria: object({
|
|
38909
|
+
met: number$1().nullable().optional(),
|
|
38910
|
+
total: number$1().nullable().optional()
|
|
38911
|
+
}).loose().nullable().optional(),
|
|
38912
|
+
column: string$2().nullable().optional(),
|
|
38913
|
+
turn: string$2().nullable().optional(),
|
|
38914
|
+
situation: string$2().nullable().optional(),
|
|
38915
|
+
latestRun: unknown$1().optional(),
|
|
38916
|
+
reviewGate: object({
|
|
38917
|
+
buildsWithoutReview: boolean().nullable().optional(),
|
|
38918
|
+
decidedBy: string$2().nullable().optional(),
|
|
38919
|
+
meaning: string$2().nullable().optional()
|
|
38920
|
+
}).loose().nullable().optional(),
|
|
38921
|
+
note: string$2().nullable().optional()
|
|
38922
|
+
}).loose(),
|
|
38923
|
+
taiga_set_auto_merge: object({
|
|
38924
|
+
id: string$2().nullable().optional(),
|
|
38925
|
+
title: string$2().nullable().optional(),
|
|
38926
|
+
autoMerge: boolean().nullable().optional()
|
|
38927
|
+
}).loose(),
|
|
38928
|
+
taiga_set_model_connection: object({
|
|
38929
|
+
id: string$2().nullable().optional(),
|
|
38930
|
+
kind: string$2().nullable().optional(),
|
|
38931
|
+
baseUrl: string$2().nullable().optional(),
|
|
38932
|
+
keyHint: string$2().nullable().optional(),
|
|
38933
|
+
roleArn: unknown$1().optional(),
|
|
38934
|
+
region: unknown$1().optional(),
|
|
38935
|
+
createdAt: string$2().nullable().optional(),
|
|
38936
|
+
updatedAt: string$2().nullable().optional()
|
|
38937
|
+
}).loose(),
|
|
38938
|
+
taiga_set_product_autonomy: object({
|
|
38939
|
+
id: string$2().nullable().optional(),
|
|
38940
|
+
name: string$2().nullable().optional(),
|
|
38941
|
+
autoBuild: boolean().nullable().optional(),
|
|
38942
|
+
autoMerge: unknown$1().optional(),
|
|
38943
|
+
signalAutonomy: object({
|
|
38944
|
+
vulnerable_dependency_exploited: record(string$2(), unknown$1()).nullable().optional(),
|
|
38945
|
+
vulnerable_dependency_severe: record(string$2(), unknown$1()).nullable().optional()
|
|
38946
|
+
}).loose().nullable().optional(),
|
|
38947
|
+
dailyFixLimit: object({
|
|
38948
|
+
limit: number$1().nullable().optional(),
|
|
38949
|
+
setBy: string$2().nullable().optional()
|
|
38950
|
+
}).loose().nullable().optional()
|
|
38951
|
+
}).loose(),
|
|
38952
|
+
taiga_set_product_markets: object({
|
|
38953
|
+
current: object({
|
|
38954
|
+
countries: array(string$2().nullable()).nullable().optional(),
|
|
38955
|
+
homeCountry: string$2().nullable().optional(),
|
|
38956
|
+
available: array(string$2().nullable()).nullable().optional(),
|
|
38957
|
+
withLayer: array(string$2().nullable()).nullable().optional(),
|
|
38958
|
+
notOfferedAtHome: boolean().nullable().optional()
|
|
38959
|
+
}).loose().nullable().optional(),
|
|
38960
|
+
documents: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38961
|
+
regulations: object({
|
|
38962
|
+
added: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
38963
|
+
removed: array(unknown$1()).nullable().optional(),
|
|
38964
|
+
affectedProducts: number$1().nullable().optional()
|
|
38965
|
+
}).loose().nullable().optional()
|
|
38966
|
+
}).loose(),
|
|
38967
|
+
taiga_set_repository_branch: object({
|
|
38968
|
+
id: string$2().nullable().optional(),
|
|
38969
|
+
provider: string$2().nullable().optional(),
|
|
38970
|
+
repositoryName: string$2().nullable().optional(),
|
|
38971
|
+
repositoryUrl: string$2().nullable().optional(),
|
|
38972
|
+
repositoryDefaultBranch: string$2().nullable().optional(),
|
|
38973
|
+
baseBranch: string$2().nullable().optional(),
|
|
38974
|
+
effectiveBranch: string$2().nullable().optional(),
|
|
38975
|
+
buildable: boolean().nullable().optional(),
|
|
38976
|
+
isManaged: boolean().nullable().optional(),
|
|
38977
|
+
baseBranchProtection: unknown$1().optional()
|
|
38978
|
+
}).loose(),
|
|
38979
|
+
taiga_ship_notices: object({
|
|
38980
|
+
initiativeId: string$2().nullable().optional(),
|
|
38981
|
+
created: boolean().nullable().optional()
|
|
38982
|
+
}).loose(),
|
|
38983
|
+
taiga_start_import: object({ jobId: string$2().nullable().optional() }).loose(),
|
|
38984
|
+
taiga_start_sweep: object({
|
|
38985
|
+
sweepId: string$2().nullable().optional(),
|
|
38986
|
+
productId: string$2().nullable().optional(),
|
|
38987
|
+
status: string$2().nullable().optional()
|
|
38988
|
+
}).loose(),
|
|
38989
|
+
taiga_stop_generating_documents: object({ cancelledJobIds: array(string$2().nullable()).nullable().optional() }).loose(),
|
|
38990
|
+
taiga_stop_run: object({
|
|
38991
|
+
id: string$2().nullable().optional(),
|
|
38992
|
+
runNumber: number$1().nullable().optional(),
|
|
38993
|
+
initiativeId: string$2().nullable().optional(),
|
|
38994
|
+
status: string$2().nullable().optional(),
|
|
38995
|
+
failedReason: string$2().nullable().optional(),
|
|
38996
|
+
completedSteps: number$1().nullable().optional(),
|
|
38997
|
+
totalSteps: number$1().nullable().optional(),
|
|
38998
|
+
prUrl: string$2().nullable().optional(),
|
|
38999
|
+
actions: array(string$2().nullable()).nullable().optional(),
|
|
39000
|
+
failedReasonMeans: string$2().nullable().optional(),
|
|
39001
|
+
outcome: string$2().nullable().optional(),
|
|
39002
|
+
webOnlyActions: array(string$2().nullable()).nullable().optional(),
|
|
39003
|
+
prNumber: number$1().nullable().optional(),
|
|
39004
|
+
prDraft: boolean().nullable().optional()
|
|
39005
|
+
}).loose(),
|
|
39006
|
+
taiga_sync_design_tokens: object({
|
|
39007
|
+
jobId: string$2().nullable().optional(),
|
|
39008
|
+
status: string$2().nullable().optional(),
|
|
39009
|
+
next: string$2().nullable().optional()
|
|
39010
|
+
}).loose(),
|
|
39011
|
+
taiga_unlink_repository: object({
|
|
39012
|
+
linkId: string$2().nullable().optional(),
|
|
39013
|
+
unlinked: boolean().nullable().optional()
|
|
39014
|
+
}).loose(),
|
|
39015
|
+
taiga_update_design_tokens: object({
|
|
39016
|
+
changed: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
39017
|
+
alignment: object({
|
|
39018
|
+
version: string$2().nullable().optional(),
|
|
39019
|
+
documentVersion: unknown$1().optional(),
|
|
39020
|
+
status: string$2().nullable().optional(),
|
|
39021
|
+
alignedAt: string$2().nullable().optional(),
|
|
39022
|
+
alignedBy: string$2().nullable().optional(),
|
|
39023
|
+
message: string$2().nullable().optional()
|
|
39024
|
+
}).loose().nullable().optional()
|
|
39025
|
+
}).loose(),
|
|
39026
|
+
taiga_update_environment: object({
|
|
39027
|
+
id: string$2().nullable().optional(),
|
|
39028
|
+
name: string$2().nullable().optional(),
|
|
39029
|
+
slug: string$2().nullable().optional(),
|
|
39030
|
+
type: string$2().nullable().optional(),
|
|
39031
|
+
url: string$2().nullable().optional()
|
|
39032
|
+
}).loose(),
|
|
39033
|
+
taiga_update_factory_document: object({
|
|
39034
|
+
id: string$2().nullable().optional(),
|
|
39035
|
+
type: string$2().nullable().optional(),
|
|
39036
|
+
name: string$2().nullable().optional(),
|
|
39037
|
+
version: number$1().nullable().optional(),
|
|
39038
|
+
isDraft: boolean().nullable().optional(),
|
|
39039
|
+
sections: array(string$2().nullable()).nullable().optional(),
|
|
39040
|
+
section: object({
|
|
39041
|
+
id: string$2().nullable().optional(),
|
|
39042
|
+
content: string$2().nullable().optional()
|
|
39043
|
+
}).loose().nullable().optional()
|
|
39044
|
+
}).loose(),
|
|
39045
|
+
taiga_update_initiative: object({
|
|
39046
|
+
id: string$2().nullable().optional(),
|
|
39047
|
+
productId: string$2().nullable().optional(),
|
|
39048
|
+
title: string$2().nullable().optional(),
|
|
39049
|
+
criteria: object({
|
|
39050
|
+
met: number$1().nullable().optional(),
|
|
39051
|
+
total: number$1().nullable().optional()
|
|
39052
|
+
}).loose().nullable().optional(),
|
|
39053
|
+
column: string$2().nullable().optional(),
|
|
39054
|
+
turn: unknown$1().optional(),
|
|
39055
|
+
latestRun: unknown$1().optional(),
|
|
39056
|
+
unchanged: string$2().nullable().optional(),
|
|
39057
|
+
linkedKnowledge: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
39058
|
+
unlinkedKnowledge: array(record(string$2(), unknown$1()).nullable()).nullable().optional(),
|
|
39059
|
+
assigneeId: string$2().nullable().optional()
|
|
39060
|
+
}).loose(),
|
|
39061
|
+
taiga_update_organization_document: object({
|
|
39062
|
+
id: string$2().nullable().optional(),
|
|
39063
|
+
type: string$2().nullable().optional(),
|
|
39064
|
+
name: string$2().nullable().optional(),
|
|
39065
|
+
version: number$1().nullable().optional(),
|
|
39066
|
+
isDraft: boolean().nullable().optional(),
|
|
39067
|
+
sections: array(string$2().nullable()).nullable().optional(),
|
|
39068
|
+
section: object({
|
|
39069
|
+
id: string$2().nullable().optional(),
|
|
39070
|
+
content: string$2().nullable().optional()
|
|
39071
|
+
}).loose().nullable().optional(),
|
|
39072
|
+
tokenAlignment: object({
|
|
39073
|
+
version: string$2().nullable().optional(),
|
|
39074
|
+
documentVersion: unknown$1().optional(),
|
|
39075
|
+
status: string$2().nullable().optional(),
|
|
39076
|
+
alignedAt: string$2().nullable().optional(),
|
|
39077
|
+
alignedBy: string$2().nullable().optional(),
|
|
39078
|
+
message: string$2().nullable().optional()
|
|
39079
|
+
}).loose().nullable().optional(),
|
|
39080
|
+
hint: string$2().nullable().optional(),
|
|
39081
|
+
revision: string$2().nullable().optional()
|
|
39082
|
+
}).loose(),
|
|
39083
|
+
taiga_update_product: object({
|
|
39084
|
+
id: string$2().nullable().optional(),
|
|
39085
|
+
name: string$2().nullable().optional(),
|
|
39086
|
+
slug: string$2().nullable().optional(),
|
|
39087
|
+
status: string$2().nullable().optional(),
|
|
39088
|
+
factoryId: string$2().nullable().optional(),
|
|
39089
|
+
ownsInfrastructure: boolean().nullable().optional(),
|
|
39090
|
+
ownsDeployment: boolean().nullable().optional(),
|
|
39091
|
+
deploymentNotes: string$2().nullable().optional(),
|
|
39092
|
+
emitDesignStandards: unknown$1().optional(),
|
|
39093
|
+
projectType: string$2().nullable().optional(),
|
|
39094
|
+
readiness: object({
|
|
39095
|
+
ready: boolean().nullable().optional(),
|
|
39096
|
+
repository: record(string$2(), unknown$1()).nullable().optional(),
|
|
39097
|
+
discoveryStep: string$2().nullable().optional(),
|
|
39098
|
+
missingDocuments: array(string$2().nullable()).nullable().optional(),
|
|
39099
|
+
nextStep: string$2().nullable().optional(),
|
|
39100
|
+
import: string$2().nullable().optional()
|
|
39101
|
+
}).loose().nullable().optional(),
|
|
39102
|
+
networkAccess: string$2().nullable().optional(),
|
|
39103
|
+
networkHosts: array(string$2().nullable()).nullable().optional(),
|
|
39104
|
+
warnings: array(string$2().nullable()).nullable().optional()
|
|
39105
|
+
}).loose(),
|
|
39106
|
+
taiga_update_product_document: object({
|
|
39107
|
+
id: string$2().nullable().optional(),
|
|
39108
|
+
type: string$2().nullable().optional(),
|
|
39109
|
+
version: number$1().nullable().optional(),
|
|
39110
|
+
isDraft: boolean().nullable().optional(),
|
|
39111
|
+
sections: array(string$2().nullable()).nullable().optional(),
|
|
39112
|
+
section: object({
|
|
39113
|
+
id: string$2().nullable().optional(),
|
|
39114
|
+
content: string$2().nullable().optional()
|
|
39115
|
+
}).loose().nullable().optional(),
|
|
39116
|
+
origin: string$2().nullable().optional()
|
|
39117
|
+
}).loose(),
|
|
39118
|
+
taiga_wait: object({
|
|
39119
|
+
reached: boolean().nullable().optional(),
|
|
39120
|
+
waitedSeconds: number$1().nullable().optional(),
|
|
39121
|
+
job: object({
|
|
39122
|
+
id: string$2().nullable().optional(),
|
|
39123
|
+
type: string$2().nullable().optional(),
|
|
39124
|
+
status: string$2().nullable().optional(),
|
|
39125
|
+
progress: number$1().nullable().optional(),
|
|
39126
|
+
outcome: record(string$2(), unknown$1()).nullable().optional()
|
|
39127
|
+
}).loose().nullable().optional(),
|
|
39128
|
+
until: string$2().nullable().optional(),
|
|
39129
|
+
stoppedBecause: string$2().nullable().optional(),
|
|
39130
|
+
item: object({
|
|
39131
|
+
id: string$2().nullable().optional(),
|
|
39132
|
+
title: string$2().nullable().optional(),
|
|
39133
|
+
autoBuild: boolean().nullable().optional(),
|
|
39134
|
+
column: string$2().nullable().optional(),
|
|
39135
|
+
turn: string$2().nullable().optional(),
|
|
39136
|
+
situation: string$2().nullable().optional(),
|
|
39137
|
+
latestRun: record(string$2(), unknown$1()).nullable().optional(),
|
|
39138
|
+
criteria: record(string$2(), unknown$1()).nullable().optional()
|
|
39139
|
+
}).loose().nullable().optional(),
|
|
39140
|
+
run: object({
|
|
39141
|
+
id: string$2().nullable().optional(),
|
|
39142
|
+
status: string$2().nullable().optional(),
|
|
39143
|
+
completedSteps: number$1().nullable().optional(),
|
|
39144
|
+
prUrl: string$2().nullable().optional(),
|
|
39145
|
+
prState: string$2().nullable().optional(),
|
|
39146
|
+
prMerged: boolean().nullable().optional(),
|
|
39147
|
+
outcome: string$2().nullable().optional(),
|
|
39148
|
+
failedReason: string$2().nullable().optional()
|
|
39149
|
+
}).loose().nullable().optional()
|
|
39150
|
+
}).loose(),
|
|
39151
|
+
taiga_whoami: object({
|
|
39152
|
+
api: string$2().nullable().optional(),
|
|
39153
|
+
email: string$2().nullable().optional(),
|
|
39154
|
+
role: string$2().nullable().optional(),
|
|
39155
|
+
scopes: unknown$1().optional(),
|
|
39156
|
+
capabilities: array(string$2().nullable()).nullable().optional(),
|
|
39157
|
+
tools: object({
|
|
39158
|
+
reads: array(string$2().nullable()).nullable().optional(),
|
|
39159
|
+
writes: array(string$2().nullable()).nullable().optional(),
|
|
39160
|
+
askFirstPaid: array(string$2().nullable()).nullable().optional(),
|
|
39161
|
+
askFirstShared: array(string$2().nullable()).nullable().optional()
|
|
39162
|
+
}).loose().nullable().optional(),
|
|
39163
|
+
toolsets: object({
|
|
39164
|
+
on: array(string$2().nullable()).nullable().optional(),
|
|
39165
|
+
off: record(string$2(), unknown$1()).nullable().optional(),
|
|
39166
|
+
howToTurnOn: string$2().nullable().optional()
|
|
39167
|
+
}).loose().nullable().optional()
|
|
39168
|
+
}).loose()
|
|
39169
|
+
};
|
|
39170
|
+
//#endregion
|
|
37773
39171
|
//#region src/tools/annotations.ts
|
|
37774
39172
|
/**
|
|
37775
39173
|
* Tool annotations shared by the tools. Hints for the client, not a
|
|
@@ -38133,12 +39531,20 @@ const roundFloats = (_key, value) => typeof value === "number" && Number.isFinit
|
|
|
38133
39531
|
function serializeResult(value) {
|
|
38134
39532
|
return JSON.stringify(inProductWords(value), roundFloats);
|
|
38135
39533
|
}
|
|
38136
|
-
/**
|
|
39534
|
+
/**
|
|
39535
|
+
* A successful tool result (PRO-2848): one JSON text block the model reads, and the same value as `structuredContent`
|
|
39536
|
+
* for a client or code that reads the result typed, which the tool's `outputSchema` (output-schemas.ts) describes.
|
|
39537
|
+
* Both are what the model reads, in the product's words; the text stays for clients that show the model only text.
|
|
39538
|
+
*/
|
|
38137
39539
|
function toolResult(value) {
|
|
38138
|
-
|
|
38139
|
-
|
|
38140
|
-
|
|
38141
|
-
|
|
39540
|
+
const text = serializeResult(value);
|
|
39541
|
+
return {
|
|
39542
|
+
content: [{
|
|
39543
|
+
type: "text",
|
|
39544
|
+
text
|
|
39545
|
+
}],
|
|
39546
|
+
structuredContent: JSON.parse(text)
|
|
39547
|
+
};
|
|
38142
39548
|
}
|
|
38143
39549
|
/**
|
|
38144
39550
|
* A failed tool result the model can branch on: a stable code and a message
|
|
@@ -60615,8 +62021,11 @@ function withStrictInputs(server, client, registered, toolsets, left) {
|
|
|
60615
62021
|
const answer = await withIdKind(client, args, await notFoundHints.run(notFoundHint(name, args), () => handler(args, ctx)));
|
|
60616
62022
|
return name === "taiga_whoami" ? answer : withToolsetNote(answer, left);
|
|
60617
62023
|
};
|
|
62024
|
+
const outputSchema = OUTPUT_SCHEMAS[name];
|
|
62025
|
+
if (!outputSchema) throw new Error(`Tool ${name}: no outputSchema in output-schemas.ts`);
|
|
60618
62026
|
const described = {
|
|
60619
62027
|
...config,
|
|
62028
|
+
outputSchema,
|
|
60620
62029
|
description: `${writeNotice(name, config.annotations)}${describe(name, config.description)}`,
|
|
60621
62030
|
...ALWAYS_LOAD.has(name) ? { _meta: { "anthropic/alwaysLoad": true } } : {}
|
|
60622
62031
|
};
|