{"version":3,"file":"auth-types-gen.mjs","names":[],"sources":["../src/auth-types-gen.ts"],"sourcesContent":["export const AUTH_DERIVED_TYPES_BODY = `\nexport type AuthSessionUser = NonNullable<InferOutput<\"getSession\">[\"user\"]>;\nexport type AuthSessionData = NonNullable<InferOutput<\"getSession\">[\"session\"]>;\nexport type AuthSession = {\n  user: AuthSessionUser | null;\n  session: AuthSessionData | null;\n};\nexport type AuthRequestContext = InferOutput<\"getContext\">;\nexport type AuthPluginContext = Partial<AuthRequestContext> & {\n  reqHeaders?: Headers;\n  getRawBody?: () => Promise<string>;\n};\n`;\n\nexport function buildAuthTypesGenContent(\n  authExportImportPath: string,\n  contractImportPath: string,\n): string {\n  return `export type * from \"${authExportImportPath}\";\nimport type { InferOutput } from \"${contractImportPath}\";\n${AUTH_DERIVED_TYPES_BODY}\n`;\n}\n\nexport function buildAuthExportStub(): string {\n  return `export type Auth = any;\nexport type AuthOrganizationContext = any;\nexport type AuthOrganization = any;\nexport type AuthOrganizationSummary = any;\nexport type AuthOrganizationMember = any;\nexport type AuthApiKey = any;\nexport type AuthInvitation = any;\nexport type AuthTeam = any;\nexport type GetActiveMemberInput = any;\nexport type GetFullOrganizationInput = any;\nexport type ListMembersInput = any;\nexport type ListInvitationsInput = any;\nexport type ListApiKeysInput = any;\nexport type AuthServices = any;\nexport type createAuthInstance = any;\n`;\n}\n\nexport function buildAuthContractStub(): string {\n  return `export type ContractType = any;\nexport type InferOutput<_TRoute extends string> = any;\n`;\n}\n"],"mappings":";AAAA,MAAa,0BAA0B;;;;;;;;;;;;;AAcvC,SAAgB,yBACd,sBACA,oBACQ;CACR,OAAO,uBAAuB,qBAAqB;oCACjB,mBAAmB;EACrD,wBAAwB;;AAE1B;AAEA,SAAgB,sBAA8B;CAC5C,OAAO;;;;;;;;;;;;;;;;AAgBT;AAEA,SAAgB,wBAAgC;CAC9C,OAAO;;;AAGT"}