type Inbox = {
count: number;
pending: (
| {
actor: {
kind: "user" | "agent";
label: string;
};
canAct: boolean;
createdAt: string;
currency: string;
decidedAt: string | null;
expiresAt: string | null;
id: string;
intent: {
amountNative: string;
amountRef: string;
approvedAmountRef?: string | null;
asset: string;
consumedAt?: string | null;
createdAt: string;
currentAmountRef?: string | null;
decidedAt?: string | null;
decidedBy?: string | null;
events: {
amountRef: string;
at: string;
kind: | "expired"
| "consumed"
| "created"
| "human_approved"
| "human_declined"
| "agent_abandoned"
| "revalidated"
| "revalidation_required"
| "settlement_failed";
}[];
expiresAt?: string | null;
hash: string;
id: string;
kind: string;
recipient: string;
resource?: string | null;
state: | "failed"
| "expired"
| "pending_human_approval"
| "approved"
| "declined"
| "abandoned"
| "consumed";
updatedAt: string;
wallet: {
id: string;
label: string;
network: string;
};
};
status: string;
subject: {
applicationId: string | null;
id: string;
kind: "agent-wallet" | "treasury";
label: string;
network: string;
};
threshold: string | null;
type: "payment_approval";
}
| {
actor: | {
kind: "user" | "agent";
label: string;
}
| null;
canAct: boolean;
createdAt: string;
decidedAt: string | null;
decidedBy: string | null;
declineReason: string | null;
deliveredAmount: string;
expiresAt: string | null;
id: string;
note: string | null;
requestedAmount: string | null;
status: string;
subject: {
applicationId: string | null;
id: string;
kind: "agent-wallet" | "treasury";
label: string;
network: string;
};
type: "refill_request";
}
| {
actor: | {
kind: "user" | "agent";
label: string;
}
| null;
approvalCount: number;
canAct: boolean;
createdAt: string;
decidedAt: string | null;
expiresAt: string | null;
id: string;
status: string;
subject: {
applicationId: string | null;
id: string;
kind: "agent-wallet" | "treasury";
label: string;
network: string;
};
threshold: number;
totalAmount: string;
type: "treasury_signature";
}
| {
actor: {
kind: "user" | "agent";
label: string;
};
canAct: boolean;
createdAt: string;
decidedAt: string | null;
expiresAt: string | null;
id: string;
status: string;
subject: {
applicationId: string | null;
id: string;
kind: "agent-wallet" | "treasury";
label: string;
network: string;
};
type: "signer_validation";
})[];
recent: (
| {
actor: {
kind: "user" | "agent";
label: string;
};
canAct: boolean;
createdAt: string;
currency: string;
decidedAt: string | null;
expiresAt: string | null;
id: string;
intent: {
amountNative: string;
amountRef: string;
approvedAmountRef?: string | null;
asset: string;
consumedAt?: string | null;
createdAt: string;
currentAmountRef?: string | null;
decidedAt?: string | null;
decidedBy?: string | null;
events: {
amountRef: string;
at: string;
kind: | "expired"
| "consumed"
| "created"
| "human_approved"
| "human_declined"
| "agent_abandoned"
| "revalidated"
| "revalidation_required"
| "settlement_failed";
}[];
expiresAt?: string | null;
hash: string;
id: string;
kind: string;
recipient: string;
resource?: string | null;
state: | "failed"
| "expired"
| "pending_human_approval"
| "approved"
| "declined"
| "abandoned"
| "consumed";
updatedAt: string;
wallet: {
id: string;
label: string;
network: string;
};
};
status: string;
subject: {
applicationId: string | null;
id: string;
kind: "agent-wallet" | "treasury";
label: string;
network: string;
};
threshold: string | null;
type: "payment_approval";
}
| {
actor: | {
kind: "user" | "agent";
label: string;
}
| null;
canAct: boolean;
createdAt: string;
decidedAt: string | null;
decidedBy: string | null;
declineReason: string | null;
deliveredAmount: string;
expiresAt: string | null;
id: string;
note: string | null;
requestedAmount: string | null;
status: string;
subject: {
applicationId: string | null;
id: string;
kind: "agent-wallet" | "treasury";
label: string;
network: string;
};
type: "refill_request";
}
| {
actor: | {
kind: "user" | "agent";
label: string;
}
| null;
approvalCount: number;
canAct: boolean;
createdAt: string;
decidedAt: string | null;
expiresAt: string | null;
id: string;
status: string;
subject: {
applicationId: string | null;
id: string;
kind: "agent-wallet" | "treasury";
label: string;
network: string;
};
threshold: number;
totalAmount: string;
type: "treasury_signature";
}
| {
actor: {
kind: "user" | "agent";
label: string;
};
canAct: boolean;
createdAt: string;
decidedAt: string | null;
expiresAt: string | null;
id: string;
status: string;
subject: {
applicationId: string | null;
id: string;
kind: "agent-wallet" | "treasury";
label: string;
network: string;
};
type: "signer_validation";
})[];
};