const missionSchema: z.ZodObject<{
createdAt: z.ZodISODateTime;
createdBy: z.ZodNullable<z.ZodString>;
createdVia: z.ZodEnum<{
ApiKey: "api_key";
Session: "session";
}>;
draft: z.ZodNullable<z.ZodObject<{
brief: z.ZodString;
contentDigest: z.ZodString;
createdAt: z.ZodISODateTime;
currency: z.ZodString;
digest: z.ZodString;
durationDays: z.ZodNumber;
endpoints: z.ZodNullable<z.ZodArray<z.ZodString>>;
envelopeRef: z.ZodString;
exemptFromWalletBudgets: z.ZodBoolean;
frequency: z.ZodNullable<z.ZodObject<{
count: z.ZodNumber;
period: z.ZodEnum<{
Day: "day";
Month: "month";
Week: "week";
}>;
}, z.core.$strip>>;
id: z.ZodUUID;
maxActiveRunsPerWallet: z.ZodNumber;
maxPaymentRef: z.ZodNullable<z.ZodString>;
mode: z.ZodEnum<{
Auto: "auto";
Frequency: "frequency";
OnDemand: "on_demand";
}>;
number: z.ZodNumber;
overrides: z.ZodArray<z.ZodObject<{
applicationId: z.ZodOptional<z.ZodUUID>;
channel: z.ZodOptional<z.ZodEnum<{
relay: ...;
x402: ...;
}>>;
kind: z.ZodEnum<{
Budget: "budget";
Destination: "destination";
PaymentCap: "payment_cap";
}>;
scope: z.ZodOptional<z.ZodEnum<{
application: ...;
organization: ...;
}>>;
value: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
overridesApproval: z.ZodNullable<z.ZodObject<{
approvedAt: z.ZodISODateTime;
approvedBy: z.ZodString;
digest: z.ZodString;
}, z.core.$strip>>;
publishedAt: z.ZodNullable<z.ZodISODateTime>;
publishedBy: z.ZodNullable<z.ZodString>;
recipients: z.ZodNullable<z.ZodArray<z.ZodString>>;
sharing: z.ZodEnum<{
Application: "application";
Organization: "organization";
Wallet: "wallet";
}>;
status: z.ZodEnum<{
Discarded: "discarded";
Draft: "draft";
Published: "published";
Superseded: "superseded";
}>;
title: z.ZodString;
totalBudgetRef: z.ZodNullable<z.ZodString>;
unitCount: z.ZodNullable<z.ZodNumber>;
unitLabel: z.ZodNullable<z.ZodString>;
unitPriceRef: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodISODateTime;
walletId: z.ZodUUID;
}, z.core.$strip>>;
homeWalletId: z.ZodUUID;
id: z.ZodUUID;
key: z.ZodString;
limits: z.ZodArray<z.ZodObject<{
kind: z.ZodEnum<{
frequency: "frequency";
total_budget: "total_budget";
}>;
retryAt: z.ZodNullable<z.ZodISODateTime>;
walletId: z.ZodNullable<z.ZodUUID>;
}, z.core.$strip>>;
published: z.ZodNullable<z.ZodObject<{
brief: z.ZodString;
contentDigest: z.ZodString;
createdAt: z.ZodISODateTime;
currency: z.ZodString;
digest: z.ZodString;
durationDays: z.ZodNumber;
endpoints: z.ZodNullable<z.ZodArray<z.ZodString>>;
envelopeRef: z.ZodString;
exemptFromWalletBudgets: z.ZodBoolean;
frequency: z.ZodNullable<z.ZodObject<{
count: z.ZodNumber;
period: z.ZodEnum<{
Day: "day";
Month: "month";
Week: "week";
}>;
}, z.core.$strip>>;
id: z.ZodUUID;
maxActiveRunsPerWallet: z.ZodNumber;
maxPaymentRef: z.ZodNullable<z.ZodString>;
mode: z.ZodEnum<{
Auto: "auto";
Frequency: "frequency";
OnDemand: "on_demand";
}>;
number: z.ZodNumber;
overrides: z.ZodArray<z.ZodObject<{
applicationId: z.ZodOptional<z.ZodUUID>;
channel: z.ZodOptional<z.ZodEnum<{
relay: ...;
x402: ...;
}>>;
kind: z.ZodEnum<{
Budget: "budget";
Destination: "destination";
PaymentCap: "payment_cap";
}>;
scope: z.ZodOptional<z.ZodEnum<{
application: ...;
organization: ...;
}>>;
value: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
overridesApproval: z.ZodNullable<z.ZodObject<{
approvedAt: z.ZodISODateTime;
approvedBy: z.ZodString;
digest: z.ZodString;
}, z.core.$strip>>;
publishedAt: z.ZodNullable<z.ZodISODateTime>;
publishedBy: z.ZodNullable<z.ZodString>;
recipients: z.ZodNullable<z.ZodArray<z.ZodString>>;
sharing: z.ZodEnum<{
Application: "application";
Organization: "organization";
Wallet: "wallet";
}>;
status: z.ZodEnum<{
Discarded: "discarded";
Draft: "draft";
Published: "published";
Superseded: "superseded";
}>;
title: z.ZodString;
totalBudgetRef: z.ZodNullable<z.ZodString>;
unitCount: z.ZodNullable<z.ZodNumber>;
unitLabel: z.ZodNullable<z.ZodString>;
unitPriceRef: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodISODateTime;
walletId: z.ZodUUID;
}, z.core.$strip>>;
stats: z.ZodObject<{
averageEnvelopeRef: z.ZodNullable<z.ZodString>;
observedUnitPriceRef: z.ZodNullable<z.ZodString>;
remainingTotalRef: z.ZodNullable<z.ZodString>;
runsByStatus: z.ZodRecord<z.ZodEnum<{
Abandoned: "abandoned";
Active: "active";
Cancelled: "cancelled";
Completed: "completed";
Declined: "declined";
Expired: "expired";
PendingApproval: "pending_approval";
}>, z.ZodNumber>;
spentRef: z.ZodString;
}, z.core.$strip>;
status: z.ZodEnum<{
Active: "active";
Archived: "archived";
}>;
updatedAt: z.ZodISODateTime;
}, z.core.$strip>;