import * as z from "zod/v4-mini"; import { ClosedEnum, OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdk-validation-error.js"; import * as models from "../index.js"; export declare const SortField: { readonly CreatedAt: "createdAt"; readonly Severity: "severity"; readonly ReviewedAt: "reviewedAt"; }; export type SortField = ClosedEnum; /** * Sort direction */ export declare const ListQueueItemsSortDirection: { readonly Asc: "asc"; readonly Desc: "desc"; }; /** * Sort direction */ export type ListQueueItemsSortDirection = ClosedEnum; export type ListQueueItemsRequest = { /** * The queue ID */ id: string; page?: number | undefined; pageSize?: number | undefined; sortField?: SortField | undefined; /** * Sort direction */ sortDirection?: ListQueueItemsSortDirection | undefined; conversationIds?: Array | undefined; labels?: Array | undefined; afterDate?: string | undefined; beforeDate?: string | undefined; includeResolved?: boolean | undefined; authorId?: string | undefined; filteredActionIds?: Array | undefined; /** * The project to act on, when you call with an organization key. Optional when the organization has one project. A project key acts on its own project: naming another one is an error. */ projectId?: string | undefined; }; export type ListQueueItemsLabel = { /** * Label name */ label: string; /** * Confidence score of the label */ score: number; /** * Whether this label caused a flag */ flagged: boolean; }; export type ListQueueItemsAction = { /** * Action ID */ id: string; /** * Action name */ name: string; /** * Action comment */ comment?: string | undefined; /** * Unix timestamp of when the action was taken */ timestamp: number; /** * Moderator userID */ reviewer?: string | undefined; }; /** * Status of the item */ export declare const ListQueueItemsStatus: { readonly Pending: "pending"; readonly Resolved: "resolved"; }; /** * Status of the item */ export type ListQueueItemsStatus = OpenEnum; export type ListQueueItemsData = { /** * Content ID */ id: string; /** * The content to be moderated */ content: string; /** * Content language */ language?: string | undefined; labels: Array; /** * Conversation ID */ conversationId?: string | undefined; /** * Author ID */ authorId?: string | undefined; /** * Action IDs taken on this item */ actions?: Array | undefined; /** * Whether the item is flagged by any label */ flagged: boolean; /** * Status of the item */ status: ListQueueItemsStatus; /** * Unix timestamp of when the item was created */ timestamp: number; /** * Type of the content object */ contentType?: string | undefined; }; /** * Successful response */ export type ListQueueItemsResponseBody = { /** * The items on this page. */ data: Array; /** * Where this page is in the full list. */ pagination: models.Pagination; }; export type ListQueueItemsResponse = { result: ListQueueItemsResponseBody; }; /** @internal */ export declare const SortField$outboundSchema: z.ZodMiniEnum; /** @internal */ export declare const ListQueueItemsSortDirection$outboundSchema: z.ZodMiniEnum; /** @internal */ export type ListQueueItemsRequest$Outbound = { id: string; page: number; pageSize: number; sortField?: string | undefined; sortDirection: string; conversationIds?: Array | undefined; labels?: Array | undefined; afterDate?: string | undefined; beforeDate?: string | undefined; includeResolved?: boolean | undefined; authorId?: string | undefined; filteredActionIds?: Array | undefined; projectId?: string | undefined; }; /** @internal */ export declare const ListQueueItemsRequest$outboundSchema: z.ZodMiniType; export declare function listQueueItemsRequestToJSON(listQueueItemsRequest: ListQueueItemsRequest): string; /** @internal */ export declare const ListQueueItemsLabel$inboundSchema: z.ZodMiniType; export declare function listQueueItemsLabelFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListQueueItemsAction$inboundSchema: z.ZodMiniType; export declare function listQueueItemsActionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListQueueItemsStatus$inboundSchema: z.ZodMiniType; /** @internal */ export declare const ListQueueItemsData$inboundSchema: z.ZodMiniType; export declare function listQueueItemsDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListQueueItemsResponseBody$inboundSchema: z.ZodMiniType; export declare function listQueueItemsResponseBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListQueueItemsResponse$inboundSchema: z.ZodMiniType; export declare function listQueueItemsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=list-queue-items.d.ts.map