Skip to main content

Variable.missionRunSchema

const missionRunSchema: z.ZodObject<{
approval: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"publication">;
publishedBy: z.ZodNullable<z.ZodString>;
versionDigest: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
decidedAt: z.ZodISODateTime;
decidedBy: z.ZodString;
kind: z.ZodLiteral<"human">;
}, z.core.$strip>], "kind">>;
completedAt: z.ZodNullable<z.ZodISODateTime>;
createdAt: z.ZodISODateTime;
currency: z.ZodString;
decidedAt: z.ZodNullable<z.ZodISODateTime>;
decidedBy: z.ZodNullable<z.ZodString>;
endpoints: z.ZodNullable<z.ZodArray<z.ZodString>>;
envelopeRef: z.ZodString;
events: z.ZodArray<z.ZodObject<{
actor: z.ZodNullable<z.ZodString>;
createdAt: z.ZodISODateTime;
id: z.ZodUUID;
kind: z.ZodEnum<{
Abandoned: "abandoned";
Approved: "approved";
AutoApproved: "auto_approved";
Cancelled: "cancelled";
Completed: "completed";
Declined: "declined";
Expired: "expired";
Progress: "progress";
Started: "started";
TrialRequested: "trial_requested";
}>;
note: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
exemptFromWalletBudgets: z.ZodBoolean;
expiresAt: z.ZodISODateTime;
id: z.ZodUUID;
intents: z.ZodArray<z.ZodObject<{
amountRef: z.ZodString;
createdAt: z.ZodISODateTime;
destination: z.ZodString;
id: z.ZodUUID;
state: z.ZodString;
}, z.core.$strip>>;
kind: z.ZodEnum<{
Regular: "regular";
Trial: "trial";
}>;
maxPaymentRef: z.ZodNullable<z.ZodString>;
missionId: z.ZodUUID;
missionTitle: z.ZodString;
overrides: z.ZodArray<z.ZodObject<{
applicationId: z.ZodOptional<z.ZodUUID>;
channel: z.ZodOptional<z.ZodEnum<{
relay: "relay";
x402: "x402";
}>>;
kind: z.ZodEnum<{
Budget: "budget";
Destination: "destination";
PaymentCap: "payment_cap";
}>;
scope: z.ZodOptional<z.ZodEnum<{
application: "application";
organization: "organization";
}>>;
value: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
recipients: z.ZodNullable<z.ZodArray<z.ZodString>>;
remainingRef: z.ZodString;
spentRef: z.ZodString;
startedBy: z.ZodNullable<z.ZodString>;
startedVia: z.ZodEnum<{
ApiKey: "api_key";
Session: "session";
}>;
status: z.ZodEnum<{
Abandoned: "abandoned";
Active: "active";
Cancelled: "cancelled";
Completed: "completed";
Declined: "declined";
Expired: "expired";
PendingApproval: "pending_approval";
}>;
totalBudgetRef: z.ZodNullable<z.ZodString>;
unitCount: z.ZodNullable<z.ZodNumber>;
unitLabel: z.ZodNullable<z.ZodString>;
unitPriceRef: z.ZodNullable<z.ZodString>;
unitsDoneCount: z.ZodNumber;
unitsRemaining: z.ZodArray<z.ZodString>;
updatedAt: z.ZodISODateTime;
versionDigest: z.ZodString;
versionNumber: z.ZodNumber;
walletId: z.ZodUUID;
}, z.core.$strip>;