Skip to content
Open
230 changes: 230 additions & 0 deletions apps/gittensory-ui/public/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3508,6 +3508,235 @@
"summary"
]
},
"onboardingPackPreview": {
"type": "object",
"nullable": true,
"properties": {
"repoFullName": {
"type": "string"
},
"generatedAt": {
"type": "string"
},
"source": {
"type": "string",
"enum": [
"policy_compiler"
]
},
"previewOnly": {
"type": "boolean",
"enum": [
true
]
},
"publicSafe": {
"type": "boolean",
"enum": [
true
]
},
"contributionLanes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"summary": {
"type": "string"
},
"preferredPaths": {
"type": "array",
"items": {
"type": "string"
}
},
"discouragedPaths": {
"type": "array",
"items": {
"type": "string"
}
},
"validationExpectations": {
"type": "array",
"items": {
"type": "string"
}
},
"publicNotes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"id",
"title",
"summary",
"preferredPaths",
"discouragedPaths",
"validationExpectations",
"publicNotes"
]
}
},
"labelPolicy": {
"type": "object",
"properties": {
"preferredLabels": {
"type": "array",
"items": {
"type": "string"
}
},
"requiredLabels": {
"type": "array",
"items": {
"type": "string"
}
},
"discouragedLabels": {
"type": "array",
"items": {
"type": "string"
}
},
"note": {
"type": "string",
"nullable": true
}
},
"required": [
"preferredLabels",
"requiredLabels",
"discouragedLabels",
"note"
]
},
"validationExpectations": {
"type": "array",
"items": {
"type": "string"
}
},
"readinessWarnings": {
"type": "array",
"items": {
"type": "string"
}
},
"maintainerExpectations": {
"type": "array",
"items": {
"type": "string"
}
},
"publicOutputBoundaries": {
"type": "array",
"items": {
"type": "string"
}
},
"previewMarkdown": {
"type": "string"
},
"droppedPublicItems": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"reason": {
"type": "string",
"enum": [
"empty",
"unsafe_public_text"
]
}
},
"required": [
"field",
"reason"
]
}
},
"privateOwnerContext": {
"type": "object",
"properties": {
"itemCount": {
"type": "number"
},
"includedInPublicPreview": {
"type": "boolean",
"enum": [
false
]
}
},
"required": [
"itemCount",
"includedInPublicPreview"
]
},
"publication": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"preview_only"
]
},
"allowed": {
"type": "boolean",
"enum": [
false
]
},
"actions": {
"type": "array",
"items": {
"type": "string"
}
},
"reason": {
"type": "string"
}
},
"required": [
"status",
"allowed",
"actions",
"reason"
]
}
},
"required": [
"repoFullName",
"generatedAt",
"source",
"previewOnly",
"publicSafe",
"contributionLanes",
"labelPolicy",
"validationExpectations",
"readinessWarnings",
"maintainerExpectations",
"publicOutputBoundaries",
"previewMarkdown",
"droppedPublicItems",
"privateOwnerContext",
"publication"
]
},
"blockers": {
"type": "array",
"items": {
Expand Down Expand Up @@ -3543,6 +3772,7 @@
"docsCompleteness",
"githubApp",
"policyReadiness",
"onboardingPackPreview",
"blockers",
"warnings",
"dataQuality"
Expand Down
47 changes: 47 additions & 0 deletions src/openapi/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1754,6 +1754,53 @@ export const RegistrationReadinessSchema = z
summary: z.string(),
})
.nullable(),
onboardingPackPreview: z
.object({
repoFullName: z.string(),
generatedAt: z.string(),
source: z.enum(["policy_compiler"]),
previewOnly: z.literal(true),
publicSafe: z.literal(true),
contributionLanes: z.array(
z.object({
id: z.string(),
title: z.string(),
summary: z.string(),
preferredPaths: z.array(z.string()),
discouragedPaths: z.array(z.string()),
validationExpectations: z.array(z.string()),
publicNotes: z.array(z.string()),
}),
),
labelPolicy: z.object({
preferredLabels: z.array(z.string()),
requiredLabels: z.array(z.string()),
discouragedLabels: z.array(z.string()),
note: z.string().nullable(),
}),
validationExpectations: z.array(z.string()),
readinessWarnings: z.array(z.string()),
maintainerExpectations: z.array(z.string()),
publicOutputBoundaries: z.array(z.string()),
previewMarkdown: z.string(),
droppedPublicItems: z.array(
z.object({
field: z.string(),
reason: z.enum(["empty", "unsafe_public_text"]),
}),
),
privateOwnerContext: z.object({
itemCount: z.number(),
includedInPublicPreview: z.literal(false),
}),
publication: z.object({
status: z.enum(["preview_only"]),
allowed: z.literal(false),
actions: z.array(z.string()),
reason: z.string(),
}),
})
.nullable(),
blockers: z.array(z.string()),
warnings: z.array(z.string()),
dataQuality: z.record(z.string(), z.unknown()),
Expand Down
Loading