UNPKG

@hasna/projects

Version:

High-level project management CLI, MCP server, SDK, and AI SDK agent loop for coding agents

47 lines • 2.14 kB
import type { ContactProjectMembershipAuthority, ContactProjectMembershipListResult, ContactProjectMembershipMutationInput, ContactProjectMembershipMutationResult, ContactProjectMembershipSnapshot } from "./project-contact-links.js"; export interface ContactsHttpProjectMembershipAuthorityOptions { baseUrl: string; apiKey: string; serviceInstance?: string; fetchImpl?: (input: string, init?: RequestInit) => Promise<Response>; } export interface ContactsAuthorityEnvironment { HASNA_CONTACTS_API_URL?: string; CONTACTS_API_URL?: string; HASNA_CONTACTS_API_KEY?: string; CONTACTS_API_KEY?: string; HASNA_CONTACTS_SERVICE_INSTANCE?: string; CONTACTS_SERVICE_INSTANCE?: string; } export declare class ContactsAuthorityHttpError extends Error { readonly status: number; readonly method: string; readonly path: string; constructor(input: { status: number; method: string; path: string; detail: string; }); } export declare class ContactsHttpProjectMembershipAuthority implements ContactProjectMembershipAuthority { readonly service_instance: string; private readonly baseUrl; private readonly apiKey; private readonly fetchImpl; constructor(options: ContactsHttpProjectMembershipAuthorityOptions); private request; readMembership(input: { contact_id: string; project_id: string; }): Promise<ContactProjectMembershipSnapshot>; listProjectMemberships(input: { project_id: string; max_items: number; }): Promise<ContactProjectMembershipListResult>; attach(input: ContactProjectMembershipMutationInput): Promise<ContactProjectMembershipMutationResult>; detach(input: ContactProjectMembershipMutationInput): Promise<ContactProjectMembershipMutationResult>; private mutate; } export declare function createContactsProjectMembershipAuthorityFromEnv(env?: ContactsAuthorityEnvironment | NodeJS.ProcessEnv, fetchImpl?: (input: string, init?: RequestInit) => Promise<Response>): ContactsHttpProjectMembershipAuthority; //# sourceMappingURL=contacts-authority-adapter.d.ts.map