|
1 | 1 | // Gateway Protocol schema module defines durable cross-surface approval shapes. |
2 | 2 | import { Type } from "typebox"; |
| 3 | +import type { Static } from "typebox"; |
3 | 4 | import { NonEmptyString } from "./primitives.js"; |
4 | 5 |
|
5 | 6 | const APPROVAL_ID_WELL_FORMED_UNICODE_PATTERN = |
@@ -225,3 +226,25 @@ export const ApprovalResolveResultSchema = Type.Object( |
225 | 226 | }, |
226 | 227 | { additionalProperties: false }, |
227 | 228 | ); |
| 229 | + |
| 230 | +// These types are plugin-SDK-reachable through approval presentation. Export |
| 231 | +// them from the owner module so public declarations do not retain ProtocolSchemas. |
| 232 | +export type ApprovalKind = Static<typeof ApprovalKindSchema>; |
| 233 | +export type ApprovalDecision = Static<typeof ApprovalDecisionSchema>; |
| 234 | +export type ApprovalAllowDecision = Static<typeof ApprovalAllowDecisionSchema>; |
| 235 | +export type ApprovalTerminalReason = Static<typeof ApprovalTerminalReasonSchema>; |
| 236 | +export type PluginApprovalSeverity = Static<typeof PluginApprovalSeveritySchema>; |
| 237 | +export type ExecApprovalPresentation = Static<typeof ExecApprovalPresentationSchema>; |
| 238 | +export type PluginApprovalPresentation = Static<typeof PluginApprovalPresentationSchema>; |
| 239 | +export type ApprovalPresentation = Static<typeof ApprovalPresentationSchema>; |
| 240 | +export type PendingApprovalSnapshot = Static<typeof PendingApprovalSnapshotSchema>; |
| 241 | +export type AllowedApprovalSnapshot = Static<typeof AllowedApprovalSnapshotSchema>; |
| 242 | +export type DeniedApprovalSnapshot = Static<typeof DeniedApprovalSnapshotSchema>; |
| 243 | +export type ExpiredApprovalSnapshot = Static<typeof ExpiredApprovalSnapshotSchema>; |
| 244 | +export type CancelledApprovalSnapshot = Static<typeof CancelledApprovalSnapshotSchema>; |
| 245 | +export type ApprovalSnapshot = Static<typeof ApprovalSnapshotSchema>; |
| 246 | +export type TerminalApprovalSnapshot = Static<typeof TerminalApprovalSnapshotSchema>; |
| 247 | +export type ApprovalGetParams = Static<typeof ApprovalGetParamsSchema>; |
| 248 | +export type ApprovalGetResult = Static<typeof ApprovalGetResultSchema>; |
| 249 | +export type ApprovalResolveParams = Static<typeof ApprovalResolveParamsSchema>; |
| 250 | +export type ApprovalResolveResult = Static<typeof ApprovalResolveResultSchema>; |
0 commit comments