import { S as SdkModule } from '../../module-Bq-w9Ws5.js'; import 'graphql-request'; type ColCertainty = 'CONFIRMED' | 'DISPUTED' | 'PROBABLE' | 'UNVERIFIED'; type ColEventType = 'BIRTH' | 'DEATH' | 'DIVORCE' | 'EDUCATION' | 'IMMIGRATION' | 'MARRIAGE' | 'MILESTONE' | 'MILITARY' | 'OTHER' | 'RESIDENCE'; type ColGender = 'FEMALE' | 'MALE' | 'OTHER' | 'UNKNOWN'; type ColLifeStatus = 'DECEASED' | 'LIVING' | 'UNKNOWN'; type ColMemberRole = 'CONTRIBUTOR' | 'OWNER' | 'STEWARD' | 'VIEWER'; type ColMembershipStatus = 'ACTIVE' | 'DECLINED' | 'INVITED' | 'REMOVED'; type ColMemoryKind = 'ARTIFACT' | 'AUDIO' | 'DOCUMENT' | 'PHOTO' | 'VIDEO'; type ColRelationshipType = 'CHILD' | 'GRANDCHILD' | 'GRANDPARENT' | 'GUARDIAN' | 'PARENT' | 'PARTNER' | 'SIBLING' | 'SPOUSE'; type ColStoryFormat = 'AUDIO' | 'VIDEO' | 'WRITTEN'; type ColTreeStatus = 'ACTIVE' | 'ARCHIVED'; type ColVisibility = 'PRIVATE' | 'STEWARDS' | 'TREE'; interface ColFileRef { id: string; } interface ColPageInfo { cursor?: string | null; hasMore: boolean; } interface ColComment { id: string; body: string; memoryId?: string | null; storyId?: string | null; workspaceId: string; createdAt: string; updatedAt: string; } interface ColEvent { id: string; treeId: string; personId?: string | null; title: string; description?: string | null; type: ColEventType; date: string; isApproximate: boolean; place?: string | null; workspaceId: string; createdAt: string; updatedAt: string; } interface ColMembership { id: string; treeId: string; memberUserId: string; personId?: string | null; role: ColMemberRole; status: ColMembershipStatus; invitedById?: string | null; invitedAt: string; acceptedAt?: string | null; workspaceId: string; createdAt: string; updatedAt: string; } interface ColRelationship { id: string; treeId: string; type: ColRelationshipType; certainty: ColCertainty; fromPersonId: string; toPersonId: string; notes?: string | null; startDate?: string | null; endDate?: string | null; fromPerson?: ColPerson | null; toPerson?: ColPerson | null; workspaceId: string; createdAt: string; updatedAt: string; } interface ColPerson { id: string; treeId: string; givenName: string; familyName?: string | null; maidenName?: string | null; nickname?: string | null; bio?: string | null; gender: ColGender; lifeStatus: ColLifeStatus; birthDate?: string | null; birthPlace?: string | null; deathDate?: string | null; linkedUserId?: string | null; photoFile?: ColFileRef | null; tags: string[]; relationships?: ColRelationship[]; workspaceId: string; createdAt: string; updatedAt: string; } interface ColMemory { id: string; treeId: string; personId?: string | null; title: string; description?: string | null; kind: ColMemoryKind; place?: string | null; takenAt?: string | null; visibility: ColVisibility; file?: ColFileRef | null; tags: string[]; comments?: ColComment[]; workspaceId: string; createdAt: string; updatedAt: string; } interface ColStory { id: string; treeId: string; personId?: string | null; title: string; body?: string | null; format: ColStoryFormat; narrator?: string | null; recordingFile?: ColFileRef | null; visibility: ColVisibility; tags: string[]; comments?: ColComment[]; workspaceId: string; createdAt: string; updatedAt: string; } interface ColFamilyTree { id: string; name: string; surname?: string | null; description?: string | null; status: ColTreeStatus; coverFile?: ColFileRef | null; tags: string[]; memberships?: ColMembership[]; people?: ColPerson[]; workspaceId: string; createdAt: string; updatedAt: string; } interface ColFamilyTreeConnection { items: ColFamilyTree[]; pageInfo: ColPageInfo; } interface ColPersonConnection { items: ColPerson[]; pageInfo: ColPageInfo; } interface ColMemoryConnection { items: ColMemory[]; pageInfo: ColPageInfo; } interface ColStoryConnection { items: ColStory[]; pageInfo: ColPageInfo; } interface ColPaginationInput { cursor?: string; limit?: number; offset?: number; } interface ColCreateFamilyTreeInput { name: string; surname?: string; description?: string; coverFileId?: string; tags?: string[]; } interface ColUpdateFamilyTreeInput { name?: string; surname?: string; description?: string; coverFileId?: string; tags?: string[]; } interface ColCreatePersonInput { treeId: string; givenName: string; familyName?: string; maidenName?: string; nickname?: string; bio?: string; gender?: ColGender; lifeStatus?: ColLifeStatus; birthDate?: string; birthPlace?: string; deathDate?: string; linkedUserId?: string; photoFileId?: string; tags?: string[]; } interface ColUpdatePersonInput { givenName?: string; familyName?: string; maidenName?: string; nickname?: string; bio?: string; gender?: ColGender; lifeStatus?: ColLifeStatus; birthDate?: string; birthPlace?: string; deathDate?: string; linkedUserId?: string; photoFileId?: string; tags?: string[]; } interface ColCreateRelationshipInput { treeId: string; fromPersonId: string; toPersonId: string; type: ColRelationshipType; certainty?: ColCertainty; notes?: string; startDate?: string; endDate?: string; } interface ColInviteMemberInput { treeId: string; memberUserId: string; personId?: string; role?: ColMemberRole; } interface ColCreateMemoryInput { treeId: string; title: string; description?: string; fileId?: string; kind?: ColMemoryKind; personId?: string; place?: string; tags?: string[]; takenAt?: string; visibility?: ColVisibility; } interface ColUpdateMemoryInput { title?: string; description?: string; fileId?: string; kind?: ColMemoryKind; personId?: string; place?: string; tags?: string[]; takenAt?: string; visibility?: ColVisibility; } interface ColCreateStoryInput { treeId: string; title: string; body?: string; format?: ColStoryFormat; narrator?: string; personId?: string; recordingFileId?: string; tags?: string[]; visibility?: ColVisibility; } interface ColCreateCommentInput { body: string; memoryId?: string; storyId?: string; } interface ColCreateEventInput { treeId: string; title: string; date: string; description?: string; isApproximate?: boolean; personId?: string; place?: string; type?: ColEventType; } interface CollabkinTreesApi { get(id: string): Promise; list(status?: ColTreeStatus, pagination?: ColPaginationInput): Promise; create(input: ColCreateFamilyTreeInput): Promise; update(id: string, input: ColUpdateFamilyTreeInput): Promise; archive(id: string): Promise; } interface CollabkinPeopleApi { get(id: string): Promise; list(treeId?: string, lifeStatus?: ColLifeStatus, pagination?: ColPaginationInput): Promise; create(input: ColCreatePersonInput): Promise; update(id: string, input: ColUpdatePersonInput): Promise; delete(id: string): Promise; } interface CollabkinRelationshipsApi { list(treeId?: string, personId?: string): Promise; create(input: ColCreateRelationshipInput): Promise; delete(id: string): Promise; } interface CollabkinMembershipsApi { list(treeId: string): Promise; invite(input: ColInviteMemberInput): Promise; accept(id: string): Promise; remove(id: string): Promise; } interface CollabkinMemoriesApi { get(id: string): Promise; list(treeId?: string, personId?: string, kind?: ColMemoryKind, pagination?: ColPaginationInput): Promise; create(input: ColCreateMemoryInput): Promise; update(id: string, input: ColUpdateMemoryInput): Promise; delete(id: string): Promise; } interface CollabkinStoriesApi { get(id: string): Promise; list(treeId?: string, personId?: string, pagination?: ColPaginationInput): Promise; create(input: ColCreateStoryInput): Promise; delete(id: string): Promise; } interface CollabkinCommentsApi { list(memoryId?: string, storyId?: string): Promise; add(input: ColCreateCommentInput): Promise; delete(id: string): Promise; } interface CollabkinTimelineApi { list(treeId: string, personId?: string, type?: ColEventType): Promise; createEvent(input: ColCreateEventInput): Promise; deleteEvent(id: string): Promise; } interface CollabkinSystemApi { health(): Promise; } interface CollabkinApi { trees: CollabkinTreesApi; people: CollabkinPeopleApi; relationships: CollabkinRelationshipsApi; memberships: CollabkinMembershipsApi; memories: CollabkinMemoriesApi; stories: CollabkinStoriesApi; comments: CollabkinCommentsApi; timeline: CollabkinTimelineApi; system: CollabkinSystemApi; } declare const collabkinModule: SdkModule; export { type ColCertainty, type ColComment, type ColCreateCommentInput, type ColCreateEventInput, type ColCreateFamilyTreeInput, type ColCreateMemoryInput, type ColCreatePersonInput, type ColCreateRelationshipInput, type ColCreateStoryInput, type ColEvent, type ColEventType, type ColFamilyTree, type ColFamilyTreeConnection, type ColFileRef, type ColGender, type ColInviteMemberInput, type ColLifeStatus, type ColMemberRole, type ColMembership, type ColMembershipStatus, type ColMemory, type ColMemoryConnection, type ColMemoryKind, type ColPageInfo, type ColPaginationInput, type ColPerson, type ColPersonConnection, type ColRelationship, type ColRelationshipType, type ColStory, type ColStoryConnection, type ColStoryFormat, type ColTreeStatus, type ColUpdateFamilyTreeInput, type ColUpdateMemoryInput, type ColUpdatePersonInput, type ColVisibility, type CollabkinApi, type CollabkinCommentsApi, type CollabkinMembershipsApi, type CollabkinMemoriesApi, type CollabkinPeopleApi, type CollabkinRelationshipsApi, type CollabkinStoriesApi, type CollabkinSystemApi, type CollabkinTimelineApi, type CollabkinTreesApi, collabkinModule as default };