{"version":3,"file":"c_api_v2_unauthed_client.js","sources":["../../../../metaserver/static/js/api_v2/unauthed_client.ts"],"sourcesContent":["import type {\n ApiV2ClientBaseParams,\n ApiV2Transport,\n ApiV2Headers,\n} from 'metaserver/static/js/api_v2/types';\nimport {ApiV2ClientBase} from 'metaserver/static/js/api_v2/client_base';\n\n/**\n * Client to perform APIv2 calls to auth_type: none endpoints. For auth_type: app use NoAuthApiV2Client instead.\n *\n * The endpoints that work with this client do not require csrf, so should not have sensitive side effects.\n */\nexport class UnAuthedApiV2Client\u003c\n P extends ApiV2ClientBaseParams = ApiV2ClientBaseParams,\n\u003e extends ApiV2ClientBase\u003cApiV2ClientBaseParams\u003e {\n constructor(transport?: ApiV2Transport) {\n super(transport, true);\n }\n\n protected _headers(params: P): ApiV2Headers {\n return {\n ...params.headers,\n };\n }\n}\n"],"names":["UnAuthedApiV2Client","ApiV2ClientBase","constructor","transport","super","_headers","params","headers"],"mappings":";qgBAYM,MAAOA,UAEHC,EAAAA,gBACR,WAAAC,CAAYC,GACVC,MAAMD,GAAW,EAClB,CAES,QAAAE,CAASC,GACjB,MAAO,IACFA,EAAOC,QAEb","debugId":"745891d5-ff45-3cda-857c-1427f9de9937","debug_id":"745891d5-ff45-3cda-857c-1427f9de9937"}