type MissionVersion = {
brief: string;
contentDigest: string;
createdAt: string;
currency: string;
digest: string;
durationDays: number;
endpoints: string[] | null;
envelopeRef: string;
exemptFromWalletBudgets: boolean;
frequency: | {
count: number;
period: "day" | "week" | "month";
}
| null;
id: string;
maxActiveRunsPerWallet: number;
maxPaymentRef: string | null;
mode: "on_demand" | "auto" | "frequency";
number: number;
overrides: {
applicationId?: string;
channel?: "x402" | "relay";
kind: "budget" | "destination" | "payment_cap";
scope?: "application" | "organization";
value?: string;
}[];
overridesApproval: | {
approvedAt: string;
approvedBy: string;
digest: string;
}
| null;
publishedAt: string | null;
publishedBy: string | null;
recipients: string[] | null;
sharing: "application" | "organization" | "wallet";
status: "draft" | "published" | "superseded" | "discarded";
title: string;
totalBudgetRef: string | null;
unitCount: number | null;
unitLabel: string | null;
unitPriceRef: string | null;
updatedAt: string;
walletId: string;
};