import type { forms_CreateFormInput } from '../models/forms_CreateFormInput'; import type { forms_Form } from '../models/forms_Form'; import type { forms_ListFormResponsesOutput } from '../models/forms_ListFormResponsesOutput'; import type { forms_ListFormsOutput } from '../models/forms_ListFormsOutput'; import type { CancelablePromise } from '../core/CancelablePromise'; export declare class FormsService { /** * List forms * * Lists the forms within the portal, paginated. * * @param limit Maximum number of forms to return * @param nextToken Pagination cursor returned by a previous call * * @example * await assembly.listForms(); */ static listForms({ limit, nextToken, }: { /** * Maximum number of forms to return */ limit?: number; /** * Pagination cursor returned by a previous call */ nextToken?: string; }): CancelablePromise; /** * Create a form * * Creates a form with its questions. Note: Assembly forms do not support * conditional/branching logic — questions are presented as a flat, ordered * sequence. * * @example * await assembly.createForm({ requestBody: ... }); */ static createForm({ requestBody, }: { /** * Form to create */ requestBody: forms_CreateFormInput; }): CancelablePromise; /** * Retrieve a form * * Returns a single form, including its questions and response counts, by * ID. * * @param id Form ID * * @example * await assembly.retrieveForm({ id: ... }); */ static retrieveForm({ id, }: { /** * Form ID */ id: string; }): CancelablePromise; /** * List a form's submissions * * Lists the submissions (form responses) for a form, paginated. Optionally * filter by completion status. * * @param id Form ID * @param status Filter form responses by completion status * @param limit Maximum number of form responses to return * @param nextToken Pagination cursor returned by a previous call * * @example * await assembly.listFormResponses({ id: ... }); */ static listFormResponses({ id, status, limit, nextToken, }: { /** * Form ID */ id: string; /** * Filter form responses by completion status */ status?: 'pending' | 'completed'; /** * Maximum number of form responses to return */ limit?: number; /** * Pagination cursor returned by a previous call */ nextToken?: string; }): CancelablePromise; }