Finds the YoPrint API operations this connection can call. Call it without arguments first: it returns the guide (ids, dates, amounts, changes, files and limits) and the families of operations. Then describe the task in a few words (query: "record payment", "add tracking to shipment"): the best matches come in full, the next ones as short rows. Ask for rows in full with operation, list a family with family, run several searches at once with queries, or run JavaScript over the list with code, such as: return spec.operations.filter((o) => o.family === "shipments" && o.access === "change").map((o) => `${o.method} ${o.path}: ${o.summary}`)
interface Operation {
operation: string; method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; path: string;
access: "read" | "change"; family: string; summary: string; notes: string;
impact?: string[]; // money, customer_message, delete, irreversible, external, team_admin, bulk: get the go-ahead first
parameters?: Array<{ name: string; in: "path" | "query" | "header"; required: boolean; description?: string }>;
body?: unknown; filters?: Record<string, unknown>; sort?: string[];
example: { method: string; path: string; query?: unknown; body?: unknown }; // values are placeholders
returns?: string; // the answer's shape as an owner gets it, where it is known
budget?: "render";
}
declare const spec: { operations: Operation[] };
// Search code calls nothing. It has yoprint.shape, yoprint.amount and yoprint.connection, as read code does.