// ── SDK v2 — Public Types ────────────────────────────────────────────────────── // // Domain types imported directly from api-v2 source files. // Zod is a peerDependency — consumers must have it installed. // // When a new resource client is added to the SDK, import its types here. export type { Team, TeamCreate, TeamUpdate, InviteCreate, Invite, } from "../../../api-v2/src/types/team.type"; export type { TeamMember, TeamMemberCreate, TeamMemberUpdate, } from "../../../api-v2/src/types/team-member.type"; export type { Activity, ActivityCreate, Actor, } from "../../../api-v2/src/types/activity.type"; export type { Board, BoardCreate, BoardUpdate, Column, TagDefinition, } from "../../../api-v2/src/types/board.type"; export type { Card, CardCreate, CardUpdate, CardBulkUpdateItem, CardBulkMoveItem, CardBulkDeleteItem, Part, TextPart, FilePart, DataPart, CardInputPart, RelatedCardResolved, Session, SessionCreate, SessionUpdate, SessionData, SessionDataCreate, SessionDataUpdate, } from "../../../api-v2/src/types/card.type"; export type { ExternalChannel, ExternalChannelCreate, ExternalChannelUpdate, } from "../../../api-v2/src/types/external-channel.type"; export type { Agent, AgentCreate, AgentUpdate, AgentRetireBody, AgentRetireResult, AgentRetireBoardEntry, AgentExample, AgentResource, AgentFeedback, AgentFeedbackCreate, AgentFeedbackUpdate, SupervisorFeedback, SupervisorFeedbackCreate, SupervisorFeedbackUpdate, } from "../../../api-v2/src/types/agent.type"; export type { CardComment, CardCommentCreate, CardCommentUpdate, } from "../../../api-v2/src/types/card-comment.type"; export type { Notification, NotificationCreate, NotificationUpdate, MarkAllReadBody, } from "../../../api-v2/src/types/notification.type"; export type { App, AppCreate, AppUpdate, AppSettings, AppSettingsCreate, AppSettingsUpdate, } from "../../../api-v2/src/types/app.type"; export type { Integration, IntegrationCreate, IntegrationUpdate, } from "../../../api-v2/src/types/integration.type"; export type { AgentDraft, AgentDraftCreate, AgentDraftUpdate, AgentDraftPublishBody, } from "../../../api-v2/src/types/agent-draft.type"; export type { Position, PositionCreate, PositionUpdate, } from "../../../api-v2/src/types/position.type"; export type { Resource, ResourceCreate, ResourceUpdate, } from "../../../api-v2/src/types/resource.type"; // ── as const objects — values, not types ────────────────────────────────────── export { TeamMemberRole } from "../../../api-v2/src/types/team-member.type"; export { ActivityType, ActorType as ActorTypeValues } from "../../../api-v2/src/types/activity.type"; export { CardStatus, CardPriority, PartType } from "../../../api-v2/src/types/card.type"; export { TagDefinitionColor } from "../../../api-v2/src/types/board.type"; export { AgentKind, AgentStatus, AgentRetireAction, FeedbackType, FeedbackStatus, FeedbackEvaluation } from "../../../api-v2/src/types/agent.type"; export { NotificationType } from "../../../api-v2/src/types/notification.type"; export { AgentDraftStatus, AgentDraftPriority } from "../../../api-v2/src/types/agent-draft.type"; export { PositionStatus } from "../../../api-v2/src/types/position.type"; export { ResourceStatus, EmbeddingProvider, DocumentParser } from "../../../api-v2/src/types/resource.type"; // ── SDK-specific shared types ────────────────────────────────────────────────── /** Cursor-paginated response envelope — returned by all list endpoints. */ export interface Paginated { data: T[]; pagination: { limit: number; next_cursor: string | null; prev_cursor: string | null; }; } /** Common query parameters accepted by all list endpoints. */ export interface ListParams { /** DSL filter string — e.g. `"name.iregex:acme"` */ q?: string; /** Sort string — e.g. `"created_at:desc"` */ sort?: string; /** Comma-separated field projection — e.g. `"id,name,created_at"` */ fields?: string; /** Page size (default 100). */ limit?: number; /** Forward pagination cursor from `pagination.next_cursor`. */ after?: string; /** Backward pagination cursor from `pagination.prev_cursor`. */ before?: string; /** Full-text search string (requires text index on the resource). */ fts?: string; }