import * as Schema from "effect/Schema"; import { API } from "../client.ts"; import * as T from "../traits.ts"; import { UnknownDaytonaError } from "../errors.ts"; // Input Schema export interface GetOrganizationInvitationsCountForAuthenticatedUserInput {} export const GetOrganizationInvitationsCountForAuthenticatedUserInput = /*@__PURE__*/ Schema.Struct( {}, ).pipe( T.Http({ method: "GET", path: "/organizations/invitations/count" }), ) as unknown as Schema.Codec; // Output Schema export type GetOrganizationInvitationsCountForAuthenticatedUserOutput = number; export const GetOrganizationInvitationsCountForAuthenticatedUserOutput = /*@__PURE__*/ Schema.Number as unknown as Schema.Codec; // The operation /** * Get count of organization invitations for authenticated user */ export const getOrganizationInvitationsCountForAuthenticatedUser = /*@__PURE__*/ API.make(() => ({ inputSchema: GetOrganizationInvitationsCountForAuthenticatedUserInput, outputSchema: GetOrganizationInvitationsCountForAuthenticatedUserOutput, errors: [UnknownDaytonaError] as const, metadata: { operationId: "getOrganizationInvitationsCountForAuthenticatedUser", method: "GET", path: "/organizations/invitations/count", idempotency: "safe", }, }));