{"version":3,"file":"providers.cjs","names":[],"sources":["../../../../src/rest/commands/auth/providers.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\n\nexport interface ReadProviderOutput {\n\tname: string;\n\tdriver: string;\n\tlabel?: string | null;\n\ticon?: string | null;\n}\n\n/**\n * List all the configured auth providers.\n *\n * @returns Array of configured auth providers.\n */\nexport const readProviders =\n\t<Schema>(sessionOnly = false): RestCommand<ReadProviderOutput[], Schema> =>\n\t() => ({\n\t\tpath: sessionOnly ? '/auth?sessionOnly' : '/auth',\n\t\tmethod: 'GET',\n\t});\n"],"mappings":"AAcA,MAAa,GACH,EAAc,UAChB,CACN,KAAM,EAAc,oBAAsB,QAC1C,OAAQ,MACR"}