Skip to main content

TypeAlias.MissionDetail

type MissionDetail = {
createdAt: string;
createdBy: string | null;
createdVia: "api_key" | "session";
draft: | {
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;
}
| null;
events: {
actor: string | null;
createdAt: string;
digest: string;
id: string;
kind: | "published"
| "archived"
| "draft_created"
| "draft_updated"
| "trial_requested"
| "overrides_approved"
| "overrides_declined"
| "superseded"
| "discarded";
version: number;
}[];
homeWalletId: string;
id: string;
key: string;
limits: {
kind: "frequency" | "total_budget";
retryAt: string | null;
walletId: string | null;
}[];
published: | {
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;
}
| null;
runs: {
createdAt: string;
envelopeRef: string;
expiresAt: string;
id: string;
kind: "trial" | "regular";
spentRef: string;
status: | "active"
| "expired"
| "completed"
| "pending_approval"
| "declined"
| "abandoned"
| "cancelled";
unitCount: number | null;
unitsDoneCount: number;
versionDigest: string;
versionNumber: number;
walletId: string;
walletLabel: string;
}[];
stats: {
averageEnvelopeRef: string | null;
observedUnitPriceRef: string | null;
remainingTotalRef: string | null;
runsByStatus: Record<
| "active"
| "expired"
| "completed"
| "pending_approval"
| "declined"
| "abandoned"
| "cancelled", number>;
spentRef: string;
};
status: "active" | "archived";
trials: {
createdAt: string;
envelopeRef: string;
expiresAt: string;
id: string;
kind: "trial" | "regular";
spentRef: string;
status: | "active"
| "expired"
| "completed"
| "pending_approval"
| "declined"
| "abandoned"
| "cancelled";
unitCount: number | null;
unitsDoneCount: number;
versionDigest: string;
versionNumber: number;
walletId: string;
walletLabel: string;
}[];
updatedAt: string;
versions: {
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;
}[];
};

Type Declaration​

NameType
createdAtstring
createdBystring
createdVia"api_key"
draft
events{ actor: string
homeWalletIdstring
idstring
keystring
limits{ kind: "frequency"
published
runs{ createdAt: string; envelopeRef: string; expiresAt: string; id: string; kind: "trial"
stats{ averageEnvelopeRef: string
stats.averageEnvelopeRefstring
stats.observedUnitPriceRefstring
stats.remainingTotalRefstring
stats.runsByStatusRecord<
stats.spentRefstring
status"active"
trials{ createdAt: string; envelopeRef: string; expiresAt: string; id: string; kind: "trial"
updatedAtstring
versions{ brief: string; contentDigest: string; createdAt: string; currency: string; digest: string; durationDays: number; endpoints: string[]