export type GetApiV1OrganizationsOrganizationIdActionFeedReadsArgs = {organizationId: string}; export type GetApiV1OrganizationsOrganizationIdActionFeedReadsOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Get the caller's read action feed keys * * GET /v1/organizations/{organizationId}/action-feed/reads */ export const getApiV1OrganizationsOrganizationIdActionFeedReads = async (args: GetApiV1OrganizationsOrganizationIdActionFeedReadsArgs, options?: GetApiV1OrganizationsOrganizationIdActionFeedReadsOptions) => { const {baseUrl = "https://api.printhiv3d.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/v1/organizations/${encodeURIComponent(String(args.organizationId))}/action-feed/reads${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };