api.ts 377 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.56.0
  8. *
  9. *
  10. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  11. * https://openapi-generator.tech
  12. * Do not edit the class manually.
  13. */
  14. import type { Configuration } from './configuration';
  15. import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
  16. import globalAxios from 'axios';
  17. // Some imports not used depending on template conditions
  18. // @ts-ignore
  19. import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
  20. import type { RequestArgs } from './base';
  21. // @ts-ignore
  22. import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
  23. /**
  24. *
  25. * @export
  26. * @interface APIKeyCreateDto
  27. */
  28. export interface APIKeyCreateDto {
  29. /**
  30. *
  31. * @type {string}
  32. * @memberof APIKeyCreateDto
  33. */
  34. 'name'?: string;
  35. }
  36. /**
  37. *
  38. * @export
  39. * @interface APIKeyCreateResponseDto
  40. */
  41. export interface APIKeyCreateResponseDto {
  42. /**
  43. *
  44. * @type {string}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'secret': string;
  48. /**
  49. *
  50. * @type {APIKeyResponseDto}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'apiKey': APIKeyResponseDto;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'id': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'name': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'createdAt': string;
  79. /**
  80. *
  81. * @type {string}
  82. * @memberof APIKeyResponseDto
  83. */
  84. 'updatedAt': string;
  85. }
  86. /**
  87. *
  88. * @export
  89. * @interface APIKeyUpdateDto
  90. */
  91. export interface APIKeyUpdateDto {
  92. /**
  93. *
  94. * @type {string}
  95. * @memberof APIKeyUpdateDto
  96. */
  97. 'name': string;
  98. }
  99. /**
  100. *
  101. * @export
  102. * @interface AddAssetsDto
  103. */
  104. export interface AddAssetsDto {
  105. /**
  106. *
  107. * @type {Array<string>}
  108. * @memberof AddAssetsDto
  109. */
  110. 'assetIds': Array<string>;
  111. }
  112. /**
  113. *
  114. * @export
  115. * @interface AddAssetsResponseDto
  116. */
  117. export interface AddAssetsResponseDto {
  118. /**
  119. *
  120. * @type {number}
  121. * @memberof AddAssetsResponseDto
  122. */
  123. 'successfullyAdded': number;
  124. /**
  125. *
  126. * @type {Array<string>}
  127. * @memberof AddAssetsResponseDto
  128. */
  129. 'alreadyInAlbum': Array<string>;
  130. /**
  131. *
  132. * @type {AlbumResponseDto}
  133. * @memberof AddAssetsResponseDto
  134. */
  135. 'album'?: AlbumResponseDto;
  136. }
  137. /**
  138. *
  139. * @export
  140. * @interface AddUsersDto
  141. */
  142. export interface AddUsersDto {
  143. /**
  144. *
  145. * @type {Array<string>}
  146. * @memberof AddUsersDto
  147. */
  148. 'sharedUserIds': Array<string>;
  149. }
  150. /**
  151. *
  152. * @export
  153. * @interface AdminSignupResponseDto
  154. */
  155. export interface AdminSignupResponseDto {
  156. /**
  157. *
  158. * @type {string}
  159. * @memberof AdminSignupResponseDto
  160. */
  161. 'id': string;
  162. /**
  163. *
  164. * @type {string}
  165. * @memberof AdminSignupResponseDto
  166. */
  167. 'email': string;
  168. /**
  169. *
  170. * @type {string}
  171. * @memberof AdminSignupResponseDto
  172. */
  173. 'firstName': string;
  174. /**
  175. *
  176. * @type {string}
  177. * @memberof AdminSignupResponseDto
  178. */
  179. 'lastName': string;
  180. /**
  181. *
  182. * @type {string}
  183. * @memberof AdminSignupResponseDto
  184. */
  185. 'createdAt': string;
  186. }
  187. /**
  188. *
  189. * @export
  190. * @interface AlbumCountResponseDto
  191. */
  192. export interface AlbumCountResponseDto {
  193. /**
  194. *
  195. * @type {number}
  196. * @memberof AlbumCountResponseDto
  197. */
  198. 'owned': number;
  199. /**
  200. *
  201. * @type {number}
  202. * @memberof AlbumCountResponseDto
  203. */
  204. 'shared': number;
  205. /**
  206. *
  207. * @type {number}
  208. * @memberof AlbumCountResponseDto
  209. */
  210. 'sharing': number;
  211. }
  212. /**
  213. *
  214. * @export
  215. * @interface AlbumResponseDto
  216. */
  217. export interface AlbumResponseDto {
  218. /**
  219. *
  220. * @type {number}
  221. * @memberof AlbumResponseDto
  222. */
  223. 'assetCount': number;
  224. /**
  225. *
  226. * @type {string}
  227. * @memberof AlbumResponseDto
  228. */
  229. 'id': string;
  230. /**
  231. *
  232. * @type {string}
  233. * @memberof AlbumResponseDto
  234. */
  235. 'ownerId': string;
  236. /**
  237. *
  238. * @type {string}
  239. * @memberof AlbumResponseDto
  240. */
  241. 'albumName': string;
  242. /**
  243. *
  244. * @type {string}
  245. * @memberof AlbumResponseDto
  246. */
  247. 'createdAt': string;
  248. /**
  249. *
  250. * @type {string}
  251. * @memberof AlbumResponseDto
  252. */
  253. 'updatedAt': string;
  254. /**
  255. *
  256. * @type {string}
  257. * @memberof AlbumResponseDto
  258. */
  259. 'albumThumbnailAssetId': string | null;
  260. /**
  261. *
  262. * @type {boolean}
  263. * @memberof AlbumResponseDto
  264. */
  265. 'shared': boolean;
  266. /**
  267. *
  268. * @type {Array<UserResponseDto>}
  269. * @memberof AlbumResponseDto
  270. */
  271. 'sharedUsers': Array<UserResponseDto>;
  272. /**
  273. *
  274. * @type {Array<AssetResponseDto>}
  275. * @memberof AlbumResponseDto
  276. */
  277. 'assets': Array<AssetResponseDto>;
  278. /**
  279. *
  280. * @type {UserResponseDto}
  281. * @memberof AlbumResponseDto
  282. */
  283. 'owner': UserResponseDto;
  284. }
  285. /**
  286. *
  287. * @export
  288. * @interface AllJobStatusResponseDto
  289. */
  290. export interface AllJobStatusResponseDto {
  291. /**
  292. *
  293. * @type {JobStatusDto}
  294. * @memberof AllJobStatusResponseDto
  295. */
  296. 'thumbnail-generation-queue': JobStatusDto;
  297. /**
  298. *
  299. * @type {JobStatusDto}
  300. * @memberof AllJobStatusResponseDto
  301. */
  302. 'metadata-extraction-queue': JobStatusDto;
  303. /**
  304. *
  305. * @type {JobStatusDto}
  306. * @memberof AllJobStatusResponseDto
  307. */
  308. 'video-conversion-queue': JobStatusDto;
  309. /**
  310. *
  311. * @type {JobStatusDto}
  312. * @memberof AllJobStatusResponseDto
  313. */
  314. 'object-tagging-queue': JobStatusDto;
  315. /**
  316. *
  317. * @type {JobStatusDto}
  318. * @memberof AllJobStatusResponseDto
  319. */
  320. 'clip-encoding-queue': JobStatusDto;
  321. /**
  322. *
  323. * @type {JobStatusDto}
  324. * @memberof AllJobStatusResponseDto
  325. */
  326. 'storage-template-migration-queue': JobStatusDto;
  327. /**
  328. *
  329. * @type {JobStatusDto}
  330. * @memberof AllJobStatusResponseDto
  331. */
  332. 'background-task-queue': JobStatusDto;
  333. /**
  334. *
  335. * @type {JobStatusDto}
  336. * @memberof AllJobStatusResponseDto
  337. */
  338. 'search-queue': JobStatusDto;
  339. /**
  340. *
  341. * @type {JobStatusDto}
  342. * @memberof AllJobStatusResponseDto
  343. */
  344. 'recognize-faces-queue': JobStatusDto;
  345. }
  346. /**
  347. *
  348. * @export
  349. * @interface AssetCountByTimeBucket
  350. */
  351. export interface AssetCountByTimeBucket {
  352. /**
  353. *
  354. * @type {string}
  355. * @memberof AssetCountByTimeBucket
  356. */
  357. 'timeBucket': string;
  358. /**
  359. *
  360. * @type {number}
  361. * @memberof AssetCountByTimeBucket
  362. */
  363. 'count': number;
  364. }
  365. /**
  366. *
  367. * @export
  368. * @interface AssetCountByTimeBucketResponseDto
  369. */
  370. export interface AssetCountByTimeBucketResponseDto {
  371. /**
  372. *
  373. * @type {number}
  374. * @memberof AssetCountByTimeBucketResponseDto
  375. */
  376. 'totalCount': number;
  377. /**
  378. *
  379. * @type {Array<AssetCountByTimeBucket>}
  380. * @memberof AssetCountByTimeBucketResponseDto
  381. */
  382. 'buckets': Array<AssetCountByTimeBucket>;
  383. }
  384. /**
  385. *
  386. * @export
  387. * @interface AssetCountByUserIdResponseDto
  388. */
  389. export interface AssetCountByUserIdResponseDto {
  390. /**
  391. *
  392. * @type {number}
  393. * @memberof AssetCountByUserIdResponseDto
  394. */
  395. 'audio': number;
  396. /**
  397. *
  398. * @type {number}
  399. * @memberof AssetCountByUserIdResponseDto
  400. */
  401. 'photos': number;
  402. /**
  403. *
  404. * @type {number}
  405. * @memberof AssetCountByUserIdResponseDto
  406. */
  407. 'videos': number;
  408. /**
  409. *
  410. * @type {number}
  411. * @memberof AssetCountByUserIdResponseDto
  412. */
  413. 'other': number;
  414. /**
  415. *
  416. * @type {number}
  417. * @memberof AssetCountByUserIdResponseDto
  418. */
  419. 'total': number;
  420. }
  421. /**
  422. *
  423. * @export
  424. * @interface AssetFileUploadResponseDto
  425. */
  426. export interface AssetFileUploadResponseDto {
  427. /**
  428. *
  429. * @type {string}
  430. * @memberof AssetFileUploadResponseDto
  431. */
  432. 'id': string;
  433. /**
  434. *
  435. * @type {boolean}
  436. * @memberof AssetFileUploadResponseDto
  437. */
  438. 'duplicate': boolean;
  439. }
  440. /**
  441. *
  442. * @export
  443. * @interface AssetResponseDto
  444. */
  445. export interface AssetResponseDto {
  446. /**
  447. *
  448. * @type {AssetTypeEnum}
  449. * @memberof AssetResponseDto
  450. */
  451. 'type': AssetTypeEnum;
  452. /**
  453. *
  454. * @type {string}
  455. * @memberof AssetResponseDto
  456. */
  457. 'id': string;
  458. /**
  459. *
  460. * @type {string}
  461. * @memberof AssetResponseDto
  462. */
  463. 'deviceAssetId': string;
  464. /**
  465. *
  466. * @type {string}
  467. * @memberof AssetResponseDto
  468. */
  469. 'ownerId': string;
  470. /**
  471. *
  472. * @type {string}
  473. * @memberof AssetResponseDto
  474. */
  475. 'deviceId': string;
  476. /**
  477. *
  478. * @type {string}
  479. * @memberof AssetResponseDto
  480. */
  481. 'originalPath': string;
  482. /**
  483. *
  484. * @type {string}
  485. * @memberof AssetResponseDto
  486. */
  487. 'originalFileName': string;
  488. /**
  489. *
  490. * @type {string}
  491. * @memberof AssetResponseDto
  492. */
  493. 'resizePath': string | null;
  494. /**
  495. *
  496. * @type {string}
  497. * @memberof AssetResponseDto
  498. */
  499. 'fileCreatedAt': string;
  500. /**
  501. *
  502. * @type {string}
  503. * @memberof AssetResponseDto
  504. */
  505. 'fileModifiedAt': string;
  506. /**
  507. *
  508. * @type {string}
  509. * @memberof AssetResponseDto
  510. */
  511. 'updatedAt': string;
  512. /**
  513. *
  514. * @type {boolean}
  515. * @memberof AssetResponseDto
  516. */
  517. 'isFavorite': boolean;
  518. /**
  519. *
  520. * @type {boolean}
  521. * @memberof AssetResponseDto
  522. */
  523. 'isArchived': boolean;
  524. /**
  525. *
  526. * @type {string}
  527. * @memberof AssetResponseDto
  528. */
  529. 'mimeType': string | null;
  530. /**
  531. *
  532. * @type {string}
  533. * @memberof AssetResponseDto
  534. */
  535. 'duration': string;
  536. /**
  537. *
  538. * @type {string}
  539. * @memberof AssetResponseDto
  540. */
  541. 'webpPath': string | null;
  542. /**
  543. *
  544. * @type {string}
  545. * @memberof AssetResponseDto
  546. */
  547. 'encodedVideoPath'?: string | null;
  548. /**
  549. *
  550. * @type {ExifResponseDto}
  551. * @memberof AssetResponseDto
  552. */
  553. 'exifInfo'?: ExifResponseDto;
  554. /**
  555. *
  556. * @type {SmartInfoResponseDto}
  557. * @memberof AssetResponseDto
  558. */
  559. 'smartInfo'?: SmartInfoResponseDto;
  560. /**
  561. *
  562. * @type {string}
  563. * @memberof AssetResponseDto
  564. */
  565. 'livePhotoVideoId'?: string | null;
  566. /**
  567. *
  568. * @type {Array<TagResponseDto>}
  569. * @memberof AssetResponseDto
  570. */
  571. 'tags'?: Array<TagResponseDto>;
  572. /**
  573. *
  574. * @type {Array<PersonResponseDto>}
  575. * @memberof AssetResponseDto
  576. */
  577. 'people'?: Array<PersonResponseDto>;
  578. }
  579. /**
  580. *
  581. * @export
  582. * @enum {string}
  583. */
  584. export const AssetTypeEnum = {
  585. Image: 'IMAGE',
  586. Video: 'VIDEO',
  587. Audio: 'AUDIO',
  588. Other: 'OTHER'
  589. } as const;
  590. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  591. /**
  592. *
  593. * @export
  594. * @interface AuthDeviceResponseDto
  595. */
  596. export interface AuthDeviceResponseDto {
  597. /**
  598. *
  599. * @type {string}
  600. * @memberof AuthDeviceResponseDto
  601. */
  602. 'id': string;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof AuthDeviceResponseDto
  607. */
  608. 'createdAt': string;
  609. /**
  610. *
  611. * @type {string}
  612. * @memberof AuthDeviceResponseDto
  613. */
  614. 'updatedAt': string;
  615. /**
  616. *
  617. * @type {boolean}
  618. * @memberof AuthDeviceResponseDto
  619. */
  620. 'current': boolean;
  621. /**
  622. *
  623. * @type {string}
  624. * @memberof AuthDeviceResponseDto
  625. */
  626. 'deviceType': string;
  627. /**
  628. *
  629. * @type {string}
  630. * @memberof AuthDeviceResponseDto
  631. */
  632. 'deviceOS': string;
  633. }
  634. /**
  635. *
  636. * @export
  637. * @interface ChangePasswordDto
  638. */
  639. export interface ChangePasswordDto {
  640. /**
  641. *
  642. * @type {string}
  643. * @memberof ChangePasswordDto
  644. */
  645. 'password': string;
  646. /**
  647. *
  648. * @type {string}
  649. * @memberof ChangePasswordDto
  650. */
  651. 'newPassword': string;
  652. }
  653. /**
  654. *
  655. * @export
  656. * @interface CheckDuplicateAssetDto
  657. */
  658. export interface CheckDuplicateAssetDto {
  659. /**
  660. *
  661. * @type {string}
  662. * @memberof CheckDuplicateAssetDto
  663. */
  664. 'deviceAssetId': string;
  665. /**
  666. *
  667. * @type {string}
  668. * @memberof CheckDuplicateAssetDto
  669. */
  670. 'deviceId': string;
  671. }
  672. /**
  673. *
  674. * @export
  675. * @interface CheckDuplicateAssetResponseDto
  676. */
  677. export interface CheckDuplicateAssetResponseDto {
  678. /**
  679. *
  680. * @type {boolean}
  681. * @memberof CheckDuplicateAssetResponseDto
  682. */
  683. 'isExist': boolean;
  684. /**
  685. *
  686. * @type {string}
  687. * @memberof CheckDuplicateAssetResponseDto
  688. */
  689. 'id'?: string;
  690. }
  691. /**
  692. *
  693. * @export
  694. * @interface CheckExistingAssetsDto
  695. */
  696. export interface CheckExistingAssetsDto {
  697. /**
  698. *
  699. * @type {Array<string>}
  700. * @memberof CheckExistingAssetsDto
  701. */
  702. 'deviceAssetIds': Array<string>;
  703. /**
  704. *
  705. * @type {string}
  706. * @memberof CheckExistingAssetsDto
  707. */
  708. 'deviceId': string;
  709. }
  710. /**
  711. *
  712. * @export
  713. * @interface CheckExistingAssetsResponseDto
  714. */
  715. export interface CheckExistingAssetsResponseDto {
  716. /**
  717. *
  718. * @type {Array<string>}
  719. * @memberof CheckExistingAssetsResponseDto
  720. */
  721. 'existingIds': Array<string>;
  722. }
  723. /**
  724. *
  725. * @export
  726. * @interface CreateAlbumDto
  727. */
  728. export interface CreateAlbumDto {
  729. /**
  730. *
  731. * @type {string}
  732. * @memberof CreateAlbumDto
  733. */
  734. 'albumName': string;
  735. /**
  736. *
  737. * @type {Array<string>}
  738. * @memberof CreateAlbumDto
  739. */
  740. 'sharedWithUserIds'?: Array<string>;
  741. /**
  742. *
  743. * @type {Array<string>}
  744. * @memberof CreateAlbumDto
  745. */
  746. 'assetIds'?: Array<string>;
  747. }
  748. /**
  749. *
  750. * @export
  751. * @interface CreateAlbumShareLinkDto
  752. */
  753. export interface CreateAlbumShareLinkDto {
  754. /**
  755. *
  756. * @type {string}
  757. * @memberof CreateAlbumShareLinkDto
  758. */
  759. 'albumId': string;
  760. /**
  761. *
  762. * @type {string}
  763. * @memberof CreateAlbumShareLinkDto
  764. */
  765. 'expiresAt'?: string;
  766. /**
  767. *
  768. * @type {boolean}
  769. * @memberof CreateAlbumShareLinkDto
  770. */
  771. 'allowUpload'?: boolean;
  772. /**
  773. *
  774. * @type {boolean}
  775. * @memberof CreateAlbumShareLinkDto
  776. */
  777. 'allowDownload'?: boolean;
  778. /**
  779. *
  780. * @type {boolean}
  781. * @memberof CreateAlbumShareLinkDto
  782. */
  783. 'showExif'?: boolean;
  784. /**
  785. *
  786. * @type {string}
  787. * @memberof CreateAlbumShareLinkDto
  788. */
  789. 'description'?: string;
  790. }
  791. /**
  792. *
  793. * @export
  794. * @interface CreateAssetsShareLinkDto
  795. */
  796. export interface CreateAssetsShareLinkDto {
  797. /**
  798. *
  799. * @type {Array<string>}
  800. * @memberof CreateAssetsShareLinkDto
  801. */
  802. 'assetIds': Array<string>;
  803. /**
  804. *
  805. * @type {string}
  806. * @memberof CreateAssetsShareLinkDto
  807. */
  808. 'expiresAt'?: string;
  809. /**
  810. *
  811. * @type {boolean}
  812. * @memberof CreateAssetsShareLinkDto
  813. */
  814. 'allowUpload'?: boolean;
  815. /**
  816. *
  817. * @type {boolean}
  818. * @memberof CreateAssetsShareLinkDto
  819. */
  820. 'allowDownload'?: boolean;
  821. /**
  822. *
  823. * @type {boolean}
  824. * @memberof CreateAssetsShareLinkDto
  825. */
  826. 'showExif'?: boolean;
  827. /**
  828. *
  829. * @type {string}
  830. * @memberof CreateAssetsShareLinkDto
  831. */
  832. 'description'?: string;
  833. }
  834. /**
  835. *
  836. * @export
  837. * @interface CreateProfileImageResponseDto
  838. */
  839. export interface CreateProfileImageResponseDto {
  840. /**
  841. *
  842. * @type {string}
  843. * @memberof CreateProfileImageResponseDto
  844. */
  845. 'userId': string;
  846. /**
  847. *
  848. * @type {string}
  849. * @memberof CreateProfileImageResponseDto
  850. */
  851. 'profileImagePath': string;
  852. }
  853. /**
  854. *
  855. * @export
  856. * @interface CreateTagDto
  857. */
  858. export interface CreateTagDto {
  859. /**
  860. *
  861. * @type {TagTypeEnum}
  862. * @memberof CreateTagDto
  863. */
  864. 'type': TagTypeEnum;
  865. /**
  866. *
  867. * @type {string}
  868. * @memberof CreateTagDto
  869. */
  870. 'name': string;
  871. }
  872. /**
  873. *
  874. * @export
  875. * @interface CreateUserDto
  876. */
  877. export interface CreateUserDto {
  878. /**
  879. *
  880. * @type {string}
  881. * @memberof CreateUserDto
  882. */
  883. 'email': string;
  884. /**
  885. *
  886. * @type {string}
  887. * @memberof CreateUserDto
  888. */
  889. 'password': string;
  890. /**
  891. *
  892. * @type {string}
  893. * @memberof CreateUserDto
  894. */
  895. 'firstName': string;
  896. /**
  897. *
  898. * @type {string}
  899. * @memberof CreateUserDto
  900. */
  901. 'lastName': string;
  902. }
  903. /**
  904. *
  905. * @export
  906. * @interface CuratedLocationsResponseDto
  907. */
  908. export interface CuratedLocationsResponseDto {
  909. /**
  910. *
  911. * @type {string}
  912. * @memberof CuratedLocationsResponseDto
  913. */
  914. 'id': string;
  915. /**
  916. *
  917. * @type {string}
  918. * @memberof CuratedLocationsResponseDto
  919. */
  920. 'city': string;
  921. /**
  922. *
  923. * @type {string}
  924. * @memberof CuratedLocationsResponseDto
  925. */
  926. 'resizePath': string;
  927. /**
  928. *
  929. * @type {string}
  930. * @memberof CuratedLocationsResponseDto
  931. */
  932. 'deviceAssetId': string;
  933. /**
  934. *
  935. * @type {string}
  936. * @memberof CuratedLocationsResponseDto
  937. */
  938. 'deviceId': string;
  939. }
  940. /**
  941. *
  942. * @export
  943. * @interface CuratedObjectsResponseDto
  944. */
  945. export interface CuratedObjectsResponseDto {
  946. /**
  947. *
  948. * @type {string}
  949. * @memberof CuratedObjectsResponseDto
  950. */
  951. 'id': string;
  952. /**
  953. *
  954. * @type {string}
  955. * @memberof CuratedObjectsResponseDto
  956. */
  957. 'object': string;
  958. /**
  959. *
  960. * @type {string}
  961. * @memberof CuratedObjectsResponseDto
  962. */
  963. 'resizePath': string;
  964. /**
  965. *
  966. * @type {string}
  967. * @memberof CuratedObjectsResponseDto
  968. */
  969. 'deviceAssetId': string;
  970. /**
  971. *
  972. * @type {string}
  973. * @memberof CuratedObjectsResponseDto
  974. */
  975. 'deviceId': string;
  976. }
  977. /**
  978. *
  979. * @export
  980. * @interface DeleteAssetDto
  981. */
  982. export interface DeleteAssetDto {
  983. /**
  984. *
  985. * @type {Array<string>}
  986. * @memberof DeleteAssetDto
  987. */
  988. 'ids': Array<string>;
  989. }
  990. /**
  991. *
  992. * @export
  993. * @interface DeleteAssetResponseDto
  994. */
  995. export interface DeleteAssetResponseDto {
  996. /**
  997. *
  998. * @type {DeleteAssetStatus}
  999. * @memberof DeleteAssetResponseDto
  1000. */
  1001. 'status': DeleteAssetStatus;
  1002. /**
  1003. *
  1004. * @type {string}
  1005. * @memberof DeleteAssetResponseDto
  1006. */
  1007. 'id': string;
  1008. }
  1009. /**
  1010. *
  1011. * @export
  1012. * @enum {string}
  1013. */
  1014. export const DeleteAssetStatus = {
  1015. Success: 'SUCCESS',
  1016. Failed: 'FAILED'
  1017. } as const;
  1018. export type DeleteAssetStatus = typeof DeleteAssetStatus[keyof typeof DeleteAssetStatus];
  1019. /**
  1020. *
  1021. * @export
  1022. * @interface DownloadFilesDto
  1023. */
  1024. export interface DownloadFilesDto {
  1025. /**
  1026. *
  1027. * @type {Array<string>}
  1028. * @memberof DownloadFilesDto
  1029. */
  1030. 'assetIds': Array<string>;
  1031. }
  1032. /**
  1033. *
  1034. * @export
  1035. * @interface EditSharedLinkDto
  1036. */
  1037. export interface EditSharedLinkDto {
  1038. /**
  1039. *
  1040. * @type {string}
  1041. * @memberof EditSharedLinkDto
  1042. */
  1043. 'description'?: string;
  1044. /**
  1045. *
  1046. * @type {string}
  1047. * @memberof EditSharedLinkDto
  1048. */
  1049. 'expiresAt'?: string | null;
  1050. /**
  1051. *
  1052. * @type {boolean}
  1053. * @memberof EditSharedLinkDto
  1054. */
  1055. 'allowUpload'?: boolean;
  1056. /**
  1057. *
  1058. * @type {boolean}
  1059. * @memberof EditSharedLinkDto
  1060. */
  1061. 'allowDownload'?: boolean;
  1062. /**
  1063. *
  1064. * @type {boolean}
  1065. * @memberof EditSharedLinkDto
  1066. */
  1067. 'showExif'?: boolean;
  1068. }
  1069. /**
  1070. *
  1071. * @export
  1072. * @interface ExifResponseDto
  1073. */
  1074. export interface ExifResponseDto {
  1075. /**
  1076. *
  1077. * @type {number}
  1078. * @memberof ExifResponseDto
  1079. */
  1080. 'fileSizeInByte'?: number | null;
  1081. /**
  1082. *
  1083. * @type {string}
  1084. * @memberof ExifResponseDto
  1085. */
  1086. 'make'?: string | null;
  1087. /**
  1088. *
  1089. * @type {string}
  1090. * @memberof ExifResponseDto
  1091. */
  1092. 'model'?: string | null;
  1093. /**
  1094. *
  1095. * @type {number}
  1096. * @memberof ExifResponseDto
  1097. */
  1098. 'exifImageWidth'?: number | null;
  1099. /**
  1100. *
  1101. * @type {number}
  1102. * @memberof ExifResponseDto
  1103. */
  1104. 'exifImageHeight'?: number | null;
  1105. /**
  1106. *
  1107. * @type {string}
  1108. * @memberof ExifResponseDto
  1109. */
  1110. 'orientation'?: string | null;
  1111. /**
  1112. *
  1113. * @type {string}
  1114. * @memberof ExifResponseDto
  1115. */
  1116. 'dateTimeOriginal'?: string | null;
  1117. /**
  1118. *
  1119. * @type {string}
  1120. * @memberof ExifResponseDto
  1121. */
  1122. 'modifyDate'?: string | null;
  1123. /**
  1124. *
  1125. * @type {string}
  1126. * @memberof ExifResponseDto
  1127. */
  1128. 'timeZone'?: string | null;
  1129. /**
  1130. *
  1131. * @type {string}
  1132. * @memberof ExifResponseDto
  1133. */
  1134. 'lensModel'?: string | null;
  1135. /**
  1136. *
  1137. * @type {number}
  1138. * @memberof ExifResponseDto
  1139. */
  1140. 'fNumber'?: number | null;
  1141. /**
  1142. *
  1143. * @type {number}
  1144. * @memberof ExifResponseDto
  1145. */
  1146. 'focalLength'?: number | null;
  1147. /**
  1148. *
  1149. * @type {number}
  1150. * @memberof ExifResponseDto
  1151. */
  1152. 'iso'?: number | null;
  1153. /**
  1154. *
  1155. * @type {string}
  1156. * @memberof ExifResponseDto
  1157. */
  1158. 'exposureTime'?: string | null;
  1159. /**
  1160. *
  1161. * @type {number}
  1162. * @memberof ExifResponseDto
  1163. */
  1164. 'latitude'?: number | null;
  1165. /**
  1166. *
  1167. * @type {number}
  1168. * @memberof ExifResponseDto
  1169. */
  1170. 'longitude'?: number | null;
  1171. /**
  1172. *
  1173. * @type {string}
  1174. * @memberof ExifResponseDto
  1175. */
  1176. 'city'?: string | null;
  1177. /**
  1178. *
  1179. * @type {string}
  1180. * @memberof ExifResponseDto
  1181. */
  1182. 'state'?: string | null;
  1183. /**
  1184. *
  1185. * @type {string}
  1186. * @memberof ExifResponseDto
  1187. */
  1188. 'country'?: string | null;
  1189. /**
  1190. *
  1191. * @type {string}
  1192. * @memberof ExifResponseDto
  1193. */
  1194. 'description'?: string | null;
  1195. }
  1196. /**
  1197. *
  1198. * @export
  1199. * @interface GetAssetByTimeBucketDto
  1200. */
  1201. export interface GetAssetByTimeBucketDto {
  1202. /**
  1203. *
  1204. * @type {Array<string>}
  1205. * @memberof GetAssetByTimeBucketDto
  1206. */
  1207. 'timeBucket': Array<string>;
  1208. /**
  1209. *
  1210. * @type {string}
  1211. * @memberof GetAssetByTimeBucketDto
  1212. */
  1213. 'userId'?: string;
  1214. }
  1215. /**
  1216. *
  1217. * @export
  1218. * @interface GetAssetCountByTimeBucketDto
  1219. */
  1220. export interface GetAssetCountByTimeBucketDto {
  1221. /**
  1222. *
  1223. * @type {TimeGroupEnum}
  1224. * @memberof GetAssetCountByTimeBucketDto
  1225. */
  1226. 'timeGroup': TimeGroupEnum;
  1227. /**
  1228. *
  1229. * @type {string}
  1230. * @memberof GetAssetCountByTimeBucketDto
  1231. */
  1232. 'userId'?: string;
  1233. }
  1234. /**
  1235. *
  1236. * @export
  1237. * @enum {string}
  1238. */
  1239. export const JobCommand = {
  1240. Start: 'start',
  1241. Pause: 'pause',
  1242. Resume: 'resume',
  1243. Empty: 'empty'
  1244. } as const;
  1245. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1246. /**
  1247. *
  1248. * @export
  1249. * @interface JobCommandDto
  1250. */
  1251. export interface JobCommandDto {
  1252. /**
  1253. *
  1254. * @type {JobCommand}
  1255. * @memberof JobCommandDto
  1256. */
  1257. 'command': JobCommand;
  1258. /**
  1259. *
  1260. * @type {boolean}
  1261. * @memberof JobCommandDto
  1262. */
  1263. 'force': boolean;
  1264. }
  1265. /**
  1266. *
  1267. * @export
  1268. * @interface JobCountsDto
  1269. */
  1270. export interface JobCountsDto {
  1271. /**
  1272. *
  1273. * @type {number}
  1274. * @memberof JobCountsDto
  1275. */
  1276. 'active': number;
  1277. /**
  1278. *
  1279. * @type {number}
  1280. * @memberof JobCountsDto
  1281. */
  1282. 'completed': number;
  1283. /**
  1284. *
  1285. * @type {number}
  1286. * @memberof JobCountsDto
  1287. */
  1288. 'failed': number;
  1289. /**
  1290. *
  1291. * @type {number}
  1292. * @memberof JobCountsDto
  1293. */
  1294. 'delayed': number;
  1295. /**
  1296. *
  1297. * @type {number}
  1298. * @memberof JobCountsDto
  1299. */
  1300. 'waiting': number;
  1301. /**
  1302. *
  1303. * @type {number}
  1304. * @memberof JobCountsDto
  1305. */
  1306. 'paused': number;
  1307. }
  1308. /**
  1309. *
  1310. * @export
  1311. * @enum {string}
  1312. */
  1313. export const JobName = {
  1314. ThumbnailGenerationQueue: 'thumbnail-generation-queue',
  1315. MetadataExtractionQueue: 'metadata-extraction-queue',
  1316. VideoConversionQueue: 'video-conversion-queue',
  1317. ObjectTaggingQueue: 'object-tagging-queue',
  1318. RecognizeFacesQueue: 'recognize-faces-queue',
  1319. ClipEncodingQueue: 'clip-encoding-queue',
  1320. BackgroundTaskQueue: 'background-task-queue',
  1321. StorageTemplateMigrationQueue: 'storage-template-migration-queue',
  1322. SearchQueue: 'search-queue'
  1323. } as const;
  1324. export type JobName = typeof JobName[keyof typeof JobName];
  1325. /**
  1326. *
  1327. * @export
  1328. * @interface JobStatusDto
  1329. */
  1330. export interface JobStatusDto {
  1331. /**
  1332. *
  1333. * @type {JobCountsDto}
  1334. * @memberof JobStatusDto
  1335. */
  1336. 'jobCounts': JobCountsDto;
  1337. /**
  1338. *
  1339. * @type {QueueStatusDto}
  1340. * @memberof JobStatusDto
  1341. */
  1342. 'queueStatus': QueueStatusDto;
  1343. }
  1344. /**
  1345. *
  1346. * @export
  1347. * @interface LoginCredentialDto
  1348. */
  1349. export interface LoginCredentialDto {
  1350. /**
  1351. *
  1352. * @type {string}
  1353. * @memberof LoginCredentialDto
  1354. */
  1355. 'email': string;
  1356. /**
  1357. *
  1358. * @type {string}
  1359. * @memberof LoginCredentialDto
  1360. */
  1361. 'password': string;
  1362. }
  1363. /**
  1364. *
  1365. * @export
  1366. * @interface LoginResponseDto
  1367. */
  1368. export interface LoginResponseDto {
  1369. /**
  1370. *
  1371. * @type {string}
  1372. * @memberof LoginResponseDto
  1373. */
  1374. 'accessToken': string;
  1375. /**
  1376. *
  1377. * @type {string}
  1378. * @memberof LoginResponseDto
  1379. */
  1380. 'userId': string;
  1381. /**
  1382. *
  1383. * @type {string}
  1384. * @memberof LoginResponseDto
  1385. */
  1386. 'userEmail': string;
  1387. /**
  1388. *
  1389. * @type {string}
  1390. * @memberof LoginResponseDto
  1391. */
  1392. 'firstName': string;
  1393. /**
  1394. *
  1395. * @type {string}
  1396. * @memberof LoginResponseDto
  1397. */
  1398. 'lastName': string;
  1399. /**
  1400. *
  1401. * @type {string}
  1402. * @memberof LoginResponseDto
  1403. */
  1404. 'profileImagePath': string;
  1405. /**
  1406. *
  1407. * @type {boolean}
  1408. * @memberof LoginResponseDto
  1409. */
  1410. 'isAdmin': boolean;
  1411. /**
  1412. *
  1413. * @type {boolean}
  1414. * @memberof LoginResponseDto
  1415. */
  1416. 'shouldChangePassword': boolean;
  1417. }
  1418. /**
  1419. *
  1420. * @export
  1421. * @interface LogoutResponseDto
  1422. */
  1423. export interface LogoutResponseDto {
  1424. /**
  1425. *
  1426. * @type {boolean}
  1427. * @memberof LogoutResponseDto
  1428. */
  1429. 'successful': boolean;
  1430. /**
  1431. *
  1432. * @type {string}
  1433. * @memberof LogoutResponseDto
  1434. */
  1435. 'redirectUri': string;
  1436. }
  1437. /**
  1438. *
  1439. * @export
  1440. * @interface MapMarkerResponseDto
  1441. */
  1442. export interface MapMarkerResponseDto {
  1443. /**
  1444. *
  1445. * @type {AssetTypeEnum}
  1446. * @memberof MapMarkerResponseDto
  1447. */
  1448. 'type': AssetTypeEnum;
  1449. /**
  1450. *
  1451. * @type {number}
  1452. * @memberof MapMarkerResponseDto
  1453. */
  1454. 'lat': number;
  1455. /**
  1456. *
  1457. * @type {number}
  1458. * @memberof MapMarkerResponseDto
  1459. */
  1460. 'lon': number;
  1461. /**
  1462. *
  1463. * @type {string}
  1464. * @memberof MapMarkerResponseDto
  1465. */
  1466. 'id': string;
  1467. }
  1468. /**
  1469. *
  1470. * @export
  1471. * @interface OAuthCallbackDto
  1472. */
  1473. export interface OAuthCallbackDto {
  1474. /**
  1475. *
  1476. * @type {string}
  1477. * @memberof OAuthCallbackDto
  1478. */
  1479. 'url': string;
  1480. }
  1481. /**
  1482. *
  1483. * @export
  1484. * @interface OAuthConfigDto
  1485. */
  1486. export interface OAuthConfigDto {
  1487. /**
  1488. *
  1489. * @type {string}
  1490. * @memberof OAuthConfigDto
  1491. */
  1492. 'redirectUri': string;
  1493. }
  1494. /**
  1495. *
  1496. * @export
  1497. * @interface OAuthConfigResponseDto
  1498. */
  1499. export interface OAuthConfigResponseDto {
  1500. /**
  1501. *
  1502. * @type {boolean}
  1503. * @memberof OAuthConfigResponseDto
  1504. */
  1505. 'enabled': boolean;
  1506. /**
  1507. *
  1508. * @type {boolean}
  1509. * @memberof OAuthConfigResponseDto
  1510. */
  1511. 'passwordLoginEnabled': boolean;
  1512. /**
  1513. *
  1514. * @type {string}
  1515. * @memberof OAuthConfigResponseDto
  1516. */
  1517. 'url'?: string;
  1518. /**
  1519. *
  1520. * @type {string}
  1521. * @memberof OAuthConfigResponseDto
  1522. */
  1523. 'buttonText'?: string;
  1524. /**
  1525. *
  1526. * @type {boolean}
  1527. * @memberof OAuthConfigResponseDto
  1528. */
  1529. 'autoLaunch'?: boolean;
  1530. }
  1531. /**
  1532. *
  1533. * @export
  1534. * @interface PersonResponseDto
  1535. */
  1536. export interface PersonResponseDto {
  1537. /**
  1538. *
  1539. * @type {string}
  1540. * @memberof PersonResponseDto
  1541. */
  1542. 'id': string;
  1543. /**
  1544. *
  1545. * @type {string}
  1546. * @memberof PersonResponseDto
  1547. */
  1548. 'name': string;
  1549. /**
  1550. *
  1551. * @type {string}
  1552. * @memberof PersonResponseDto
  1553. */
  1554. 'thumbnailPath': string;
  1555. }
  1556. /**
  1557. *
  1558. * @export
  1559. * @interface PersonUpdateDto
  1560. */
  1561. export interface PersonUpdateDto {
  1562. /**
  1563. *
  1564. * @type {string}
  1565. * @memberof PersonUpdateDto
  1566. */
  1567. 'name': string;
  1568. }
  1569. /**
  1570. *
  1571. * @export
  1572. * @interface QueueStatusDto
  1573. */
  1574. export interface QueueStatusDto {
  1575. /**
  1576. *
  1577. * @type {boolean}
  1578. * @memberof QueueStatusDto
  1579. */
  1580. 'isActive': boolean;
  1581. /**
  1582. *
  1583. * @type {boolean}
  1584. * @memberof QueueStatusDto
  1585. */
  1586. 'isPaused': boolean;
  1587. }
  1588. /**
  1589. *
  1590. * @export
  1591. * @interface RemoveAssetsDto
  1592. */
  1593. export interface RemoveAssetsDto {
  1594. /**
  1595. *
  1596. * @type {Array<string>}
  1597. * @memberof RemoveAssetsDto
  1598. */
  1599. 'assetIds': Array<string>;
  1600. }
  1601. /**
  1602. *
  1603. * @export
  1604. * @interface SearchAlbumResponseDto
  1605. */
  1606. export interface SearchAlbumResponseDto {
  1607. /**
  1608. *
  1609. * @type {number}
  1610. * @memberof SearchAlbumResponseDto
  1611. */
  1612. 'total': number;
  1613. /**
  1614. *
  1615. * @type {number}
  1616. * @memberof SearchAlbumResponseDto
  1617. */
  1618. 'count': number;
  1619. /**
  1620. *
  1621. * @type {Array<AlbumResponseDto>}
  1622. * @memberof SearchAlbumResponseDto
  1623. */
  1624. 'items': Array<AlbumResponseDto>;
  1625. /**
  1626. *
  1627. * @type {Array<SearchFacetResponseDto>}
  1628. * @memberof SearchAlbumResponseDto
  1629. */
  1630. 'facets': Array<SearchFacetResponseDto>;
  1631. }
  1632. /**
  1633. *
  1634. * @export
  1635. * @interface SearchAssetDto
  1636. */
  1637. export interface SearchAssetDto {
  1638. /**
  1639. *
  1640. * @type {string}
  1641. * @memberof SearchAssetDto
  1642. */
  1643. 'searchTerm': string;
  1644. }
  1645. /**
  1646. *
  1647. * @export
  1648. * @interface SearchAssetResponseDto
  1649. */
  1650. export interface SearchAssetResponseDto {
  1651. /**
  1652. *
  1653. * @type {number}
  1654. * @memberof SearchAssetResponseDto
  1655. */
  1656. 'total': number;
  1657. /**
  1658. *
  1659. * @type {number}
  1660. * @memberof SearchAssetResponseDto
  1661. */
  1662. 'count': number;
  1663. /**
  1664. *
  1665. * @type {Array<AssetResponseDto>}
  1666. * @memberof SearchAssetResponseDto
  1667. */
  1668. 'items': Array<AssetResponseDto>;
  1669. /**
  1670. *
  1671. * @type {Array<SearchFacetResponseDto>}
  1672. * @memberof SearchAssetResponseDto
  1673. */
  1674. 'facets': Array<SearchFacetResponseDto>;
  1675. }
  1676. /**
  1677. *
  1678. * @export
  1679. * @interface SearchConfigResponseDto
  1680. */
  1681. export interface SearchConfigResponseDto {
  1682. /**
  1683. *
  1684. * @type {boolean}
  1685. * @memberof SearchConfigResponseDto
  1686. */
  1687. 'enabled': boolean;
  1688. }
  1689. /**
  1690. *
  1691. * @export
  1692. * @interface SearchExploreItem
  1693. */
  1694. export interface SearchExploreItem {
  1695. /**
  1696. *
  1697. * @type {string}
  1698. * @memberof SearchExploreItem
  1699. */
  1700. 'value': string;
  1701. /**
  1702. *
  1703. * @type {AssetResponseDto}
  1704. * @memberof SearchExploreItem
  1705. */
  1706. 'data': AssetResponseDto;
  1707. }
  1708. /**
  1709. *
  1710. * @export
  1711. * @interface SearchExploreResponseDto
  1712. */
  1713. export interface SearchExploreResponseDto {
  1714. /**
  1715. *
  1716. * @type {string}
  1717. * @memberof SearchExploreResponseDto
  1718. */
  1719. 'fieldName': string;
  1720. /**
  1721. *
  1722. * @type {Array<SearchExploreItem>}
  1723. * @memberof SearchExploreResponseDto
  1724. */
  1725. 'items': Array<SearchExploreItem>;
  1726. }
  1727. /**
  1728. *
  1729. * @export
  1730. * @interface SearchFacetCountResponseDto
  1731. */
  1732. export interface SearchFacetCountResponseDto {
  1733. /**
  1734. *
  1735. * @type {number}
  1736. * @memberof SearchFacetCountResponseDto
  1737. */
  1738. 'count': number;
  1739. /**
  1740. *
  1741. * @type {string}
  1742. * @memberof SearchFacetCountResponseDto
  1743. */
  1744. 'value': string;
  1745. }
  1746. /**
  1747. *
  1748. * @export
  1749. * @interface SearchFacetResponseDto
  1750. */
  1751. export interface SearchFacetResponseDto {
  1752. /**
  1753. *
  1754. * @type {string}
  1755. * @memberof SearchFacetResponseDto
  1756. */
  1757. 'fieldName': string;
  1758. /**
  1759. *
  1760. * @type {Array<SearchFacetCountResponseDto>}
  1761. * @memberof SearchFacetResponseDto
  1762. */
  1763. 'counts': Array<SearchFacetCountResponseDto>;
  1764. }
  1765. /**
  1766. *
  1767. * @export
  1768. * @interface SearchResponseDto
  1769. */
  1770. export interface SearchResponseDto {
  1771. /**
  1772. *
  1773. * @type {SearchAlbumResponseDto}
  1774. * @memberof SearchResponseDto
  1775. */
  1776. 'albums': SearchAlbumResponseDto;
  1777. /**
  1778. *
  1779. * @type {SearchAssetResponseDto}
  1780. * @memberof SearchResponseDto
  1781. */
  1782. 'assets': SearchAssetResponseDto;
  1783. }
  1784. /**
  1785. *
  1786. * @export
  1787. * @interface ServerInfoResponseDto
  1788. */
  1789. export interface ServerInfoResponseDto {
  1790. /**
  1791. *
  1792. * @type {number}
  1793. * @memberof ServerInfoResponseDto
  1794. */
  1795. 'diskSizeRaw': number;
  1796. /**
  1797. *
  1798. * @type {number}
  1799. * @memberof ServerInfoResponseDto
  1800. */
  1801. 'diskUseRaw': number;
  1802. /**
  1803. *
  1804. * @type {number}
  1805. * @memberof ServerInfoResponseDto
  1806. */
  1807. 'diskAvailableRaw': number;
  1808. /**
  1809. *
  1810. * @type {number}
  1811. * @memberof ServerInfoResponseDto
  1812. */
  1813. 'diskUsagePercentage': number;
  1814. /**
  1815. *
  1816. * @type {string}
  1817. * @memberof ServerInfoResponseDto
  1818. */
  1819. 'diskSize': string;
  1820. /**
  1821. *
  1822. * @type {string}
  1823. * @memberof ServerInfoResponseDto
  1824. */
  1825. 'diskUse': string;
  1826. /**
  1827. *
  1828. * @type {string}
  1829. * @memberof ServerInfoResponseDto
  1830. */
  1831. 'diskAvailable': string;
  1832. }
  1833. /**
  1834. *
  1835. * @export
  1836. * @interface ServerPingResponse
  1837. */
  1838. export interface ServerPingResponse {
  1839. /**
  1840. *
  1841. * @type {string}
  1842. * @memberof ServerPingResponse
  1843. */
  1844. 'res': string;
  1845. }
  1846. /**
  1847. *
  1848. * @export
  1849. * @interface ServerStatsResponseDto
  1850. */
  1851. export interface ServerStatsResponseDto {
  1852. /**
  1853. *
  1854. * @type {number}
  1855. * @memberof ServerStatsResponseDto
  1856. */
  1857. 'photos': number;
  1858. /**
  1859. *
  1860. * @type {number}
  1861. * @memberof ServerStatsResponseDto
  1862. */
  1863. 'videos': number;
  1864. /**
  1865. *
  1866. * @type {number}
  1867. * @memberof ServerStatsResponseDto
  1868. */
  1869. 'usage': number;
  1870. /**
  1871. *
  1872. * @type {Array<UsageByUserDto>}
  1873. * @memberof ServerStatsResponseDto
  1874. */
  1875. 'usageByUser': Array<UsageByUserDto>;
  1876. }
  1877. /**
  1878. *
  1879. * @export
  1880. * @interface ServerVersionReponseDto
  1881. */
  1882. export interface ServerVersionReponseDto {
  1883. /**
  1884. *
  1885. * @type {number}
  1886. * @memberof ServerVersionReponseDto
  1887. */
  1888. 'major': number;
  1889. /**
  1890. *
  1891. * @type {number}
  1892. * @memberof ServerVersionReponseDto
  1893. */
  1894. 'minor': number;
  1895. /**
  1896. *
  1897. * @type {number}
  1898. * @memberof ServerVersionReponseDto
  1899. */
  1900. 'patch': number;
  1901. }
  1902. /**
  1903. *
  1904. * @export
  1905. * @interface SharedLinkResponseDto
  1906. */
  1907. export interface SharedLinkResponseDto {
  1908. /**
  1909. *
  1910. * @type {SharedLinkType}
  1911. * @memberof SharedLinkResponseDto
  1912. */
  1913. 'type': SharedLinkType;
  1914. /**
  1915. *
  1916. * @type {string}
  1917. * @memberof SharedLinkResponseDto
  1918. */
  1919. 'id': string;
  1920. /**
  1921. *
  1922. * @type {string}
  1923. * @memberof SharedLinkResponseDto
  1924. */
  1925. 'description'?: string;
  1926. /**
  1927. *
  1928. * @type {string}
  1929. * @memberof SharedLinkResponseDto
  1930. */
  1931. 'userId': string;
  1932. /**
  1933. *
  1934. * @type {string}
  1935. * @memberof SharedLinkResponseDto
  1936. */
  1937. 'key': string;
  1938. /**
  1939. *
  1940. * @type {string}
  1941. * @memberof SharedLinkResponseDto
  1942. */
  1943. 'createdAt': string;
  1944. /**
  1945. *
  1946. * @type {string}
  1947. * @memberof SharedLinkResponseDto
  1948. */
  1949. 'expiresAt': string | null;
  1950. /**
  1951. *
  1952. * @type {Array<AssetResponseDto>}
  1953. * @memberof SharedLinkResponseDto
  1954. */
  1955. 'assets': Array<AssetResponseDto>;
  1956. /**
  1957. *
  1958. * @type {AlbumResponseDto}
  1959. * @memberof SharedLinkResponseDto
  1960. */
  1961. 'album'?: AlbumResponseDto;
  1962. /**
  1963. *
  1964. * @type {boolean}
  1965. * @memberof SharedLinkResponseDto
  1966. */
  1967. 'allowUpload': boolean;
  1968. /**
  1969. *
  1970. * @type {boolean}
  1971. * @memberof SharedLinkResponseDto
  1972. */
  1973. 'allowDownload': boolean;
  1974. /**
  1975. *
  1976. * @type {boolean}
  1977. * @memberof SharedLinkResponseDto
  1978. */
  1979. 'showExif': boolean;
  1980. }
  1981. /**
  1982. *
  1983. * @export
  1984. * @enum {string}
  1985. */
  1986. export const SharedLinkType = {
  1987. Album: 'ALBUM',
  1988. Individual: 'INDIVIDUAL'
  1989. } as const;
  1990. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  1991. /**
  1992. *
  1993. * @export
  1994. * @interface SignUpDto
  1995. */
  1996. export interface SignUpDto {
  1997. /**
  1998. *
  1999. * @type {string}
  2000. * @memberof SignUpDto
  2001. */
  2002. 'email': string;
  2003. /**
  2004. *
  2005. * @type {string}
  2006. * @memberof SignUpDto
  2007. */
  2008. 'password': string;
  2009. /**
  2010. *
  2011. * @type {string}
  2012. * @memberof SignUpDto
  2013. */
  2014. 'firstName': string;
  2015. /**
  2016. *
  2017. * @type {string}
  2018. * @memberof SignUpDto
  2019. */
  2020. 'lastName': string;
  2021. }
  2022. /**
  2023. *
  2024. * @export
  2025. * @interface SmartInfoResponseDto
  2026. */
  2027. export interface SmartInfoResponseDto {
  2028. /**
  2029. *
  2030. * @type {Array<string>}
  2031. * @memberof SmartInfoResponseDto
  2032. */
  2033. 'tags'?: Array<string> | null;
  2034. /**
  2035. *
  2036. * @type {Array<string>}
  2037. * @memberof SmartInfoResponseDto
  2038. */
  2039. 'objects'?: Array<string> | null;
  2040. }
  2041. /**
  2042. *
  2043. * @export
  2044. * @interface SystemConfigDto
  2045. */
  2046. export interface SystemConfigDto {
  2047. /**
  2048. *
  2049. * @type {SystemConfigFFmpegDto}
  2050. * @memberof SystemConfigDto
  2051. */
  2052. 'ffmpeg': SystemConfigFFmpegDto;
  2053. /**
  2054. *
  2055. * @type {SystemConfigOAuthDto}
  2056. * @memberof SystemConfigDto
  2057. */
  2058. 'oauth': SystemConfigOAuthDto;
  2059. /**
  2060. *
  2061. * @type {SystemConfigPasswordLoginDto}
  2062. * @memberof SystemConfigDto
  2063. */
  2064. 'passwordLogin': SystemConfigPasswordLoginDto;
  2065. /**
  2066. *
  2067. * @type {SystemConfigStorageTemplateDto}
  2068. * @memberof SystemConfigDto
  2069. */
  2070. 'storageTemplate': SystemConfigStorageTemplateDto;
  2071. }
  2072. /**
  2073. *
  2074. * @export
  2075. * @interface SystemConfigFFmpegDto
  2076. */
  2077. export interface SystemConfigFFmpegDto {
  2078. /**
  2079. *
  2080. * @type {string}
  2081. * @memberof SystemConfigFFmpegDto
  2082. */
  2083. 'crf': string;
  2084. /**
  2085. *
  2086. * @type {string}
  2087. * @memberof SystemConfigFFmpegDto
  2088. */
  2089. 'preset': string;
  2090. /**
  2091. *
  2092. * @type {string}
  2093. * @memberof SystemConfigFFmpegDto
  2094. */
  2095. 'targetVideoCodec': string;
  2096. /**
  2097. *
  2098. * @type {string}
  2099. * @memberof SystemConfigFFmpegDto
  2100. */
  2101. 'targetAudioCodec': string;
  2102. /**
  2103. *
  2104. * @type {string}
  2105. * @memberof SystemConfigFFmpegDto
  2106. */
  2107. 'targetResolution': string;
  2108. /**
  2109. *
  2110. * @type {string}
  2111. * @memberof SystemConfigFFmpegDto
  2112. */
  2113. 'transcode': SystemConfigFFmpegDtoTranscodeEnum;
  2114. }
  2115. export const SystemConfigFFmpegDtoTranscodeEnum = {
  2116. All: 'all',
  2117. Optimal: 'optimal',
  2118. Required: 'required',
  2119. Disabled: 'disabled'
  2120. } as const;
  2121. export type SystemConfigFFmpegDtoTranscodeEnum = typeof SystemConfigFFmpegDtoTranscodeEnum[keyof typeof SystemConfigFFmpegDtoTranscodeEnum];
  2122. /**
  2123. *
  2124. * @export
  2125. * @interface SystemConfigOAuthDto
  2126. */
  2127. export interface SystemConfigOAuthDto {
  2128. /**
  2129. *
  2130. * @type {boolean}
  2131. * @memberof SystemConfigOAuthDto
  2132. */
  2133. 'enabled': boolean;
  2134. /**
  2135. *
  2136. * @type {string}
  2137. * @memberof SystemConfigOAuthDto
  2138. */
  2139. 'issuerUrl': string;
  2140. /**
  2141. *
  2142. * @type {string}
  2143. * @memberof SystemConfigOAuthDto
  2144. */
  2145. 'clientId': string;
  2146. /**
  2147. *
  2148. * @type {string}
  2149. * @memberof SystemConfigOAuthDto
  2150. */
  2151. 'clientSecret': string;
  2152. /**
  2153. *
  2154. * @type {string}
  2155. * @memberof SystemConfigOAuthDto
  2156. */
  2157. 'scope': string;
  2158. /**
  2159. *
  2160. * @type {string}
  2161. * @memberof SystemConfigOAuthDto
  2162. */
  2163. 'buttonText': string;
  2164. /**
  2165. *
  2166. * @type {boolean}
  2167. * @memberof SystemConfigOAuthDto
  2168. */
  2169. 'autoRegister': boolean;
  2170. /**
  2171. *
  2172. * @type {boolean}
  2173. * @memberof SystemConfigOAuthDto
  2174. */
  2175. 'autoLaunch': boolean;
  2176. /**
  2177. *
  2178. * @type {boolean}
  2179. * @memberof SystemConfigOAuthDto
  2180. */
  2181. 'mobileOverrideEnabled': boolean;
  2182. /**
  2183. *
  2184. * @type {string}
  2185. * @memberof SystemConfigOAuthDto
  2186. */
  2187. 'mobileRedirectUri': string;
  2188. }
  2189. /**
  2190. *
  2191. * @export
  2192. * @interface SystemConfigPasswordLoginDto
  2193. */
  2194. export interface SystemConfigPasswordLoginDto {
  2195. /**
  2196. *
  2197. * @type {boolean}
  2198. * @memberof SystemConfigPasswordLoginDto
  2199. */
  2200. 'enabled': boolean;
  2201. }
  2202. /**
  2203. *
  2204. * @export
  2205. * @interface SystemConfigStorageTemplateDto
  2206. */
  2207. export interface SystemConfigStorageTemplateDto {
  2208. /**
  2209. *
  2210. * @type {string}
  2211. * @memberof SystemConfigStorageTemplateDto
  2212. */
  2213. 'template': string;
  2214. }
  2215. /**
  2216. *
  2217. * @export
  2218. * @interface SystemConfigTemplateStorageOptionDto
  2219. */
  2220. export interface SystemConfigTemplateStorageOptionDto {
  2221. /**
  2222. *
  2223. * @type {Array<string>}
  2224. * @memberof SystemConfigTemplateStorageOptionDto
  2225. */
  2226. 'yearOptions': Array<string>;
  2227. /**
  2228. *
  2229. * @type {Array<string>}
  2230. * @memberof SystemConfigTemplateStorageOptionDto
  2231. */
  2232. 'monthOptions': Array<string>;
  2233. /**
  2234. *
  2235. * @type {Array<string>}
  2236. * @memberof SystemConfigTemplateStorageOptionDto
  2237. */
  2238. 'dayOptions': Array<string>;
  2239. /**
  2240. *
  2241. * @type {Array<string>}
  2242. * @memberof SystemConfigTemplateStorageOptionDto
  2243. */
  2244. 'hourOptions': Array<string>;
  2245. /**
  2246. *
  2247. * @type {Array<string>}
  2248. * @memberof SystemConfigTemplateStorageOptionDto
  2249. */
  2250. 'minuteOptions': Array<string>;
  2251. /**
  2252. *
  2253. * @type {Array<string>}
  2254. * @memberof SystemConfigTemplateStorageOptionDto
  2255. */
  2256. 'secondOptions': Array<string>;
  2257. /**
  2258. *
  2259. * @type {Array<string>}
  2260. * @memberof SystemConfigTemplateStorageOptionDto
  2261. */
  2262. 'presetOptions': Array<string>;
  2263. }
  2264. /**
  2265. *
  2266. * @export
  2267. * @interface TagResponseDto
  2268. */
  2269. export interface TagResponseDto {
  2270. /**
  2271. *
  2272. * @type {string}
  2273. * @memberof TagResponseDto
  2274. */
  2275. 'id': string;
  2276. /**
  2277. *
  2278. * @type {TagTypeEnum}
  2279. * @memberof TagResponseDto
  2280. */
  2281. 'type': TagTypeEnum;
  2282. /**
  2283. *
  2284. * @type {string}
  2285. * @memberof TagResponseDto
  2286. */
  2287. 'name': string;
  2288. /**
  2289. *
  2290. * @type {string}
  2291. * @memberof TagResponseDto
  2292. */
  2293. 'userId': string;
  2294. /**
  2295. *
  2296. * @type {string}
  2297. * @memberof TagResponseDto
  2298. */
  2299. 'renameTagId'?: string | null;
  2300. }
  2301. /**
  2302. *
  2303. * @export
  2304. * @enum {string}
  2305. */
  2306. export const TagTypeEnum = {
  2307. Object: 'OBJECT',
  2308. Face: 'FACE',
  2309. Custom: 'CUSTOM'
  2310. } as const;
  2311. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  2312. /**
  2313. *
  2314. * @export
  2315. * @enum {string}
  2316. */
  2317. export const ThumbnailFormat = {
  2318. Jpeg: 'JPEG',
  2319. Webp: 'WEBP'
  2320. } as const;
  2321. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  2322. /**
  2323. *
  2324. * @export
  2325. * @enum {string}
  2326. */
  2327. export const TimeGroupEnum = {
  2328. Day: 'day',
  2329. Month: 'month'
  2330. } as const;
  2331. export type TimeGroupEnum = typeof TimeGroupEnum[keyof typeof TimeGroupEnum];
  2332. /**
  2333. *
  2334. * @export
  2335. * @interface UpdateAlbumDto
  2336. */
  2337. export interface UpdateAlbumDto {
  2338. /**
  2339. *
  2340. * @type {string}
  2341. * @memberof UpdateAlbumDto
  2342. */
  2343. 'albumName'?: string;
  2344. /**
  2345. *
  2346. * @type {string}
  2347. * @memberof UpdateAlbumDto
  2348. */
  2349. 'albumThumbnailAssetId'?: string;
  2350. }
  2351. /**
  2352. *
  2353. * @export
  2354. * @interface UpdateAssetDto
  2355. */
  2356. export interface UpdateAssetDto {
  2357. /**
  2358. *
  2359. * @type {Array<string>}
  2360. * @memberof UpdateAssetDto
  2361. */
  2362. 'tagIds'?: Array<string>;
  2363. /**
  2364. *
  2365. * @type {boolean}
  2366. * @memberof UpdateAssetDto
  2367. */
  2368. 'isFavorite'?: boolean;
  2369. /**
  2370. *
  2371. * @type {boolean}
  2372. * @memberof UpdateAssetDto
  2373. */
  2374. 'isArchived'?: boolean;
  2375. /**
  2376. *
  2377. * @type {string}
  2378. * @memberof UpdateAssetDto
  2379. */
  2380. 'description'?: string;
  2381. }
  2382. /**
  2383. *
  2384. * @export
  2385. * @interface UpdateTagDto
  2386. */
  2387. export interface UpdateTagDto {
  2388. /**
  2389. *
  2390. * @type {string}
  2391. * @memberof UpdateTagDto
  2392. */
  2393. 'name'?: string;
  2394. /**
  2395. *
  2396. * @type {string}
  2397. * @memberof UpdateTagDto
  2398. */
  2399. 'renameTagId'?: string;
  2400. }
  2401. /**
  2402. *
  2403. * @export
  2404. * @interface UpdateUserDto
  2405. */
  2406. export interface UpdateUserDto {
  2407. /**
  2408. *
  2409. * @type {string}
  2410. * @memberof UpdateUserDto
  2411. */
  2412. 'email'?: string;
  2413. /**
  2414. *
  2415. * @type {string}
  2416. * @memberof UpdateUserDto
  2417. */
  2418. 'password'?: string;
  2419. /**
  2420. *
  2421. * @type {string}
  2422. * @memberof UpdateUserDto
  2423. */
  2424. 'firstName'?: string;
  2425. /**
  2426. *
  2427. * @type {string}
  2428. * @memberof UpdateUserDto
  2429. */
  2430. 'lastName'?: string;
  2431. /**
  2432. *
  2433. * @type {string}
  2434. * @memberof UpdateUserDto
  2435. */
  2436. 'id': string;
  2437. /**
  2438. *
  2439. * @type {boolean}
  2440. * @memberof UpdateUserDto
  2441. */
  2442. 'isAdmin'?: boolean;
  2443. /**
  2444. *
  2445. * @type {boolean}
  2446. * @memberof UpdateUserDto
  2447. */
  2448. 'shouldChangePassword'?: boolean;
  2449. }
  2450. /**
  2451. *
  2452. * @export
  2453. * @interface UsageByUserDto
  2454. */
  2455. export interface UsageByUserDto {
  2456. /**
  2457. *
  2458. * @type {string}
  2459. * @memberof UsageByUserDto
  2460. */
  2461. 'userId': string;
  2462. /**
  2463. *
  2464. * @type {string}
  2465. * @memberof UsageByUserDto
  2466. */
  2467. 'userFirstName': string;
  2468. /**
  2469. *
  2470. * @type {string}
  2471. * @memberof UsageByUserDto
  2472. */
  2473. 'userLastName': string;
  2474. /**
  2475. *
  2476. * @type {number}
  2477. * @memberof UsageByUserDto
  2478. */
  2479. 'photos': number;
  2480. /**
  2481. *
  2482. * @type {number}
  2483. * @memberof UsageByUserDto
  2484. */
  2485. 'videos': number;
  2486. /**
  2487. *
  2488. * @type {number}
  2489. * @memberof UsageByUserDto
  2490. */
  2491. 'usage': number;
  2492. }
  2493. /**
  2494. *
  2495. * @export
  2496. * @interface UserCountResponseDto
  2497. */
  2498. export interface UserCountResponseDto {
  2499. /**
  2500. *
  2501. * @type {number}
  2502. * @memberof UserCountResponseDto
  2503. */
  2504. 'userCount': number;
  2505. }
  2506. /**
  2507. *
  2508. * @export
  2509. * @interface UserResponseDto
  2510. */
  2511. export interface UserResponseDto {
  2512. /**
  2513. *
  2514. * @type {string}
  2515. * @memberof UserResponseDto
  2516. */
  2517. 'id': string;
  2518. /**
  2519. *
  2520. * @type {string}
  2521. * @memberof UserResponseDto
  2522. */
  2523. 'email': string;
  2524. /**
  2525. *
  2526. * @type {string}
  2527. * @memberof UserResponseDto
  2528. */
  2529. 'firstName': string;
  2530. /**
  2531. *
  2532. * @type {string}
  2533. * @memberof UserResponseDto
  2534. */
  2535. 'lastName': string;
  2536. /**
  2537. *
  2538. * @type {string}
  2539. * @memberof UserResponseDto
  2540. */
  2541. 'createdAt': string;
  2542. /**
  2543. *
  2544. * @type {string}
  2545. * @memberof UserResponseDto
  2546. */
  2547. 'profileImagePath': string;
  2548. /**
  2549. *
  2550. * @type {boolean}
  2551. * @memberof UserResponseDto
  2552. */
  2553. 'shouldChangePassword': boolean;
  2554. /**
  2555. *
  2556. * @type {boolean}
  2557. * @memberof UserResponseDto
  2558. */
  2559. 'isAdmin': boolean;
  2560. /**
  2561. *
  2562. * @type {string}
  2563. * @memberof UserResponseDto
  2564. */
  2565. 'deletedAt'?: string;
  2566. /**
  2567. *
  2568. * @type {string}
  2569. * @memberof UserResponseDto
  2570. */
  2571. 'updatedAt'?: string;
  2572. /**
  2573. *
  2574. * @type {string}
  2575. * @memberof UserResponseDto
  2576. */
  2577. 'oauthId': string;
  2578. }
  2579. /**
  2580. *
  2581. * @export
  2582. * @interface ValidateAccessTokenResponseDto
  2583. */
  2584. export interface ValidateAccessTokenResponseDto {
  2585. /**
  2586. *
  2587. * @type {boolean}
  2588. * @memberof ValidateAccessTokenResponseDto
  2589. */
  2590. 'authStatus': boolean;
  2591. }
  2592. /**
  2593. * APIKeyApi - axios parameter creator
  2594. * @export
  2595. */
  2596. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  2597. return {
  2598. /**
  2599. *
  2600. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2601. * @param {*} [options] Override http request option.
  2602. * @throws {RequiredError}
  2603. */
  2604. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2605. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  2606. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  2607. const localVarPath = `/api-key`;
  2608. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2609. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2610. let baseOptions;
  2611. if (configuration) {
  2612. baseOptions = configuration.baseOptions;
  2613. }
  2614. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2615. const localVarHeaderParameter = {} as any;
  2616. const localVarQueryParameter = {} as any;
  2617. // authentication cookie required
  2618. // authentication api_key required
  2619. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2620. // authentication bearer required
  2621. // http bearer authentication required
  2622. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2623. localVarHeaderParameter['Content-Type'] = 'application/json';
  2624. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2625. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2626. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2627. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  2628. return {
  2629. url: toPathString(localVarUrlObj),
  2630. options: localVarRequestOptions,
  2631. };
  2632. },
  2633. /**
  2634. *
  2635. * @param {string} id
  2636. * @param {*} [options] Override http request option.
  2637. * @throws {RequiredError}
  2638. */
  2639. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2640. // verify required parameter 'id' is not null or undefined
  2641. assertParamExists('deleteKey', 'id', id)
  2642. const localVarPath = `/api-key/{id}`
  2643. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  2644. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2645. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2646. let baseOptions;
  2647. if (configuration) {
  2648. baseOptions = configuration.baseOptions;
  2649. }
  2650. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  2651. const localVarHeaderParameter = {} as any;
  2652. const localVarQueryParameter = {} as any;
  2653. // authentication cookie required
  2654. // authentication api_key required
  2655. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2656. // authentication bearer required
  2657. // http bearer authentication required
  2658. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2659. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2660. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2661. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2662. return {
  2663. url: toPathString(localVarUrlObj),
  2664. options: localVarRequestOptions,
  2665. };
  2666. },
  2667. /**
  2668. *
  2669. * @param {string} id
  2670. * @param {*} [options] Override http request option.
  2671. * @throws {RequiredError}
  2672. */
  2673. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2674. // verify required parameter 'id' is not null or undefined
  2675. assertParamExists('getKey', 'id', id)
  2676. const localVarPath = `/api-key/{id}`
  2677. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  2678. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2679. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2680. let baseOptions;
  2681. if (configuration) {
  2682. baseOptions = configuration.baseOptions;
  2683. }
  2684. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2685. const localVarHeaderParameter = {} as any;
  2686. const localVarQueryParameter = {} as any;
  2687. // authentication cookie required
  2688. // authentication api_key required
  2689. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2690. // authentication bearer required
  2691. // http bearer authentication required
  2692. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2693. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2694. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2695. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2696. return {
  2697. url: toPathString(localVarUrlObj),
  2698. options: localVarRequestOptions,
  2699. };
  2700. },
  2701. /**
  2702. *
  2703. * @param {*} [options] Override http request option.
  2704. * @throws {RequiredError}
  2705. */
  2706. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2707. const localVarPath = `/api-key`;
  2708. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2709. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2710. let baseOptions;
  2711. if (configuration) {
  2712. baseOptions = configuration.baseOptions;
  2713. }
  2714. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2715. const localVarHeaderParameter = {} as any;
  2716. const localVarQueryParameter = {} as any;
  2717. // authentication cookie required
  2718. // authentication api_key required
  2719. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2720. // authentication bearer required
  2721. // http bearer authentication required
  2722. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2723. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2724. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2725. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2726. return {
  2727. url: toPathString(localVarUrlObj),
  2728. options: localVarRequestOptions,
  2729. };
  2730. },
  2731. /**
  2732. *
  2733. * @param {string} id
  2734. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2735. * @param {*} [options] Override http request option.
  2736. * @throws {RequiredError}
  2737. */
  2738. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2739. // verify required parameter 'id' is not null or undefined
  2740. assertParamExists('updateKey', 'id', id)
  2741. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  2742. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  2743. const localVarPath = `/api-key/{id}`
  2744. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  2745. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2746. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2747. let baseOptions;
  2748. if (configuration) {
  2749. baseOptions = configuration.baseOptions;
  2750. }
  2751. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  2752. const localVarHeaderParameter = {} as any;
  2753. const localVarQueryParameter = {} as any;
  2754. // authentication cookie required
  2755. // authentication api_key required
  2756. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2757. // authentication bearer required
  2758. // http bearer authentication required
  2759. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2760. localVarHeaderParameter['Content-Type'] = 'application/json';
  2761. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2762. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2763. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2764. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  2765. return {
  2766. url: toPathString(localVarUrlObj),
  2767. options: localVarRequestOptions,
  2768. };
  2769. },
  2770. }
  2771. };
  2772. /**
  2773. * APIKeyApi - functional programming interface
  2774. * @export
  2775. */
  2776. export const APIKeyApiFp = function(configuration?: Configuration) {
  2777. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  2778. return {
  2779. /**
  2780. *
  2781. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2782. * @param {*} [options] Override http request option.
  2783. * @throws {RequiredError}
  2784. */
  2785. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  2786. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  2787. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2788. },
  2789. /**
  2790. *
  2791. * @param {string} id
  2792. * @param {*} [options] Override http request option.
  2793. * @throws {RequiredError}
  2794. */
  2795. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  2796. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  2797. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2798. },
  2799. /**
  2800. *
  2801. * @param {string} id
  2802. * @param {*} [options] Override http request option.
  2803. * @throws {RequiredError}
  2804. */
  2805. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  2806. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  2807. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2808. },
  2809. /**
  2810. *
  2811. * @param {*} [options] Override http request option.
  2812. * @throws {RequiredError}
  2813. */
  2814. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  2815. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  2816. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2817. },
  2818. /**
  2819. *
  2820. * @param {string} id
  2821. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2822. * @param {*} [options] Override http request option.
  2823. * @throws {RequiredError}
  2824. */
  2825. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  2826. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  2827. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2828. },
  2829. }
  2830. };
  2831. /**
  2832. * APIKeyApi - factory interface
  2833. * @export
  2834. */
  2835. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  2836. const localVarFp = APIKeyApiFp(configuration)
  2837. return {
  2838. /**
  2839. *
  2840. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2841. * @param {*} [options] Override http request option.
  2842. * @throws {RequiredError}
  2843. */
  2844. createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: any): AxiosPromise<APIKeyCreateResponseDto> {
  2845. return localVarFp.createKey(aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  2846. },
  2847. /**
  2848. *
  2849. * @param {string} id
  2850. * @param {*} [options] Override http request option.
  2851. * @throws {RequiredError}
  2852. */
  2853. deleteKey(id: string, options?: any): AxiosPromise<void> {
  2854. return localVarFp.deleteKey(id, options).then((request) => request(axios, basePath));
  2855. },
  2856. /**
  2857. *
  2858. * @param {string} id
  2859. * @param {*} [options] Override http request option.
  2860. * @throws {RequiredError}
  2861. */
  2862. getKey(id: string, options?: any): AxiosPromise<APIKeyResponseDto> {
  2863. return localVarFp.getKey(id, options).then((request) => request(axios, basePath));
  2864. },
  2865. /**
  2866. *
  2867. * @param {*} [options] Override http request option.
  2868. * @throws {RequiredError}
  2869. */
  2870. getKeys(options?: any): AxiosPromise<Array<APIKeyResponseDto>> {
  2871. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  2872. },
  2873. /**
  2874. *
  2875. * @param {string} id
  2876. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2877. * @param {*} [options] Override http request option.
  2878. * @throws {RequiredError}
  2879. */
  2880. updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: any): AxiosPromise<APIKeyResponseDto> {
  2881. return localVarFp.updateKey(id, aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  2882. },
  2883. };
  2884. };
  2885. /**
  2886. * APIKeyApi - object-oriented interface
  2887. * @export
  2888. * @class APIKeyApi
  2889. * @extends {BaseAPI}
  2890. */
  2891. export class APIKeyApi extends BaseAPI {
  2892. /**
  2893. *
  2894. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2895. * @param {*} [options] Override http request option.
  2896. * @throws {RequiredError}
  2897. * @memberof APIKeyApi
  2898. */
  2899. public createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig) {
  2900. return APIKeyApiFp(this.configuration).createKey(aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  2901. }
  2902. /**
  2903. *
  2904. * @param {string} id
  2905. * @param {*} [options] Override http request option.
  2906. * @throws {RequiredError}
  2907. * @memberof APIKeyApi
  2908. */
  2909. public deleteKey(id: string, options?: AxiosRequestConfig) {
  2910. return APIKeyApiFp(this.configuration).deleteKey(id, options).then((request) => request(this.axios, this.basePath));
  2911. }
  2912. /**
  2913. *
  2914. * @param {string} id
  2915. * @param {*} [options] Override http request option.
  2916. * @throws {RequiredError}
  2917. * @memberof APIKeyApi
  2918. */
  2919. public getKey(id: string, options?: AxiosRequestConfig) {
  2920. return APIKeyApiFp(this.configuration).getKey(id, options).then((request) => request(this.axios, this.basePath));
  2921. }
  2922. /**
  2923. *
  2924. * @param {*} [options] Override http request option.
  2925. * @throws {RequiredError}
  2926. * @memberof APIKeyApi
  2927. */
  2928. public getKeys(options?: AxiosRequestConfig) {
  2929. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  2930. }
  2931. /**
  2932. *
  2933. * @param {string} id
  2934. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2935. * @param {*} [options] Override http request option.
  2936. * @throws {RequiredError}
  2937. * @memberof APIKeyApi
  2938. */
  2939. public updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig) {
  2940. return APIKeyApiFp(this.configuration).updateKey(id, aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  2941. }
  2942. }
  2943. /**
  2944. * AlbumApi - axios parameter creator
  2945. * @export
  2946. */
  2947. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  2948. return {
  2949. /**
  2950. *
  2951. * @param {string} albumId
  2952. * @param {AddAssetsDto} addAssetsDto
  2953. * @param {string} [key]
  2954. * @param {*} [options] Override http request option.
  2955. * @throws {RequiredError}
  2956. */
  2957. addAssetsToAlbum: async (albumId: string, addAssetsDto: AddAssetsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2958. // verify required parameter 'albumId' is not null or undefined
  2959. assertParamExists('addAssetsToAlbum', 'albumId', albumId)
  2960. // verify required parameter 'addAssetsDto' is not null or undefined
  2961. assertParamExists('addAssetsToAlbum', 'addAssetsDto', addAssetsDto)
  2962. const localVarPath = `/album/{albumId}/assets`
  2963. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2964. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2965. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2966. let baseOptions;
  2967. if (configuration) {
  2968. baseOptions = configuration.baseOptions;
  2969. }
  2970. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  2971. const localVarHeaderParameter = {} as any;
  2972. const localVarQueryParameter = {} as any;
  2973. // authentication cookie required
  2974. // authentication api_key required
  2975. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2976. // authentication bearer required
  2977. // http bearer authentication required
  2978. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2979. if (key !== undefined) {
  2980. localVarQueryParameter['key'] = key;
  2981. }
  2982. localVarHeaderParameter['Content-Type'] = 'application/json';
  2983. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2984. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2985. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2986. localVarRequestOptions.data = serializeDataIfNeeded(addAssetsDto, localVarRequestOptions, configuration)
  2987. return {
  2988. url: toPathString(localVarUrlObj),
  2989. options: localVarRequestOptions,
  2990. };
  2991. },
  2992. /**
  2993. *
  2994. * @param {string} albumId
  2995. * @param {AddUsersDto} addUsersDto
  2996. * @param {*} [options] Override http request option.
  2997. * @throws {RequiredError}
  2998. */
  2999. addUsersToAlbum: async (albumId: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3000. // verify required parameter 'albumId' is not null or undefined
  3001. assertParamExists('addUsersToAlbum', 'albumId', albumId)
  3002. // verify required parameter 'addUsersDto' is not null or undefined
  3003. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  3004. const localVarPath = `/album/{albumId}/users`
  3005. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3006. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3007. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3008. let baseOptions;
  3009. if (configuration) {
  3010. baseOptions = configuration.baseOptions;
  3011. }
  3012. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  3013. const localVarHeaderParameter = {} as any;
  3014. const localVarQueryParameter = {} as any;
  3015. // authentication cookie required
  3016. // authentication api_key required
  3017. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3018. // authentication bearer required
  3019. // http bearer authentication required
  3020. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3021. localVarHeaderParameter['Content-Type'] = 'application/json';
  3022. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3023. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3024. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3025. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  3026. return {
  3027. url: toPathString(localVarUrlObj),
  3028. options: localVarRequestOptions,
  3029. };
  3030. },
  3031. /**
  3032. *
  3033. * @param {CreateAlbumDto} createAlbumDto
  3034. * @param {*} [options] Override http request option.
  3035. * @throws {RequiredError}
  3036. */
  3037. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3038. // verify required parameter 'createAlbumDto' is not null or undefined
  3039. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  3040. const localVarPath = `/album`;
  3041. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3042. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3043. let baseOptions;
  3044. if (configuration) {
  3045. baseOptions = configuration.baseOptions;
  3046. }
  3047. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3048. const localVarHeaderParameter = {} as any;
  3049. const localVarQueryParameter = {} as any;
  3050. // authentication cookie required
  3051. // authentication api_key required
  3052. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3053. // authentication bearer required
  3054. // http bearer authentication required
  3055. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3056. localVarHeaderParameter['Content-Type'] = 'application/json';
  3057. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3058. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3059. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3060. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  3061. return {
  3062. url: toPathString(localVarUrlObj),
  3063. options: localVarRequestOptions,
  3064. };
  3065. },
  3066. /**
  3067. *
  3068. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  3069. * @param {*} [options] Override http request option.
  3070. * @throws {RequiredError}
  3071. */
  3072. createAlbumSharedLink: async (createAlbumShareLinkDto: CreateAlbumShareLinkDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3073. // verify required parameter 'createAlbumShareLinkDto' is not null or undefined
  3074. assertParamExists('createAlbumSharedLink', 'createAlbumShareLinkDto', createAlbumShareLinkDto)
  3075. const localVarPath = `/album/create-shared-link`;
  3076. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3077. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3078. let baseOptions;
  3079. if (configuration) {
  3080. baseOptions = configuration.baseOptions;
  3081. }
  3082. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3083. const localVarHeaderParameter = {} as any;
  3084. const localVarQueryParameter = {} as any;
  3085. // authentication cookie required
  3086. // authentication api_key required
  3087. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3088. // authentication bearer required
  3089. // http bearer authentication required
  3090. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3091. localVarHeaderParameter['Content-Type'] = 'application/json';
  3092. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3093. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3094. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3095. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumShareLinkDto, localVarRequestOptions, configuration)
  3096. return {
  3097. url: toPathString(localVarUrlObj),
  3098. options: localVarRequestOptions,
  3099. };
  3100. },
  3101. /**
  3102. *
  3103. * @param {string} albumId
  3104. * @param {*} [options] Override http request option.
  3105. * @throws {RequiredError}
  3106. */
  3107. deleteAlbum: async (albumId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3108. // verify required parameter 'albumId' is not null or undefined
  3109. assertParamExists('deleteAlbum', 'albumId', albumId)
  3110. const localVarPath = `/album/{albumId}`
  3111. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3112. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3113. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3114. let baseOptions;
  3115. if (configuration) {
  3116. baseOptions = configuration.baseOptions;
  3117. }
  3118. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3119. const localVarHeaderParameter = {} as any;
  3120. const localVarQueryParameter = {} as any;
  3121. // authentication cookie required
  3122. // authentication api_key required
  3123. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3124. // authentication bearer required
  3125. // http bearer authentication required
  3126. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3127. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3128. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3129. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3130. return {
  3131. url: toPathString(localVarUrlObj),
  3132. options: localVarRequestOptions,
  3133. };
  3134. },
  3135. /**
  3136. *
  3137. * @param {string} albumId
  3138. * @param {string} [name]
  3139. * @param {number} [skip]
  3140. * @param {string} [key]
  3141. * @param {*} [options] Override http request option.
  3142. * @throws {RequiredError}
  3143. */
  3144. downloadArchive: async (albumId: string, name?: string, skip?: number, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3145. // verify required parameter 'albumId' is not null or undefined
  3146. assertParamExists('downloadArchive', 'albumId', albumId)
  3147. const localVarPath = `/album/{albumId}/download`
  3148. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3149. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3150. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3151. let baseOptions;
  3152. if (configuration) {
  3153. baseOptions = configuration.baseOptions;
  3154. }
  3155. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3156. const localVarHeaderParameter = {} as any;
  3157. const localVarQueryParameter = {} as any;
  3158. // authentication cookie required
  3159. // authentication api_key required
  3160. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3161. // authentication bearer required
  3162. // http bearer authentication required
  3163. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3164. if (name !== undefined) {
  3165. localVarQueryParameter['name'] = name;
  3166. }
  3167. if (skip !== undefined) {
  3168. localVarQueryParameter['skip'] = skip;
  3169. }
  3170. if (key !== undefined) {
  3171. localVarQueryParameter['key'] = key;
  3172. }
  3173. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3174. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3175. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3176. return {
  3177. url: toPathString(localVarUrlObj),
  3178. options: localVarRequestOptions,
  3179. };
  3180. },
  3181. /**
  3182. *
  3183. * @param {*} [options] Override http request option.
  3184. * @throws {RequiredError}
  3185. */
  3186. getAlbumCountByUserId: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3187. const localVarPath = `/album/count-by-user-id`;
  3188. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3189. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3190. let baseOptions;
  3191. if (configuration) {
  3192. baseOptions = configuration.baseOptions;
  3193. }
  3194. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3195. const localVarHeaderParameter = {} as any;
  3196. const localVarQueryParameter = {} as any;
  3197. // authentication cookie required
  3198. // authentication api_key required
  3199. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3200. // authentication bearer required
  3201. // http bearer authentication required
  3202. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3203. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3204. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3205. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3206. return {
  3207. url: toPathString(localVarUrlObj),
  3208. options: localVarRequestOptions,
  3209. };
  3210. },
  3211. /**
  3212. *
  3213. * @param {string} albumId
  3214. * @param {string} [key]
  3215. * @param {*} [options] Override http request option.
  3216. * @throws {RequiredError}
  3217. */
  3218. getAlbumInfo: async (albumId: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3219. // verify required parameter 'albumId' is not null or undefined
  3220. assertParamExists('getAlbumInfo', 'albumId', albumId)
  3221. const localVarPath = `/album/{albumId}`
  3222. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3223. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3224. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3225. let baseOptions;
  3226. if (configuration) {
  3227. baseOptions = configuration.baseOptions;
  3228. }
  3229. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3230. const localVarHeaderParameter = {} as any;
  3231. const localVarQueryParameter = {} as any;
  3232. // authentication cookie required
  3233. // authentication api_key required
  3234. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3235. // authentication bearer required
  3236. // http bearer authentication required
  3237. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3238. if (key !== undefined) {
  3239. localVarQueryParameter['key'] = key;
  3240. }
  3241. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3242. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3243. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3244. return {
  3245. url: toPathString(localVarUrlObj),
  3246. options: localVarRequestOptions,
  3247. };
  3248. },
  3249. /**
  3250. *
  3251. * @param {boolean} [shared]
  3252. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3253. * @param {*} [options] Override http request option.
  3254. * @throws {RequiredError}
  3255. */
  3256. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3257. const localVarPath = `/album`;
  3258. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3259. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3260. let baseOptions;
  3261. if (configuration) {
  3262. baseOptions = configuration.baseOptions;
  3263. }
  3264. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3265. const localVarHeaderParameter = {} as any;
  3266. const localVarQueryParameter = {} as any;
  3267. // authentication cookie required
  3268. // authentication api_key required
  3269. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3270. // authentication bearer required
  3271. // http bearer authentication required
  3272. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3273. if (shared !== undefined) {
  3274. localVarQueryParameter['shared'] = shared;
  3275. }
  3276. if (assetId !== undefined) {
  3277. localVarQueryParameter['assetId'] = assetId;
  3278. }
  3279. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3280. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3281. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3282. return {
  3283. url: toPathString(localVarUrlObj),
  3284. options: localVarRequestOptions,
  3285. };
  3286. },
  3287. /**
  3288. *
  3289. * @param {string} albumId
  3290. * @param {RemoveAssetsDto} removeAssetsDto
  3291. * @param {*} [options] Override http request option.
  3292. * @throws {RequiredError}
  3293. */
  3294. removeAssetFromAlbum: async (albumId: string, removeAssetsDto: RemoveAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3295. // verify required parameter 'albumId' is not null or undefined
  3296. assertParamExists('removeAssetFromAlbum', 'albumId', albumId)
  3297. // verify required parameter 'removeAssetsDto' is not null or undefined
  3298. assertParamExists('removeAssetFromAlbum', 'removeAssetsDto', removeAssetsDto)
  3299. const localVarPath = `/album/{albumId}/assets`
  3300. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3301. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3302. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3303. let baseOptions;
  3304. if (configuration) {
  3305. baseOptions = configuration.baseOptions;
  3306. }
  3307. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3308. const localVarHeaderParameter = {} as any;
  3309. const localVarQueryParameter = {} as any;
  3310. // authentication cookie required
  3311. // authentication api_key required
  3312. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3313. // authentication bearer required
  3314. // http bearer authentication required
  3315. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3316. localVarHeaderParameter['Content-Type'] = 'application/json';
  3317. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3318. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3319. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3320. localVarRequestOptions.data = serializeDataIfNeeded(removeAssetsDto, localVarRequestOptions, configuration)
  3321. return {
  3322. url: toPathString(localVarUrlObj),
  3323. options: localVarRequestOptions,
  3324. };
  3325. },
  3326. /**
  3327. *
  3328. * @param {string} albumId
  3329. * @param {string} userId
  3330. * @param {*} [options] Override http request option.
  3331. * @throws {RequiredError}
  3332. */
  3333. removeUserFromAlbum: async (albumId: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3334. // verify required parameter 'albumId' is not null or undefined
  3335. assertParamExists('removeUserFromAlbum', 'albumId', albumId)
  3336. // verify required parameter 'userId' is not null or undefined
  3337. assertParamExists('removeUserFromAlbum', 'userId', userId)
  3338. const localVarPath = `/album/{albumId}/user/{userId}`
  3339. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)))
  3340. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  3341. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3342. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3343. let baseOptions;
  3344. if (configuration) {
  3345. baseOptions = configuration.baseOptions;
  3346. }
  3347. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3348. const localVarHeaderParameter = {} as any;
  3349. const localVarQueryParameter = {} as any;
  3350. // authentication cookie required
  3351. // authentication api_key required
  3352. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3353. // authentication bearer required
  3354. // http bearer authentication required
  3355. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3356. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3357. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3358. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3359. return {
  3360. url: toPathString(localVarUrlObj),
  3361. options: localVarRequestOptions,
  3362. };
  3363. },
  3364. /**
  3365. *
  3366. * @param {string} albumId
  3367. * @param {UpdateAlbumDto} updateAlbumDto
  3368. * @param {*} [options] Override http request option.
  3369. * @throws {RequiredError}
  3370. */
  3371. updateAlbumInfo: async (albumId: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3372. // verify required parameter 'albumId' is not null or undefined
  3373. assertParamExists('updateAlbumInfo', 'albumId', albumId)
  3374. // verify required parameter 'updateAlbumDto' is not null or undefined
  3375. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  3376. const localVarPath = `/album/{albumId}`
  3377. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3378. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3379. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3380. let baseOptions;
  3381. if (configuration) {
  3382. baseOptions = configuration.baseOptions;
  3383. }
  3384. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  3385. const localVarHeaderParameter = {} as any;
  3386. const localVarQueryParameter = {} as any;
  3387. // authentication cookie required
  3388. // authentication api_key required
  3389. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3390. // authentication bearer required
  3391. // http bearer authentication required
  3392. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3393. localVarHeaderParameter['Content-Type'] = 'application/json';
  3394. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3395. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3396. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3397. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  3398. return {
  3399. url: toPathString(localVarUrlObj),
  3400. options: localVarRequestOptions,
  3401. };
  3402. },
  3403. }
  3404. };
  3405. /**
  3406. * AlbumApi - functional programming interface
  3407. * @export
  3408. */
  3409. export const AlbumApiFp = function(configuration?: Configuration) {
  3410. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  3411. return {
  3412. /**
  3413. *
  3414. * @param {string} albumId
  3415. * @param {AddAssetsDto} addAssetsDto
  3416. * @param {string} [key]
  3417. * @param {*} [options] Override http request option.
  3418. * @throws {RequiredError}
  3419. */
  3420. async addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddAssetsResponseDto>> {
  3421. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(albumId, addAssetsDto, key, options);
  3422. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3423. },
  3424. /**
  3425. *
  3426. * @param {string} albumId
  3427. * @param {AddUsersDto} addUsersDto
  3428. * @param {*} [options] Override http request option.
  3429. * @throws {RequiredError}
  3430. */
  3431. async addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3432. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(albumId, addUsersDto, options);
  3433. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3434. },
  3435. /**
  3436. *
  3437. * @param {CreateAlbumDto} createAlbumDto
  3438. * @param {*} [options] Override http request option.
  3439. * @throws {RequiredError}
  3440. */
  3441. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3442. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  3443. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3444. },
  3445. /**
  3446. *
  3447. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  3448. * @param {*} [options] Override http request option.
  3449. * @throws {RequiredError}
  3450. */
  3451. async createAlbumSharedLink(createAlbumShareLinkDto: CreateAlbumShareLinkDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  3452. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbumSharedLink(createAlbumShareLinkDto, options);
  3453. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3454. },
  3455. /**
  3456. *
  3457. * @param {string} albumId
  3458. * @param {*} [options] Override http request option.
  3459. * @throws {RequiredError}
  3460. */
  3461. async deleteAlbum(albumId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  3462. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(albumId, options);
  3463. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3464. },
  3465. /**
  3466. *
  3467. * @param {string} albumId
  3468. * @param {string} [name]
  3469. * @param {number} [skip]
  3470. * @param {string} [key]
  3471. * @param {*} [options] Override http request option.
  3472. * @throws {RequiredError}
  3473. */
  3474. async downloadArchive(albumId: string, name?: string, skip?: number, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  3475. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(albumId, name, skip, key, options);
  3476. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3477. },
  3478. /**
  3479. *
  3480. * @param {*} [options] Override http request option.
  3481. * @throws {RequiredError}
  3482. */
  3483. async getAlbumCountByUserId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  3484. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCountByUserId(options);
  3485. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3486. },
  3487. /**
  3488. *
  3489. * @param {string} albumId
  3490. * @param {string} [key]
  3491. * @param {*} [options] Override http request option.
  3492. * @throws {RequiredError}
  3493. */
  3494. async getAlbumInfo(albumId: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3495. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(albumId, key, options);
  3496. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3497. },
  3498. /**
  3499. *
  3500. * @param {boolean} [shared]
  3501. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3502. * @param {*} [options] Override http request option.
  3503. * @throws {RequiredError}
  3504. */
  3505. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  3506. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  3507. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3508. },
  3509. /**
  3510. *
  3511. * @param {string} albumId
  3512. * @param {RemoveAssetsDto} removeAssetsDto
  3513. * @param {*} [options] Override http request option.
  3514. * @throws {RequiredError}
  3515. */
  3516. async removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3517. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(albumId, removeAssetsDto, options);
  3518. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3519. },
  3520. /**
  3521. *
  3522. * @param {string} albumId
  3523. * @param {string} userId
  3524. * @param {*} [options] Override http request option.
  3525. * @throws {RequiredError}
  3526. */
  3527. async removeUserFromAlbum(albumId: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  3528. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(albumId, userId, options);
  3529. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3530. },
  3531. /**
  3532. *
  3533. * @param {string} albumId
  3534. * @param {UpdateAlbumDto} updateAlbumDto
  3535. * @param {*} [options] Override http request option.
  3536. * @throws {RequiredError}
  3537. */
  3538. async updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3539. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(albumId, updateAlbumDto, options);
  3540. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3541. },
  3542. }
  3543. };
  3544. /**
  3545. * AlbumApi - factory interface
  3546. * @export
  3547. */
  3548. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  3549. const localVarFp = AlbumApiFp(configuration)
  3550. return {
  3551. /**
  3552. *
  3553. * @param {string} albumId
  3554. * @param {AddAssetsDto} addAssetsDto
  3555. * @param {string} [key]
  3556. * @param {*} [options] Override http request option.
  3557. * @throws {RequiredError}
  3558. */
  3559. addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, key?: string, options?: any): AxiosPromise<AddAssetsResponseDto> {
  3560. return localVarFp.addAssetsToAlbum(albumId, addAssetsDto, key, options).then((request) => request(axios, basePath));
  3561. },
  3562. /**
  3563. *
  3564. * @param {string} albumId
  3565. * @param {AddUsersDto} addUsersDto
  3566. * @param {*} [options] Override http request option.
  3567. * @throws {RequiredError}
  3568. */
  3569. addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3570. return localVarFp.addUsersToAlbum(albumId, addUsersDto, options).then((request) => request(axios, basePath));
  3571. },
  3572. /**
  3573. *
  3574. * @param {CreateAlbumDto} createAlbumDto
  3575. * @param {*} [options] Override http request option.
  3576. * @throws {RequiredError}
  3577. */
  3578. createAlbum(createAlbumDto: CreateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3579. return localVarFp.createAlbum(createAlbumDto, options).then((request) => request(axios, basePath));
  3580. },
  3581. /**
  3582. *
  3583. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  3584. * @param {*} [options] Override http request option.
  3585. * @throws {RequiredError}
  3586. */
  3587. createAlbumSharedLink(createAlbumShareLinkDto: CreateAlbumShareLinkDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
  3588. return localVarFp.createAlbumSharedLink(createAlbumShareLinkDto, options).then((request) => request(axios, basePath));
  3589. },
  3590. /**
  3591. *
  3592. * @param {string} albumId
  3593. * @param {*} [options] Override http request option.
  3594. * @throws {RequiredError}
  3595. */
  3596. deleteAlbum(albumId: string, options?: any): AxiosPromise<void> {
  3597. return localVarFp.deleteAlbum(albumId, options).then((request) => request(axios, basePath));
  3598. },
  3599. /**
  3600. *
  3601. * @param {string} albumId
  3602. * @param {string} [name]
  3603. * @param {number} [skip]
  3604. * @param {string} [key]
  3605. * @param {*} [options] Override http request option.
  3606. * @throws {RequiredError}
  3607. */
  3608. downloadArchive(albumId: string, name?: string, skip?: number, key?: string, options?: any): AxiosPromise<File> {
  3609. return localVarFp.downloadArchive(albumId, name, skip, key, options).then((request) => request(axios, basePath));
  3610. },
  3611. /**
  3612. *
  3613. * @param {*} [options] Override http request option.
  3614. * @throws {RequiredError}
  3615. */
  3616. getAlbumCountByUserId(options?: any): AxiosPromise<AlbumCountResponseDto> {
  3617. return localVarFp.getAlbumCountByUserId(options).then((request) => request(axios, basePath));
  3618. },
  3619. /**
  3620. *
  3621. * @param {string} albumId
  3622. * @param {string} [key]
  3623. * @param {*} [options] Override http request option.
  3624. * @throws {RequiredError}
  3625. */
  3626. getAlbumInfo(albumId: string, key?: string, options?: any): AxiosPromise<AlbumResponseDto> {
  3627. return localVarFp.getAlbumInfo(albumId, key, options).then((request) => request(axios, basePath));
  3628. },
  3629. /**
  3630. *
  3631. * @param {boolean} [shared]
  3632. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3633. * @param {*} [options] Override http request option.
  3634. * @throws {RequiredError}
  3635. */
  3636. getAllAlbums(shared?: boolean, assetId?: string, options?: any): AxiosPromise<Array<AlbumResponseDto>> {
  3637. return localVarFp.getAllAlbums(shared, assetId, options).then((request) => request(axios, basePath));
  3638. },
  3639. /**
  3640. *
  3641. * @param {string} albumId
  3642. * @param {RemoveAssetsDto} removeAssetsDto
  3643. * @param {*} [options] Override http request option.
  3644. * @throws {RequiredError}
  3645. */
  3646. removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3647. return localVarFp.removeAssetFromAlbum(albumId, removeAssetsDto, options).then((request) => request(axios, basePath));
  3648. },
  3649. /**
  3650. *
  3651. * @param {string} albumId
  3652. * @param {string} userId
  3653. * @param {*} [options] Override http request option.
  3654. * @throws {RequiredError}
  3655. */
  3656. removeUserFromAlbum(albumId: string, userId: string, options?: any): AxiosPromise<void> {
  3657. return localVarFp.removeUserFromAlbum(albumId, userId, options).then((request) => request(axios, basePath));
  3658. },
  3659. /**
  3660. *
  3661. * @param {string} albumId
  3662. * @param {UpdateAlbumDto} updateAlbumDto
  3663. * @param {*} [options] Override http request option.
  3664. * @throws {RequiredError}
  3665. */
  3666. updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3667. return localVarFp.updateAlbumInfo(albumId, updateAlbumDto, options).then((request) => request(axios, basePath));
  3668. },
  3669. };
  3670. };
  3671. /**
  3672. * AlbumApi - object-oriented interface
  3673. * @export
  3674. * @class AlbumApi
  3675. * @extends {BaseAPI}
  3676. */
  3677. export class AlbumApi extends BaseAPI {
  3678. /**
  3679. *
  3680. * @param {string} albumId
  3681. * @param {AddAssetsDto} addAssetsDto
  3682. * @param {string} [key]
  3683. * @param {*} [options] Override http request option.
  3684. * @throws {RequiredError}
  3685. * @memberof AlbumApi
  3686. */
  3687. public addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, key?: string, options?: AxiosRequestConfig) {
  3688. return AlbumApiFp(this.configuration).addAssetsToAlbum(albumId, addAssetsDto, key, options).then((request) => request(this.axios, this.basePath));
  3689. }
  3690. /**
  3691. *
  3692. * @param {string} albumId
  3693. * @param {AddUsersDto} addUsersDto
  3694. * @param {*} [options] Override http request option.
  3695. * @throws {RequiredError}
  3696. * @memberof AlbumApi
  3697. */
  3698. public addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig) {
  3699. return AlbumApiFp(this.configuration).addUsersToAlbum(albumId, addUsersDto, options).then((request) => request(this.axios, this.basePath));
  3700. }
  3701. /**
  3702. *
  3703. * @param {CreateAlbumDto} createAlbumDto
  3704. * @param {*} [options] Override http request option.
  3705. * @throws {RequiredError}
  3706. * @memberof AlbumApi
  3707. */
  3708. public createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig) {
  3709. return AlbumApiFp(this.configuration).createAlbum(createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  3710. }
  3711. /**
  3712. *
  3713. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  3714. * @param {*} [options] Override http request option.
  3715. * @throws {RequiredError}
  3716. * @memberof AlbumApi
  3717. */
  3718. public createAlbumSharedLink(createAlbumShareLinkDto: CreateAlbumShareLinkDto, options?: AxiosRequestConfig) {
  3719. return AlbumApiFp(this.configuration).createAlbumSharedLink(createAlbumShareLinkDto, options).then((request) => request(this.axios, this.basePath));
  3720. }
  3721. /**
  3722. *
  3723. * @param {string} albumId
  3724. * @param {*} [options] Override http request option.
  3725. * @throws {RequiredError}
  3726. * @memberof AlbumApi
  3727. */
  3728. public deleteAlbum(albumId: string, options?: AxiosRequestConfig) {
  3729. return AlbumApiFp(this.configuration).deleteAlbum(albumId, options).then((request) => request(this.axios, this.basePath));
  3730. }
  3731. /**
  3732. *
  3733. * @param {string} albumId
  3734. * @param {string} [name]
  3735. * @param {number} [skip]
  3736. * @param {string} [key]
  3737. * @param {*} [options] Override http request option.
  3738. * @throws {RequiredError}
  3739. * @memberof AlbumApi
  3740. */
  3741. public downloadArchive(albumId: string, name?: string, skip?: number, key?: string, options?: AxiosRequestConfig) {
  3742. return AlbumApiFp(this.configuration).downloadArchive(albumId, name, skip, key, options).then((request) => request(this.axios, this.basePath));
  3743. }
  3744. /**
  3745. *
  3746. * @param {*} [options] Override http request option.
  3747. * @throws {RequiredError}
  3748. * @memberof AlbumApi
  3749. */
  3750. public getAlbumCountByUserId(options?: AxiosRequestConfig) {
  3751. return AlbumApiFp(this.configuration).getAlbumCountByUserId(options).then((request) => request(this.axios, this.basePath));
  3752. }
  3753. /**
  3754. *
  3755. * @param {string} albumId
  3756. * @param {string} [key]
  3757. * @param {*} [options] Override http request option.
  3758. * @throws {RequiredError}
  3759. * @memberof AlbumApi
  3760. */
  3761. public getAlbumInfo(albumId: string, key?: string, options?: AxiosRequestConfig) {
  3762. return AlbumApiFp(this.configuration).getAlbumInfo(albumId, key, options).then((request) => request(this.axios, this.basePath));
  3763. }
  3764. /**
  3765. *
  3766. * @param {boolean} [shared]
  3767. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3768. * @param {*} [options] Override http request option.
  3769. * @throws {RequiredError}
  3770. * @memberof AlbumApi
  3771. */
  3772. public getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig) {
  3773. return AlbumApiFp(this.configuration).getAllAlbums(shared, assetId, options).then((request) => request(this.axios, this.basePath));
  3774. }
  3775. /**
  3776. *
  3777. * @param {string} albumId
  3778. * @param {RemoveAssetsDto} removeAssetsDto
  3779. * @param {*} [options] Override http request option.
  3780. * @throws {RequiredError}
  3781. * @memberof AlbumApi
  3782. */
  3783. public removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: AxiosRequestConfig) {
  3784. return AlbumApiFp(this.configuration).removeAssetFromAlbum(albumId, removeAssetsDto, options).then((request) => request(this.axios, this.basePath));
  3785. }
  3786. /**
  3787. *
  3788. * @param {string} albumId
  3789. * @param {string} userId
  3790. * @param {*} [options] Override http request option.
  3791. * @throws {RequiredError}
  3792. * @memberof AlbumApi
  3793. */
  3794. public removeUserFromAlbum(albumId: string, userId: string, options?: AxiosRequestConfig) {
  3795. return AlbumApiFp(this.configuration).removeUserFromAlbum(albumId, userId, options).then((request) => request(this.axios, this.basePath));
  3796. }
  3797. /**
  3798. *
  3799. * @param {string} albumId
  3800. * @param {UpdateAlbumDto} updateAlbumDto
  3801. * @param {*} [options] Override http request option.
  3802. * @throws {RequiredError}
  3803. * @memberof AlbumApi
  3804. */
  3805. public updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig) {
  3806. return AlbumApiFp(this.configuration).updateAlbumInfo(albumId, updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  3807. }
  3808. }
  3809. /**
  3810. * AssetApi - axios parameter creator
  3811. * @export
  3812. */
  3813. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  3814. return {
  3815. /**
  3816. *
  3817. * @param {AddAssetsDto} addAssetsDto
  3818. * @param {string} [key]
  3819. * @param {*} [options] Override http request option.
  3820. * @throws {RequiredError}
  3821. */
  3822. addAssetsToSharedLink: async (addAssetsDto: AddAssetsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3823. // verify required parameter 'addAssetsDto' is not null or undefined
  3824. assertParamExists('addAssetsToSharedLink', 'addAssetsDto', addAssetsDto)
  3825. const localVarPath = `/asset/shared-link/add`;
  3826. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3827. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3828. let baseOptions;
  3829. if (configuration) {
  3830. baseOptions = configuration.baseOptions;
  3831. }
  3832. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  3833. const localVarHeaderParameter = {} as any;
  3834. const localVarQueryParameter = {} as any;
  3835. // authentication cookie required
  3836. // authentication api_key required
  3837. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3838. // authentication bearer required
  3839. // http bearer authentication required
  3840. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3841. if (key !== undefined) {
  3842. localVarQueryParameter['key'] = key;
  3843. }
  3844. localVarHeaderParameter['Content-Type'] = 'application/json';
  3845. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3846. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3847. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3848. localVarRequestOptions.data = serializeDataIfNeeded(addAssetsDto, localVarRequestOptions, configuration)
  3849. return {
  3850. url: toPathString(localVarUrlObj),
  3851. options: localVarRequestOptions,
  3852. };
  3853. },
  3854. /**
  3855. * Check duplicated asset before uploading - for Web upload used
  3856. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  3857. * @param {string} [key]
  3858. * @param {*} [options] Override http request option.
  3859. * @throws {RequiredError}
  3860. */
  3861. checkDuplicateAsset: async (checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3862. // verify required parameter 'checkDuplicateAssetDto' is not null or undefined
  3863. assertParamExists('checkDuplicateAsset', 'checkDuplicateAssetDto', checkDuplicateAssetDto)
  3864. const localVarPath = `/asset/check`;
  3865. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3866. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3867. let baseOptions;
  3868. if (configuration) {
  3869. baseOptions = configuration.baseOptions;
  3870. }
  3871. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3872. const localVarHeaderParameter = {} as any;
  3873. const localVarQueryParameter = {} as any;
  3874. // authentication cookie required
  3875. // authentication api_key required
  3876. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3877. // authentication bearer required
  3878. // http bearer authentication required
  3879. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3880. if (key !== undefined) {
  3881. localVarQueryParameter['key'] = key;
  3882. }
  3883. localVarHeaderParameter['Content-Type'] = 'application/json';
  3884. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3885. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3886. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3887. localVarRequestOptions.data = serializeDataIfNeeded(checkDuplicateAssetDto, localVarRequestOptions, configuration)
  3888. return {
  3889. url: toPathString(localVarUrlObj),
  3890. options: localVarRequestOptions,
  3891. };
  3892. },
  3893. /**
  3894. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  3895. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  3896. * @param {*} [options] Override http request option.
  3897. * @throws {RequiredError}
  3898. */
  3899. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3900. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  3901. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  3902. const localVarPath = `/asset/exist`;
  3903. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3904. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3905. let baseOptions;
  3906. if (configuration) {
  3907. baseOptions = configuration.baseOptions;
  3908. }
  3909. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3910. const localVarHeaderParameter = {} as any;
  3911. const localVarQueryParameter = {} as any;
  3912. // authentication cookie required
  3913. // authentication api_key required
  3914. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3915. // authentication bearer required
  3916. // http bearer authentication required
  3917. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3918. localVarHeaderParameter['Content-Type'] = 'application/json';
  3919. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3920. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3921. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3922. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  3923. return {
  3924. url: toPathString(localVarUrlObj),
  3925. options: localVarRequestOptions,
  3926. };
  3927. },
  3928. /**
  3929. *
  3930. * @param {CreateAssetsShareLinkDto} createAssetsShareLinkDto
  3931. * @param {*} [options] Override http request option.
  3932. * @throws {RequiredError}
  3933. */
  3934. createAssetsSharedLink: async (createAssetsShareLinkDto: CreateAssetsShareLinkDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3935. // verify required parameter 'createAssetsShareLinkDto' is not null or undefined
  3936. assertParamExists('createAssetsSharedLink', 'createAssetsShareLinkDto', createAssetsShareLinkDto)
  3937. const localVarPath = `/asset/shared-link`;
  3938. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3939. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3940. let baseOptions;
  3941. if (configuration) {
  3942. baseOptions = configuration.baseOptions;
  3943. }
  3944. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3945. const localVarHeaderParameter = {} as any;
  3946. const localVarQueryParameter = {} as any;
  3947. // authentication cookie required
  3948. // authentication api_key required
  3949. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3950. // authentication bearer required
  3951. // http bearer authentication required
  3952. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3953. localVarHeaderParameter['Content-Type'] = 'application/json';
  3954. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3955. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3956. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3957. localVarRequestOptions.data = serializeDataIfNeeded(createAssetsShareLinkDto, localVarRequestOptions, configuration)
  3958. return {
  3959. url: toPathString(localVarUrlObj),
  3960. options: localVarRequestOptions,
  3961. };
  3962. },
  3963. /**
  3964. *
  3965. * @param {DeleteAssetDto} deleteAssetDto
  3966. * @param {*} [options] Override http request option.
  3967. * @throws {RequiredError}
  3968. */
  3969. deleteAsset: async (deleteAssetDto: DeleteAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3970. // verify required parameter 'deleteAssetDto' is not null or undefined
  3971. assertParamExists('deleteAsset', 'deleteAssetDto', deleteAssetDto)
  3972. const localVarPath = `/asset`;
  3973. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3974. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3975. let baseOptions;
  3976. if (configuration) {
  3977. baseOptions = configuration.baseOptions;
  3978. }
  3979. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3980. const localVarHeaderParameter = {} as any;
  3981. const localVarQueryParameter = {} as any;
  3982. // authentication cookie required
  3983. // authentication api_key required
  3984. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3985. // authentication bearer required
  3986. // http bearer authentication required
  3987. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3988. localVarHeaderParameter['Content-Type'] = 'application/json';
  3989. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3990. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3991. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3992. localVarRequestOptions.data = serializeDataIfNeeded(deleteAssetDto, localVarRequestOptions, configuration)
  3993. return {
  3994. url: toPathString(localVarUrlObj),
  3995. options: localVarRequestOptions,
  3996. };
  3997. },
  3998. /**
  3999. *
  4000. * @param {string} assetId
  4001. * @param {string} [key]
  4002. * @param {*} [options] Override http request option.
  4003. * @throws {RequiredError}
  4004. */
  4005. downloadFile: async (assetId: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4006. // verify required parameter 'assetId' is not null or undefined
  4007. assertParamExists('downloadFile', 'assetId', assetId)
  4008. const localVarPath = `/asset/download/{assetId}`
  4009. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  4010. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4011. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4012. let baseOptions;
  4013. if (configuration) {
  4014. baseOptions = configuration.baseOptions;
  4015. }
  4016. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4017. const localVarHeaderParameter = {} as any;
  4018. const localVarQueryParameter = {} as any;
  4019. // authentication cookie required
  4020. // authentication api_key required
  4021. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4022. // authentication bearer required
  4023. // http bearer authentication required
  4024. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4025. if (key !== undefined) {
  4026. localVarQueryParameter['key'] = key;
  4027. }
  4028. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4029. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4030. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4031. return {
  4032. url: toPathString(localVarUrlObj),
  4033. options: localVarRequestOptions,
  4034. };
  4035. },
  4036. /**
  4037. *
  4038. * @param {DownloadFilesDto} downloadFilesDto
  4039. * @param {string} [key]
  4040. * @param {*} [options] Override http request option.
  4041. * @throws {RequiredError}
  4042. */
  4043. downloadFiles: async (downloadFilesDto: DownloadFilesDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4044. // verify required parameter 'downloadFilesDto' is not null or undefined
  4045. assertParamExists('downloadFiles', 'downloadFilesDto', downloadFilesDto)
  4046. const localVarPath = `/asset/download-files`;
  4047. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4048. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4049. let baseOptions;
  4050. if (configuration) {
  4051. baseOptions = configuration.baseOptions;
  4052. }
  4053. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4054. const localVarHeaderParameter = {} as any;
  4055. const localVarQueryParameter = {} as any;
  4056. // authentication cookie required
  4057. // authentication api_key required
  4058. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4059. // authentication bearer required
  4060. // http bearer authentication required
  4061. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4062. if (key !== undefined) {
  4063. localVarQueryParameter['key'] = key;
  4064. }
  4065. localVarHeaderParameter['Content-Type'] = 'application/json';
  4066. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4067. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4068. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4069. localVarRequestOptions.data = serializeDataIfNeeded(downloadFilesDto, localVarRequestOptions, configuration)
  4070. return {
  4071. url: toPathString(localVarUrlObj),
  4072. options: localVarRequestOptions,
  4073. };
  4074. },
  4075. /**
  4076. * Current this is not used in any UI element
  4077. * @param {string} [name]
  4078. * @param {number} [skip]
  4079. * @param {string} [key]
  4080. * @param {*} [options] Override http request option.
  4081. * @throws {RequiredError}
  4082. */
  4083. downloadLibrary: async (name?: string, skip?: number, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4084. const localVarPath = `/asset/download-library`;
  4085. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4086. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4087. let baseOptions;
  4088. if (configuration) {
  4089. baseOptions = configuration.baseOptions;
  4090. }
  4091. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4092. const localVarHeaderParameter = {} as any;
  4093. const localVarQueryParameter = {} as any;
  4094. // authentication cookie required
  4095. // authentication api_key required
  4096. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4097. // authentication bearer required
  4098. // http bearer authentication required
  4099. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4100. if (name !== undefined) {
  4101. localVarQueryParameter['name'] = name;
  4102. }
  4103. if (skip !== undefined) {
  4104. localVarQueryParameter['skip'] = skip;
  4105. }
  4106. if (key !== undefined) {
  4107. localVarQueryParameter['key'] = key;
  4108. }
  4109. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4110. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4111. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4112. return {
  4113. url: toPathString(localVarUrlObj),
  4114. options: localVarRequestOptions,
  4115. };
  4116. },
  4117. /**
  4118. * Get all AssetEntity belong to the user
  4119. * @param {boolean} [isFavorite]
  4120. * @param {boolean} [isArchived]
  4121. * @param {number} [skip]
  4122. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  4123. * @param {*} [options] Override http request option.
  4124. * @throws {RequiredError}
  4125. */
  4126. getAllAssets: async (isFavorite?: boolean, isArchived?: boolean, skip?: number, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4127. const localVarPath = `/asset`;
  4128. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4129. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4130. let baseOptions;
  4131. if (configuration) {
  4132. baseOptions = configuration.baseOptions;
  4133. }
  4134. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4135. const localVarHeaderParameter = {} as any;
  4136. const localVarQueryParameter = {} as any;
  4137. // authentication cookie required
  4138. // authentication api_key required
  4139. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4140. // authentication bearer required
  4141. // http bearer authentication required
  4142. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4143. if (isFavorite !== undefined) {
  4144. localVarQueryParameter['isFavorite'] = isFavorite;
  4145. }
  4146. if (isArchived !== undefined) {
  4147. localVarQueryParameter['isArchived'] = isArchived;
  4148. }
  4149. if (skip !== undefined) {
  4150. localVarQueryParameter['skip'] = skip;
  4151. }
  4152. if (ifNoneMatch !== undefined && ifNoneMatch !== null) {
  4153. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  4154. }
  4155. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4156. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4157. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4158. return {
  4159. url: toPathString(localVarUrlObj),
  4160. options: localVarRequestOptions,
  4161. };
  4162. },
  4163. /**
  4164. *
  4165. * @param {*} [options] Override http request option.
  4166. * @throws {RequiredError}
  4167. */
  4168. getArchivedAssetCountByUserId: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4169. const localVarPath = `/asset/stat/archive`;
  4170. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4171. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4172. let baseOptions;
  4173. if (configuration) {
  4174. baseOptions = configuration.baseOptions;
  4175. }
  4176. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4177. const localVarHeaderParameter = {} as any;
  4178. const localVarQueryParameter = {} as any;
  4179. // authentication cookie required
  4180. // authentication api_key required
  4181. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4182. // authentication bearer required
  4183. // http bearer authentication required
  4184. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4185. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4186. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4187. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4188. return {
  4189. url: toPathString(localVarUrlObj),
  4190. options: localVarRequestOptions,
  4191. };
  4192. },
  4193. /**
  4194. * Get a single asset\'s information
  4195. * @param {string} assetId
  4196. * @param {string} [key]
  4197. * @param {*} [options] Override http request option.
  4198. * @throws {RequiredError}
  4199. */
  4200. getAssetById: async (assetId: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4201. // verify required parameter 'assetId' is not null or undefined
  4202. assertParamExists('getAssetById', 'assetId', assetId)
  4203. const localVarPath = `/asset/assetById/{assetId}`
  4204. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  4205. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4206. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4207. let baseOptions;
  4208. if (configuration) {
  4209. baseOptions = configuration.baseOptions;
  4210. }
  4211. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4212. const localVarHeaderParameter = {} as any;
  4213. const localVarQueryParameter = {} as any;
  4214. // authentication cookie required
  4215. // authentication api_key required
  4216. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4217. // authentication bearer required
  4218. // http bearer authentication required
  4219. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4220. if (key !== undefined) {
  4221. localVarQueryParameter['key'] = key;
  4222. }
  4223. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4224. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4225. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4226. return {
  4227. url: toPathString(localVarUrlObj),
  4228. options: localVarRequestOptions,
  4229. };
  4230. },
  4231. /**
  4232. *
  4233. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  4234. * @param {*} [options] Override http request option.
  4235. * @throws {RequiredError}
  4236. */
  4237. getAssetByTimeBucket: async (getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4238. // verify required parameter 'getAssetByTimeBucketDto' is not null or undefined
  4239. assertParamExists('getAssetByTimeBucket', 'getAssetByTimeBucketDto', getAssetByTimeBucketDto)
  4240. const localVarPath = `/asset/time-bucket`;
  4241. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4242. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4243. let baseOptions;
  4244. if (configuration) {
  4245. baseOptions = configuration.baseOptions;
  4246. }
  4247. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4248. const localVarHeaderParameter = {} as any;
  4249. const localVarQueryParameter = {} as any;
  4250. // authentication cookie required
  4251. // authentication api_key required
  4252. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4253. // authentication bearer required
  4254. // http bearer authentication required
  4255. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4256. localVarHeaderParameter['Content-Type'] = 'application/json';
  4257. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4258. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4259. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4260. localVarRequestOptions.data = serializeDataIfNeeded(getAssetByTimeBucketDto, localVarRequestOptions, configuration)
  4261. return {
  4262. url: toPathString(localVarUrlObj),
  4263. options: localVarRequestOptions,
  4264. };
  4265. },
  4266. /**
  4267. *
  4268. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  4269. * @param {*} [options] Override http request option.
  4270. * @throws {RequiredError}
  4271. */
  4272. getAssetCountByTimeBucket: async (getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4273. // verify required parameter 'getAssetCountByTimeBucketDto' is not null or undefined
  4274. assertParamExists('getAssetCountByTimeBucket', 'getAssetCountByTimeBucketDto', getAssetCountByTimeBucketDto)
  4275. const localVarPath = `/asset/count-by-time-bucket`;
  4276. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4277. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4278. let baseOptions;
  4279. if (configuration) {
  4280. baseOptions = configuration.baseOptions;
  4281. }
  4282. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4283. const localVarHeaderParameter = {} as any;
  4284. const localVarQueryParameter = {} as any;
  4285. // authentication cookie required
  4286. // authentication api_key required
  4287. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4288. // authentication bearer required
  4289. // http bearer authentication required
  4290. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4291. localVarHeaderParameter['Content-Type'] = 'application/json';
  4292. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4293. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4294. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4295. localVarRequestOptions.data = serializeDataIfNeeded(getAssetCountByTimeBucketDto, localVarRequestOptions, configuration)
  4296. return {
  4297. url: toPathString(localVarUrlObj),
  4298. options: localVarRequestOptions,
  4299. };
  4300. },
  4301. /**
  4302. *
  4303. * @param {*} [options] Override http request option.
  4304. * @throws {RequiredError}
  4305. */
  4306. getAssetCountByUserId: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4307. const localVarPath = `/asset/count-by-user-id`;
  4308. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4309. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4310. let baseOptions;
  4311. if (configuration) {
  4312. baseOptions = configuration.baseOptions;
  4313. }
  4314. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4315. const localVarHeaderParameter = {} as any;
  4316. const localVarQueryParameter = {} as any;
  4317. // authentication cookie required
  4318. // authentication api_key required
  4319. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4320. // authentication bearer required
  4321. // http bearer authentication required
  4322. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4323. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4324. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4325. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4326. return {
  4327. url: toPathString(localVarUrlObj),
  4328. options: localVarRequestOptions,
  4329. };
  4330. },
  4331. /**
  4332. *
  4333. * @param {*} [options] Override http request option.
  4334. * @throws {RequiredError}
  4335. */
  4336. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4337. const localVarPath = `/asset/search-terms`;
  4338. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4339. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4340. let baseOptions;
  4341. if (configuration) {
  4342. baseOptions = configuration.baseOptions;
  4343. }
  4344. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4345. const localVarHeaderParameter = {} as any;
  4346. const localVarQueryParameter = {} as any;
  4347. // authentication cookie required
  4348. // authentication api_key required
  4349. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4350. // authentication bearer required
  4351. // http bearer authentication required
  4352. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4353. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4354. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4355. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4356. return {
  4357. url: toPathString(localVarUrlObj),
  4358. options: localVarRequestOptions,
  4359. };
  4360. },
  4361. /**
  4362. *
  4363. * @param {string} assetId
  4364. * @param {ThumbnailFormat} [format]
  4365. * @param {string} [key]
  4366. * @param {*} [options] Override http request option.
  4367. * @throws {RequiredError}
  4368. */
  4369. getAssetThumbnail: async (assetId: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4370. // verify required parameter 'assetId' is not null or undefined
  4371. assertParamExists('getAssetThumbnail', 'assetId', assetId)
  4372. const localVarPath = `/asset/thumbnail/{assetId}`
  4373. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  4374. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4375. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4376. let baseOptions;
  4377. if (configuration) {
  4378. baseOptions = configuration.baseOptions;
  4379. }
  4380. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4381. const localVarHeaderParameter = {} as any;
  4382. const localVarQueryParameter = {} as any;
  4383. // authentication cookie required
  4384. // authentication api_key required
  4385. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4386. // authentication bearer required
  4387. // http bearer authentication required
  4388. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4389. if (format !== undefined) {
  4390. localVarQueryParameter['format'] = format;
  4391. }
  4392. if (key !== undefined) {
  4393. localVarQueryParameter['key'] = key;
  4394. }
  4395. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4396. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4397. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4398. return {
  4399. url: toPathString(localVarUrlObj),
  4400. options: localVarRequestOptions,
  4401. };
  4402. },
  4403. /**
  4404. *
  4405. * @param {*} [options] Override http request option.
  4406. * @throws {RequiredError}
  4407. */
  4408. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4409. const localVarPath = `/asset/curated-locations`;
  4410. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4411. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4412. let baseOptions;
  4413. if (configuration) {
  4414. baseOptions = configuration.baseOptions;
  4415. }
  4416. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4417. const localVarHeaderParameter = {} as any;
  4418. const localVarQueryParameter = {} as any;
  4419. // authentication cookie required
  4420. // authentication api_key required
  4421. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4422. // authentication bearer required
  4423. // http bearer authentication required
  4424. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4425. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4426. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4427. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4428. return {
  4429. url: toPathString(localVarUrlObj),
  4430. options: localVarRequestOptions,
  4431. };
  4432. },
  4433. /**
  4434. *
  4435. * @param {*} [options] Override http request option.
  4436. * @throws {RequiredError}
  4437. */
  4438. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4439. const localVarPath = `/asset/curated-objects`;
  4440. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4441. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4442. let baseOptions;
  4443. if (configuration) {
  4444. baseOptions = configuration.baseOptions;
  4445. }
  4446. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4447. const localVarHeaderParameter = {} as any;
  4448. const localVarQueryParameter = {} as any;
  4449. // authentication cookie required
  4450. // authentication api_key required
  4451. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4452. // authentication bearer required
  4453. // http bearer authentication required
  4454. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4455. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4456. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4457. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4458. return {
  4459. url: toPathString(localVarUrlObj),
  4460. options: localVarRequestOptions,
  4461. };
  4462. },
  4463. /**
  4464. * Get all assets that have GPS information embedded
  4465. * @param {boolean} [isFavorite]
  4466. * @param {boolean} [isArchived]
  4467. * @param {number} [skip]
  4468. * @param {*} [options] Override http request option.
  4469. * @throws {RequiredError}
  4470. */
  4471. getMapMarkers: async (isFavorite?: boolean, isArchived?: boolean, skip?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4472. const localVarPath = `/asset/map-marker`;
  4473. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4474. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4475. let baseOptions;
  4476. if (configuration) {
  4477. baseOptions = configuration.baseOptions;
  4478. }
  4479. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4480. const localVarHeaderParameter = {} as any;
  4481. const localVarQueryParameter = {} as any;
  4482. // authentication cookie required
  4483. // authentication api_key required
  4484. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4485. // authentication bearer required
  4486. // http bearer authentication required
  4487. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4488. if (isFavorite !== undefined) {
  4489. localVarQueryParameter['isFavorite'] = isFavorite;
  4490. }
  4491. if (isArchived !== undefined) {
  4492. localVarQueryParameter['isArchived'] = isArchived;
  4493. }
  4494. if (skip !== undefined) {
  4495. localVarQueryParameter['skip'] = skip;
  4496. }
  4497. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4498. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4499. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4500. return {
  4501. url: toPathString(localVarUrlObj),
  4502. options: localVarRequestOptions,
  4503. };
  4504. },
  4505. /**
  4506. * Get all asset of a device that are in the database, ID only.
  4507. * @param {string} deviceId
  4508. * @param {*} [options] Override http request option.
  4509. * @throws {RequiredError}
  4510. */
  4511. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4512. // verify required parameter 'deviceId' is not null or undefined
  4513. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  4514. const localVarPath = `/asset/{deviceId}`
  4515. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  4516. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4517. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4518. let baseOptions;
  4519. if (configuration) {
  4520. baseOptions = configuration.baseOptions;
  4521. }
  4522. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4523. const localVarHeaderParameter = {} as any;
  4524. const localVarQueryParameter = {} as any;
  4525. // authentication cookie required
  4526. // authentication api_key required
  4527. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4528. // authentication bearer required
  4529. // http bearer authentication required
  4530. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4531. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4532. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4533. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4534. return {
  4535. url: toPathString(localVarUrlObj),
  4536. options: localVarRequestOptions,
  4537. };
  4538. },
  4539. /**
  4540. *
  4541. * @param {RemoveAssetsDto} removeAssetsDto
  4542. * @param {string} [key]
  4543. * @param {*} [options] Override http request option.
  4544. * @throws {RequiredError}
  4545. */
  4546. removeAssetsFromSharedLink: async (removeAssetsDto: RemoveAssetsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4547. // verify required parameter 'removeAssetsDto' is not null or undefined
  4548. assertParamExists('removeAssetsFromSharedLink', 'removeAssetsDto', removeAssetsDto)
  4549. const localVarPath = `/asset/shared-link/remove`;
  4550. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4551. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4552. let baseOptions;
  4553. if (configuration) {
  4554. baseOptions = configuration.baseOptions;
  4555. }
  4556. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4557. const localVarHeaderParameter = {} as any;
  4558. const localVarQueryParameter = {} as any;
  4559. // authentication cookie required
  4560. // authentication api_key required
  4561. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4562. // authentication bearer required
  4563. // http bearer authentication required
  4564. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4565. if (key !== undefined) {
  4566. localVarQueryParameter['key'] = key;
  4567. }
  4568. localVarHeaderParameter['Content-Type'] = 'application/json';
  4569. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4570. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4571. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4572. localVarRequestOptions.data = serializeDataIfNeeded(removeAssetsDto, localVarRequestOptions, configuration)
  4573. return {
  4574. url: toPathString(localVarUrlObj),
  4575. options: localVarRequestOptions,
  4576. };
  4577. },
  4578. /**
  4579. *
  4580. * @param {SearchAssetDto} searchAssetDto
  4581. * @param {*} [options] Override http request option.
  4582. * @throws {RequiredError}
  4583. */
  4584. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4585. // verify required parameter 'searchAssetDto' is not null or undefined
  4586. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  4587. const localVarPath = `/asset/search`;
  4588. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4589. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4590. let baseOptions;
  4591. if (configuration) {
  4592. baseOptions = configuration.baseOptions;
  4593. }
  4594. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4595. const localVarHeaderParameter = {} as any;
  4596. const localVarQueryParameter = {} as any;
  4597. // authentication cookie required
  4598. // authentication api_key required
  4599. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4600. // authentication bearer required
  4601. // http bearer authentication required
  4602. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4603. localVarHeaderParameter['Content-Type'] = 'application/json';
  4604. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4605. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4606. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4607. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  4608. return {
  4609. url: toPathString(localVarUrlObj),
  4610. options: localVarRequestOptions,
  4611. };
  4612. },
  4613. /**
  4614. *
  4615. * @param {string} assetId
  4616. * @param {boolean} [isThumb]
  4617. * @param {boolean} [isWeb]
  4618. * @param {string} [key]
  4619. * @param {*} [options] Override http request option.
  4620. * @throws {RequiredError}
  4621. */
  4622. serveFile: async (assetId: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4623. // verify required parameter 'assetId' is not null or undefined
  4624. assertParamExists('serveFile', 'assetId', assetId)
  4625. const localVarPath = `/asset/file/{assetId}`
  4626. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  4627. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4628. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4629. let baseOptions;
  4630. if (configuration) {
  4631. baseOptions = configuration.baseOptions;
  4632. }
  4633. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4634. const localVarHeaderParameter = {} as any;
  4635. const localVarQueryParameter = {} as any;
  4636. // authentication cookie required
  4637. // authentication api_key required
  4638. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4639. // authentication bearer required
  4640. // http bearer authentication required
  4641. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4642. if (isThumb !== undefined) {
  4643. localVarQueryParameter['isThumb'] = isThumb;
  4644. }
  4645. if (isWeb !== undefined) {
  4646. localVarQueryParameter['isWeb'] = isWeb;
  4647. }
  4648. if (key !== undefined) {
  4649. localVarQueryParameter['key'] = key;
  4650. }
  4651. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4652. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4653. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4654. return {
  4655. url: toPathString(localVarUrlObj),
  4656. options: localVarRequestOptions,
  4657. };
  4658. },
  4659. /**
  4660. * Update an asset
  4661. * @param {string} assetId
  4662. * @param {UpdateAssetDto} updateAssetDto
  4663. * @param {*} [options] Override http request option.
  4664. * @throws {RequiredError}
  4665. */
  4666. updateAsset: async (assetId: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4667. // verify required parameter 'assetId' is not null or undefined
  4668. assertParamExists('updateAsset', 'assetId', assetId)
  4669. // verify required parameter 'updateAssetDto' is not null or undefined
  4670. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  4671. const localVarPath = `/asset/{assetId}`
  4672. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  4673. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4674. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4675. let baseOptions;
  4676. if (configuration) {
  4677. baseOptions = configuration.baseOptions;
  4678. }
  4679. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4680. const localVarHeaderParameter = {} as any;
  4681. const localVarQueryParameter = {} as any;
  4682. // authentication cookie required
  4683. // authentication api_key required
  4684. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4685. // authentication bearer required
  4686. // http bearer authentication required
  4687. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4688. localVarHeaderParameter['Content-Type'] = 'application/json';
  4689. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4690. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4691. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4692. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  4693. return {
  4694. url: toPathString(localVarUrlObj),
  4695. options: localVarRequestOptions,
  4696. };
  4697. },
  4698. /**
  4699. *
  4700. * @param {AssetTypeEnum} assetType
  4701. * @param {File} assetData
  4702. * @param {string} deviceAssetId
  4703. * @param {string} deviceId
  4704. * @param {string} fileCreatedAt
  4705. * @param {string} fileModifiedAt
  4706. * @param {boolean} isFavorite
  4707. * @param {string} fileExtension
  4708. * @param {string} [key]
  4709. * @param {File} [livePhotoData]
  4710. * @param {boolean} [isArchived]
  4711. * @param {boolean} [isVisible]
  4712. * @param {string} [duration]
  4713. * @param {*} [options] Override http request option.
  4714. * @throws {RequiredError}
  4715. */
  4716. uploadFile: async (assetType: AssetTypeEnum, assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, fileExtension: string, key?: string, livePhotoData?: File, isArchived?: boolean, isVisible?: boolean, duration?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4717. // verify required parameter 'assetType' is not null or undefined
  4718. assertParamExists('uploadFile', 'assetType', assetType)
  4719. // verify required parameter 'assetData' is not null or undefined
  4720. assertParamExists('uploadFile', 'assetData', assetData)
  4721. // verify required parameter 'deviceAssetId' is not null or undefined
  4722. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  4723. // verify required parameter 'deviceId' is not null or undefined
  4724. assertParamExists('uploadFile', 'deviceId', deviceId)
  4725. // verify required parameter 'fileCreatedAt' is not null or undefined
  4726. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  4727. // verify required parameter 'fileModifiedAt' is not null or undefined
  4728. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  4729. // verify required parameter 'isFavorite' is not null or undefined
  4730. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  4731. // verify required parameter 'fileExtension' is not null or undefined
  4732. assertParamExists('uploadFile', 'fileExtension', fileExtension)
  4733. const localVarPath = `/asset/upload`;
  4734. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4735. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4736. let baseOptions;
  4737. if (configuration) {
  4738. baseOptions = configuration.baseOptions;
  4739. }
  4740. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4741. const localVarHeaderParameter = {} as any;
  4742. const localVarQueryParameter = {} as any;
  4743. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  4744. // authentication cookie required
  4745. // authentication api_key required
  4746. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4747. // authentication bearer required
  4748. // http bearer authentication required
  4749. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4750. if (key !== undefined) {
  4751. localVarQueryParameter['key'] = key;
  4752. }
  4753. if (assetType !== undefined) {
  4754. localVarFormParams.append('assetType', new Blob([JSON.stringify(assetType)], { type: "application/json", }));
  4755. }
  4756. if (assetData !== undefined) {
  4757. localVarFormParams.append('assetData', assetData as any);
  4758. }
  4759. if (livePhotoData !== undefined) {
  4760. localVarFormParams.append('livePhotoData', livePhotoData as any);
  4761. }
  4762. if (deviceAssetId !== undefined) {
  4763. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  4764. }
  4765. if (deviceId !== undefined) {
  4766. localVarFormParams.append('deviceId', deviceId as any);
  4767. }
  4768. if (fileCreatedAt !== undefined) {
  4769. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  4770. }
  4771. if (fileModifiedAt !== undefined) {
  4772. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  4773. }
  4774. if (isFavorite !== undefined) {
  4775. localVarFormParams.append('isFavorite', isFavorite as any);
  4776. }
  4777. if (isArchived !== undefined) {
  4778. localVarFormParams.append('isArchived', isArchived as any);
  4779. }
  4780. if (isVisible !== undefined) {
  4781. localVarFormParams.append('isVisible', isVisible as any);
  4782. }
  4783. if (fileExtension !== undefined) {
  4784. localVarFormParams.append('fileExtension', fileExtension as any);
  4785. }
  4786. if (duration !== undefined) {
  4787. localVarFormParams.append('duration', duration as any);
  4788. }
  4789. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  4790. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4791. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4792. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4793. localVarRequestOptions.data = localVarFormParams;
  4794. return {
  4795. url: toPathString(localVarUrlObj),
  4796. options: localVarRequestOptions,
  4797. };
  4798. },
  4799. }
  4800. };
  4801. /**
  4802. * AssetApi - functional programming interface
  4803. * @export
  4804. */
  4805. export const AssetApiFp = function(configuration?: Configuration) {
  4806. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  4807. return {
  4808. /**
  4809. *
  4810. * @param {AddAssetsDto} addAssetsDto
  4811. * @param {string} [key]
  4812. * @param {*} [options] Override http request option.
  4813. * @throws {RequiredError}
  4814. */
  4815. async addAssetsToSharedLink(addAssetsDto: AddAssetsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  4816. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToSharedLink(addAssetsDto, key, options);
  4817. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4818. },
  4819. /**
  4820. * Check duplicated asset before uploading - for Web upload used
  4821. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  4822. * @param {string} [key]
  4823. * @param {*} [options] Override http request option.
  4824. * @throws {RequiredError}
  4825. */
  4826. async checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckDuplicateAssetResponseDto>> {
  4827. const localVarAxiosArgs = await localVarAxiosParamCreator.checkDuplicateAsset(checkDuplicateAssetDto, key, options);
  4828. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4829. },
  4830. /**
  4831. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  4832. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  4833. * @param {*} [options] Override http request option.
  4834. * @throws {RequiredError}
  4835. */
  4836. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  4837. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  4838. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4839. },
  4840. /**
  4841. *
  4842. * @param {CreateAssetsShareLinkDto} createAssetsShareLinkDto
  4843. * @param {*} [options] Override http request option.
  4844. * @throws {RequiredError}
  4845. */
  4846. async createAssetsSharedLink(createAssetsShareLinkDto: CreateAssetsShareLinkDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  4847. const localVarAxiosArgs = await localVarAxiosParamCreator.createAssetsSharedLink(createAssetsShareLinkDto, options);
  4848. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4849. },
  4850. /**
  4851. *
  4852. * @param {DeleteAssetDto} deleteAssetDto
  4853. * @param {*} [options] Override http request option.
  4854. * @throws {RequiredError}
  4855. */
  4856. async deleteAsset(deleteAssetDto: DeleteAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DeleteAssetResponseDto>>> {
  4857. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAsset(deleteAssetDto, options);
  4858. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4859. },
  4860. /**
  4861. *
  4862. * @param {string} assetId
  4863. * @param {string} [key]
  4864. * @param {*} [options] Override http request option.
  4865. * @throws {RequiredError}
  4866. */
  4867. async downloadFile(assetId: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  4868. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(assetId, key, options);
  4869. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4870. },
  4871. /**
  4872. *
  4873. * @param {DownloadFilesDto} downloadFilesDto
  4874. * @param {string} [key]
  4875. * @param {*} [options] Override http request option.
  4876. * @throws {RequiredError}
  4877. */
  4878. async downloadFiles(downloadFilesDto: DownloadFilesDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  4879. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFiles(downloadFilesDto, key, options);
  4880. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4881. },
  4882. /**
  4883. * Current this is not used in any UI element
  4884. * @param {string} [name]
  4885. * @param {number} [skip]
  4886. * @param {string} [key]
  4887. * @param {*} [options] Override http request option.
  4888. * @throws {RequiredError}
  4889. */
  4890. async downloadLibrary(name?: string, skip?: number, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  4891. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadLibrary(name, skip, key, options);
  4892. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4893. },
  4894. /**
  4895. * Get all AssetEntity belong to the user
  4896. * @param {boolean} [isFavorite]
  4897. * @param {boolean} [isArchived]
  4898. * @param {number} [skip]
  4899. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  4900. * @param {*} [options] Override http request option.
  4901. * @throws {RequiredError}
  4902. */
  4903. async getAllAssets(isFavorite?: boolean, isArchived?: boolean, skip?: number, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  4904. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(isFavorite, isArchived, skip, ifNoneMatch, options);
  4905. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4906. },
  4907. /**
  4908. *
  4909. * @param {*} [options] Override http request option.
  4910. * @throws {RequiredError}
  4911. */
  4912. async getArchivedAssetCountByUserId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByUserIdResponseDto>> {
  4913. const localVarAxiosArgs = await localVarAxiosParamCreator.getArchivedAssetCountByUserId(options);
  4914. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4915. },
  4916. /**
  4917. * Get a single asset\'s information
  4918. * @param {string} assetId
  4919. * @param {string} [key]
  4920. * @param {*} [options] Override http request option.
  4921. * @throws {RequiredError}
  4922. */
  4923. async getAssetById(assetId: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  4924. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(assetId, key, options);
  4925. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4926. },
  4927. /**
  4928. *
  4929. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  4930. * @param {*} [options] Override http request option.
  4931. * @throws {RequiredError}
  4932. */
  4933. async getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  4934. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetByTimeBucket(getAssetByTimeBucketDto, options);
  4935. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4936. },
  4937. /**
  4938. *
  4939. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  4940. * @param {*} [options] Override http request option.
  4941. * @throws {RequiredError}
  4942. */
  4943. async getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByTimeBucketResponseDto>> {
  4944. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options);
  4945. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4946. },
  4947. /**
  4948. *
  4949. * @param {*} [options] Override http request option.
  4950. * @throws {RequiredError}
  4951. */
  4952. async getAssetCountByUserId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByUserIdResponseDto>> {
  4953. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetCountByUserId(options);
  4954. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4955. },
  4956. /**
  4957. *
  4958. * @param {*} [options] Override http request option.
  4959. * @throws {RequiredError}
  4960. */
  4961. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  4962. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  4963. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4964. },
  4965. /**
  4966. *
  4967. * @param {string} assetId
  4968. * @param {ThumbnailFormat} [format]
  4969. * @param {string} [key]
  4970. * @param {*} [options] Override http request option.
  4971. * @throws {RequiredError}
  4972. */
  4973. async getAssetThumbnail(assetId: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  4974. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(assetId, format, key, options);
  4975. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4976. },
  4977. /**
  4978. *
  4979. * @param {*} [options] Override http request option.
  4980. * @throws {RequiredError}
  4981. */
  4982. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  4983. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  4984. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4985. },
  4986. /**
  4987. *
  4988. * @param {*} [options] Override http request option.
  4989. * @throws {RequiredError}
  4990. */
  4991. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  4992. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  4993. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4994. },
  4995. /**
  4996. * Get all assets that have GPS information embedded
  4997. * @param {boolean} [isFavorite]
  4998. * @param {boolean} [isArchived]
  4999. * @param {number} [skip]
  5000. * @param {*} [options] Override http request option.
  5001. * @throws {RequiredError}
  5002. */
  5003. async getMapMarkers(isFavorite?: boolean, isArchived?: boolean, skip?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  5004. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isFavorite, isArchived, skip, options);
  5005. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5006. },
  5007. /**
  5008. * Get all asset of a device that are in the database, ID only.
  5009. * @param {string} deviceId
  5010. * @param {*} [options] Override http request option.
  5011. * @throws {RequiredError}
  5012. */
  5013. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  5014. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  5015. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5016. },
  5017. /**
  5018. *
  5019. * @param {RemoveAssetsDto} removeAssetsDto
  5020. * @param {string} [key]
  5021. * @param {*} [options] Override http request option.
  5022. * @throws {RequiredError}
  5023. */
  5024. async removeAssetsFromSharedLink(removeAssetsDto: RemoveAssetsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  5025. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetsFromSharedLink(removeAssetsDto, key, options);
  5026. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5027. },
  5028. /**
  5029. *
  5030. * @param {SearchAssetDto} searchAssetDto
  5031. * @param {*} [options] Override http request option.
  5032. * @throws {RequiredError}
  5033. */
  5034. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  5035. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  5036. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5037. },
  5038. /**
  5039. *
  5040. * @param {string} assetId
  5041. * @param {boolean} [isThumb]
  5042. * @param {boolean} [isWeb]
  5043. * @param {string} [key]
  5044. * @param {*} [options] Override http request option.
  5045. * @throws {RequiredError}
  5046. */
  5047. async serveFile(assetId: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  5048. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(assetId, isThumb, isWeb, key, options);
  5049. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5050. },
  5051. /**
  5052. * Update an asset
  5053. * @param {string} assetId
  5054. * @param {UpdateAssetDto} updateAssetDto
  5055. * @param {*} [options] Override http request option.
  5056. * @throws {RequiredError}
  5057. */
  5058. async updateAsset(assetId: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  5059. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(assetId, updateAssetDto, options);
  5060. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5061. },
  5062. /**
  5063. *
  5064. * @param {AssetTypeEnum} assetType
  5065. * @param {File} assetData
  5066. * @param {string} deviceAssetId
  5067. * @param {string} deviceId
  5068. * @param {string} fileCreatedAt
  5069. * @param {string} fileModifiedAt
  5070. * @param {boolean} isFavorite
  5071. * @param {string} fileExtension
  5072. * @param {string} [key]
  5073. * @param {File} [livePhotoData]
  5074. * @param {boolean} [isArchived]
  5075. * @param {boolean} [isVisible]
  5076. * @param {string} [duration]
  5077. * @param {*} [options] Override http request option.
  5078. * @throws {RequiredError}
  5079. */
  5080. async uploadFile(assetType: AssetTypeEnum, assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, fileExtension: string, key?: string, livePhotoData?: File, isArchived?: boolean, isVisible?: boolean, duration?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  5081. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetType, assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, fileExtension, key, livePhotoData, isArchived, isVisible, duration, options);
  5082. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5083. },
  5084. }
  5085. };
  5086. /**
  5087. * AssetApi - factory interface
  5088. * @export
  5089. */
  5090. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5091. const localVarFp = AssetApiFp(configuration)
  5092. return {
  5093. /**
  5094. *
  5095. * @param {AddAssetsDto} addAssetsDto
  5096. * @param {string} [key]
  5097. * @param {*} [options] Override http request option.
  5098. * @throws {RequiredError}
  5099. */
  5100. addAssetsToSharedLink(addAssetsDto: AddAssetsDto, key?: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  5101. return localVarFp.addAssetsToSharedLink(addAssetsDto, key, options).then((request) => request(axios, basePath));
  5102. },
  5103. /**
  5104. * Check duplicated asset before uploading - for Web upload used
  5105. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  5106. * @param {string} [key]
  5107. * @param {*} [options] Override http request option.
  5108. * @throws {RequiredError}
  5109. */
  5110. checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: any): AxiosPromise<CheckDuplicateAssetResponseDto> {
  5111. return localVarFp.checkDuplicateAsset(checkDuplicateAssetDto, key, options).then((request) => request(axios, basePath));
  5112. },
  5113. /**
  5114. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5115. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5116. * @param {*} [options] Override http request option.
  5117. * @throws {RequiredError}
  5118. */
  5119. checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: any): AxiosPromise<CheckExistingAssetsResponseDto> {
  5120. return localVarFp.checkExistingAssets(checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  5121. },
  5122. /**
  5123. *
  5124. * @param {CreateAssetsShareLinkDto} createAssetsShareLinkDto
  5125. * @param {*} [options] Override http request option.
  5126. * @throws {RequiredError}
  5127. */
  5128. createAssetsSharedLink(createAssetsShareLinkDto: CreateAssetsShareLinkDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
  5129. return localVarFp.createAssetsSharedLink(createAssetsShareLinkDto, options).then((request) => request(axios, basePath));
  5130. },
  5131. /**
  5132. *
  5133. * @param {DeleteAssetDto} deleteAssetDto
  5134. * @param {*} [options] Override http request option.
  5135. * @throws {RequiredError}
  5136. */
  5137. deleteAsset(deleteAssetDto: DeleteAssetDto, options?: any): AxiosPromise<Array<DeleteAssetResponseDto>> {
  5138. return localVarFp.deleteAsset(deleteAssetDto, options).then((request) => request(axios, basePath));
  5139. },
  5140. /**
  5141. *
  5142. * @param {string} assetId
  5143. * @param {string} [key]
  5144. * @param {*} [options] Override http request option.
  5145. * @throws {RequiredError}
  5146. */
  5147. downloadFile(assetId: string, key?: string, options?: any): AxiosPromise<File> {
  5148. return localVarFp.downloadFile(assetId, key, options).then((request) => request(axios, basePath));
  5149. },
  5150. /**
  5151. *
  5152. * @param {DownloadFilesDto} downloadFilesDto
  5153. * @param {string} [key]
  5154. * @param {*} [options] Override http request option.
  5155. * @throws {RequiredError}
  5156. */
  5157. downloadFiles(downloadFilesDto: DownloadFilesDto, key?: string, options?: any): AxiosPromise<File> {
  5158. return localVarFp.downloadFiles(downloadFilesDto, key, options).then((request) => request(axios, basePath));
  5159. },
  5160. /**
  5161. * Current this is not used in any UI element
  5162. * @param {string} [name]
  5163. * @param {number} [skip]
  5164. * @param {string} [key]
  5165. * @param {*} [options] Override http request option.
  5166. * @throws {RequiredError}
  5167. */
  5168. downloadLibrary(name?: string, skip?: number, key?: string, options?: any): AxiosPromise<File> {
  5169. return localVarFp.downloadLibrary(name, skip, key, options).then((request) => request(axios, basePath));
  5170. },
  5171. /**
  5172. * Get all AssetEntity belong to the user
  5173. * @param {boolean} [isFavorite]
  5174. * @param {boolean} [isArchived]
  5175. * @param {number} [skip]
  5176. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5177. * @param {*} [options] Override http request option.
  5178. * @throws {RequiredError}
  5179. */
  5180. getAllAssets(isFavorite?: boolean, isArchived?: boolean, skip?: number, ifNoneMatch?: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  5181. return localVarFp.getAllAssets(isFavorite, isArchived, skip, ifNoneMatch, options).then((request) => request(axios, basePath));
  5182. },
  5183. /**
  5184. *
  5185. * @param {*} [options] Override http request option.
  5186. * @throws {RequiredError}
  5187. */
  5188. getArchivedAssetCountByUserId(options?: any): AxiosPromise<AssetCountByUserIdResponseDto> {
  5189. return localVarFp.getArchivedAssetCountByUserId(options).then((request) => request(axios, basePath));
  5190. },
  5191. /**
  5192. * Get a single asset\'s information
  5193. * @param {string} assetId
  5194. * @param {string} [key]
  5195. * @param {*} [options] Override http request option.
  5196. * @throws {RequiredError}
  5197. */
  5198. getAssetById(assetId: string, key?: string, options?: any): AxiosPromise<AssetResponseDto> {
  5199. return localVarFp.getAssetById(assetId, key, options).then((request) => request(axios, basePath));
  5200. },
  5201. /**
  5202. *
  5203. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  5204. * @param {*} [options] Override http request option.
  5205. * @throws {RequiredError}
  5206. */
  5207. getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  5208. return localVarFp.getAssetByTimeBucket(getAssetByTimeBucketDto, options).then((request) => request(axios, basePath));
  5209. },
  5210. /**
  5211. *
  5212. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  5213. * @param {*} [options] Override http request option.
  5214. * @throws {RequiredError}
  5215. */
  5216. getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: any): AxiosPromise<AssetCountByTimeBucketResponseDto> {
  5217. return localVarFp.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options).then((request) => request(axios, basePath));
  5218. },
  5219. /**
  5220. *
  5221. * @param {*} [options] Override http request option.
  5222. * @throws {RequiredError}
  5223. */
  5224. getAssetCountByUserId(options?: any): AxiosPromise<AssetCountByUserIdResponseDto> {
  5225. return localVarFp.getAssetCountByUserId(options).then((request) => request(axios, basePath));
  5226. },
  5227. /**
  5228. *
  5229. * @param {*} [options] Override http request option.
  5230. * @throws {RequiredError}
  5231. */
  5232. getAssetSearchTerms(options?: any): AxiosPromise<Array<string>> {
  5233. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  5234. },
  5235. /**
  5236. *
  5237. * @param {string} assetId
  5238. * @param {ThumbnailFormat} [format]
  5239. * @param {string} [key]
  5240. * @param {*} [options] Override http request option.
  5241. * @throws {RequiredError}
  5242. */
  5243. getAssetThumbnail(assetId: string, format?: ThumbnailFormat, key?: string, options?: any): AxiosPromise<File> {
  5244. return localVarFp.getAssetThumbnail(assetId, format, key, options).then((request) => request(axios, basePath));
  5245. },
  5246. /**
  5247. *
  5248. * @param {*} [options] Override http request option.
  5249. * @throws {RequiredError}
  5250. */
  5251. getCuratedLocations(options?: any): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  5252. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  5253. },
  5254. /**
  5255. *
  5256. * @param {*} [options] Override http request option.
  5257. * @throws {RequiredError}
  5258. */
  5259. getCuratedObjects(options?: any): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  5260. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  5261. },
  5262. /**
  5263. * Get all assets that have GPS information embedded
  5264. * @param {boolean} [isFavorite]
  5265. * @param {boolean} [isArchived]
  5266. * @param {number} [skip]
  5267. * @param {*} [options] Override http request option.
  5268. * @throws {RequiredError}
  5269. */
  5270. getMapMarkers(isFavorite?: boolean, isArchived?: boolean, skip?: number, options?: any): AxiosPromise<Array<MapMarkerResponseDto>> {
  5271. return localVarFp.getMapMarkers(isFavorite, isArchived, skip, options).then((request) => request(axios, basePath));
  5272. },
  5273. /**
  5274. * Get all asset of a device that are in the database, ID only.
  5275. * @param {string} deviceId
  5276. * @param {*} [options] Override http request option.
  5277. * @throws {RequiredError}
  5278. */
  5279. getUserAssetsByDeviceId(deviceId: string, options?: any): AxiosPromise<Array<string>> {
  5280. return localVarFp.getUserAssetsByDeviceId(deviceId, options).then((request) => request(axios, basePath));
  5281. },
  5282. /**
  5283. *
  5284. * @param {RemoveAssetsDto} removeAssetsDto
  5285. * @param {string} [key]
  5286. * @param {*} [options] Override http request option.
  5287. * @throws {RequiredError}
  5288. */
  5289. removeAssetsFromSharedLink(removeAssetsDto: RemoveAssetsDto, key?: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  5290. return localVarFp.removeAssetsFromSharedLink(removeAssetsDto, key, options).then((request) => request(axios, basePath));
  5291. },
  5292. /**
  5293. *
  5294. * @param {SearchAssetDto} searchAssetDto
  5295. * @param {*} [options] Override http request option.
  5296. * @throws {RequiredError}
  5297. */
  5298. searchAsset(searchAssetDto: SearchAssetDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  5299. return localVarFp.searchAsset(searchAssetDto, options).then((request) => request(axios, basePath));
  5300. },
  5301. /**
  5302. *
  5303. * @param {string} assetId
  5304. * @param {boolean} [isThumb]
  5305. * @param {boolean} [isWeb]
  5306. * @param {string} [key]
  5307. * @param {*} [options] Override http request option.
  5308. * @throws {RequiredError}
  5309. */
  5310. serveFile(assetId: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: any): AxiosPromise<File> {
  5311. return localVarFp.serveFile(assetId, isThumb, isWeb, key, options).then((request) => request(axios, basePath));
  5312. },
  5313. /**
  5314. * Update an asset
  5315. * @param {string} assetId
  5316. * @param {UpdateAssetDto} updateAssetDto
  5317. * @param {*} [options] Override http request option.
  5318. * @throws {RequiredError}
  5319. */
  5320. updateAsset(assetId: string, updateAssetDto: UpdateAssetDto, options?: any): AxiosPromise<AssetResponseDto> {
  5321. return localVarFp.updateAsset(assetId, updateAssetDto, options).then((request) => request(axios, basePath));
  5322. },
  5323. /**
  5324. *
  5325. * @param {AssetTypeEnum} assetType
  5326. * @param {File} assetData
  5327. * @param {string} deviceAssetId
  5328. * @param {string} deviceId
  5329. * @param {string} fileCreatedAt
  5330. * @param {string} fileModifiedAt
  5331. * @param {boolean} isFavorite
  5332. * @param {string} fileExtension
  5333. * @param {string} [key]
  5334. * @param {File} [livePhotoData]
  5335. * @param {boolean} [isArchived]
  5336. * @param {boolean} [isVisible]
  5337. * @param {string} [duration]
  5338. * @param {*} [options] Override http request option.
  5339. * @throws {RequiredError}
  5340. */
  5341. uploadFile(assetType: AssetTypeEnum, assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, fileExtension: string, key?: string, livePhotoData?: File, isArchived?: boolean, isVisible?: boolean, duration?: string, options?: any): AxiosPromise<AssetFileUploadResponseDto> {
  5342. return localVarFp.uploadFile(assetType, assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, fileExtension, key, livePhotoData, isArchived, isVisible, duration, options).then((request) => request(axios, basePath));
  5343. },
  5344. };
  5345. };
  5346. /**
  5347. * AssetApi - object-oriented interface
  5348. * @export
  5349. * @class AssetApi
  5350. * @extends {BaseAPI}
  5351. */
  5352. export class AssetApi extends BaseAPI {
  5353. /**
  5354. *
  5355. * @param {AddAssetsDto} addAssetsDto
  5356. * @param {string} [key]
  5357. * @param {*} [options] Override http request option.
  5358. * @throws {RequiredError}
  5359. * @memberof AssetApi
  5360. */
  5361. public addAssetsToSharedLink(addAssetsDto: AddAssetsDto, key?: string, options?: AxiosRequestConfig) {
  5362. return AssetApiFp(this.configuration).addAssetsToSharedLink(addAssetsDto, key, options).then((request) => request(this.axios, this.basePath));
  5363. }
  5364. /**
  5365. * Check duplicated asset before uploading - for Web upload used
  5366. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  5367. * @param {string} [key]
  5368. * @param {*} [options] Override http request option.
  5369. * @throws {RequiredError}
  5370. * @memberof AssetApi
  5371. */
  5372. public checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: AxiosRequestConfig) {
  5373. return AssetApiFp(this.configuration).checkDuplicateAsset(checkDuplicateAssetDto, key, options).then((request) => request(this.axios, this.basePath));
  5374. }
  5375. /**
  5376. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5377. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5378. * @param {*} [options] Override http request option.
  5379. * @throws {RequiredError}
  5380. * @memberof AssetApi
  5381. */
  5382. public checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig) {
  5383. return AssetApiFp(this.configuration).checkExistingAssets(checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  5384. }
  5385. /**
  5386. *
  5387. * @param {CreateAssetsShareLinkDto} createAssetsShareLinkDto
  5388. * @param {*} [options] Override http request option.
  5389. * @throws {RequiredError}
  5390. * @memberof AssetApi
  5391. */
  5392. public createAssetsSharedLink(createAssetsShareLinkDto: CreateAssetsShareLinkDto, options?: AxiosRequestConfig) {
  5393. return AssetApiFp(this.configuration).createAssetsSharedLink(createAssetsShareLinkDto, options).then((request) => request(this.axios, this.basePath));
  5394. }
  5395. /**
  5396. *
  5397. * @param {DeleteAssetDto} deleteAssetDto
  5398. * @param {*} [options] Override http request option.
  5399. * @throws {RequiredError}
  5400. * @memberof AssetApi
  5401. */
  5402. public deleteAsset(deleteAssetDto: DeleteAssetDto, options?: AxiosRequestConfig) {
  5403. return AssetApiFp(this.configuration).deleteAsset(deleteAssetDto, options).then((request) => request(this.axios, this.basePath));
  5404. }
  5405. /**
  5406. *
  5407. * @param {string} assetId
  5408. * @param {string} [key]
  5409. * @param {*} [options] Override http request option.
  5410. * @throws {RequiredError}
  5411. * @memberof AssetApi
  5412. */
  5413. public downloadFile(assetId: string, key?: string, options?: AxiosRequestConfig) {
  5414. return AssetApiFp(this.configuration).downloadFile(assetId, key, options).then((request) => request(this.axios, this.basePath));
  5415. }
  5416. /**
  5417. *
  5418. * @param {DownloadFilesDto} downloadFilesDto
  5419. * @param {string} [key]
  5420. * @param {*} [options] Override http request option.
  5421. * @throws {RequiredError}
  5422. * @memberof AssetApi
  5423. */
  5424. public downloadFiles(downloadFilesDto: DownloadFilesDto, key?: string, options?: AxiosRequestConfig) {
  5425. return AssetApiFp(this.configuration).downloadFiles(downloadFilesDto, key, options).then((request) => request(this.axios, this.basePath));
  5426. }
  5427. /**
  5428. * Current this is not used in any UI element
  5429. * @param {string} [name]
  5430. * @param {number} [skip]
  5431. * @param {string} [key]
  5432. * @param {*} [options] Override http request option.
  5433. * @throws {RequiredError}
  5434. * @memberof AssetApi
  5435. */
  5436. public downloadLibrary(name?: string, skip?: number, key?: string, options?: AxiosRequestConfig) {
  5437. return AssetApiFp(this.configuration).downloadLibrary(name, skip, key, options).then((request) => request(this.axios, this.basePath));
  5438. }
  5439. /**
  5440. * Get all AssetEntity belong to the user
  5441. * @param {boolean} [isFavorite]
  5442. * @param {boolean} [isArchived]
  5443. * @param {number} [skip]
  5444. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5445. * @param {*} [options] Override http request option.
  5446. * @throws {RequiredError}
  5447. * @memberof AssetApi
  5448. */
  5449. public getAllAssets(isFavorite?: boolean, isArchived?: boolean, skip?: number, ifNoneMatch?: string, options?: AxiosRequestConfig) {
  5450. return AssetApiFp(this.configuration).getAllAssets(isFavorite, isArchived, skip, ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  5451. }
  5452. /**
  5453. *
  5454. * @param {*} [options] Override http request option.
  5455. * @throws {RequiredError}
  5456. * @memberof AssetApi
  5457. */
  5458. public getArchivedAssetCountByUserId(options?: AxiosRequestConfig) {
  5459. return AssetApiFp(this.configuration).getArchivedAssetCountByUserId(options).then((request) => request(this.axios, this.basePath));
  5460. }
  5461. /**
  5462. * Get a single asset\'s information
  5463. * @param {string} assetId
  5464. * @param {string} [key]
  5465. * @param {*} [options] Override http request option.
  5466. * @throws {RequiredError}
  5467. * @memberof AssetApi
  5468. */
  5469. public getAssetById(assetId: string, key?: string, options?: AxiosRequestConfig) {
  5470. return AssetApiFp(this.configuration).getAssetById(assetId, key, options).then((request) => request(this.axios, this.basePath));
  5471. }
  5472. /**
  5473. *
  5474. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  5475. * @param {*} [options] Override http request option.
  5476. * @throws {RequiredError}
  5477. * @memberof AssetApi
  5478. */
  5479. public getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: AxiosRequestConfig) {
  5480. return AssetApiFp(this.configuration).getAssetByTimeBucket(getAssetByTimeBucketDto, options).then((request) => request(this.axios, this.basePath));
  5481. }
  5482. /**
  5483. *
  5484. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  5485. * @param {*} [options] Override http request option.
  5486. * @throws {RequiredError}
  5487. * @memberof AssetApi
  5488. */
  5489. public getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: AxiosRequestConfig) {
  5490. return AssetApiFp(this.configuration).getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options).then((request) => request(this.axios, this.basePath));
  5491. }
  5492. /**
  5493. *
  5494. * @param {*} [options] Override http request option.
  5495. * @throws {RequiredError}
  5496. * @memberof AssetApi
  5497. */
  5498. public getAssetCountByUserId(options?: AxiosRequestConfig) {
  5499. return AssetApiFp(this.configuration).getAssetCountByUserId(options).then((request) => request(this.axios, this.basePath));
  5500. }
  5501. /**
  5502. *
  5503. * @param {*} [options] Override http request option.
  5504. * @throws {RequiredError}
  5505. * @memberof AssetApi
  5506. */
  5507. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  5508. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  5509. }
  5510. /**
  5511. *
  5512. * @param {string} assetId
  5513. * @param {ThumbnailFormat} [format]
  5514. * @param {string} [key]
  5515. * @param {*} [options] Override http request option.
  5516. * @throws {RequiredError}
  5517. * @memberof AssetApi
  5518. */
  5519. public getAssetThumbnail(assetId: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig) {
  5520. return AssetApiFp(this.configuration).getAssetThumbnail(assetId, format, key, options).then((request) => request(this.axios, this.basePath));
  5521. }
  5522. /**
  5523. *
  5524. * @param {*} [options] Override http request option.
  5525. * @throws {RequiredError}
  5526. * @memberof AssetApi
  5527. */
  5528. public getCuratedLocations(options?: AxiosRequestConfig) {
  5529. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  5530. }
  5531. /**
  5532. *
  5533. * @param {*} [options] Override http request option.
  5534. * @throws {RequiredError}
  5535. * @memberof AssetApi
  5536. */
  5537. public getCuratedObjects(options?: AxiosRequestConfig) {
  5538. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  5539. }
  5540. /**
  5541. * Get all assets that have GPS information embedded
  5542. * @param {boolean} [isFavorite]
  5543. * @param {boolean} [isArchived]
  5544. * @param {number} [skip]
  5545. * @param {*} [options] Override http request option.
  5546. * @throws {RequiredError}
  5547. * @memberof AssetApi
  5548. */
  5549. public getMapMarkers(isFavorite?: boolean, isArchived?: boolean, skip?: number, options?: AxiosRequestConfig) {
  5550. return AssetApiFp(this.configuration).getMapMarkers(isFavorite, isArchived, skip, options).then((request) => request(this.axios, this.basePath));
  5551. }
  5552. /**
  5553. * Get all asset of a device that are in the database, ID only.
  5554. * @param {string} deviceId
  5555. * @param {*} [options] Override http request option.
  5556. * @throws {RequiredError}
  5557. * @memberof AssetApi
  5558. */
  5559. public getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig) {
  5560. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(deviceId, options).then((request) => request(this.axios, this.basePath));
  5561. }
  5562. /**
  5563. *
  5564. * @param {RemoveAssetsDto} removeAssetsDto
  5565. * @param {string} [key]
  5566. * @param {*} [options] Override http request option.
  5567. * @throws {RequiredError}
  5568. * @memberof AssetApi
  5569. */
  5570. public removeAssetsFromSharedLink(removeAssetsDto: RemoveAssetsDto, key?: string, options?: AxiosRequestConfig) {
  5571. return AssetApiFp(this.configuration).removeAssetsFromSharedLink(removeAssetsDto, key, options).then((request) => request(this.axios, this.basePath));
  5572. }
  5573. /**
  5574. *
  5575. * @param {SearchAssetDto} searchAssetDto
  5576. * @param {*} [options] Override http request option.
  5577. * @throws {RequiredError}
  5578. * @memberof AssetApi
  5579. */
  5580. public searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig) {
  5581. return AssetApiFp(this.configuration).searchAsset(searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  5582. }
  5583. /**
  5584. *
  5585. * @param {string} assetId
  5586. * @param {boolean} [isThumb]
  5587. * @param {boolean} [isWeb]
  5588. * @param {string} [key]
  5589. * @param {*} [options] Override http request option.
  5590. * @throws {RequiredError}
  5591. * @memberof AssetApi
  5592. */
  5593. public serveFile(assetId: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig) {
  5594. return AssetApiFp(this.configuration).serveFile(assetId, isThumb, isWeb, key, options).then((request) => request(this.axios, this.basePath));
  5595. }
  5596. /**
  5597. * Update an asset
  5598. * @param {string} assetId
  5599. * @param {UpdateAssetDto} updateAssetDto
  5600. * @param {*} [options] Override http request option.
  5601. * @throws {RequiredError}
  5602. * @memberof AssetApi
  5603. */
  5604. public updateAsset(assetId: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig) {
  5605. return AssetApiFp(this.configuration).updateAsset(assetId, updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  5606. }
  5607. /**
  5608. *
  5609. * @param {AssetTypeEnum} assetType
  5610. * @param {File} assetData
  5611. * @param {string} deviceAssetId
  5612. * @param {string} deviceId
  5613. * @param {string} fileCreatedAt
  5614. * @param {string} fileModifiedAt
  5615. * @param {boolean} isFavorite
  5616. * @param {string} fileExtension
  5617. * @param {string} [key]
  5618. * @param {File} [livePhotoData]
  5619. * @param {boolean} [isArchived]
  5620. * @param {boolean} [isVisible]
  5621. * @param {string} [duration]
  5622. * @param {*} [options] Override http request option.
  5623. * @throws {RequiredError}
  5624. * @memberof AssetApi
  5625. */
  5626. public uploadFile(assetType: AssetTypeEnum, assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, fileExtension: string, key?: string, livePhotoData?: File, isArchived?: boolean, isVisible?: boolean, duration?: string, options?: AxiosRequestConfig) {
  5627. return AssetApiFp(this.configuration).uploadFile(assetType, assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, fileExtension, key, livePhotoData, isArchived, isVisible, duration, options).then((request) => request(this.axios, this.basePath));
  5628. }
  5629. }
  5630. /**
  5631. * AuthenticationApi - axios parameter creator
  5632. * @export
  5633. */
  5634. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  5635. return {
  5636. /**
  5637. *
  5638. * @param {SignUpDto} signUpDto
  5639. * @param {*} [options] Override http request option.
  5640. * @throws {RequiredError}
  5641. */
  5642. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5643. // verify required parameter 'signUpDto' is not null or undefined
  5644. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  5645. const localVarPath = `/auth/admin-sign-up`;
  5646. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5647. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5648. let baseOptions;
  5649. if (configuration) {
  5650. baseOptions = configuration.baseOptions;
  5651. }
  5652. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5653. const localVarHeaderParameter = {} as any;
  5654. const localVarQueryParameter = {} as any;
  5655. localVarHeaderParameter['Content-Type'] = 'application/json';
  5656. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5657. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5658. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5659. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  5660. return {
  5661. url: toPathString(localVarUrlObj),
  5662. options: localVarRequestOptions,
  5663. };
  5664. },
  5665. /**
  5666. *
  5667. * @param {ChangePasswordDto} changePasswordDto
  5668. * @param {*} [options] Override http request option.
  5669. * @throws {RequiredError}
  5670. */
  5671. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5672. // verify required parameter 'changePasswordDto' is not null or undefined
  5673. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  5674. const localVarPath = `/auth/change-password`;
  5675. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5676. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5677. let baseOptions;
  5678. if (configuration) {
  5679. baseOptions = configuration.baseOptions;
  5680. }
  5681. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5682. const localVarHeaderParameter = {} as any;
  5683. const localVarQueryParameter = {} as any;
  5684. // authentication cookie required
  5685. // authentication api_key required
  5686. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5687. // authentication bearer required
  5688. // http bearer authentication required
  5689. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5690. localVarHeaderParameter['Content-Type'] = 'application/json';
  5691. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5692. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5693. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5694. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  5695. return {
  5696. url: toPathString(localVarUrlObj),
  5697. options: localVarRequestOptions,
  5698. };
  5699. },
  5700. /**
  5701. *
  5702. * @param {*} [options] Override http request option.
  5703. * @throws {RequiredError}
  5704. */
  5705. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5706. const localVarPath = `/auth/devices`;
  5707. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5708. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5709. let baseOptions;
  5710. if (configuration) {
  5711. baseOptions = configuration.baseOptions;
  5712. }
  5713. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5714. const localVarHeaderParameter = {} as any;
  5715. const localVarQueryParameter = {} as any;
  5716. // authentication cookie required
  5717. // authentication api_key required
  5718. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5719. // authentication bearer required
  5720. // http bearer authentication required
  5721. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5722. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5723. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5724. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5725. return {
  5726. url: toPathString(localVarUrlObj),
  5727. options: localVarRequestOptions,
  5728. };
  5729. },
  5730. /**
  5731. *
  5732. * @param {LoginCredentialDto} loginCredentialDto
  5733. * @param {*} [options] Override http request option.
  5734. * @throws {RequiredError}
  5735. */
  5736. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5737. // verify required parameter 'loginCredentialDto' is not null or undefined
  5738. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  5739. const localVarPath = `/auth/login`;
  5740. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5741. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5742. let baseOptions;
  5743. if (configuration) {
  5744. baseOptions = configuration.baseOptions;
  5745. }
  5746. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5747. const localVarHeaderParameter = {} as any;
  5748. const localVarQueryParameter = {} as any;
  5749. localVarHeaderParameter['Content-Type'] = 'application/json';
  5750. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5751. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5752. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5753. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  5754. return {
  5755. url: toPathString(localVarUrlObj),
  5756. options: localVarRequestOptions,
  5757. };
  5758. },
  5759. /**
  5760. *
  5761. * @param {*} [options] Override http request option.
  5762. * @throws {RequiredError}
  5763. */
  5764. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5765. const localVarPath = `/auth/logout`;
  5766. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5767. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5768. let baseOptions;
  5769. if (configuration) {
  5770. baseOptions = configuration.baseOptions;
  5771. }
  5772. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5773. const localVarHeaderParameter = {} as any;
  5774. const localVarQueryParameter = {} as any;
  5775. // authentication cookie required
  5776. // authentication api_key required
  5777. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5778. // authentication bearer required
  5779. // http bearer authentication required
  5780. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5781. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5782. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5783. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5784. return {
  5785. url: toPathString(localVarUrlObj),
  5786. options: localVarRequestOptions,
  5787. };
  5788. },
  5789. /**
  5790. *
  5791. * @param {string} id
  5792. * @param {*} [options] Override http request option.
  5793. * @throws {RequiredError}
  5794. */
  5795. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5796. // verify required parameter 'id' is not null or undefined
  5797. assertParamExists('logoutAuthDevice', 'id', id)
  5798. const localVarPath = `/auth/devices/{id}`
  5799. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5800. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5801. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5802. let baseOptions;
  5803. if (configuration) {
  5804. baseOptions = configuration.baseOptions;
  5805. }
  5806. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5807. const localVarHeaderParameter = {} as any;
  5808. const localVarQueryParameter = {} as any;
  5809. // authentication cookie required
  5810. // authentication api_key required
  5811. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5812. // authentication bearer required
  5813. // http bearer authentication required
  5814. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5815. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5816. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5817. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5818. return {
  5819. url: toPathString(localVarUrlObj),
  5820. options: localVarRequestOptions,
  5821. };
  5822. },
  5823. /**
  5824. *
  5825. * @param {*} [options] Override http request option.
  5826. * @throws {RequiredError}
  5827. */
  5828. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5829. const localVarPath = `/auth/devices`;
  5830. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5831. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5832. let baseOptions;
  5833. if (configuration) {
  5834. baseOptions = configuration.baseOptions;
  5835. }
  5836. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5837. const localVarHeaderParameter = {} as any;
  5838. const localVarQueryParameter = {} as any;
  5839. // authentication cookie required
  5840. // authentication api_key required
  5841. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5842. // authentication bearer required
  5843. // http bearer authentication required
  5844. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5845. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5846. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5847. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5848. return {
  5849. url: toPathString(localVarUrlObj),
  5850. options: localVarRequestOptions,
  5851. };
  5852. },
  5853. /**
  5854. *
  5855. * @param {*} [options] Override http request option.
  5856. * @throws {RequiredError}
  5857. */
  5858. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5859. const localVarPath = `/auth/validateToken`;
  5860. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5861. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5862. let baseOptions;
  5863. if (configuration) {
  5864. baseOptions = configuration.baseOptions;
  5865. }
  5866. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5867. const localVarHeaderParameter = {} as any;
  5868. const localVarQueryParameter = {} as any;
  5869. // authentication cookie required
  5870. // authentication api_key required
  5871. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5872. // authentication bearer required
  5873. // http bearer authentication required
  5874. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5875. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5876. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5877. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5878. return {
  5879. url: toPathString(localVarUrlObj),
  5880. options: localVarRequestOptions,
  5881. };
  5882. },
  5883. }
  5884. };
  5885. /**
  5886. * AuthenticationApi - functional programming interface
  5887. * @export
  5888. */
  5889. export const AuthenticationApiFp = function(configuration?: Configuration) {
  5890. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  5891. return {
  5892. /**
  5893. *
  5894. * @param {SignUpDto} signUpDto
  5895. * @param {*} [options] Override http request option.
  5896. * @throws {RequiredError}
  5897. */
  5898. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  5899. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  5900. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5901. },
  5902. /**
  5903. *
  5904. * @param {ChangePasswordDto} changePasswordDto
  5905. * @param {*} [options] Override http request option.
  5906. * @throws {RequiredError}
  5907. */
  5908. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  5909. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  5910. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5911. },
  5912. /**
  5913. *
  5914. * @param {*} [options] Override http request option.
  5915. * @throws {RequiredError}
  5916. */
  5917. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  5918. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  5919. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5920. },
  5921. /**
  5922. *
  5923. * @param {LoginCredentialDto} loginCredentialDto
  5924. * @param {*} [options] Override http request option.
  5925. * @throws {RequiredError}
  5926. */
  5927. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  5928. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  5929. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5930. },
  5931. /**
  5932. *
  5933. * @param {*} [options] Override http request option.
  5934. * @throws {RequiredError}
  5935. */
  5936. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  5937. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  5938. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5939. },
  5940. /**
  5941. *
  5942. * @param {string} id
  5943. * @param {*} [options] Override http request option.
  5944. * @throws {RequiredError}
  5945. */
  5946. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5947. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  5948. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5949. },
  5950. /**
  5951. *
  5952. * @param {*} [options] Override http request option.
  5953. * @throws {RequiredError}
  5954. */
  5955. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5956. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  5957. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5958. },
  5959. /**
  5960. *
  5961. * @param {*} [options] Override http request option.
  5962. * @throws {RequiredError}
  5963. */
  5964. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  5965. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  5966. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5967. },
  5968. }
  5969. };
  5970. /**
  5971. * AuthenticationApi - factory interface
  5972. * @export
  5973. */
  5974. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5975. const localVarFp = AuthenticationApiFp(configuration)
  5976. return {
  5977. /**
  5978. *
  5979. * @param {SignUpDto} signUpDto
  5980. * @param {*} [options] Override http request option.
  5981. * @throws {RequiredError}
  5982. */
  5983. adminSignUp(signUpDto: SignUpDto, options?: any): AxiosPromise<AdminSignupResponseDto> {
  5984. return localVarFp.adminSignUp(signUpDto, options).then((request) => request(axios, basePath));
  5985. },
  5986. /**
  5987. *
  5988. * @param {ChangePasswordDto} changePasswordDto
  5989. * @param {*} [options] Override http request option.
  5990. * @throws {RequiredError}
  5991. */
  5992. changePassword(changePasswordDto: ChangePasswordDto, options?: any): AxiosPromise<UserResponseDto> {
  5993. return localVarFp.changePassword(changePasswordDto, options).then((request) => request(axios, basePath));
  5994. },
  5995. /**
  5996. *
  5997. * @param {*} [options] Override http request option.
  5998. * @throws {RequiredError}
  5999. */
  6000. getAuthDevices(options?: any): AxiosPromise<Array<AuthDeviceResponseDto>> {
  6001. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  6002. },
  6003. /**
  6004. *
  6005. * @param {LoginCredentialDto} loginCredentialDto
  6006. * @param {*} [options] Override http request option.
  6007. * @throws {RequiredError}
  6008. */
  6009. login(loginCredentialDto: LoginCredentialDto, options?: any): AxiosPromise<LoginResponseDto> {
  6010. return localVarFp.login(loginCredentialDto, options).then((request) => request(axios, basePath));
  6011. },
  6012. /**
  6013. *
  6014. * @param {*} [options] Override http request option.
  6015. * @throws {RequiredError}
  6016. */
  6017. logout(options?: any): AxiosPromise<LogoutResponseDto> {
  6018. return localVarFp.logout(options).then((request) => request(axios, basePath));
  6019. },
  6020. /**
  6021. *
  6022. * @param {string} id
  6023. * @param {*} [options] Override http request option.
  6024. * @throws {RequiredError}
  6025. */
  6026. logoutAuthDevice(id: string, options?: any): AxiosPromise<void> {
  6027. return localVarFp.logoutAuthDevice(id, options).then((request) => request(axios, basePath));
  6028. },
  6029. /**
  6030. *
  6031. * @param {*} [options] Override http request option.
  6032. * @throws {RequiredError}
  6033. */
  6034. logoutAuthDevices(options?: any): AxiosPromise<void> {
  6035. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  6036. },
  6037. /**
  6038. *
  6039. * @param {*} [options] Override http request option.
  6040. * @throws {RequiredError}
  6041. */
  6042. validateAccessToken(options?: any): AxiosPromise<ValidateAccessTokenResponseDto> {
  6043. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  6044. },
  6045. };
  6046. };
  6047. /**
  6048. * AuthenticationApi - object-oriented interface
  6049. * @export
  6050. * @class AuthenticationApi
  6051. * @extends {BaseAPI}
  6052. */
  6053. export class AuthenticationApi extends BaseAPI {
  6054. /**
  6055. *
  6056. * @param {SignUpDto} signUpDto
  6057. * @param {*} [options] Override http request option.
  6058. * @throws {RequiredError}
  6059. * @memberof AuthenticationApi
  6060. */
  6061. public adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig) {
  6062. return AuthenticationApiFp(this.configuration).adminSignUp(signUpDto, options).then((request) => request(this.axios, this.basePath));
  6063. }
  6064. /**
  6065. *
  6066. * @param {ChangePasswordDto} changePasswordDto
  6067. * @param {*} [options] Override http request option.
  6068. * @throws {RequiredError}
  6069. * @memberof AuthenticationApi
  6070. */
  6071. public changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig) {
  6072. return AuthenticationApiFp(this.configuration).changePassword(changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  6073. }
  6074. /**
  6075. *
  6076. * @param {*} [options] Override http request option.
  6077. * @throws {RequiredError}
  6078. * @memberof AuthenticationApi
  6079. */
  6080. public getAuthDevices(options?: AxiosRequestConfig) {
  6081. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  6082. }
  6083. /**
  6084. *
  6085. * @param {LoginCredentialDto} loginCredentialDto
  6086. * @param {*} [options] Override http request option.
  6087. * @throws {RequiredError}
  6088. * @memberof AuthenticationApi
  6089. */
  6090. public login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig) {
  6091. return AuthenticationApiFp(this.configuration).login(loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  6092. }
  6093. /**
  6094. *
  6095. * @param {*} [options] Override http request option.
  6096. * @throws {RequiredError}
  6097. * @memberof AuthenticationApi
  6098. */
  6099. public logout(options?: AxiosRequestConfig) {
  6100. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  6101. }
  6102. /**
  6103. *
  6104. * @param {string} id
  6105. * @param {*} [options] Override http request option.
  6106. * @throws {RequiredError}
  6107. * @memberof AuthenticationApi
  6108. */
  6109. public logoutAuthDevice(id: string, options?: AxiosRequestConfig) {
  6110. return AuthenticationApiFp(this.configuration).logoutAuthDevice(id, options).then((request) => request(this.axios, this.basePath));
  6111. }
  6112. /**
  6113. *
  6114. * @param {*} [options] Override http request option.
  6115. * @throws {RequiredError}
  6116. * @memberof AuthenticationApi
  6117. */
  6118. public logoutAuthDevices(options?: AxiosRequestConfig) {
  6119. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  6120. }
  6121. /**
  6122. *
  6123. * @param {*} [options] Override http request option.
  6124. * @throws {RequiredError}
  6125. * @memberof AuthenticationApi
  6126. */
  6127. public validateAccessToken(options?: AxiosRequestConfig) {
  6128. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  6129. }
  6130. }
  6131. /**
  6132. * JobApi - axios parameter creator
  6133. * @export
  6134. */
  6135. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  6136. return {
  6137. /**
  6138. *
  6139. * @param {*} [options] Override http request option.
  6140. * @throws {RequiredError}
  6141. */
  6142. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6143. const localVarPath = `/jobs`;
  6144. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6145. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6146. let baseOptions;
  6147. if (configuration) {
  6148. baseOptions = configuration.baseOptions;
  6149. }
  6150. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6151. const localVarHeaderParameter = {} as any;
  6152. const localVarQueryParameter = {} as any;
  6153. // authentication cookie required
  6154. // authentication api_key required
  6155. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6156. // authentication bearer required
  6157. // http bearer authentication required
  6158. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6159. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6160. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6161. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6162. return {
  6163. url: toPathString(localVarUrlObj),
  6164. options: localVarRequestOptions,
  6165. };
  6166. },
  6167. /**
  6168. *
  6169. * @param {JobName} jobId
  6170. * @param {JobCommandDto} jobCommandDto
  6171. * @param {*} [options] Override http request option.
  6172. * @throws {RequiredError}
  6173. */
  6174. sendJobCommand: async (jobId: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6175. // verify required parameter 'jobId' is not null or undefined
  6176. assertParamExists('sendJobCommand', 'jobId', jobId)
  6177. // verify required parameter 'jobCommandDto' is not null or undefined
  6178. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  6179. const localVarPath = `/jobs/{jobId}`
  6180. .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
  6181. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6182. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6183. let baseOptions;
  6184. if (configuration) {
  6185. baseOptions = configuration.baseOptions;
  6186. }
  6187. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6188. const localVarHeaderParameter = {} as any;
  6189. const localVarQueryParameter = {} as any;
  6190. // authentication cookie required
  6191. // authentication api_key required
  6192. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6193. // authentication bearer required
  6194. // http bearer authentication required
  6195. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6196. localVarHeaderParameter['Content-Type'] = 'application/json';
  6197. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6198. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6199. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6200. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  6201. return {
  6202. url: toPathString(localVarUrlObj),
  6203. options: localVarRequestOptions,
  6204. };
  6205. },
  6206. }
  6207. };
  6208. /**
  6209. * JobApi - functional programming interface
  6210. * @export
  6211. */
  6212. export const JobApiFp = function(configuration?: Configuration) {
  6213. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  6214. return {
  6215. /**
  6216. *
  6217. * @param {*} [options] Override http request option.
  6218. * @throws {RequiredError}
  6219. */
  6220. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  6221. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  6222. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6223. },
  6224. /**
  6225. *
  6226. * @param {JobName} jobId
  6227. * @param {JobCommandDto} jobCommandDto
  6228. * @param {*} [options] Override http request option.
  6229. * @throws {RequiredError}
  6230. */
  6231. async sendJobCommand(jobId: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  6232. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(jobId, jobCommandDto, options);
  6233. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6234. },
  6235. }
  6236. };
  6237. /**
  6238. * JobApi - factory interface
  6239. * @export
  6240. */
  6241. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6242. const localVarFp = JobApiFp(configuration)
  6243. return {
  6244. /**
  6245. *
  6246. * @param {*} [options] Override http request option.
  6247. * @throws {RequiredError}
  6248. */
  6249. getAllJobsStatus(options?: any): AxiosPromise<AllJobStatusResponseDto> {
  6250. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  6251. },
  6252. /**
  6253. *
  6254. * @param {JobName} jobId
  6255. * @param {JobCommandDto} jobCommandDto
  6256. * @param {*} [options] Override http request option.
  6257. * @throws {RequiredError}
  6258. */
  6259. sendJobCommand(jobId: JobName, jobCommandDto: JobCommandDto, options?: any): AxiosPromise<JobStatusDto> {
  6260. return localVarFp.sendJobCommand(jobId, jobCommandDto, options).then((request) => request(axios, basePath));
  6261. },
  6262. };
  6263. };
  6264. /**
  6265. * JobApi - object-oriented interface
  6266. * @export
  6267. * @class JobApi
  6268. * @extends {BaseAPI}
  6269. */
  6270. export class JobApi extends BaseAPI {
  6271. /**
  6272. *
  6273. * @param {*} [options] Override http request option.
  6274. * @throws {RequiredError}
  6275. * @memberof JobApi
  6276. */
  6277. public getAllJobsStatus(options?: AxiosRequestConfig) {
  6278. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  6279. }
  6280. /**
  6281. *
  6282. * @param {JobName} jobId
  6283. * @param {JobCommandDto} jobCommandDto
  6284. * @param {*} [options] Override http request option.
  6285. * @throws {RequiredError}
  6286. * @memberof JobApi
  6287. */
  6288. public sendJobCommand(jobId: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig) {
  6289. return JobApiFp(this.configuration).sendJobCommand(jobId, jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  6290. }
  6291. }
  6292. /**
  6293. * OAuthApi - axios parameter creator
  6294. * @export
  6295. */
  6296. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  6297. return {
  6298. /**
  6299. *
  6300. * @param {OAuthCallbackDto} oAuthCallbackDto
  6301. * @param {*} [options] Override http request option.
  6302. * @throws {RequiredError}
  6303. */
  6304. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6305. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  6306. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  6307. const localVarPath = `/oauth/callback`;
  6308. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6309. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6310. let baseOptions;
  6311. if (configuration) {
  6312. baseOptions = configuration.baseOptions;
  6313. }
  6314. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6315. const localVarHeaderParameter = {} as any;
  6316. const localVarQueryParameter = {} as any;
  6317. localVarHeaderParameter['Content-Type'] = 'application/json';
  6318. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6319. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6320. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6321. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  6322. return {
  6323. url: toPathString(localVarUrlObj),
  6324. options: localVarRequestOptions,
  6325. };
  6326. },
  6327. /**
  6328. *
  6329. * @param {OAuthConfigDto} oAuthConfigDto
  6330. * @param {*} [options] Override http request option.
  6331. * @throws {RequiredError}
  6332. */
  6333. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6334. // verify required parameter 'oAuthConfigDto' is not null or undefined
  6335. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  6336. const localVarPath = `/oauth/config`;
  6337. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6338. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6339. let baseOptions;
  6340. if (configuration) {
  6341. baseOptions = configuration.baseOptions;
  6342. }
  6343. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6344. const localVarHeaderParameter = {} as any;
  6345. const localVarQueryParameter = {} as any;
  6346. localVarHeaderParameter['Content-Type'] = 'application/json';
  6347. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6348. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6349. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6350. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  6351. return {
  6352. url: toPathString(localVarUrlObj),
  6353. options: localVarRequestOptions,
  6354. };
  6355. },
  6356. /**
  6357. *
  6358. * @param {OAuthCallbackDto} oAuthCallbackDto
  6359. * @param {*} [options] Override http request option.
  6360. * @throws {RequiredError}
  6361. */
  6362. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6363. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  6364. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  6365. const localVarPath = `/oauth/link`;
  6366. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6367. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6368. let baseOptions;
  6369. if (configuration) {
  6370. baseOptions = configuration.baseOptions;
  6371. }
  6372. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6373. const localVarHeaderParameter = {} as any;
  6374. const localVarQueryParameter = {} as any;
  6375. // authentication cookie required
  6376. // authentication api_key required
  6377. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6378. // authentication bearer required
  6379. // http bearer authentication required
  6380. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6381. localVarHeaderParameter['Content-Type'] = 'application/json';
  6382. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6383. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6384. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6385. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  6386. return {
  6387. url: toPathString(localVarUrlObj),
  6388. options: localVarRequestOptions,
  6389. };
  6390. },
  6391. /**
  6392. *
  6393. * @param {*} [options] Override http request option.
  6394. * @throws {RequiredError}
  6395. */
  6396. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6397. const localVarPath = `/oauth/mobile-redirect`;
  6398. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6399. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6400. let baseOptions;
  6401. if (configuration) {
  6402. baseOptions = configuration.baseOptions;
  6403. }
  6404. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6405. const localVarHeaderParameter = {} as any;
  6406. const localVarQueryParameter = {} as any;
  6407. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6408. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6409. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6410. return {
  6411. url: toPathString(localVarUrlObj),
  6412. options: localVarRequestOptions,
  6413. };
  6414. },
  6415. /**
  6416. *
  6417. * @param {*} [options] Override http request option.
  6418. * @throws {RequiredError}
  6419. */
  6420. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6421. const localVarPath = `/oauth/unlink`;
  6422. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6423. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6424. let baseOptions;
  6425. if (configuration) {
  6426. baseOptions = configuration.baseOptions;
  6427. }
  6428. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6429. const localVarHeaderParameter = {} as any;
  6430. const localVarQueryParameter = {} as any;
  6431. // authentication cookie required
  6432. // authentication api_key required
  6433. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6434. // authentication bearer required
  6435. // http bearer authentication required
  6436. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6437. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6438. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6439. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6440. return {
  6441. url: toPathString(localVarUrlObj),
  6442. options: localVarRequestOptions,
  6443. };
  6444. },
  6445. }
  6446. };
  6447. /**
  6448. * OAuthApi - functional programming interface
  6449. * @export
  6450. */
  6451. export const OAuthApiFp = function(configuration?: Configuration) {
  6452. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  6453. return {
  6454. /**
  6455. *
  6456. * @param {OAuthCallbackDto} oAuthCallbackDto
  6457. * @param {*} [options] Override http request option.
  6458. * @throws {RequiredError}
  6459. */
  6460. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  6461. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  6462. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6463. },
  6464. /**
  6465. *
  6466. * @param {OAuthConfigDto} oAuthConfigDto
  6467. * @param {*} [options] Override http request option.
  6468. * @throws {RequiredError}
  6469. */
  6470. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  6471. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  6472. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6473. },
  6474. /**
  6475. *
  6476. * @param {OAuthCallbackDto} oAuthCallbackDto
  6477. * @param {*} [options] Override http request option.
  6478. * @throws {RequiredError}
  6479. */
  6480. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  6481. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  6482. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6483. },
  6484. /**
  6485. *
  6486. * @param {*} [options] Override http request option.
  6487. * @throws {RequiredError}
  6488. */
  6489. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6490. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  6491. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6492. },
  6493. /**
  6494. *
  6495. * @param {*} [options] Override http request option.
  6496. * @throws {RequiredError}
  6497. */
  6498. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  6499. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  6500. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6501. },
  6502. }
  6503. };
  6504. /**
  6505. * OAuthApi - factory interface
  6506. * @export
  6507. */
  6508. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6509. const localVarFp = OAuthApiFp(configuration)
  6510. return {
  6511. /**
  6512. *
  6513. * @param {OAuthCallbackDto} oAuthCallbackDto
  6514. * @param {*} [options] Override http request option.
  6515. * @throws {RequiredError}
  6516. */
  6517. callback(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<LoginResponseDto> {
  6518. return localVarFp.callback(oAuthCallbackDto, options).then((request) => request(axios, basePath));
  6519. },
  6520. /**
  6521. *
  6522. * @param {OAuthConfigDto} oAuthConfigDto
  6523. * @param {*} [options] Override http request option.
  6524. * @throws {RequiredError}
  6525. */
  6526. generateConfig(oAuthConfigDto: OAuthConfigDto, options?: any): AxiosPromise<OAuthConfigResponseDto> {
  6527. return localVarFp.generateConfig(oAuthConfigDto, options).then((request) => request(axios, basePath));
  6528. },
  6529. /**
  6530. *
  6531. * @param {OAuthCallbackDto} oAuthCallbackDto
  6532. * @param {*} [options] Override http request option.
  6533. * @throws {RequiredError}
  6534. */
  6535. link(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<UserResponseDto> {
  6536. return localVarFp.link(oAuthCallbackDto, options).then((request) => request(axios, basePath));
  6537. },
  6538. /**
  6539. *
  6540. * @param {*} [options] Override http request option.
  6541. * @throws {RequiredError}
  6542. */
  6543. mobileRedirect(options?: any): AxiosPromise<void> {
  6544. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  6545. },
  6546. /**
  6547. *
  6548. * @param {*} [options] Override http request option.
  6549. * @throws {RequiredError}
  6550. */
  6551. unlink(options?: any): AxiosPromise<UserResponseDto> {
  6552. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  6553. },
  6554. };
  6555. };
  6556. /**
  6557. * OAuthApi - object-oriented interface
  6558. * @export
  6559. * @class OAuthApi
  6560. * @extends {BaseAPI}
  6561. */
  6562. export class OAuthApi extends BaseAPI {
  6563. /**
  6564. *
  6565. * @param {OAuthCallbackDto} oAuthCallbackDto
  6566. * @param {*} [options] Override http request option.
  6567. * @throws {RequiredError}
  6568. * @memberof OAuthApi
  6569. */
  6570. public callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig) {
  6571. return OAuthApiFp(this.configuration).callback(oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  6572. }
  6573. /**
  6574. *
  6575. * @param {OAuthConfigDto} oAuthConfigDto
  6576. * @param {*} [options] Override http request option.
  6577. * @throws {RequiredError}
  6578. * @memberof OAuthApi
  6579. */
  6580. public generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig) {
  6581. return OAuthApiFp(this.configuration).generateConfig(oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  6582. }
  6583. /**
  6584. *
  6585. * @param {OAuthCallbackDto} oAuthCallbackDto
  6586. * @param {*} [options] Override http request option.
  6587. * @throws {RequiredError}
  6588. * @memberof OAuthApi
  6589. */
  6590. public link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig) {
  6591. return OAuthApiFp(this.configuration).link(oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  6592. }
  6593. /**
  6594. *
  6595. * @param {*} [options] Override http request option.
  6596. * @throws {RequiredError}
  6597. * @memberof OAuthApi
  6598. */
  6599. public mobileRedirect(options?: AxiosRequestConfig) {
  6600. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  6601. }
  6602. /**
  6603. *
  6604. * @param {*} [options] Override http request option.
  6605. * @throws {RequiredError}
  6606. * @memberof OAuthApi
  6607. */
  6608. public unlink(options?: AxiosRequestConfig) {
  6609. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  6610. }
  6611. }
  6612. /**
  6613. * PartnerApi - axios parameter creator
  6614. * @export
  6615. */
  6616. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  6617. return {
  6618. /**
  6619. *
  6620. * @param {string} id
  6621. * @param {*} [options] Override http request option.
  6622. * @throws {RequiredError}
  6623. */
  6624. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6625. // verify required parameter 'id' is not null or undefined
  6626. assertParamExists('createPartner', 'id', id)
  6627. const localVarPath = `/partner/{id}`
  6628. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6629. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6630. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6631. let baseOptions;
  6632. if (configuration) {
  6633. baseOptions = configuration.baseOptions;
  6634. }
  6635. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6636. const localVarHeaderParameter = {} as any;
  6637. const localVarQueryParameter = {} as any;
  6638. // authentication cookie required
  6639. // authentication api_key required
  6640. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6641. // authentication bearer required
  6642. // http bearer authentication required
  6643. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6644. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6645. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6646. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6647. return {
  6648. url: toPathString(localVarUrlObj),
  6649. options: localVarRequestOptions,
  6650. };
  6651. },
  6652. /**
  6653. *
  6654. * @param {'shared-by' | 'shared-with'} direction
  6655. * @param {*} [options] Override http request option.
  6656. * @throws {RequiredError}
  6657. */
  6658. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6659. // verify required parameter 'direction' is not null or undefined
  6660. assertParamExists('getPartners', 'direction', direction)
  6661. const localVarPath = `/partner`;
  6662. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6663. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6664. let baseOptions;
  6665. if (configuration) {
  6666. baseOptions = configuration.baseOptions;
  6667. }
  6668. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6669. const localVarHeaderParameter = {} as any;
  6670. const localVarQueryParameter = {} as any;
  6671. // authentication cookie required
  6672. // authentication api_key required
  6673. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6674. // authentication bearer required
  6675. // http bearer authentication required
  6676. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6677. if (direction !== undefined) {
  6678. localVarQueryParameter['direction'] = direction;
  6679. }
  6680. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6681. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6682. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6683. return {
  6684. url: toPathString(localVarUrlObj),
  6685. options: localVarRequestOptions,
  6686. };
  6687. },
  6688. /**
  6689. *
  6690. * @param {string} id
  6691. * @param {*} [options] Override http request option.
  6692. * @throws {RequiredError}
  6693. */
  6694. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6695. // verify required parameter 'id' is not null or undefined
  6696. assertParamExists('removePartner', 'id', id)
  6697. const localVarPath = `/partner/{id}`
  6698. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6699. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6700. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6701. let baseOptions;
  6702. if (configuration) {
  6703. baseOptions = configuration.baseOptions;
  6704. }
  6705. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6706. const localVarHeaderParameter = {} as any;
  6707. const localVarQueryParameter = {} as any;
  6708. // authentication cookie required
  6709. // authentication api_key required
  6710. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6711. // authentication bearer required
  6712. // http bearer authentication required
  6713. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6714. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6715. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6716. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6717. return {
  6718. url: toPathString(localVarUrlObj),
  6719. options: localVarRequestOptions,
  6720. };
  6721. },
  6722. }
  6723. };
  6724. /**
  6725. * PartnerApi - functional programming interface
  6726. * @export
  6727. */
  6728. export const PartnerApiFp = function(configuration?: Configuration) {
  6729. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  6730. return {
  6731. /**
  6732. *
  6733. * @param {string} id
  6734. * @param {*} [options] Override http request option.
  6735. * @throws {RequiredError}
  6736. */
  6737. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  6738. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  6739. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6740. },
  6741. /**
  6742. *
  6743. * @param {'shared-by' | 'shared-with'} direction
  6744. * @param {*} [options] Override http request option.
  6745. * @throws {RequiredError}
  6746. */
  6747. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  6748. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  6749. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6750. },
  6751. /**
  6752. *
  6753. * @param {string} id
  6754. * @param {*} [options] Override http request option.
  6755. * @throws {RequiredError}
  6756. */
  6757. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6758. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  6759. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6760. },
  6761. }
  6762. };
  6763. /**
  6764. * PartnerApi - factory interface
  6765. * @export
  6766. */
  6767. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6768. const localVarFp = PartnerApiFp(configuration)
  6769. return {
  6770. /**
  6771. *
  6772. * @param {string} id
  6773. * @param {*} [options] Override http request option.
  6774. * @throws {RequiredError}
  6775. */
  6776. createPartner(id: string, options?: any): AxiosPromise<UserResponseDto> {
  6777. return localVarFp.createPartner(id, options).then((request) => request(axios, basePath));
  6778. },
  6779. /**
  6780. *
  6781. * @param {'shared-by' | 'shared-with'} direction
  6782. * @param {*} [options] Override http request option.
  6783. * @throws {RequiredError}
  6784. */
  6785. getPartners(direction: 'shared-by' | 'shared-with', options?: any): AxiosPromise<Array<UserResponseDto>> {
  6786. return localVarFp.getPartners(direction, options).then((request) => request(axios, basePath));
  6787. },
  6788. /**
  6789. *
  6790. * @param {string} id
  6791. * @param {*} [options] Override http request option.
  6792. * @throws {RequiredError}
  6793. */
  6794. removePartner(id: string, options?: any): AxiosPromise<void> {
  6795. return localVarFp.removePartner(id, options).then((request) => request(axios, basePath));
  6796. },
  6797. };
  6798. };
  6799. /**
  6800. * PartnerApi - object-oriented interface
  6801. * @export
  6802. * @class PartnerApi
  6803. * @extends {BaseAPI}
  6804. */
  6805. export class PartnerApi extends BaseAPI {
  6806. /**
  6807. *
  6808. * @param {string} id
  6809. * @param {*} [options] Override http request option.
  6810. * @throws {RequiredError}
  6811. * @memberof PartnerApi
  6812. */
  6813. public createPartner(id: string, options?: AxiosRequestConfig) {
  6814. return PartnerApiFp(this.configuration).createPartner(id, options).then((request) => request(this.axios, this.basePath));
  6815. }
  6816. /**
  6817. *
  6818. * @param {'shared-by' | 'shared-with'} direction
  6819. * @param {*} [options] Override http request option.
  6820. * @throws {RequiredError}
  6821. * @memberof PartnerApi
  6822. */
  6823. public getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig) {
  6824. return PartnerApiFp(this.configuration).getPartners(direction, options).then((request) => request(this.axios, this.basePath));
  6825. }
  6826. /**
  6827. *
  6828. * @param {string} id
  6829. * @param {*} [options] Override http request option.
  6830. * @throws {RequiredError}
  6831. * @memberof PartnerApi
  6832. */
  6833. public removePartner(id: string, options?: AxiosRequestConfig) {
  6834. return PartnerApiFp(this.configuration).removePartner(id, options).then((request) => request(this.axios, this.basePath));
  6835. }
  6836. }
  6837. /**
  6838. * PersonApi - axios parameter creator
  6839. * @export
  6840. */
  6841. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  6842. return {
  6843. /**
  6844. *
  6845. * @param {*} [options] Override http request option.
  6846. * @throws {RequiredError}
  6847. */
  6848. getAllPeople: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6849. const localVarPath = `/person`;
  6850. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6851. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6852. let baseOptions;
  6853. if (configuration) {
  6854. baseOptions = configuration.baseOptions;
  6855. }
  6856. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6857. const localVarHeaderParameter = {} as any;
  6858. const localVarQueryParameter = {} as any;
  6859. // authentication cookie required
  6860. // authentication api_key required
  6861. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6862. // authentication bearer required
  6863. // http bearer authentication required
  6864. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6865. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6866. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6867. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6868. return {
  6869. url: toPathString(localVarUrlObj),
  6870. options: localVarRequestOptions,
  6871. };
  6872. },
  6873. /**
  6874. *
  6875. * @param {string} id
  6876. * @param {*} [options] Override http request option.
  6877. * @throws {RequiredError}
  6878. */
  6879. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6880. // verify required parameter 'id' is not null or undefined
  6881. assertParamExists('getPerson', 'id', id)
  6882. const localVarPath = `/person/{id}`
  6883. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6884. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6885. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6886. let baseOptions;
  6887. if (configuration) {
  6888. baseOptions = configuration.baseOptions;
  6889. }
  6890. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6891. const localVarHeaderParameter = {} as any;
  6892. const localVarQueryParameter = {} as any;
  6893. // authentication cookie required
  6894. // authentication api_key required
  6895. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6896. // authentication bearer required
  6897. // http bearer authentication required
  6898. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6899. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6900. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6901. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6902. return {
  6903. url: toPathString(localVarUrlObj),
  6904. options: localVarRequestOptions,
  6905. };
  6906. },
  6907. /**
  6908. *
  6909. * @param {string} id
  6910. * @param {*} [options] Override http request option.
  6911. * @throws {RequiredError}
  6912. */
  6913. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6914. // verify required parameter 'id' is not null or undefined
  6915. assertParamExists('getPersonAssets', 'id', id)
  6916. const localVarPath = `/person/{id}/assets`
  6917. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6918. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6919. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6920. let baseOptions;
  6921. if (configuration) {
  6922. baseOptions = configuration.baseOptions;
  6923. }
  6924. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6925. const localVarHeaderParameter = {} as any;
  6926. const localVarQueryParameter = {} as any;
  6927. // authentication cookie required
  6928. // authentication api_key required
  6929. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6930. // authentication bearer required
  6931. // http bearer authentication required
  6932. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6933. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6934. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6935. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6936. return {
  6937. url: toPathString(localVarUrlObj),
  6938. options: localVarRequestOptions,
  6939. };
  6940. },
  6941. /**
  6942. *
  6943. * @param {string} id
  6944. * @param {*} [options] Override http request option.
  6945. * @throws {RequiredError}
  6946. */
  6947. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6948. // verify required parameter 'id' is not null or undefined
  6949. assertParamExists('getPersonThumbnail', 'id', id)
  6950. const localVarPath = `/person/{id}/thumbnail`
  6951. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6952. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6953. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6954. let baseOptions;
  6955. if (configuration) {
  6956. baseOptions = configuration.baseOptions;
  6957. }
  6958. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6959. const localVarHeaderParameter = {} as any;
  6960. const localVarQueryParameter = {} as any;
  6961. // authentication cookie required
  6962. // authentication api_key required
  6963. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6964. // authentication bearer required
  6965. // http bearer authentication required
  6966. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6967. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6968. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6969. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6970. return {
  6971. url: toPathString(localVarUrlObj),
  6972. options: localVarRequestOptions,
  6973. };
  6974. },
  6975. /**
  6976. *
  6977. * @param {string} id
  6978. * @param {PersonUpdateDto} personUpdateDto
  6979. * @param {*} [options] Override http request option.
  6980. * @throws {RequiredError}
  6981. */
  6982. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6983. // verify required parameter 'id' is not null or undefined
  6984. assertParamExists('updatePerson', 'id', id)
  6985. // verify required parameter 'personUpdateDto' is not null or undefined
  6986. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  6987. const localVarPath = `/person/{id}`
  6988. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6989. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6990. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6991. let baseOptions;
  6992. if (configuration) {
  6993. baseOptions = configuration.baseOptions;
  6994. }
  6995. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6996. const localVarHeaderParameter = {} as any;
  6997. const localVarQueryParameter = {} as any;
  6998. // authentication cookie required
  6999. // authentication api_key required
  7000. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7001. // authentication bearer required
  7002. // http bearer authentication required
  7003. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7004. localVarHeaderParameter['Content-Type'] = 'application/json';
  7005. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7006. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7007. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7008. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  7009. return {
  7010. url: toPathString(localVarUrlObj),
  7011. options: localVarRequestOptions,
  7012. };
  7013. },
  7014. }
  7015. };
  7016. /**
  7017. * PersonApi - functional programming interface
  7018. * @export
  7019. */
  7020. export const PersonApiFp = function(configuration?: Configuration) {
  7021. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  7022. return {
  7023. /**
  7024. *
  7025. * @param {*} [options] Override http request option.
  7026. * @throws {RequiredError}
  7027. */
  7028. async getAllPeople(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  7029. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(options);
  7030. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7031. },
  7032. /**
  7033. *
  7034. * @param {string} id
  7035. * @param {*} [options] Override http request option.
  7036. * @throws {RequiredError}
  7037. */
  7038. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  7039. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  7040. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7041. },
  7042. /**
  7043. *
  7044. * @param {string} id
  7045. * @param {*} [options] Override http request option.
  7046. * @throws {RequiredError}
  7047. */
  7048. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7049. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  7050. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7051. },
  7052. /**
  7053. *
  7054. * @param {string} id
  7055. * @param {*} [options] Override http request option.
  7056. * @throws {RequiredError}
  7057. */
  7058. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7059. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  7060. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7061. },
  7062. /**
  7063. *
  7064. * @param {string} id
  7065. * @param {PersonUpdateDto} personUpdateDto
  7066. * @param {*} [options] Override http request option.
  7067. * @throws {RequiredError}
  7068. */
  7069. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  7070. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  7071. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7072. },
  7073. }
  7074. };
  7075. /**
  7076. * PersonApi - factory interface
  7077. * @export
  7078. */
  7079. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7080. const localVarFp = PersonApiFp(configuration)
  7081. return {
  7082. /**
  7083. *
  7084. * @param {*} [options] Override http request option.
  7085. * @throws {RequiredError}
  7086. */
  7087. getAllPeople(options?: any): AxiosPromise<Array<PersonResponseDto>> {
  7088. return localVarFp.getAllPeople(options).then((request) => request(axios, basePath));
  7089. },
  7090. /**
  7091. *
  7092. * @param {string} id
  7093. * @param {*} [options] Override http request option.
  7094. * @throws {RequiredError}
  7095. */
  7096. getPerson(id: string, options?: any): AxiosPromise<PersonResponseDto> {
  7097. return localVarFp.getPerson(id, options).then((request) => request(axios, basePath));
  7098. },
  7099. /**
  7100. *
  7101. * @param {string} id
  7102. * @param {*} [options] Override http request option.
  7103. * @throws {RequiredError}
  7104. */
  7105. getPersonAssets(id: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  7106. return localVarFp.getPersonAssets(id, options).then((request) => request(axios, basePath));
  7107. },
  7108. /**
  7109. *
  7110. * @param {string} id
  7111. * @param {*} [options] Override http request option.
  7112. * @throws {RequiredError}
  7113. */
  7114. getPersonThumbnail(id: string, options?: any): AxiosPromise<File> {
  7115. return localVarFp.getPersonThumbnail(id, options).then((request) => request(axios, basePath));
  7116. },
  7117. /**
  7118. *
  7119. * @param {string} id
  7120. * @param {PersonUpdateDto} personUpdateDto
  7121. * @param {*} [options] Override http request option.
  7122. * @throws {RequiredError}
  7123. */
  7124. updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: any): AxiosPromise<PersonResponseDto> {
  7125. return localVarFp.updatePerson(id, personUpdateDto, options).then((request) => request(axios, basePath));
  7126. },
  7127. };
  7128. };
  7129. /**
  7130. * PersonApi - object-oriented interface
  7131. * @export
  7132. * @class PersonApi
  7133. * @extends {BaseAPI}
  7134. */
  7135. export class PersonApi extends BaseAPI {
  7136. /**
  7137. *
  7138. * @param {*} [options] Override http request option.
  7139. * @throws {RequiredError}
  7140. * @memberof PersonApi
  7141. */
  7142. public getAllPeople(options?: AxiosRequestConfig) {
  7143. return PersonApiFp(this.configuration).getAllPeople(options).then((request) => request(this.axios, this.basePath));
  7144. }
  7145. /**
  7146. *
  7147. * @param {string} id
  7148. * @param {*} [options] Override http request option.
  7149. * @throws {RequiredError}
  7150. * @memberof PersonApi
  7151. */
  7152. public getPerson(id: string, options?: AxiosRequestConfig) {
  7153. return PersonApiFp(this.configuration).getPerson(id, options).then((request) => request(this.axios, this.basePath));
  7154. }
  7155. /**
  7156. *
  7157. * @param {string} id
  7158. * @param {*} [options] Override http request option.
  7159. * @throws {RequiredError}
  7160. * @memberof PersonApi
  7161. */
  7162. public getPersonAssets(id: string, options?: AxiosRequestConfig) {
  7163. return PersonApiFp(this.configuration).getPersonAssets(id, options).then((request) => request(this.axios, this.basePath));
  7164. }
  7165. /**
  7166. *
  7167. * @param {string} id
  7168. * @param {*} [options] Override http request option.
  7169. * @throws {RequiredError}
  7170. * @memberof PersonApi
  7171. */
  7172. public getPersonThumbnail(id: string, options?: AxiosRequestConfig) {
  7173. return PersonApiFp(this.configuration).getPersonThumbnail(id, options).then((request) => request(this.axios, this.basePath));
  7174. }
  7175. /**
  7176. *
  7177. * @param {string} id
  7178. * @param {PersonUpdateDto} personUpdateDto
  7179. * @param {*} [options] Override http request option.
  7180. * @throws {RequiredError}
  7181. * @memberof PersonApi
  7182. */
  7183. public updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig) {
  7184. return PersonApiFp(this.configuration).updatePerson(id, personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  7185. }
  7186. }
  7187. /**
  7188. * SearchApi - axios parameter creator
  7189. * @export
  7190. */
  7191. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  7192. return {
  7193. /**
  7194. *
  7195. * @param {*} [options] Override http request option.
  7196. * @throws {RequiredError}
  7197. */
  7198. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7199. const localVarPath = `/search/explore`;
  7200. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7201. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7202. let baseOptions;
  7203. if (configuration) {
  7204. baseOptions = configuration.baseOptions;
  7205. }
  7206. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7207. const localVarHeaderParameter = {} as any;
  7208. const localVarQueryParameter = {} as any;
  7209. // authentication cookie required
  7210. // authentication api_key required
  7211. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7212. // authentication bearer required
  7213. // http bearer authentication required
  7214. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7215. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7216. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7217. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7218. return {
  7219. url: toPathString(localVarUrlObj),
  7220. options: localVarRequestOptions,
  7221. };
  7222. },
  7223. /**
  7224. *
  7225. * @param {*} [options] Override http request option.
  7226. * @throws {RequiredError}
  7227. */
  7228. getSearchConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7229. const localVarPath = `/search/config`;
  7230. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7231. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7232. let baseOptions;
  7233. if (configuration) {
  7234. baseOptions = configuration.baseOptions;
  7235. }
  7236. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7237. const localVarHeaderParameter = {} as any;
  7238. const localVarQueryParameter = {} as any;
  7239. // authentication cookie required
  7240. // authentication api_key required
  7241. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7242. // authentication bearer required
  7243. // http bearer authentication required
  7244. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7245. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7246. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7247. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7248. return {
  7249. url: toPathString(localVarUrlObj),
  7250. options: localVarRequestOptions,
  7251. };
  7252. },
  7253. /**
  7254. *
  7255. * @param {string} [q]
  7256. * @param {string} [query]
  7257. * @param {boolean} [clip]
  7258. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  7259. * @param {boolean} [isFavorite]
  7260. * @param {boolean} [isArchived]
  7261. * @param {string} [exifInfoCity]
  7262. * @param {string} [exifInfoState]
  7263. * @param {string} [exifInfoCountry]
  7264. * @param {string} [exifInfoMake]
  7265. * @param {string} [exifInfoModel]
  7266. * @param {Array<string>} [smartInfoObjects]
  7267. * @param {Array<string>} [smartInfoTags]
  7268. * @param {boolean} [recent]
  7269. * @param {boolean} [motion]
  7270. * @param {*} [options] Override http request option.
  7271. * @throws {RequiredError}
  7272. */
  7273. search: async (q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', isFavorite?: boolean, isArchived?: boolean, exifInfoCity?: string, exifInfoState?: string, exifInfoCountry?: string, exifInfoMake?: string, exifInfoModel?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7274. const localVarPath = `/search`;
  7275. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7276. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7277. let baseOptions;
  7278. if (configuration) {
  7279. baseOptions = configuration.baseOptions;
  7280. }
  7281. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7282. const localVarHeaderParameter = {} as any;
  7283. const localVarQueryParameter = {} as any;
  7284. // authentication cookie required
  7285. // authentication api_key required
  7286. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7287. // authentication bearer required
  7288. // http bearer authentication required
  7289. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7290. if (q !== undefined) {
  7291. localVarQueryParameter['q'] = q;
  7292. }
  7293. if (query !== undefined) {
  7294. localVarQueryParameter['query'] = query;
  7295. }
  7296. if (clip !== undefined) {
  7297. localVarQueryParameter['clip'] = clip;
  7298. }
  7299. if (type !== undefined) {
  7300. localVarQueryParameter['type'] = type;
  7301. }
  7302. if (isFavorite !== undefined) {
  7303. localVarQueryParameter['isFavorite'] = isFavorite;
  7304. }
  7305. if (isArchived !== undefined) {
  7306. localVarQueryParameter['isArchived'] = isArchived;
  7307. }
  7308. if (exifInfoCity !== undefined) {
  7309. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  7310. }
  7311. if (exifInfoState !== undefined) {
  7312. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  7313. }
  7314. if (exifInfoCountry !== undefined) {
  7315. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  7316. }
  7317. if (exifInfoMake !== undefined) {
  7318. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  7319. }
  7320. if (exifInfoModel !== undefined) {
  7321. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  7322. }
  7323. if (smartInfoObjects) {
  7324. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  7325. }
  7326. if (smartInfoTags) {
  7327. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  7328. }
  7329. if (recent !== undefined) {
  7330. localVarQueryParameter['recent'] = recent;
  7331. }
  7332. if (motion !== undefined) {
  7333. localVarQueryParameter['motion'] = motion;
  7334. }
  7335. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7336. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7337. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7338. return {
  7339. url: toPathString(localVarUrlObj),
  7340. options: localVarRequestOptions,
  7341. };
  7342. },
  7343. }
  7344. };
  7345. /**
  7346. * SearchApi - functional programming interface
  7347. * @export
  7348. */
  7349. export const SearchApiFp = function(configuration?: Configuration) {
  7350. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  7351. return {
  7352. /**
  7353. *
  7354. * @param {*} [options] Override http request option.
  7355. * @throws {RequiredError}
  7356. */
  7357. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  7358. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  7359. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7360. },
  7361. /**
  7362. *
  7363. * @param {*} [options] Override http request option.
  7364. * @throws {RequiredError}
  7365. */
  7366. async getSearchConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchConfigResponseDto>> {
  7367. const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchConfig(options);
  7368. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7369. },
  7370. /**
  7371. *
  7372. * @param {string} [q]
  7373. * @param {string} [query]
  7374. * @param {boolean} [clip]
  7375. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  7376. * @param {boolean} [isFavorite]
  7377. * @param {boolean} [isArchived]
  7378. * @param {string} [exifInfoCity]
  7379. * @param {string} [exifInfoState]
  7380. * @param {string} [exifInfoCountry]
  7381. * @param {string} [exifInfoMake]
  7382. * @param {string} [exifInfoModel]
  7383. * @param {Array<string>} [smartInfoObjects]
  7384. * @param {Array<string>} [smartInfoTags]
  7385. * @param {boolean} [recent]
  7386. * @param {boolean} [motion]
  7387. * @param {*} [options] Override http request option.
  7388. * @throws {RequiredError}
  7389. */
  7390. async search(q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', isFavorite?: boolean, isArchived?: boolean, exifInfoCity?: string, exifInfoState?: string, exifInfoCountry?: string, exifInfoMake?: string, exifInfoModel?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchResponseDto>> {
  7391. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, smartInfoObjects, smartInfoTags, recent, motion, options);
  7392. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7393. },
  7394. }
  7395. };
  7396. /**
  7397. * SearchApi - factory interface
  7398. * @export
  7399. */
  7400. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7401. const localVarFp = SearchApiFp(configuration)
  7402. return {
  7403. /**
  7404. *
  7405. * @param {*} [options] Override http request option.
  7406. * @throws {RequiredError}
  7407. */
  7408. getExploreData(options?: any): AxiosPromise<Array<SearchExploreResponseDto>> {
  7409. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  7410. },
  7411. /**
  7412. *
  7413. * @param {*} [options] Override http request option.
  7414. * @throws {RequiredError}
  7415. */
  7416. getSearchConfig(options?: any): AxiosPromise<SearchConfigResponseDto> {
  7417. return localVarFp.getSearchConfig(options).then((request) => request(axios, basePath));
  7418. },
  7419. /**
  7420. *
  7421. * @param {string} [q]
  7422. * @param {string} [query]
  7423. * @param {boolean} [clip]
  7424. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  7425. * @param {boolean} [isFavorite]
  7426. * @param {boolean} [isArchived]
  7427. * @param {string} [exifInfoCity]
  7428. * @param {string} [exifInfoState]
  7429. * @param {string} [exifInfoCountry]
  7430. * @param {string} [exifInfoMake]
  7431. * @param {string} [exifInfoModel]
  7432. * @param {Array<string>} [smartInfoObjects]
  7433. * @param {Array<string>} [smartInfoTags]
  7434. * @param {boolean} [recent]
  7435. * @param {boolean} [motion]
  7436. * @param {*} [options] Override http request option.
  7437. * @throws {RequiredError}
  7438. */
  7439. search(q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', isFavorite?: boolean, isArchived?: boolean, exifInfoCity?: string, exifInfoState?: string, exifInfoCountry?: string, exifInfoMake?: string, exifInfoModel?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: any): AxiosPromise<SearchResponseDto> {
  7440. return localVarFp.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, smartInfoObjects, smartInfoTags, recent, motion, options).then((request) => request(axios, basePath));
  7441. },
  7442. };
  7443. };
  7444. /**
  7445. * SearchApi - object-oriented interface
  7446. * @export
  7447. * @class SearchApi
  7448. * @extends {BaseAPI}
  7449. */
  7450. export class SearchApi extends BaseAPI {
  7451. /**
  7452. *
  7453. * @param {*} [options] Override http request option.
  7454. * @throws {RequiredError}
  7455. * @memberof SearchApi
  7456. */
  7457. public getExploreData(options?: AxiosRequestConfig) {
  7458. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  7459. }
  7460. /**
  7461. *
  7462. * @param {*} [options] Override http request option.
  7463. * @throws {RequiredError}
  7464. * @memberof SearchApi
  7465. */
  7466. public getSearchConfig(options?: AxiosRequestConfig) {
  7467. return SearchApiFp(this.configuration).getSearchConfig(options).then((request) => request(this.axios, this.basePath));
  7468. }
  7469. /**
  7470. *
  7471. * @param {string} [q]
  7472. * @param {string} [query]
  7473. * @param {boolean} [clip]
  7474. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  7475. * @param {boolean} [isFavorite]
  7476. * @param {boolean} [isArchived]
  7477. * @param {string} [exifInfoCity]
  7478. * @param {string} [exifInfoState]
  7479. * @param {string} [exifInfoCountry]
  7480. * @param {string} [exifInfoMake]
  7481. * @param {string} [exifInfoModel]
  7482. * @param {Array<string>} [smartInfoObjects]
  7483. * @param {Array<string>} [smartInfoTags]
  7484. * @param {boolean} [recent]
  7485. * @param {boolean} [motion]
  7486. * @param {*} [options] Override http request option.
  7487. * @throws {RequiredError}
  7488. * @memberof SearchApi
  7489. */
  7490. public search(q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', isFavorite?: boolean, isArchived?: boolean, exifInfoCity?: string, exifInfoState?: string, exifInfoCountry?: string, exifInfoMake?: string, exifInfoModel?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: AxiosRequestConfig) {
  7491. return SearchApiFp(this.configuration).search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, smartInfoObjects, smartInfoTags, recent, motion, options).then((request) => request(this.axios, this.basePath));
  7492. }
  7493. }
  7494. /**
  7495. * ServerInfoApi - axios parameter creator
  7496. * @export
  7497. */
  7498. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  7499. return {
  7500. /**
  7501. *
  7502. * @param {*} [options] Override http request option.
  7503. * @throws {RequiredError}
  7504. */
  7505. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7506. const localVarPath = `/server-info`;
  7507. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7508. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7509. let baseOptions;
  7510. if (configuration) {
  7511. baseOptions = configuration.baseOptions;
  7512. }
  7513. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7514. const localVarHeaderParameter = {} as any;
  7515. const localVarQueryParameter = {} as any;
  7516. // authentication cookie required
  7517. // authentication api_key required
  7518. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7519. // authentication bearer required
  7520. // http bearer authentication required
  7521. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7522. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7523. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7524. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7525. return {
  7526. url: toPathString(localVarUrlObj),
  7527. options: localVarRequestOptions,
  7528. };
  7529. },
  7530. /**
  7531. *
  7532. * @param {*} [options] Override http request option.
  7533. * @throws {RequiredError}
  7534. */
  7535. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7536. const localVarPath = `/server-info/version`;
  7537. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7538. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7539. let baseOptions;
  7540. if (configuration) {
  7541. baseOptions = configuration.baseOptions;
  7542. }
  7543. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7544. const localVarHeaderParameter = {} as any;
  7545. const localVarQueryParameter = {} as any;
  7546. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7547. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7548. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7549. return {
  7550. url: toPathString(localVarUrlObj),
  7551. options: localVarRequestOptions,
  7552. };
  7553. },
  7554. /**
  7555. *
  7556. * @param {*} [options] Override http request option.
  7557. * @throws {RequiredError}
  7558. */
  7559. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7560. const localVarPath = `/server-info/stats`;
  7561. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7562. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7563. let baseOptions;
  7564. if (configuration) {
  7565. baseOptions = configuration.baseOptions;
  7566. }
  7567. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7568. const localVarHeaderParameter = {} as any;
  7569. const localVarQueryParameter = {} as any;
  7570. // authentication cookie required
  7571. // authentication api_key required
  7572. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7573. // authentication bearer required
  7574. // http bearer authentication required
  7575. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7576. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7577. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7578. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7579. return {
  7580. url: toPathString(localVarUrlObj),
  7581. options: localVarRequestOptions,
  7582. };
  7583. },
  7584. /**
  7585. *
  7586. * @param {*} [options] Override http request option.
  7587. * @throws {RequiredError}
  7588. */
  7589. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7590. const localVarPath = `/server-info/ping`;
  7591. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7592. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7593. let baseOptions;
  7594. if (configuration) {
  7595. baseOptions = configuration.baseOptions;
  7596. }
  7597. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7598. const localVarHeaderParameter = {} as any;
  7599. const localVarQueryParameter = {} as any;
  7600. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7601. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7602. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7603. return {
  7604. url: toPathString(localVarUrlObj),
  7605. options: localVarRequestOptions,
  7606. };
  7607. },
  7608. }
  7609. };
  7610. /**
  7611. * ServerInfoApi - functional programming interface
  7612. * @export
  7613. */
  7614. export const ServerInfoApiFp = function(configuration?: Configuration) {
  7615. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  7616. return {
  7617. /**
  7618. *
  7619. * @param {*} [options] Override http request option.
  7620. * @throws {RequiredError}
  7621. */
  7622. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  7623. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  7624. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7625. },
  7626. /**
  7627. *
  7628. * @param {*} [options] Override http request option.
  7629. * @throws {RequiredError}
  7630. */
  7631. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionReponseDto>> {
  7632. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  7633. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7634. },
  7635. /**
  7636. *
  7637. * @param {*} [options] Override http request option.
  7638. * @throws {RequiredError}
  7639. */
  7640. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  7641. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  7642. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7643. },
  7644. /**
  7645. *
  7646. * @param {*} [options] Override http request option.
  7647. * @throws {RequiredError}
  7648. */
  7649. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  7650. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  7651. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7652. },
  7653. }
  7654. };
  7655. /**
  7656. * ServerInfoApi - factory interface
  7657. * @export
  7658. */
  7659. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7660. const localVarFp = ServerInfoApiFp(configuration)
  7661. return {
  7662. /**
  7663. *
  7664. * @param {*} [options] Override http request option.
  7665. * @throws {RequiredError}
  7666. */
  7667. getServerInfo(options?: any): AxiosPromise<ServerInfoResponseDto> {
  7668. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  7669. },
  7670. /**
  7671. *
  7672. * @param {*} [options] Override http request option.
  7673. * @throws {RequiredError}
  7674. */
  7675. getServerVersion(options?: any): AxiosPromise<ServerVersionReponseDto> {
  7676. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  7677. },
  7678. /**
  7679. *
  7680. * @param {*} [options] Override http request option.
  7681. * @throws {RequiredError}
  7682. */
  7683. getStats(options?: any): AxiosPromise<ServerStatsResponseDto> {
  7684. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  7685. },
  7686. /**
  7687. *
  7688. * @param {*} [options] Override http request option.
  7689. * @throws {RequiredError}
  7690. */
  7691. pingServer(options?: any): AxiosPromise<ServerPingResponse> {
  7692. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  7693. },
  7694. };
  7695. };
  7696. /**
  7697. * ServerInfoApi - object-oriented interface
  7698. * @export
  7699. * @class ServerInfoApi
  7700. * @extends {BaseAPI}
  7701. */
  7702. export class ServerInfoApi extends BaseAPI {
  7703. /**
  7704. *
  7705. * @param {*} [options] Override http request option.
  7706. * @throws {RequiredError}
  7707. * @memberof ServerInfoApi
  7708. */
  7709. public getServerInfo(options?: AxiosRequestConfig) {
  7710. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  7711. }
  7712. /**
  7713. *
  7714. * @param {*} [options] Override http request option.
  7715. * @throws {RequiredError}
  7716. * @memberof ServerInfoApi
  7717. */
  7718. public getServerVersion(options?: AxiosRequestConfig) {
  7719. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  7720. }
  7721. /**
  7722. *
  7723. * @param {*} [options] Override http request option.
  7724. * @throws {RequiredError}
  7725. * @memberof ServerInfoApi
  7726. */
  7727. public getStats(options?: AxiosRequestConfig) {
  7728. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  7729. }
  7730. /**
  7731. *
  7732. * @param {*} [options] Override http request option.
  7733. * @throws {RequiredError}
  7734. * @memberof ServerInfoApi
  7735. */
  7736. public pingServer(options?: AxiosRequestConfig) {
  7737. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  7738. }
  7739. }
  7740. /**
  7741. * ShareApi - axios parameter creator
  7742. * @export
  7743. */
  7744. export const ShareApiAxiosParamCreator = function (configuration?: Configuration) {
  7745. return {
  7746. /**
  7747. *
  7748. * @param {string} id
  7749. * @param {EditSharedLinkDto} editSharedLinkDto
  7750. * @param {*} [options] Override http request option.
  7751. * @throws {RequiredError}
  7752. */
  7753. editSharedLink: async (id: string, editSharedLinkDto: EditSharedLinkDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7754. // verify required parameter 'id' is not null or undefined
  7755. assertParamExists('editSharedLink', 'id', id)
  7756. // verify required parameter 'editSharedLinkDto' is not null or undefined
  7757. assertParamExists('editSharedLink', 'editSharedLinkDto', editSharedLinkDto)
  7758. const localVarPath = `/share/{id}`
  7759. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7760. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7761. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7762. let baseOptions;
  7763. if (configuration) {
  7764. baseOptions = configuration.baseOptions;
  7765. }
  7766. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  7767. const localVarHeaderParameter = {} as any;
  7768. const localVarQueryParameter = {} as any;
  7769. // authentication cookie required
  7770. // authentication api_key required
  7771. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7772. // authentication bearer required
  7773. // http bearer authentication required
  7774. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7775. localVarHeaderParameter['Content-Type'] = 'application/json';
  7776. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7777. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7778. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7779. localVarRequestOptions.data = serializeDataIfNeeded(editSharedLinkDto, localVarRequestOptions, configuration)
  7780. return {
  7781. url: toPathString(localVarUrlObj),
  7782. options: localVarRequestOptions,
  7783. };
  7784. },
  7785. /**
  7786. *
  7787. * @param {*} [options] Override http request option.
  7788. * @throws {RequiredError}
  7789. */
  7790. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7791. const localVarPath = `/share`;
  7792. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7793. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7794. let baseOptions;
  7795. if (configuration) {
  7796. baseOptions = configuration.baseOptions;
  7797. }
  7798. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7799. const localVarHeaderParameter = {} as any;
  7800. const localVarQueryParameter = {} as any;
  7801. // authentication cookie required
  7802. // authentication api_key required
  7803. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7804. // authentication bearer required
  7805. // http bearer authentication required
  7806. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7807. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7808. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7809. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7810. return {
  7811. url: toPathString(localVarUrlObj),
  7812. options: localVarRequestOptions,
  7813. };
  7814. },
  7815. /**
  7816. *
  7817. * @param {string} [key]
  7818. * @param {*} [options] Override http request option.
  7819. * @throws {RequiredError}
  7820. */
  7821. getMySharedLink: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7822. const localVarPath = `/share/me`;
  7823. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7824. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7825. let baseOptions;
  7826. if (configuration) {
  7827. baseOptions = configuration.baseOptions;
  7828. }
  7829. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7830. const localVarHeaderParameter = {} as any;
  7831. const localVarQueryParameter = {} as any;
  7832. // authentication cookie required
  7833. // authentication api_key required
  7834. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7835. // authentication bearer required
  7836. // http bearer authentication required
  7837. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7838. if (key !== undefined) {
  7839. localVarQueryParameter['key'] = key;
  7840. }
  7841. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7842. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7843. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7844. return {
  7845. url: toPathString(localVarUrlObj),
  7846. options: localVarRequestOptions,
  7847. };
  7848. },
  7849. /**
  7850. *
  7851. * @param {string} id
  7852. * @param {*} [options] Override http request option.
  7853. * @throws {RequiredError}
  7854. */
  7855. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7856. // verify required parameter 'id' is not null or undefined
  7857. assertParamExists('getSharedLinkById', 'id', id)
  7858. const localVarPath = `/share/{id}`
  7859. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7860. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7861. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7862. let baseOptions;
  7863. if (configuration) {
  7864. baseOptions = configuration.baseOptions;
  7865. }
  7866. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7867. const localVarHeaderParameter = {} as any;
  7868. const localVarQueryParameter = {} as any;
  7869. // authentication cookie required
  7870. // authentication api_key required
  7871. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7872. // authentication bearer required
  7873. // http bearer authentication required
  7874. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7875. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7876. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7877. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7878. return {
  7879. url: toPathString(localVarUrlObj),
  7880. options: localVarRequestOptions,
  7881. };
  7882. },
  7883. /**
  7884. *
  7885. * @param {string} id
  7886. * @param {*} [options] Override http request option.
  7887. * @throws {RequiredError}
  7888. */
  7889. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7890. // verify required parameter 'id' is not null or undefined
  7891. assertParamExists('removeSharedLink', 'id', id)
  7892. const localVarPath = `/share/{id}`
  7893. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7894. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7895. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7896. let baseOptions;
  7897. if (configuration) {
  7898. baseOptions = configuration.baseOptions;
  7899. }
  7900. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  7901. const localVarHeaderParameter = {} as any;
  7902. const localVarQueryParameter = {} as any;
  7903. // authentication cookie required
  7904. // authentication api_key required
  7905. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7906. // authentication bearer required
  7907. // http bearer authentication required
  7908. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7909. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7910. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7911. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7912. return {
  7913. url: toPathString(localVarUrlObj),
  7914. options: localVarRequestOptions,
  7915. };
  7916. },
  7917. }
  7918. };
  7919. /**
  7920. * ShareApi - functional programming interface
  7921. * @export
  7922. */
  7923. export const ShareApiFp = function(configuration?: Configuration) {
  7924. const localVarAxiosParamCreator = ShareApiAxiosParamCreator(configuration)
  7925. return {
  7926. /**
  7927. *
  7928. * @param {string} id
  7929. * @param {EditSharedLinkDto} editSharedLinkDto
  7930. * @param {*} [options] Override http request option.
  7931. * @throws {RequiredError}
  7932. */
  7933. async editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  7934. const localVarAxiosArgs = await localVarAxiosParamCreator.editSharedLink(id, editSharedLinkDto, options);
  7935. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7936. },
  7937. /**
  7938. *
  7939. * @param {*} [options] Override http request option.
  7940. * @throws {RequiredError}
  7941. */
  7942. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  7943. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  7944. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7945. },
  7946. /**
  7947. *
  7948. * @param {string} [key]
  7949. * @param {*} [options] Override http request option.
  7950. * @throws {RequiredError}
  7951. */
  7952. async getMySharedLink(key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  7953. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(key, options);
  7954. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7955. },
  7956. /**
  7957. *
  7958. * @param {string} id
  7959. * @param {*} [options] Override http request option.
  7960. * @throws {RequiredError}
  7961. */
  7962. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  7963. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  7964. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7965. },
  7966. /**
  7967. *
  7968. * @param {string} id
  7969. * @param {*} [options] Override http request option.
  7970. * @throws {RequiredError}
  7971. */
  7972. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7973. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  7974. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7975. },
  7976. }
  7977. };
  7978. /**
  7979. * ShareApi - factory interface
  7980. * @export
  7981. */
  7982. export const ShareApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7983. const localVarFp = ShareApiFp(configuration)
  7984. return {
  7985. /**
  7986. *
  7987. * @param {string} id
  7988. * @param {EditSharedLinkDto} editSharedLinkDto
  7989. * @param {*} [options] Override http request option.
  7990. * @throws {RequiredError}
  7991. */
  7992. editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
  7993. return localVarFp.editSharedLink(id, editSharedLinkDto, options).then((request) => request(axios, basePath));
  7994. },
  7995. /**
  7996. *
  7997. * @param {*} [options] Override http request option.
  7998. * @throws {RequiredError}
  7999. */
  8000. getAllSharedLinks(options?: any): AxiosPromise<Array<SharedLinkResponseDto>> {
  8001. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  8002. },
  8003. /**
  8004. *
  8005. * @param {string} [key]
  8006. * @param {*} [options] Override http request option.
  8007. * @throws {RequiredError}
  8008. */
  8009. getMySharedLink(key?: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  8010. return localVarFp.getMySharedLink(key, options).then((request) => request(axios, basePath));
  8011. },
  8012. /**
  8013. *
  8014. * @param {string} id
  8015. * @param {*} [options] Override http request option.
  8016. * @throws {RequiredError}
  8017. */
  8018. getSharedLinkById(id: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  8019. return localVarFp.getSharedLinkById(id, options).then((request) => request(axios, basePath));
  8020. },
  8021. /**
  8022. *
  8023. * @param {string} id
  8024. * @param {*} [options] Override http request option.
  8025. * @throws {RequiredError}
  8026. */
  8027. removeSharedLink(id: string, options?: any): AxiosPromise<void> {
  8028. return localVarFp.removeSharedLink(id, options).then((request) => request(axios, basePath));
  8029. },
  8030. };
  8031. };
  8032. /**
  8033. * ShareApi - object-oriented interface
  8034. * @export
  8035. * @class ShareApi
  8036. * @extends {BaseAPI}
  8037. */
  8038. export class ShareApi extends BaseAPI {
  8039. /**
  8040. *
  8041. * @param {string} id
  8042. * @param {EditSharedLinkDto} editSharedLinkDto
  8043. * @param {*} [options] Override http request option.
  8044. * @throws {RequiredError}
  8045. * @memberof ShareApi
  8046. */
  8047. public editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: AxiosRequestConfig) {
  8048. return ShareApiFp(this.configuration).editSharedLink(id, editSharedLinkDto, options).then((request) => request(this.axios, this.basePath));
  8049. }
  8050. /**
  8051. *
  8052. * @param {*} [options] Override http request option.
  8053. * @throws {RequiredError}
  8054. * @memberof ShareApi
  8055. */
  8056. public getAllSharedLinks(options?: AxiosRequestConfig) {
  8057. return ShareApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  8058. }
  8059. /**
  8060. *
  8061. * @param {string} [key]
  8062. * @param {*} [options] Override http request option.
  8063. * @throws {RequiredError}
  8064. * @memberof ShareApi
  8065. */
  8066. public getMySharedLink(key?: string, options?: AxiosRequestConfig) {
  8067. return ShareApiFp(this.configuration).getMySharedLink(key, options).then((request) => request(this.axios, this.basePath));
  8068. }
  8069. /**
  8070. *
  8071. * @param {string} id
  8072. * @param {*} [options] Override http request option.
  8073. * @throws {RequiredError}
  8074. * @memberof ShareApi
  8075. */
  8076. public getSharedLinkById(id: string, options?: AxiosRequestConfig) {
  8077. return ShareApiFp(this.configuration).getSharedLinkById(id, options).then((request) => request(this.axios, this.basePath));
  8078. }
  8079. /**
  8080. *
  8081. * @param {string} id
  8082. * @param {*} [options] Override http request option.
  8083. * @throws {RequiredError}
  8084. * @memberof ShareApi
  8085. */
  8086. public removeSharedLink(id: string, options?: AxiosRequestConfig) {
  8087. return ShareApiFp(this.configuration).removeSharedLink(id, options).then((request) => request(this.axios, this.basePath));
  8088. }
  8089. }
  8090. /**
  8091. * SystemConfigApi - axios parameter creator
  8092. * @export
  8093. */
  8094. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  8095. return {
  8096. /**
  8097. *
  8098. * @param {*} [options] Override http request option.
  8099. * @throws {RequiredError}
  8100. */
  8101. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8102. const localVarPath = `/system-config`;
  8103. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8104. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8105. let baseOptions;
  8106. if (configuration) {
  8107. baseOptions = configuration.baseOptions;
  8108. }
  8109. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8110. const localVarHeaderParameter = {} as any;
  8111. const localVarQueryParameter = {} as any;
  8112. // authentication cookie required
  8113. // authentication api_key required
  8114. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8115. // authentication bearer required
  8116. // http bearer authentication required
  8117. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8118. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8119. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8120. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8121. return {
  8122. url: toPathString(localVarUrlObj),
  8123. options: localVarRequestOptions,
  8124. };
  8125. },
  8126. /**
  8127. *
  8128. * @param {*} [options] Override http request option.
  8129. * @throws {RequiredError}
  8130. */
  8131. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8132. const localVarPath = `/system-config/defaults`;
  8133. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8134. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8135. let baseOptions;
  8136. if (configuration) {
  8137. baseOptions = configuration.baseOptions;
  8138. }
  8139. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8140. const localVarHeaderParameter = {} as any;
  8141. const localVarQueryParameter = {} as any;
  8142. // authentication cookie required
  8143. // authentication api_key required
  8144. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8145. // authentication bearer required
  8146. // http bearer authentication required
  8147. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8148. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8149. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8150. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8151. return {
  8152. url: toPathString(localVarUrlObj),
  8153. options: localVarRequestOptions,
  8154. };
  8155. },
  8156. /**
  8157. *
  8158. * @param {*} [options] Override http request option.
  8159. * @throws {RequiredError}
  8160. */
  8161. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8162. const localVarPath = `/system-config/storage-template-options`;
  8163. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8164. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8165. let baseOptions;
  8166. if (configuration) {
  8167. baseOptions = configuration.baseOptions;
  8168. }
  8169. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8170. const localVarHeaderParameter = {} as any;
  8171. const localVarQueryParameter = {} as any;
  8172. // authentication cookie required
  8173. // authentication api_key required
  8174. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8175. // authentication bearer required
  8176. // http bearer authentication required
  8177. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8178. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8179. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8180. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8181. return {
  8182. url: toPathString(localVarUrlObj),
  8183. options: localVarRequestOptions,
  8184. };
  8185. },
  8186. /**
  8187. *
  8188. * @param {SystemConfigDto} systemConfigDto
  8189. * @param {*} [options] Override http request option.
  8190. * @throws {RequiredError}
  8191. */
  8192. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8193. // verify required parameter 'systemConfigDto' is not null or undefined
  8194. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  8195. const localVarPath = `/system-config`;
  8196. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8197. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8198. let baseOptions;
  8199. if (configuration) {
  8200. baseOptions = configuration.baseOptions;
  8201. }
  8202. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  8203. const localVarHeaderParameter = {} as any;
  8204. const localVarQueryParameter = {} as any;
  8205. // authentication cookie required
  8206. // authentication api_key required
  8207. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8208. // authentication bearer required
  8209. // http bearer authentication required
  8210. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8211. localVarHeaderParameter['Content-Type'] = 'application/json';
  8212. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8213. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8214. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8215. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  8216. return {
  8217. url: toPathString(localVarUrlObj),
  8218. options: localVarRequestOptions,
  8219. };
  8220. },
  8221. }
  8222. };
  8223. /**
  8224. * SystemConfigApi - functional programming interface
  8225. * @export
  8226. */
  8227. export const SystemConfigApiFp = function(configuration?: Configuration) {
  8228. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  8229. return {
  8230. /**
  8231. *
  8232. * @param {*} [options] Override http request option.
  8233. * @throws {RequiredError}
  8234. */
  8235. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  8236. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  8237. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8238. },
  8239. /**
  8240. *
  8241. * @param {*} [options] Override http request option.
  8242. * @throws {RequiredError}
  8243. */
  8244. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  8245. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  8246. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8247. },
  8248. /**
  8249. *
  8250. * @param {*} [options] Override http request option.
  8251. * @throws {RequiredError}
  8252. */
  8253. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  8254. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  8255. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8256. },
  8257. /**
  8258. *
  8259. * @param {SystemConfigDto} systemConfigDto
  8260. * @param {*} [options] Override http request option.
  8261. * @throws {RequiredError}
  8262. */
  8263. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  8264. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  8265. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8266. },
  8267. }
  8268. };
  8269. /**
  8270. * SystemConfigApi - factory interface
  8271. * @export
  8272. */
  8273. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8274. const localVarFp = SystemConfigApiFp(configuration)
  8275. return {
  8276. /**
  8277. *
  8278. * @param {*} [options] Override http request option.
  8279. * @throws {RequiredError}
  8280. */
  8281. getConfig(options?: any): AxiosPromise<SystemConfigDto> {
  8282. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  8283. },
  8284. /**
  8285. *
  8286. * @param {*} [options] Override http request option.
  8287. * @throws {RequiredError}
  8288. */
  8289. getDefaults(options?: any): AxiosPromise<SystemConfigDto> {
  8290. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  8291. },
  8292. /**
  8293. *
  8294. * @param {*} [options] Override http request option.
  8295. * @throws {RequiredError}
  8296. */
  8297. getStorageTemplateOptions(options?: any): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  8298. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  8299. },
  8300. /**
  8301. *
  8302. * @param {SystemConfigDto} systemConfigDto
  8303. * @param {*} [options] Override http request option.
  8304. * @throws {RequiredError}
  8305. */
  8306. updateConfig(systemConfigDto: SystemConfigDto, options?: any): AxiosPromise<SystemConfigDto> {
  8307. return localVarFp.updateConfig(systemConfigDto, options).then((request) => request(axios, basePath));
  8308. },
  8309. };
  8310. };
  8311. /**
  8312. * SystemConfigApi - object-oriented interface
  8313. * @export
  8314. * @class SystemConfigApi
  8315. * @extends {BaseAPI}
  8316. */
  8317. export class SystemConfigApi extends BaseAPI {
  8318. /**
  8319. *
  8320. * @param {*} [options] Override http request option.
  8321. * @throws {RequiredError}
  8322. * @memberof SystemConfigApi
  8323. */
  8324. public getConfig(options?: AxiosRequestConfig) {
  8325. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  8326. }
  8327. /**
  8328. *
  8329. * @param {*} [options] Override http request option.
  8330. * @throws {RequiredError}
  8331. * @memberof SystemConfigApi
  8332. */
  8333. public getDefaults(options?: AxiosRequestConfig) {
  8334. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  8335. }
  8336. /**
  8337. *
  8338. * @param {*} [options] Override http request option.
  8339. * @throws {RequiredError}
  8340. * @memberof SystemConfigApi
  8341. */
  8342. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  8343. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  8344. }
  8345. /**
  8346. *
  8347. * @param {SystemConfigDto} systemConfigDto
  8348. * @param {*} [options] Override http request option.
  8349. * @throws {RequiredError}
  8350. * @memberof SystemConfigApi
  8351. */
  8352. public updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig) {
  8353. return SystemConfigApiFp(this.configuration).updateConfig(systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  8354. }
  8355. }
  8356. /**
  8357. * TagApi - axios parameter creator
  8358. * @export
  8359. */
  8360. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  8361. return {
  8362. /**
  8363. *
  8364. * @param {string} id
  8365. * @param {*} [options] Override http request option.
  8366. * @throws {RequiredError}
  8367. */
  8368. _delete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8369. // verify required parameter 'id' is not null or undefined
  8370. assertParamExists('_delete', 'id', id)
  8371. const localVarPath = `/tag/{id}`
  8372. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8373. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8374. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8375. let baseOptions;
  8376. if (configuration) {
  8377. baseOptions = configuration.baseOptions;
  8378. }
  8379. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8380. const localVarHeaderParameter = {} as any;
  8381. const localVarQueryParameter = {} as any;
  8382. // authentication cookie required
  8383. // authentication api_key required
  8384. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8385. // authentication bearer required
  8386. // http bearer authentication required
  8387. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8388. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8389. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8390. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8391. return {
  8392. url: toPathString(localVarUrlObj),
  8393. options: localVarRequestOptions,
  8394. };
  8395. },
  8396. /**
  8397. *
  8398. * @param {CreateTagDto} createTagDto
  8399. * @param {*} [options] Override http request option.
  8400. * @throws {RequiredError}
  8401. */
  8402. create: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8403. // verify required parameter 'createTagDto' is not null or undefined
  8404. assertParamExists('create', 'createTagDto', createTagDto)
  8405. const localVarPath = `/tag`;
  8406. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8407. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8408. let baseOptions;
  8409. if (configuration) {
  8410. baseOptions = configuration.baseOptions;
  8411. }
  8412. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8413. const localVarHeaderParameter = {} as any;
  8414. const localVarQueryParameter = {} as any;
  8415. // authentication cookie required
  8416. // authentication api_key required
  8417. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8418. // authentication bearer required
  8419. // http bearer authentication required
  8420. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8421. localVarHeaderParameter['Content-Type'] = 'application/json';
  8422. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8423. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8424. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8425. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  8426. return {
  8427. url: toPathString(localVarUrlObj),
  8428. options: localVarRequestOptions,
  8429. };
  8430. },
  8431. /**
  8432. *
  8433. * @param {*} [options] Override http request option.
  8434. * @throws {RequiredError}
  8435. */
  8436. findAll: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8437. const localVarPath = `/tag`;
  8438. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8439. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8440. let baseOptions;
  8441. if (configuration) {
  8442. baseOptions = configuration.baseOptions;
  8443. }
  8444. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8445. const localVarHeaderParameter = {} as any;
  8446. const localVarQueryParameter = {} as any;
  8447. // authentication cookie required
  8448. // authentication api_key required
  8449. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8450. // authentication bearer required
  8451. // http bearer authentication required
  8452. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8453. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8454. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8455. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8456. return {
  8457. url: toPathString(localVarUrlObj),
  8458. options: localVarRequestOptions,
  8459. };
  8460. },
  8461. /**
  8462. *
  8463. * @param {string} id
  8464. * @param {*} [options] Override http request option.
  8465. * @throws {RequiredError}
  8466. */
  8467. findOne: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8468. // verify required parameter 'id' is not null or undefined
  8469. assertParamExists('findOne', 'id', id)
  8470. const localVarPath = `/tag/{id}`
  8471. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8472. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8473. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8474. let baseOptions;
  8475. if (configuration) {
  8476. baseOptions = configuration.baseOptions;
  8477. }
  8478. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8479. const localVarHeaderParameter = {} as any;
  8480. const localVarQueryParameter = {} as any;
  8481. // authentication cookie required
  8482. // authentication api_key required
  8483. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8484. // authentication bearer required
  8485. // http bearer authentication required
  8486. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8487. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8488. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8489. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8490. return {
  8491. url: toPathString(localVarUrlObj),
  8492. options: localVarRequestOptions,
  8493. };
  8494. },
  8495. /**
  8496. *
  8497. * @param {string} id
  8498. * @param {UpdateTagDto} updateTagDto
  8499. * @param {*} [options] Override http request option.
  8500. * @throws {RequiredError}
  8501. */
  8502. update: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8503. // verify required parameter 'id' is not null or undefined
  8504. assertParamExists('update', 'id', id)
  8505. // verify required parameter 'updateTagDto' is not null or undefined
  8506. assertParamExists('update', 'updateTagDto', updateTagDto)
  8507. const localVarPath = `/tag/{id}`
  8508. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8509. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8510. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8511. let baseOptions;
  8512. if (configuration) {
  8513. baseOptions = configuration.baseOptions;
  8514. }
  8515. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  8516. const localVarHeaderParameter = {} as any;
  8517. const localVarQueryParameter = {} as any;
  8518. // authentication cookie required
  8519. // authentication api_key required
  8520. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8521. // authentication bearer required
  8522. // http bearer authentication required
  8523. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8524. localVarHeaderParameter['Content-Type'] = 'application/json';
  8525. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8526. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8527. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8528. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  8529. return {
  8530. url: toPathString(localVarUrlObj),
  8531. options: localVarRequestOptions,
  8532. };
  8533. },
  8534. }
  8535. };
  8536. /**
  8537. * TagApi - functional programming interface
  8538. * @export
  8539. */
  8540. export const TagApiFp = function(configuration?: Configuration) {
  8541. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  8542. return {
  8543. /**
  8544. *
  8545. * @param {string} id
  8546. * @param {*} [options] Override http request option.
  8547. * @throws {RequiredError}
  8548. */
  8549. async _delete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8550. const localVarAxiosArgs = await localVarAxiosParamCreator._delete(id, options);
  8551. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8552. },
  8553. /**
  8554. *
  8555. * @param {CreateTagDto} createTagDto
  8556. * @param {*} [options] Override http request option.
  8557. * @throws {RequiredError}
  8558. */
  8559. async create(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  8560. const localVarAxiosArgs = await localVarAxiosParamCreator.create(createTagDto, options);
  8561. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8562. },
  8563. /**
  8564. *
  8565. * @param {*} [options] Override http request option.
  8566. * @throws {RequiredError}
  8567. */
  8568. async findAll(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  8569. const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
  8570. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8571. },
  8572. /**
  8573. *
  8574. * @param {string} id
  8575. * @param {*} [options] Override http request option.
  8576. * @throws {RequiredError}
  8577. */
  8578. async findOne(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  8579. const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
  8580. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8581. },
  8582. /**
  8583. *
  8584. * @param {string} id
  8585. * @param {UpdateTagDto} updateTagDto
  8586. * @param {*} [options] Override http request option.
  8587. * @throws {RequiredError}
  8588. */
  8589. async update(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  8590. const localVarAxiosArgs = await localVarAxiosParamCreator.update(id, updateTagDto, options);
  8591. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8592. },
  8593. }
  8594. };
  8595. /**
  8596. * TagApi - factory interface
  8597. * @export
  8598. */
  8599. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8600. const localVarFp = TagApiFp(configuration)
  8601. return {
  8602. /**
  8603. *
  8604. * @param {string} id
  8605. * @param {*} [options] Override http request option.
  8606. * @throws {RequiredError}
  8607. */
  8608. _delete(id: string, options?: any): AxiosPromise<void> {
  8609. return localVarFp._delete(id, options).then((request) => request(axios, basePath));
  8610. },
  8611. /**
  8612. *
  8613. * @param {CreateTagDto} createTagDto
  8614. * @param {*} [options] Override http request option.
  8615. * @throws {RequiredError}
  8616. */
  8617. create(createTagDto: CreateTagDto, options?: any): AxiosPromise<TagResponseDto> {
  8618. return localVarFp.create(createTagDto, options).then((request) => request(axios, basePath));
  8619. },
  8620. /**
  8621. *
  8622. * @param {*} [options] Override http request option.
  8623. * @throws {RequiredError}
  8624. */
  8625. findAll(options?: any): AxiosPromise<Array<TagResponseDto>> {
  8626. return localVarFp.findAll(options).then((request) => request(axios, basePath));
  8627. },
  8628. /**
  8629. *
  8630. * @param {string} id
  8631. * @param {*} [options] Override http request option.
  8632. * @throws {RequiredError}
  8633. */
  8634. findOne(id: string, options?: any): AxiosPromise<TagResponseDto> {
  8635. return localVarFp.findOne(id, options).then((request) => request(axios, basePath));
  8636. },
  8637. /**
  8638. *
  8639. * @param {string} id
  8640. * @param {UpdateTagDto} updateTagDto
  8641. * @param {*} [options] Override http request option.
  8642. * @throws {RequiredError}
  8643. */
  8644. update(id: string, updateTagDto: UpdateTagDto, options?: any): AxiosPromise<TagResponseDto> {
  8645. return localVarFp.update(id, updateTagDto, options).then((request) => request(axios, basePath));
  8646. },
  8647. };
  8648. };
  8649. /**
  8650. * TagApi - object-oriented interface
  8651. * @export
  8652. * @class TagApi
  8653. * @extends {BaseAPI}
  8654. */
  8655. export class TagApi extends BaseAPI {
  8656. /**
  8657. *
  8658. * @param {string} id
  8659. * @param {*} [options] Override http request option.
  8660. * @throws {RequiredError}
  8661. * @memberof TagApi
  8662. */
  8663. public _delete(id: string, options?: AxiosRequestConfig) {
  8664. return TagApiFp(this.configuration)._delete(id, options).then((request) => request(this.axios, this.basePath));
  8665. }
  8666. /**
  8667. *
  8668. * @param {CreateTagDto} createTagDto
  8669. * @param {*} [options] Override http request option.
  8670. * @throws {RequiredError}
  8671. * @memberof TagApi
  8672. */
  8673. public create(createTagDto: CreateTagDto, options?: AxiosRequestConfig) {
  8674. return TagApiFp(this.configuration).create(createTagDto, options).then((request) => request(this.axios, this.basePath));
  8675. }
  8676. /**
  8677. *
  8678. * @param {*} [options] Override http request option.
  8679. * @throws {RequiredError}
  8680. * @memberof TagApi
  8681. */
  8682. public findAll(options?: AxiosRequestConfig) {
  8683. return TagApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
  8684. }
  8685. /**
  8686. *
  8687. * @param {string} id
  8688. * @param {*} [options] Override http request option.
  8689. * @throws {RequiredError}
  8690. * @memberof TagApi
  8691. */
  8692. public findOne(id: string, options?: AxiosRequestConfig) {
  8693. return TagApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
  8694. }
  8695. /**
  8696. *
  8697. * @param {string} id
  8698. * @param {UpdateTagDto} updateTagDto
  8699. * @param {*} [options] Override http request option.
  8700. * @throws {RequiredError}
  8701. * @memberof TagApi
  8702. */
  8703. public update(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig) {
  8704. return TagApiFp(this.configuration).update(id, updateTagDto, options).then((request) => request(this.axios, this.basePath));
  8705. }
  8706. }
  8707. /**
  8708. * UserApi - axios parameter creator
  8709. * @export
  8710. */
  8711. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  8712. return {
  8713. /**
  8714. *
  8715. * @param {File} file
  8716. * @param {*} [options] Override http request option.
  8717. * @throws {RequiredError}
  8718. */
  8719. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8720. // verify required parameter 'file' is not null or undefined
  8721. assertParamExists('createProfileImage', 'file', file)
  8722. const localVarPath = `/user/profile-image`;
  8723. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8724. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8725. let baseOptions;
  8726. if (configuration) {
  8727. baseOptions = configuration.baseOptions;
  8728. }
  8729. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8730. const localVarHeaderParameter = {} as any;
  8731. const localVarQueryParameter = {} as any;
  8732. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  8733. // authentication cookie required
  8734. // authentication api_key required
  8735. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8736. // authentication bearer required
  8737. // http bearer authentication required
  8738. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8739. if (file !== undefined) {
  8740. localVarFormParams.append('file', file as any);
  8741. }
  8742. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  8743. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8744. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8745. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8746. localVarRequestOptions.data = localVarFormParams;
  8747. return {
  8748. url: toPathString(localVarUrlObj),
  8749. options: localVarRequestOptions,
  8750. };
  8751. },
  8752. /**
  8753. *
  8754. * @param {CreateUserDto} createUserDto
  8755. * @param {*} [options] Override http request option.
  8756. * @throws {RequiredError}
  8757. */
  8758. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8759. // verify required parameter 'createUserDto' is not null or undefined
  8760. assertParamExists('createUser', 'createUserDto', createUserDto)
  8761. const localVarPath = `/user`;
  8762. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8763. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8764. let baseOptions;
  8765. if (configuration) {
  8766. baseOptions = configuration.baseOptions;
  8767. }
  8768. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8769. const localVarHeaderParameter = {} as any;
  8770. const localVarQueryParameter = {} as any;
  8771. // authentication cookie required
  8772. // authentication api_key required
  8773. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8774. // authentication bearer required
  8775. // http bearer authentication required
  8776. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8777. localVarHeaderParameter['Content-Type'] = 'application/json';
  8778. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8779. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8780. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8781. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  8782. return {
  8783. url: toPathString(localVarUrlObj),
  8784. options: localVarRequestOptions,
  8785. };
  8786. },
  8787. /**
  8788. *
  8789. * @param {string} userId
  8790. * @param {*} [options] Override http request option.
  8791. * @throws {RequiredError}
  8792. */
  8793. deleteUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8794. // verify required parameter 'userId' is not null or undefined
  8795. assertParamExists('deleteUser', 'userId', userId)
  8796. const localVarPath = `/user/{userId}`
  8797. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  8798. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8799. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8800. let baseOptions;
  8801. if (configuration) {
  8802. baseOptions = configuration.baseOptions;
  8803. }
  8804. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8805. const localVarHeaderParameter = {} as any;
  8806. const localVarQueryParameter = {} as any;
  8807. // authentication cookie required
  8808. // authentication api_key required
  8809. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8810. // authentication bearer required
  8811. // http bearer authentication required
  8812. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8813. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8814. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8815. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8816. return {
  8817. url: toPathString(localVarUrlObj),
  8818. options: localVarRequestOptions,
  8819. };
  8820. },
  8821. /**
  8822. *
  8823. * @param {boolean} isAll
  8824. * @param {*} [options] Override http request option.
  8825. * @throws {RequiredError}
  8826. */
  8827. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8828. // verify required parameter 'isAll' is not null or undefined
  8829. assertParamExists('getAllUsers', 'isAll', isAll)
  8830. const localVarPath = `/user`;
  8831. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8832. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8833. let baseOptions;
  8834. if (configuration) {
  8835. baseOptions = configuration.baseOptions;
  8836. }
  8837. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8838. const localVarHeaderParameter = {} as any;
  8839. const localVarQueryParameter = {} as any;
  8840. // authentication cookie required
  8841. // authentication api_key required
  8842. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8843. // authentication bearer required
  8844. // http bearer authentication required
  8845. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8846. if (isAll !== undefined) {
  8847. localVarQueryParameter['isAll'] = isAll;
  8848. }
  8849. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8850. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8851. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8852. return {
  8853. url: toPathString(localVarUrlObj),
  8854. options: localVarRequestOptions,
  8855. };
  8856. },
  8857. /**
  8858. *
  8859. * @param {*} [options] Override http request option.
  8860. * @throws {RequiredError}
  8861. */
  8862. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8863. const localVarPath = `/user/me`;
  8864. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8865. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8866. let baseOptions;
  8867. if (configuration) {
  8868. baseOptions = configuration.baseOptions;
  8869. }
  8870. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8871. const localVarHeaderParameter = {} as any;
  8872. const localVarQueryParameter = {} as any;
  8873. // authentication cookie required
  8874. // authentication api_key required
  8875. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8876. // authentication bearer required
  8877. // http bearer authentication required
  8878. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8879. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8880. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8881. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8882. return {
  8883. url: toPathString(localVarUrlObj),
  8884. options: localVarRequestOptions,
  8885. };
  8886. },
  8887. /**
  8888. *
  8889. * @param {string} userId
  8890. * @param {*} [options] Override http request option.
  8891. * @throws {RequiredError}
  8892. */
  8893. getProfileImage: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8894. // verify required parameter 'userId' is not null or undefined
  8895. assertParamExists('getProfileImage', 'userId', userId)
  8896. const localVarPath = `/user/profile-image/{userId}`
  8897. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  8898. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8899. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8900. let baseOptions;
  8901. if (configuration) {
  8902. baseOptions = configuration.baseOptions;
  8903. }
  8904. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8905. const localVarHeaderParameter = {} as any;
  8906. const localVarQueryParameter = {} as any;
  8907. // authentication cookie required
  8908. // authentication api_key required
  8909. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8910. // authentication bearer required
  8911. // http bearer authentication required
  8912. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8913. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8914. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8915. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8916. return {
  8917. url: toPathString(localVarUrlObj),
  8918. options: localVarRequestOptions,
  8919. };
  8920. },
  8921. /**
  8922. *
  8923. * @param {string} userId
  8924. * @param {*} [options] Override http request option.
  8925. * @throws {RequiredError}
  8926. */
  8927. getUserById: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8928. // verify required parameter 'userId' is not null or undefined
  8929. assertParamExists('getUserById', 'userId', userId)
  8930. const localVarPath = `/user/info/{userId}`
  8931. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  8932. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8933. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8934. let baseOptions;
  8935. if (configuration) {
  8936. baseOptions = configuration.baseOptions;
  8937. }
  8938. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8939. const localVarHeaderParameter = {} as any;
  8940. const localVarQueryParameter = {} as any;
  8941. // authentication cookie required
  8942. // authentication api_key required
  8943. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8944. // authentication bearer required
  8945. // http bearer authentication required
  8946. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8947. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8948. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8949. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8950. return {
  8951. url: toPathString(localVarUrlObj),
  8952. options: localVarRequestOptions,
  8953. };
  8954. },
  8955. /**
  8956. *
  8957. * @param {boolean} [admin]
  8958. * @param {*} [options] Override http request option.
  8959. * @throws {RequiredError}
  8960. */
  8961. getUserCount: async (admin?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8962. const localVarPath = `/user/count`;
  8963. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8964. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8965. let baseOptions;
  8966. if (configuration) {
  8967. baseOptions = configuration.baseOptions;
  8968. }
  8969. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8970. const localVarHeaderParameter = {} as any;
  8971. const localVarQueryParameter = {} as any;
  8972. if (admin !== undefined) {
  8973. localVarQueryParameter['admin'] = admin;
  8974. }
  8975. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8976. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8977. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8978. return {
  8979. url: toPathString(localVarUrlObj),
  8980. options: localVarRequestOptions,
  8981. };
  8982. },
  8983. /**
  8984. *
  8985. * @param {string} userId
  8986. * @param {*} [options] Override http request option.
  8987. * @throws {RequiredError}
  8988. */
  8989. restoreUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8990. // verify required parameter 'userId' is not null or undefined
  8991. assertParamExists('restoreUser', 'userId', userId)
  8992. const localVarPath = `/user/{userId}/restore`
  8993. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  8994. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8995. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8996. let baseOptions;
  8997. if (configuration) {
  8998. baseOptions = configuration.baseOptions;
  8999. }
  9000. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9001. const localVarHeaderParameter = {} as any;
  9002. const localVarQueryParameter = {} as any;
  9003. // authentication cookie required
  9004. // authentication api_key required
  9005. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9006. // authentication bearer required
  9007. // http bearer authentication required
  9008. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9009. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9010. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9011. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9012. return {
  9013. url: toPathString(localVarUrlObj),
  9014. options: localVarRequestOptions,
  9015. };
  9016. },
  9017. /**
  9018. *
  9019. * @param {UpdateUserDto} updateUserDto
  9020. * @param {*} [options] Override http request option.
  9021. * @throws {RequiredError}
  9022. */
  9023. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9024. // verify required parameter 'updateUserDto' is not null or undefined
  9025. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  9026. const localVarPath = `/user`;
  9027. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9028. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9029. let baseOptions;
  9030. if (configuration) {
  9031. baseOptions = configuration.baseOptions;
  9032. }
  9033. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9034. const localVarHeaderParameter = {} as any;
  9035. const localVarQueryParameter = {} as any;
  9036. // authentication cookie required
  9037. // authentication api_key required
  9038. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9039. // authentication bearer required
  9040. // http bearer authentication required
  9041. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9042. localVarHeaderParameter['Content-Type'] = 'application/json';
  9043. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9044. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9045. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9046. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  9047. return {
  9048. url: toPathString(localVarUrlObj),
  9049. options: localVarRequestOptions,
  9050. };
  9051. },
  9052. }
  9053. };
  9054. /**
  9055. * UserApi - functional programming interface
  9056. * @export
  9057. */
  9058. export const UserApiFp = function(configuration?: Configuration) {
  9059. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  9060. return {
  9061. /**
  9062. *
  9063. * @param {File} file
  9064. * @param {*} [options] Override http request option.
  9065. * @throws {RequiredError}
  9066. */
  9067. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  9068. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  9069. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9070. },
  9071. /**
  9072. *
  9073. * @param {CreateUserDto} createUserDto
  9074. * @param {*} [options] Override http request option.
  9075. * @throws {RequiredError}
  9076. */
  9077. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9078. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  9079. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9080. },
  9081. /**
  9082. *
  9083. * @param {string} userId
  9084. * @param {*} [options] Override http request option.
  9085. * @throws {RequiredError}
  9086. */
  9087. async deleteUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9088. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(userId, options);
  9089. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9090. },
  9091. /**
  9092. *
  9093. * @param {boolean} isAll
  9094. * @param {*} [options] Override http request option.
  9095. * @throws {RequiredError}
  9096. */
  9097. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  9098. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  9099. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9100. },
  9101. /**
  9102. *
  9103. * @param {*} [options] Override http request option.
  9104. * @throws {RequiredError}
  9105. */
  9106. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9107. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  9108. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9109. },
  9110. /**
  9111. *
  9112. * @param {string} userId
  9113. * @param {*} [options] Override http request option.
  9114. * @throws {RequiredError}
  9115. */
  9116. async getProfileImage(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  9117. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(userId, options);
  9118. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9119. },
  9120. /**
  9121. *
  9122. * @param {string} userId
  9123. * @param {*} [options] Override http request option.
  9124. * @throws {RequiredError}
  9125. */
  9126. async getUserById(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9127. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(userId, options);
  9128. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9129. },
  9130. /**
  9131. *
  9132. * @param {boolean} [admin]
  9133. * @param {*} [options] Override http request option.
  9134. * @throws {RequiredError}
  9135. */
  9136. async getUserCount(admin?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  9137. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(admin, options);
  9138. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9139. },
  9140. /**
  9141. *
  9142. * @param {string} userId
  9143. * @param {*} [options] Override http request option.
  9144. * @throws {RequiredError}
  9145. */
  9146. async restoreUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9147. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(userId, options);
  9148. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9149. },
  9150. /**
  9151. *
  9152. * @param {UpdateUserDto} updateUserDto
  9153. * @param {*} [options] Override http request option.
  9154. * @throws {RequiredError}
  9155. */
  9156. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9157. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  9158. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9159. },
  9160. }
  9161. };
  9162. /**
  9163. * UserApi - factory interface
  9164. * @export
  9165. */
  9166. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9167. const localVarFp = UserApiFp(configuration)
  9168. return {
  9169. /**
  9170. *
  9171. * @param {File} file
  9172. * @param {*} [options] Override http request option.
  9173. * @throws {RequiredError}
  9174. */
  9175. createProfileImage(file: File, options?: any): AxiosPromise<CreateProfileImageResponseDto> {
  9176. return localVarFp.createProfileImage(file, options).then((request) => request(axios, basePath));
  9177. },
  9178. /**
  9179. *
  9180. * @param {CreateUserDto} createUserDto
  9181. * @param {*} [options] Override http request option.
  9182. * @throws {RequiredError}
  9183. */
  9184. createUser(createUserDto: CreateUserDto, options?: any): AxiosPromise<UserResponseDto> {
  9185. return localVarFp.createUser(createUserDto, options).then((request) => request(axios, basePath));
  9186. },
  9187. /**
  9188. *
  9189. * @param {string} userId
  9190. * @param {*} [options] Override http request option.
  9191. * @throws {RequiredError}
  9192. */
  9193. deleteUser(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  9194. return localVarFp.deleteUser(userId, options).then((request) => request(axios, basePath));
  9195. },
  9196. /**
  9197. *
  9198. * @param {boolean} isAll
  9199. * @param {*} [options] Override http request option.
  9200. * @throws {RequiredError}
  9201. */
  9202. getAllUsers(isAll: boolean, options?: any): AxiosPromise<Array<UserResponseDto>> {
  9203. return localVarFp.getAllUsers(isAll, options).then((request) => request(axios, basePath));
  9204. },
  9205. /**
  9206. *
  9207. * @param {*} [options] Override http request option.
  9208. * @throws {RequiredError}
  9209. */
  9210. getMyUserInfo(options?: any): AxiosPromise<UserResponseDto> {
  9211. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  9212. },
  9213. /**
  9214. *
  9215. * @param {string} userId
  9216. * @param {*} [options] Override http request option.
  9217. * @throws {RequiredError}
  9218. */
  9219. getProfileImage(userId: string, options?: any): AxiosPromise<object> {
  9220. return localVarFp.getProfileImage(userId, options).then((request) => request(axios, basePath));
  9221. },
  9222. /**
  9223. *
  9224. * @param {string} userId
  9225. * @param {*} [options] Override http request option.
  9226. * @throws {RequiredError}
  9227. */
  9228. getUserById(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  9229. return localVarFp.getUserById(userId, options).then((request) => request(axios, basePath));
  9230. },
  9231. /**
  9232. *
  9233. * @param {boolean} [admin]
  9234. * @param {*} [options] Override http request option.
  9235. * @throws {RequiredError}
  9236. */
  9237. getUserCount(admin?: boolean, options?: any): AxiosPromise<UserCountResponseDto> {
  9238. return localVarFp.getUserCount(admin, options).then((request) => request(axios, basePath));
  9239. },
  9240. /**
  9241. *
  9242. * @param {string} userId
  9243. * @param {*} [options] Override http request option.
  9244. * @throws {RequiredError}
  9245. */
  9246. restoreUser(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  9247. return localVarFp.restoreUser(userId, options).then((request) => request(axios, basePath));
  9248. },
  9249. /**
  9250. *
  9251. * @param {UpdateUserDto} updateUserDto
  9252. * @param {*} [options] Override http request option.
  9253. * @throws {RequiredError}
  9254. */
  9255. updateUser(updateUserDto: UpdateUserDto, options?: any): AxiosPromise<UserResponseDto> {
  9256. return localVarFp.updateUser(updateUserDto, options).then((request) => request(axios, basePath));
  9257. },
  9258. };
  9259. };
  9260. /**
  9261. * UserApi - object-oriented interface
  9262. * @export
  9263. * @class UserApi
  9264. * @extends {BaseAPI}
  9265. */
  9266. export class UserApi extends BaseAPI {
  9267. /**
  9268. *
  9269. * @param {File} file
  9270. * @param {*} [options] Override http request option.
  9271. * @throws {RequiredError}
  9272. * @memberof UserApi
  9273. */
  9274. public createProfileImage(file: File, options?: AxiosRequestConfig) {
  9275. return UserApiFp(this.configuration).createProfileImage(file, options).then((request) => request(this.axios, this.basePath));
  9276. }
  9277. /**
  9278. *
  9279. * @param {CreateUserDto} createUserDto
  9280. * @param {*} [options] Override http request option.
  9281. * @throws {RequiredError}
  9282. * @memberof UserApi
  9283. */
  9284. public createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig) {
  9285. return UserApiFp(this.configuration).createUser(createUserDto, options).then((request) => request(this.axios, this.basePath));
  9286. }
  9287. /**
  9288. *
  9289. * @param {string} userId
  9290. * @param {*} [options] Override http request option.
  9291. * @throws {RequiredError}
  9292. * @memberof UserApi
  9293. */
  9294. public deleteUser(userId: string, options?: AxiosRequestConfig) {
  9295. return UserApiFp(this.configuration).deleteUser(userId, options).then((request) => request(this.axios, this.basePath));
  9296. }
  9297. /**
  9298. *
  9299. * @param {boolean} isAll
  9300. * @param {*} [options] Override http request option.
  9301. * @throws {RequiredError}
  9302. * @memberof UserApi
  9303. */
  9304. public getAllUsers(isAll: boolean, options?: AxiosRequestConfig) {
  9305. return UserApiFp(this.configuration).getAllUsers(isAll, options).then((request) => request(this.axios, this.basePath));
  9306. }
  9307. /**
  9308. *
  9309. * @param {*} [options] Override http request option.
  9310. * @throws {RequiredError}
  9311. * @memberof UserApi
  9312. */
  9313. public getMyUserInfo(options?: AxiosRequestConfig) {
  9314. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  9315. }
  9316. /**
  9317. *
  9318. * @param {string} userId
  9319. * @param {*} [options] Override http request option.
  9320. * @throws {RequiredError}
  9321. * @memberof UserApi
  9322. */
  9323. public getProfileImage(userId: string, options?: AxiosRequestConfig) {
  9324. return UserApiFp(this.configuration).getProfileImage(userId, options).then((request) => request(this.axios, this.basePath));
  9325. }
  9326. /**
  9327. *
  9328. * @param {string} userId
  9329. * @param {*} [options] Override http request option.
  9330. * @throws {RequiredError}
  9331. * @memberof UserApi
  9332. */
  9333. public getUserById(userId: string, options?: AxiosRequestConfig) {
  9334. return UserApiFp(this.configuration).getUserById(userId, options).then((request) => request(this.axios, this.basePath));
  9335. }
  9336. /**
  9337. *
  9338. * @param {boolean} [admin]
  9339. * @param {*} [options] Override http request option.
  9340. * @throws {RequiredError}
  9341. * @memberof UserApi
  9342. */
  9343. public getUserCount(admin?: boolean, options?: AxiosRequestConfig) {
  9344. return UserApiFp(this.configuration).getUserCount(admin, options).then((request) => request(this.axios, this.basePath));
  9345. }
  9346. /**
  9347. *
  9348. * @param {string} userId
  9349. * @param {*} [options] Override http request option.
  9350. * @throws {RequiredError}
  9351. * @memberof UserApi
  9352. */
  9353. public restoreUser(userId: string, options?: AxiosRequestConfig) {
  9354. return UserApiFp(this.configuration).restoreUser(userId, options).then((request) => request(this.axios, this.basePath));
  9355. }
  9356. /**
  9357. *
  9358. * @param {UpdateUserDto} updateUserDto
  9359. * @param {*} [options] Override http request option.
  9360. * @throws {RequiredError}
  9361. * @memberof UserApi
  9362. */
  9363. public updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig) {
  9364. return UserApiFp(this.configuration).updateUser(updateUserDto, options).then((request) => request(this.axios, this.basePath));
  9365. }
  9366. }