api.ts 560 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.83.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 {APIKeyResponseDto}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'apiKey': APIKeyResponseDto;
  48. /**
  49. *
  50. * @type {string}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'secret': string;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'createdAt': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'id': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'name': 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 AddUsersDto
  103. */
  104. export interface AddUsersDto {
  105. /**
  106. *
  107. * @type {Array<string>}
  108. * @memberof AddUsersDto
  109. */
  110. 'sharedUserIds': Array<string>;
  111. }
  112. /**
  113. *
  114. * @export
  115. * @interface AdminSignupResponseDto
  116. */
  117. export interface AdminSignupResponseDto {
  118. /**
  119. *
  120. * @type {string}
  121. * @memberof AdminSignupResponseDto
  122. */
  123. 'createdAt': string;
  124. /**
  125. *
  126. * @type {string}
  127. * @memberof AdminSignupResponseDto
  128. */
  129. 'email': string;
  130. /**
  131. *
  132. * @type {string}
  133. * @memberof AdminSignupResponseDto
  134. */
  135. 'firstName': string;
  136. /**
  137. *
  138. * @type {string}
  139. * @memberof AdminSignupResponseDto
  140. */
  141. 'id': string;
  142. /**
  143. *
  144. * @type {string}
  145. * @memberof AdminSignupResponseDto
  146. */
  147. 'lastName': string;
  148. }
  149. /**
  150. *
  151. * @export
  152. * @interface AlbumCountResponseDto
  153. */
  154. export interface AlbumCountResponseDto {
  155. /**
  156. *
  157. * @type {number}
  158. * @memberof AlbumCountResponseDto
  159. */
  160. 'notShared': number;
  161. /**
  162. *
  163. * @type {number}
  164. * @memberof AlbumCountResponseDto
  165. */
  166. 'owned': number;
  167. /**
  168. *
  169. * @type {number}
  170. * @memberof AlbumCountResponseDto
  171. */
  172. 'shared': number;
  173. }
  174. /**
  175. *
  176. * @export
  177. * @interface AlbumResponseDto
  178. */
  179. export interface AlbumResponseDto {
  180. /**
  181. *
  182. * @type {string}
  183. * @memberof AlbumResponseDto
  184. */
  185. 'albumName': string;
  186. /**
  187. *
  188. * @type {string}
  189. * @memberof AlbumResponseDto
  190. */
  191. 'albumThumbnailAssetId': string | null;
  192. /**
  193. *
  194. * @type {number}
  195. * @memberof AlbumResponseDto
  196. */
  197. 'assetCount': number;
  198. /**
  199. *
  200. * @type {Array<AssetResponseDto>}
  201. * @memberof AlbumResponseDto
  202. */
  203. 'assets': Array<AssetResponseDto>;
  204. /**
  205. *
  206. * @type {string}
  207. * @memberof AlbumResponseDto
  208. */
  209. 'createdAt': string;
  210. /**
  211. *
  212. * @type {string}
  213. * @memberof AlbumResponseDto
  214. */
  215. 'description': string;
  216. /**
  217. *
  218. * @type {string}
  219. * @memberof AlbumResponseDto
  220. */
  221. 'endDate'?: string;
  222. /**
  223. *
  224. * @type {boolean}
  225. * @memberof AlbumResponseDto
  226. */
  227. 'hasSharedLink': boolean;
  228. /**
  229. *
  230. * @type {string}
  231. * @memberof AlbumResponseDto
  232. */
  233. 'id': string;
  234. /**
  235. *
  236. * @type {string}
  237. * @memberof AlbumResponseDto
  238. */
  239. 'lastModifiedAssetTimestamp'?: string;
  240. /**
  241. *
  242. * @type {UserResponseDto}
  243. * @memberof AlbumResponseDto
  244. */
  245. 'owner': UserResponseDto;
  246. /**
  247. *
  248. * @type {string}
  249. * @memberof AlbumResponseDto
  250. */
  251. 'ownerId': string;
  252. /**
  253. *
  254. * @type {boolean}
  255. * @memberof AlbumResponseDto
  256. */
  257. 'shared': boolean;
  258. /**
  259. *
  260. * @type {Array<UserResponseDto>}
  261. * @memberof AlbumResponseDto
  262. */
  263. 'sharedUsers': Array<UserResponseDto>;
  264. /**
  265. *
  266. * @type {string}
  267. * @memberof AlbumResponseDto
  268. */
  269. 'startDate'?: string;
  270. /**
  271. *
  272. * @type {string}
  273. * @memberof AlbumResponseDto
  274. */
  275. 'updatedAt': string;
  276. }
  277. /**
  278. *
  279. * @export
  280. * @interface AllJobStatusResponseDto
  281. */
  282. export interface AllJobStatusResponseDto {
  283. /**
  284. *
  285. * @type {JobStatusDto}
  286. * @memberof AllJobStatusResponseDto
  287. */
  288. 'backgroundTask': JobStatusDto;
  289. /**
  290. *
  291. * @type {JobStatusDto}
  292. * @memberof AllJobStatusResponseDto
  293. */
  294. 'clipEncoding': JobStatusDto;
  295. /**
  296. *
  297. * @type {JobStatusDto}
  298. * @memberof AllJobStatusResponseDto
  299. */
  300. 'library': JobStatusDto;
  301. /**
  302. *
  303. * @type {JobStatusDto}
  304. * @memberof AllJobStatusResponseDto
  305. */
  306. 'metadataExtraction': JobStatusDto;
  307. /**
  308. *
  309. * @type {JobStatusDto}
  310. * @memberof AllJobStatusResponseDto
  311. */
  312. 'migration': JobStatusDto;
  313. /**
  314. *
  315. * @type {JobStatusDto}
  316. * @memberof AllJobStatusResponseDto
  317. */
  318. 'objectTagging': JobStatusDto;
  319. /**
  320. *
  321. * @type {JobStatusDto}
  322. * @memberof AllJobStatusResponseDto
  323. */
  324. 'recognizeFaces': JobStatusDto;
  325. /**
  326. *
  327. * @type {JobStatusDto}
  328. * @memberof AllJobStatusResponseDto
  329. */
  330. 'search': JobStatusDto;
  331. /**
  332. *
  333. * @type {JobStatusDto}
  334. * @memberof AllJobStatusResponseDto
  335. */
  336. 'sidecar': JobStatusDto;
  337. /**
  338. *
  339. * @type {JobStatusDto}
  340. * @memberof AllJobStatusResponseDto
  341. */
  342. 'storageTemplateMigration': JobStatusDto;
  343. /**
  344. *
  345. * @type {JobStatusDto}
  346. * @memberof AllJobStatusResponseDto
  347. */
  348. 'thumbnailGeneration': JobStatusDto;
  349. /**
  350. *
  351. * @type {JobStatusDto}
  352. * @memberof AllJobStatusResponseDto
  353. */
  354. 'videoConversion': JobStatusDto;
  355. }
  356. /**
  357. *
  358. * @export
  359. * @interface AssetBulkDeleteDto
  360. */
  361. export interface AssetBulkDeleteDto {
  362. /**
  363. *
  364. * @type {boolean}
  365. * @memberof AssetBulkDeleteDto
  366. */
  367. 'force'?: boolean;
  368. /**
  369. *
  370. * @type {Array<string>}
  371. * @memberof AssetBulkDeleteDto
  372. */
  373. 'ids': Array<string>;
  374. }
  375. /**
  376. *
  377. * @export
  378. * @interface AssetBulkUpdateDto
  379. */
  380. export interface AssetBulkUpdateDto {
  381. /**
  382. *
  383. * @type {Array<string>}
  384. * @memberof AssetBulkUpdateDto
  385. */
  386. 'ids': Array<string>;
  387. /**
  388. *
  389. * @type {boolean}
  390. * @memberof AssetBulkUpdateDto
  391. */
  392. 'isArchived'?: boolean;
  393. /**
  394. *
  395. * @type {boolean}
  396. * @memberof AssetBulkUpdateDto
  397. */
  398. 'isFavorite'?: boolean;
  399. /**
  400. *
  401. * @type {boolean}
  402. * @memberof AssetBulkUpdateDto
  403. */
  404. 'removeParent'?: boolean;
  405. /**
  406. *
  407. * @type {string}
  408. * @memberof AssetBulkUpdateDto
  409. */
  410. 'stackParentId'?: string;
  411. }
  412. /**
  413. *
  414. * @export
  415. * @interface AssetBulkUploadCheckDto
  416. */
  417. export interface AssetBulkUploadCheckDto {
  418. /**
  419. *
  420. * @type {Array<AssetBulkUploadCheckItem>}
  421. * @memberof AssetBulkUploadCheckDto
  422. */
  423. 'assets': Array<AssetBulkUploadCheckItem>;
  424. }
  425. /**
  426. *
  427. * @export
  428. * @interface AssetBulkUploadCheckItem
  429. */
  430. export interface AssetBulkUploadCheckItem {
  431. /**
  432. * base64 or hex encoded sha1 hash
  433. * @type {string}
  434. * @memberof AssetBulkUploadCheckItem
  435. */
  436. 'checksum': string;
  437. /**
  438. *
  439. * @type {string}
  440. * @memberof AssetBulkUploadCheckItem
  441. */
  442. 'id': string;
  443. }
  444. /**
  445. *
  446. * @export
  447. * @interface AssetBulkUploadCheckResponseDto
  448. */
  449. export interface AssetBulkUploadCheckResponseDto {
  450. /**
  451. *
  452. * @type {Array<AssetBulkUploadCheckResult>}
  453. * @memberof AssetBulkUploadCheckResponseDto
  454. */
  455. 'results': Array<AssetBulkUploadCheckResult>;
  456. }
  457. /**
  458. *
  459. * @export
  460. * @interface AssetBulkUploadCheckResult
  461. */
  462. export interface AssetBulkUploadCheckResult {
  463. /**
  464. *
  465. * @type {string}
  466. * @memberof AssetBulkUploadCheckResult
  467. */
  468. 'action': AssetBulkUploadCheckResultActionEnum;
  469. /**
  470. *
  471. * @type {string}
  472. * @memberof AssetBulkUploadCheckResult
  473. */
  474. 'assetId'?: string;
  475. /**
  476. *
  477. * @type {string}
  478. * @memberof AssetBulkUploadCheckResult
  479. */
  480. 'id': string;
  481. /**
  482. *
  483. * @type {string}
  484. * @memberof AssetBulkUploadCheckResult
  485. */
  486. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  487. }
  488. export const AssetBulkUploadCheckResultActionEnum = {
  489. Accept: 'accept',
  490. Reject: 'reject'
  491. } as const;
  492. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  493. export const AssetBulkUploadCheckResultReasonEnum = {
  494. Duplicate: 'duplicate',
  495. UnsupportedFormat: 'unsupported-format'
  496. } as const;
  497. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  498. /**
  499. *
  500. * @export
  501. * @interface AssetFileUploadResponseDto
  502. */
  503. export interface AssetFileUploadResponseDto {
  504. /**
  505. *
  506. * @type {boolean}
  507. * @memberof AssetFileUploadResponseDto
  508. */
  509. 'duplicate': boolean;
  510. /**
  511. *
  512. * @type {string}
  513. * @memberof AssetFileUploadResponseDto
  514. */
  515. 'id': string;
  516. }
  517. /**
  518. *
  519. * @export
  520. * @interface AssetIdsDto
  521. */
  522. export interface AssetIdsDto {
  523. /**
  524. *
  525. * @type {Array<string>}
  526. * @memberof AssetIdsDto
  527. */
  528. 'assetIds': Array<string>;
  529. }
  530. /**
  531. *
  532. * @export
  533. * @interface AssetIdsResponseDto
  534. */
  535. export interface AssetIdsResponseDto {
  536. /**
  537. *
  538. * @type {string}
  539. * @memberof AssetIdsResponseDto
  540. */
  541. 'assetId': string;
  542. /**
  543. *
  544. * @type {string}
  545. * @memberof AssetIdsResponseDto
  546. */
  547. 'error'?: AssetIdsResponseDtoErrorEnum;
  548. /**
  549. *
  550. * @type {boolean}
  551. * @memberof AssetIdsResponseDto
  552. */
  553. 'success': boolean;
  554. }
  555. export const AssetIdsResponseDtoErrorEnum = {
  556. Duplicate: 'duplicate',
  557. NoPermission: 'no_permission',
  558. NotFound: 'not_found'
  559. } as const;
  560. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  561. /**
  562. *
  563. * @export
  564. * @enum {string}
  565. */
  566. export const AssetJobName = {
  567. RegenerateThumbnail: 'regenerate-thumbnail',
  568. RefreshMetadata: 'refresh-metadata',
  569. TranscodeVideo: 'transcode-video'
  570. } as const;
  571. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  572. /**
  573. *
  574. * @export
  575. * @interface AssetJobsDto
  576. */
  577. export interface AssetJobsDto {
  578. /**
  579. *
  580. * @type {Array<string>}
  581. * @memberof AssetJobsDto
  582. */
  583. 'assetIds': Array<string>;
  584. /**
  585. *
  586. * @type {AssetJobName}
  587. * @memberof AssetJobsDto
  588. */
  589. 'name': AssetJobName;
  590. }
  591. /**
  592. *
  593. * @export
  594. * @interface AssetResponseDto
  595. */
  596. export interface AssetResponseDto {
  597. /**
  598. * base64 encoded sha1 hash
  599. * @type {string}
  600. * @memberof AssetResponseDto
  601. */
  602. 'checksum': string;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof AssetResponseDto
  607. */
  608. 'deviceAssetId': string;
  609. /**
  610. *
  611. * @type {string}
  612. * @memberof AssetResponseDto
  613. */
  614. 'deviceId': string;
  615. /**
  616. *
  617. * @type {string}
  618. * @memberof AssetResponseDto
  619. */
  620. 'duration': string;
  621. /**
  622. *
  623. * @type {ExifResponseDto}
  624. * @memberof AssetResponseDto
  625. */
  626. 'exifInfo'?: ExifResponseDto;
  627. /**
  628. *
  629. * @type {string}
  630. * @memberof AssetResponseDto
  631. */
  632. 'fileCreatedAt': string;
  633. /**
  634. *
  635. * @type {string}
  636. * @memberof AssetResponseDto
  637. */
  638. 'fileModifiedAt': string;
  639. /**
  640. *
  641. * @type {boolean}
  642. * @memberof AssetResponseDto
  643. */
  644. 'hasMetadata': boolean;
  645. /**
  646. *
  647. * @type {string}
  648. * @memberof AssetResponseDto
  649. */
  650. 'id': string;
  651. /**
  652. *
  653. * @type {boolean}
  654. * @memberof AssetResponseDto
  655. */
  656. 'isArchived': boolean;
  657. /**
  658. *
  659. * @type {boolean}
  660. * @memberof AssetResponseDto
  661. */
  662. 'isExternal': boolean;
  663. /**
  664. *
  665. * @type {boolean}
  666. * @memberof AssetResponseDto
  667. */
  668. 'isFavorite': boolean;
  669. /**
  670. *
  671. * @type {boolean}
  672. * @memberof AssetResponseDto
  673. */
  674. 'isOffline': boolean;
  675. /**
  676. *
  677. * @type {boolean}
  678. * @memberof AssetResponseDto
  679. */
  680. 'isReadOnly': boolean;
  681. /**
  682. *
  683. * @type {boolean}
  684. * @memberof AssetResponseDto
  685. */
  686. 'isTrashed': boolean;
  687. /**
  688. *
  689. * @type {string}
  690. * @memberof AssetResponseDto
  691. */
  692. 'libraryId': string;
  693. /**
  694. *
  695. * @type {string}
  696. * @memberof AssetResponseDto
  697. */
  698. 'livePhotoVideoId'?: string | null;
  699. /**
  700. *
  701. * @type {string}
  702. * @memberof AssetResponseDto
  703. */
  704. 'localDateTime': string;
  705. /**
  706. *
  707. * @type {string}
  708. * @memberof AssetResponseDto
  709. */
  710. 'originalFileName': string;
  711. /**
  712. *
  713. * @type {string}
  714. * @memberof AssetResponseDto
  715. */
  716. 'originalPath': string;
  717. /**
  718. *
  719. * @type {UserResponseDto}
  720. * @memberof AssetResponseDto
  721. */
  722. 'owner'?: UserResponseDto;
  723. /**
  724. *
  725. * @type {string}
  726. * @memberof AssetResponseDto
  727. */
  728. 'ownerId': string;
  729. /**
  730. *
  731. * @type {Array<PersonResponseDto>}
  732. * @memberof AssetResponseDto
  733. */
  734. 'people'?: Array<PersonResponseDto>;
  735. /**
  736. *
  737. * @type {boolean}
  738. * @memberof AssetResponseDto
  739. */
  740. 'resized': boolean;
  741. /**
  742. *
  743. * @type {SmartInfoResponseDto}
  744. * @memberof AssetResponseDto
  745. */
  746. 'smartInfo'?: SmartInfoResponseDto;
  747. /**
  748. *
  749. * @type {Array<AssetResponseDto>}
  750. * @memberof AssetResponseDto
  751. */
  752. 'stack'?: Array<AssetResponseDto>;
  753. /**
  754. *
  755. * @type {number}
  756. * @memberof AssetResponseDto
  757. */
  758. 'stackCount': number | null;
  759. /**
  760. *
  761. * @type {string}
  762. * @memberof AssetResponseDto
  763. */
  764. 'stackParentId'?: string | null;
  765. /**
  766. *
  767. * @type {Array<TagResponseDto>}
  768. * @memberof AssetResponseDto
  769. */
  770. 'tags'?: Array<TagResponseDto>;
  771. /**
  772. *
  773. * @type {string}
  774. * @memberof AssetResponseDto
  775. */
  776. 'thumbhash': string | null;
  777. /**
  778. *
  779. * @type {AssetTypeEnum}
  780. * @memberof AssetResponseDto
  781. */
  782. 'type': AssetTypeEnum;
  783. /**
  784. *
  785. * @type {string}
  786. * @memberof AssetResponseDto
  787. */
  788. 'updatedAt': string;
  789. }
  790. /**
  791. *
  792. * @export
  793. * @interface AssetStatsResponseDto
  794. */
  795. export interface AssetStatsResponseDto {
  796. /**
  797. *
  798. * @type {number}
  799. * @memberof AssetStatsResponseDto
  800. */
  801. 'images': number;
  802. /**
  803. *
  804. * @type {number}
  805. * @memberof AssetStatsResponseDto
  806. */
  807. 'total': number;
  808. /**
  809. *
  810. * @type {number}
  811. * @memberof AssetStatsResponseDto
  812. */
  813. 'videos': number;
  814. }
  815. /**
  816. *
  817. * @export
  818. * @enum {string}
  819. */
  820. export const AssetTypeEnum = {
  821. Image: 'IMAGE',
  822. Video: 'VIDEO',
  823. Audio: 'AUDIO',
  824. Other: 'OTHER'
  825. } as const;
  826. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  827. /**
  828. *
  829. * @export
  830. * @enum {string}
  831. */
  832. export const AudioCodec = {
  833. Mp3: 'mp3',
  834. Aac: 'aac',
  835. Libopus: 'libopus'
  836. } as const;
  837. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  838. /**
  839. *
  840. * @export
  841. * @interface AuditDeletesResponseDto
  842. */
  843. export interface AuditDeletesResponseDto {
  844. /**
  845. *
  846. * @type {Array<string>}
  847. * @memberof AuditDeletesResponseDto
  848. */
  849. 'ids': Array<string>;
  850. /**
  851. *
  852. * @type {boolean}
  853. * @memberof AuditDeletesResponseDto
  854. */
  855. 'needsFullSync': boolean;
  856. }
  857. /**
  858. *
  859. * @export
  860. * @interface AuthDeviceResponseDto
  861. */
  862. export interface AuthDeviceResponseDto {
  863. /**
  864. *
  865. * @type {string}
  866. * @memberof AuthDeviceResponseDto
  867. */
  868. 'createdAt': string;
  869. /**
  870. *
  871. * @type {boolean}
  872. * @memberof AuthDeviceResponseDto
  873. */
  874. 'current': boolean;
  875. /**
  876. *
  877. * @type {string}
  878. * @memberof AuthDeviceResponseDto
  879. */
  880. 'deviceOS': string;
  881. /**
  882. *
  883. * @type {string}
  884. * @memberof AuthDeviceResponseDto
  885. */
  886. 'deviceType': string;
  887. /**
  888. *
  889. * @type {string}
  890. * @memberof AuthDeviceResponseDto
  891. */
  892. 'id': string;
  893. /**
  894. *
  895. * @type {string}
  896. * @memberof AuthDeviceResponseDto
  897. */
  898. 'updatedAt': string;
  899. }
  900. /**
  901. *
  902. * @export
  903. * @interface BulkIdResponseDto
  904. */
  905. export interface BulkIdResponseDto {
  906. /**
  907. *
  908. * @type {string}
  909. * @memberof BulkIdResponseDto
  910. */
  911. 'error'?: BulkIdResponseDtoErrorEnum;
  912. /**
  913. *
  914. * @type {string}
  915. * @memberof BulkIdResponseDto
  916. */
  917. 'id': string;
  918. /**
  919. *
  920. * @type {boolean}
  921. * @memberof BulkIdResponseDto
  922. */
  923. 'success': boolean;
  924. }
  925. export const BulkIdResponseDtoErrorEnum = {
  926. Duplicate: 'duplicate',
  927. NoPermission: 'no_permission',
  928. NotFound: 'not_found',
  929. Unknown: 'unknown'
  930. } as const;
  931. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  932. /**
  933. *
  934. * @export
  935. * @interface BulkIdsDto
  936. */
  937. export interface BulkIdsDto {
  938. /**
  939. *
  940. * @type {Array<string>}
  941. * @memberof BulkIdsDto
  942. */
  943. 'ids': Array<string>;
  944. }
  945. /**
  946. *
  947. * @export
  948. * @interface CLIPConfig
  949. */
  950. export interface CLIPConfig {
  951. /**
  952. *
  953. * @type {boolean}
  954. * @memberof CLIPConfig
  955. */
  956. 'enabled': boolean;
  957. /**
  958. *
  959. * @type {CLIPMode}
  960. * @memberof CLIPConfig
  961. */
  962. 'mode'?: CLIPMode;
  963. /**
  964. *
  965. * @type {string}
  966. * @memberof CLIPConfig
  967. */
  968. 'modelName': string;
  969. /**
  970. *
  971. * @type {ModelType}
  972. * @memberof CLIPConfig
  973. */
  974. 'modelType'?: ModelType;
  975. }
  976. /**
  977. *
  978. * @export
  979. * @enum {string}
  980. */
  981. export const CLIPMode = {
  982. Vision: 'vision',
  983. Text: 'text'
  984. } as const;
  985. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  986. /**
  987. *
  988. * @export
  989. * @enum {string}
  990. */
  991. export const CQMode = {
  992. Auto: 'auto',
  993. Cqp: 'cqp',
  994. Icq: 'icq'
  995. } as const;
  996. export type CQMode = typeof CQMode[keyof typeof CQMode];
  997. /**
  998. *
  999. * @export
  1000. * @interface ChangePasswordDto
  1001. */
  1002. export interface ChangePasswordDto {
  1003. /**
  1004. *
  1005. * @type {string}
  1006. * @memberof ChangePasswordDto
  1007. */
  1008. 'newPassword': string;
  1009. /**
  1010. *
  1011. * @type {string}
  1012. * @memberof ChangePasswordDto
  1013. */
  1014. 'password': string;
  1015. }
  1016. /**
  1017. *
  1018. * @export
  1019. * @interface CheckExistingAssetsDto
  1020. */
  1021. export interface CheckExistingAssetsDto {
  1022. /**
  1023. *
  1024. * @type {Array<string>}
  1025. * @memberof CheckExistingAssetsDto
  1026. */
  1027. 'deviceAssetIds': Array<string>;
  1028. /**
  1029. *
  1030. * @type {string}
  1031. * @memberof CheckExistingAssetsDto
  1032. */
  1033. 'deviceId': string;
  1034. }
  1035. /**
  1036. *
  1037. * @export
  1038. * @interface CheckExistingAssetsResponseDto
  1039. */
  1040. export interface CheckExistingAssetsResponseDto {
  1041. /**
  1042. *
  1043. * @type {Array<string>}
  1044. * @memberof CheckExistingAssetsResponseDto
  1045. */
  1046. 'existingIds': Array<string>;
  1047. }
  1048. /**
  1049. *
  1050. * @export
  1051. * @enum {string}
  1052. */
  1053. export const CitiesFile = {
  1054. Cities15000: 'cities15000',
  1055. Cities5000: 'cities5000',
  1056. Cities1000: 'cities1000',
  1057. Cities500: 'cities500'
  1058. } as const;
  1059. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1060. /**
  1061. *
  1062. * @export
  1063. * @interface ClassificationConfig
  1064. */
  1065. export interface ClassificationConfig {
  1066. /**
  1067. *
  1068. * @type {boolean}
  1069. * @memberof ClassificationConfig
  1070. */
  1071. 'enabled': boolean;
  1072. /**
  1073. *
  1074. * @type {number}
  1075. * @memberof ClassificationConfig
  1076. */
  1077. 'minScore': number;
  1078. /**
  1079. *
  1080. * @type {string}
  1081. * @memberof ClassificationConfig
  1082. */
  1083. 'modelName': string;
  1084. /**
  1085. *
  1086. * @type {ModelType}
  1087. * @memberof ClassificationConfig
  1088. */
  1089. 'modelType'?: ModelType;
  1090. }
  1091. /**
  1092. *
  1093. * @export
  1094. * @enum {string}
  1095. */
  1096. export const Colorspace = {
  1097. Srgb: 'srgb',
  1098. P3: 'p3'
  1099. } as const;
  1100. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1101. /**
  1102. *
  1103. * @export
  1104. * @interface CreateAlbumDto
  1105. */
  1106. export interface CreateAlbumDto {
  1107. /**
  1108. *
  1109. * @type {string}
  1110. * @memberof CreateAlbumDto
  1111. */
  1112. 'albumName': string;
  1113. /**
  1114. *
  1115. * @type {Array<string>}
  1116. * @memberof CreateAlbumDto
  1117. */
  1118. 'assetIds'?: Array<string>;
  1119. /**
  1120. *
  1121. * @type {string}
  1122. * @memberof CreateAlbumDto
  1123. */
  1124. 'description'?: string;
  1125. /**
  1126. *
  1127. * @type {Array<string>}
  1128. * @memberof CreateAlbumDto
  1129. */
  1130. 'sharedWithUserIds'?: Array<string>;
  1131. }
  1132. /**
  1133. *
  1134. * @export
  1135. * @interface CreateLibraryDto
  1136. */
  1137. export interface CreateLibraryDto {
  1138. /**
  1139. *
  1140. * @type {Array<string>}
  1141. * @memberof CreateLibraryDto
  1142. */
  1143. 'exclusionPatterns'?: Array<string>;
  1144. /**
  1145. *
  1146. * @type {Array<string>}
  1147. * @memberof CreateLibraryDto
  1148. */
  1149. 'importPaths'?: Array<string>;
  1150. /**
  1151. *
  1152. * @type {boolean}
  1153. * @memberof CreateLibraryDto
  1154. */
  1155. 'isVisible'?: boolean;
  1156. /**
  1157. *
  1158. * @type {string}
  1159. * @memberof CreateLibraryDto
  1160. */
  1161. 'name'?: string;
  1162. /**
  1163. *
  1164. * @type {LibraryType}
  1165. * @memberof CreateLibraryDto
  1166. */
  1167. 'type': LibraryType;
  1168. }
  1169. /**
  1170. *
  1171. * @export
  1172. * @interface CreateProfileImageResponseDto
  1173. */
  1174. export interface CreateProfileImageResponseDto {
  1175. /**
  1176. *
  1177. * @type {string}
  1178. * @memberof CreateProfileImageResponseDto
  1179. */
  1180. 'profileImagePath': string;
  1181. /**
  1182. *
  1183. * @type {string}
  1184. * @memberof CreateProfileImageResponseDto
  1185. */
  1186. 'userId': string;
  1187. }
  1188. /**
  1189. *
  1190. * @export
  1191. * @interface CreateTagDto
  1192. */
  1193. export interface CreateTagDto {
  1194. /**
  1195. *
  1196. * @type {string}
  1197. * @memberof CreateTagDto
  1198. */
  1199. 'name': string;
  1200. /**
  1201. *
  1202. * @type {TagTypeEnum}
  1203. * @memberof CreateTagDto
  1204. */
  1205. 'type': TagTypeEnum;
  1206. }
  1207. /**
  1208. *
  1209. * @export
  1210. * @interface CreateUserDto
  1211. */
  1212. export interface CreateUserDto {
  1213. /**
  1214. *
  1215. * @type {string}
  1216. * @memberof CreateUserDto
  1217. */
  1218. 'email': string;
  1219. /**
  1220. *
  1221. * @type {string}
  1222. * @memberof CreateUserDto
  1223. */
  1224. 'externalPath'?: string | null;
  1225. /**
  1226. *
  1227. * @type {string}
  1228. * @memberof CreateUserDto
  1229. */
  1230. 'firstName': string;
  1231. /**
  1232. *
  1233. * @type {string}
  1234. * @memberof CreateUserDto
  1235. */
  1236. 'lastName': string;
  1237. /**
  1238. *
  1239. * @type {boolean}
  1240. * @memberof CreateUserDto
  1241. */
  1242. 'memoriesEnabled'?: boolean;
  1243. /**
  1244. *
  1245. * @type {string}
  1246. * @memberof CreateUserDto
  1247. */
  1248. 'password': string;
  1249. /**
  1250. *
  1251. * @type {string}
  1252. * @memberof CreateUserDto
  1253. */
  1254. 'storageLabel'?: string | null;
  1255. }
  1256. /**
  1257. *
  1258. * @export
  1259. * @interface CuratedLocationsResponseDto
  1260. */
  1261. export interface CuratedLocationsResponseDto {
  1262. /**
  1263. *
  1264. * @type {string}
  1265. * @memberof CuratedLocationsResponseDto
  1266. */
  1267. 'city': string;
  1268. /**
  1269. *
  1270. * @type {string}
  1271. * @memberof CuratedLocationsResponseDto
  1272. */
  1273. 'deviceAssetId': string;
  1274. /**
  1275. *
  1276. * @type {string}
  1277. * @memberof CuratedLocationsResponseDto
  1278. */
  1279. 'deviceId': string;
  1280. /**
  1281. *
  1282. * @type {string}
  1283. * @memberof CuratedLocationsResponseDto
  1284. */
  1285. 'id': string;
  1286. /**
  1287. *
  1288. * @type {string}
  1289. * @memberof CuratedLocationsResponseDto
  1290. */
  1291. 'resizePath': string;
  1292. }
  1293. /**
  1294. *
  1295. * @export
  1296. * @interface CuratedObjectsResponseDto
  1297. */
  1298. export interface CuratedObjectsResponseDto {
  1299. /**
  1300. *
  1301. * @type {string}
  1302. * @memberof CuratedObjectsResponseDto
  1303. */
  1304. 'deviceAssetId': string;
  1305. /**
  1306. *
  1307. * @type {string}
  1308. * @memberof CuratedObjectsResponseDto
  1309. */
  1310. 'deviceId': string;
  1311. /**
  1312. *
  1313. * @type {string}
  1314. * @memberof CuratedObjectsResponseDto
  1315. */
  1316. 'id': string;
  1317. /**
  1318. *
  1319. * @type {string}
  1320. * @memberof CuratedObjectsResponseDto
  1321. */
  1322. 'object': string;
  1323. /**
  1324. *
  1325. * @type {string}
  1326. * @memberof CuratedObjectsResponseDto
  1327. */
  1328. 'resizePath': string;
  1329. }
  1330. /**
  1331. *
  1332. * @export
  1333. * @interface DownloadArchiveInfo
  1334. */
  1335. export interface DownloadArchiveInfo {
  1336. /**
  1337. *
  1338. * @type {Array<string>}
  1339. * @memberof DownloadArchiveInfo
  1340. */
  1341. 'assetIds': Array<string>;
  1342. /**
  1343. *
  1344. * @type {number}
  1345. * @memberof DownloadArchiveInfo
  1346. */
  1347. 'size': number;
  1348. }
  1349. /**
  1350. *
  1351. * @export
  1352. * @interface DownloadInfoDto
  1353. */
  1354. export interface DownloadInfoDto {
  1355. /**
  1356. *
  1357. * @type {string}
  1358. * @memberof DownloadInfoDto
  1359. */
  1360. 'albumId'?: string;
  1361. /**
  1362. *
  1363. * @type {number}
  1364. * @memberof DownloadInfoDto
  1365. */
  1366. 'archiveSize'?: number;
  1367. /**
  1368. *
  1369. * @type {Array<string>}
  1370. * @memberof DownloadInfoDto
  1371. */
  1372. 'assetIds'?: Array<string>;
  1373. /**
  1374. *
  1375. * @type {string}
  1376. * @memberof DownloadInfoDto
  1377. */
  1378. 'userId'?: string;
  1379. }
  1380. /**
  1381. *
  1382. * @export
  1383. * @interface DownloadResponseDto
  1384. */
  1385. export interface DownloadResponseDto {
  1386. /**
  1387. *
  1388. * @type {Array<DownloadArchiveInfo>}
  1389. * @memberof DownloadResponseDto
  1390. */
  1391. 'archives': Array<DownloadArchiveInfo>;
  1392. /**
  1393. *
  1394. * @type {number}
  1395. * @memberof DownloadResponseDto
  1396. */
  1397. 'totalSize': number;
  1398. }
  1399. /**
  1400. *
  1401. * @export
  1402. * @enum {string}
  1403. */
  1404. export const EntityType = {
  1405. Asset: 'ASSET',
  1406. Album: 'ALBUM'
  1407. } as const;
  1408. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1409. /**
  1410. *
  1411. * @export
  1412. * @interface ExifResponseDto
  1413. */
  1414. export interface ExifResponseDto {
  1415. /**
  1416. *
  1417. * @type {string}
  1418. * @memberof ExifResponseDto
  1419. */
  1420. 'city'?: string | null;
  1421. /**
  1422. *
  1423. * @type {string}
  1424. * @memberof ExifResponseDto
  1425. */
  1426. 'country'?: string | null;
  1427. /**
  1428. *
  1429. * @type {string}
  1430. * @memberof ExifResponseDto
  1431. */
  1432. 'dateTimeOriginal'?: string | null;
  1433. /**
  1434. *
  1435. * @type {string}
  1436. * @memberof ExifResponseDto
  1437. */
  1438. 'description'?: string | null;
  1439. /**
  1440. *
  1441. * @type {number}
  1442. * @memberof ExifResponseDto
  1443. */
  1444. 'exifImageHeight'?: number | null;
  1445. /**
  1446. *
  1447. * @type {number}
  1448. * @memberof ExifResponseDto
  1449. */
  1450. 'exifImageWidth'?: number | null;
  1451. /**
  1452. *
  1453. * @type {string}
  1454. * @memberof ExifResponseDto
  1455. */
  1456. 'exposureTime'?: string | null;
  1457. /**
  1458. *
  1459. * @type {number}
  1460. * @memberof ExifResponseDto
  1461. */
  1462. 'fNumber'?: number | null;
  1463. /**
  1464. *
  1465. * @type {number}
  1466. * @memberof ExifResponseDto
  1467. */
  1468. 'fileSizeInByte'?: number | null;
  1469. /**
  1470. *
  1471. * @type {number}
  1472. * @memberof ExifResponseDto
  1473. */
  1474. 'focalLength'?: number | null;
  1475. /**
  1476. *
  1477. * @type {number}
  1478. * @memberof ExifResponseDto
  1479. */
  1480. 'iso'?: number | null;
  1481. /**
  1482. *
  1483. * @type {number}
  1484. * @memberof ExifResponseDto
  1485. */
  1486. 'latitude'?: number | null;
  1487. /**
  1488. *
  1489. * @type {string}
  1490. * @memberof ExifResponseDto
  1491. */
  1492. 'lensModel'?: string | null;
  1493. /**
  1494. *
  1495. * @type {number}
  1496. * @memberof ExifResponseDto
  1497. */
  1498. 'longitude'?: number | null;
  1499. /**
  1500. *
  1501. * @type {string}
  1502. * @memberof ExifResponseDto
  1503. */
  1504. 'make'?: string | null;
  1505. /**
  1506. *
  1507. * @type {string}
  1508. * @memberof ExifResponseDto
  1509. */
  1510. 'model'?: string | null;
  1511. /**
  1512. *
  1513. * @type {string}
  1514. * @memberof ExifResponseDto
  1515. */
  1516. 'modifyDate'?: string | null;
  1517. /**
  1518. *
  1519. * @type {string}
  1520. * @memberof ExifResponseDto
  1521. */
  1522. 'orientation'?: string | null;
  1523. /**
  1524. *
  1525. * @type {string}
  1526. * @memberof ExifResponseDto
  1527. */
  1528. 'projectionType'?: string | null;
  1529. /**
  1530. *
  1531. * @type {string}
  1532. * @memberof ExifResponseDto
  1533. */
  1534. 'state'?: string | null;
  1535. /**
  1536. *
  1537. * @type {string}
  1538. * @memberof ExifResponseDto
  1539. */
  1540. 'timeZone'?: string | null;
  1541. }
  1542. /**
  1543. *
  1544. * @export
  1545. * @interface FileChecksumDto
  1546. */
  1547. export interface FileChecksumDto {
  1548. /**
  1549. *
  1550. * @type {Array<string>}
  1551. * @memberof FileChecksumDto
  1552. */
  1553. 'filenames': Array<string>;
  1554. }
  1555. /**
  1556. *
  1557. * @export
  1558. * @interface FileChecksumResponseDto
  1559. */
  1560. export interface FileChecksumResponseDto {
  1561. /**
  1562. *
  1563. * @type {string}
  1564. * @memberof FileChecksumResponseDto
  1565. */
  1566. 'checksum': string;
  1567. /**
  1568. *
  1569. * @type {string}
  1570. * @memberof FileChecksumResponseDto
  1571. */
  1572. 'filename': string;
  1573. }
  1574. /**
  1575. *
  1576. * @export
  1577. * @interface FileReportDto
  1578. */
  1579. export interface FileReportDto {
  1580. /**
  1581. *
  1582. * @type {Array<string>}
  1583. * @memberof FileReportDto
  1584. */
  1585. 'extras': Array<string>;
  1586. /**
  1587. *
  1588. * @type {Array<FileReportItemDto>}
  1589. * @memberof FileReportDto
  1590. */
  1591. 'orphans': Array<FileReportItemDto>;
  1592. }
  1593. /**
  1594. *
  1595. * @export
  1596. * @interface FileReportFixDto
  1597. */
  1598. export interface FileReportFixDto {
  1599. /**
  1600. *
  1601. * @type {Array<FileReportItemDto>}
  1602. * @memberof FileReportFixDto
  1603. */
  1604. 'items': Array<FileReportItemDto>;
  1605. }
  1606. /**
  1607. *
  1608. * @export
  1609. * @interface FileReportItemDto
  1610. */
  1611. export interface FileReportItemDto {
  1612. /**
  1613. *
  1614. * @type {string}
  1615. * @memberof FileReportItemDto
  1616. */
  1617. 'checksum'?: string;
  1618. /**
  1619. *
  1620. * @type {string}
  1621. * @memberof FileReportItemDto
  1622. */
  1623. 'entityId': string;
  1624. /**
  1625. *
  1626. * @type {PathEntityType}
  1627. * @memberof FileReportItemDto
  1628. */
  1629. 'entityType': PathEntityType;
  1630. /**
  1631. *
  1632. * @type {PathType}
  1633. * @memberof FileReportItemDto
  1634. */
  1635. 'pathType': PathType;
  1636. /**
  1637. *
  1638. * @type {string}
  1639. * @memberof FileReportItemDto
  1640. */
  1641. 'pathValue': string;
  1642. }
  1643. /**
  1644. *
  1645. * @export
  1646. * @interface ImportAssetDto
  1647. */
  1648. export interface ImportAssetDto {
  1649. /**
  1650. *
  1651. * @type {string}
  1652. * @memberof ImportAssetDto
  1653. */
  1654. 'assetPath': string;
  1655. /**
  1656. *
  1657. * @type {string}
  1658. * @memberof ImportAssetDto
  1659. */
  1660. 'deviceAssetId': string;
  1661. /**
  1662. *
  1663. * @type {string}
  1664. * @memberof ImportAssetDto
  1665. */
  1666. 'deviceId': string;
  1667. /**
  1668. *
  1669. * @type {string}
  1670. * @memberof ImportAssetDto
  1671. */
  1672. 'duration'?: string;
  1673. /**
  1674. *
  1675. * @type {string}
  1676. * @memberof ImportAssetDto
  1677. */
  1678. 'fileCreatedAt': string;
  1679. /**
  1680. *
  1681. * @type {string}
  1682. * @memberof ImportAssetDto
  1683. */
  1684. 'fileModifiedAt': string;
  1685. /**
  1686. *
  1687. * @type {boolean}
  1688. * @memberof ImportAssetDto
  1689. */
  1690. 'isArchived'?: boolean;
  1691. /**
  1692. *
  1693. * @type {boolean}
  1694. * @memberof ImportAssetDto
  1695. */
  1696. 'isExternal'?: boolean;
  1697. /**
  1698. *
  1699. * @type {boolean}
  1700. * @memberof ImportAssetDto
  1701. */
  1702. 'isFavorite': boolean;
  1703. /**
  1704. *
  1705. * @type {boolean}
  1706. * @memberof ImportAssetDto
  1707. */
  1708. 'isOffline'?: boolean;
  1709. /**
  1710. *
  1711. * @type {boolean}
  1712. * @memberof ImportAssetDto
  1713. */
  1714. 'isReadOnly'?: boolean;
  1715. /**
  1716. *
  1717. * @type {boolean}
  1718. * @memberof ImportAssetDto
  1719. */
  1720. 'isVisible'?: boolean;
  1721. /**
  1722. *
  1723. * @type {string}
  1724. * @memberof ImportAssetDto
  1725. */
  1726. 'libraryId'?: string;
  1727. /**
  1728. *
  1729. * @type {string}
  1730. * @memberof ImportAssetDto
  1731. */
  1732. 'sidecarPath'?: string;
  1733. }
  1734. /**
  1735. *
  1736. * @export
  1737. * @enum {string}
  1738. */
  1739. export const JobCommand = {
  1740. Start: 'start',
  1741. Pause: 'pause',
  1742. Resume: 'resume',
  1743. Empty: 'empty'
  1744. } as const;
  1745. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1746. /**
  1747. *
  1748. * @export
  1749. * @interface JobCommandDto
  1750. */
  1751. export interface JobCommandDto {
  1752. /**
  1753. *
  1754. * @type {JobCommand}
  1755. * @memberof JobCommandDto
  1756. */
  1757. 'command': JobCommand;
  1758. /**
  1759. *
  1760. * @type {boolean}
  1761. * @memberof JobCommandDto
  1762. */
  1763. 'force': boolean;
  1764. }
  1765. /**
  1766. *
  1767. * @export
  1768. * @interface JobCountsDto
  1769. */
  1770. export interface JobCountsDto {
  1771. /**
  1772. *
  1773. * @type {number}
  1774. * @memberof JobCountsDto
  1775. */
  1776. 'active': number;
  1777. /**
  1778. *
  1779. * @type {number}
  1780. * @memberof JobCountsDto
  1781. */
  1782. 'completed': number;
  1783. /**
  1784. *
  1785. * @type {number}
  1786. * @memberof JobCountsDto
  1787. */
  1788. 'delayed': number;
  1789. /**
  1790. *
  1791. * @type {number}
  1792. * @memberof JobCountsDto
  1793. */
  1794. 'failed': number;
  1795. /**
  1796. *
  1797. * @type {number}
  1798. * @memberof JobCountsDto
  1799. */
  1800. 'paused': number;
  1801. /**
  1802. *
  1803. * @type {number}
  1804. * @memberof JobCountsDto
  1805. */
  1806. 'waiting': number;
  1807. }
  1808. /**
  1809. *
  1810. * @export
  1811. * @enum {string}
  1812. */
  1813. export const JobName = {
  1814. ThumbnailGeneration: 'thumbnailGeneration',
  1815. MetadataExtraction: 'metadataExtraction',
  1816. VideoConversion: 'videoConversion',
  1817. ObjectTagging: 'objectTagging',
  1818. RecognizeFaces: 'recognizeFaces',
  1819. ClipEncoding: 'clipEncoding',
  1820. BackgroundTask: 'backgroundTask',
  1821. StorageTemplateMigration: 'storageTemplateMigration',
  1822. Migration: 'migration',
  1823. Search: 'search',
  1824. Sidecar: 'sidecar',
  1825. Library: 'library'
  1826. } as const;
  1827. export type JobName = typeof JobName[keyof typeof JobName];
  1828. /**
  1829. *
  1830. * @export
  1831. * @interface JobSettingsDto
  1832. */
  1833. export interface JobSettingsDto {
  1834. /**
  1835. *
  1836. * @type {number}
  1837. * @memberof JobSettingsDto
  1838. */
  1839. 'concurrency': number;
  1840. }
  1841. /**
  1842. *
  1843. * @export
  1844. * @interface JobStatusDto
  1845. */
  1846. export interface JobStatusDto {
  1847. /**
  1848. *
  1849. * @type {JobCountsDto}
  1850. * @memberof JobStatusDto
  1851. */
  1852. 'jobCounts': JobCountsDto;
  1853. /**
  1854. *
  1855. * @type {QueueStatusDto}
  1856. * @memberof JobStatusDto
  1857. */
  1858. 'queueStatus': QueueStatusDto;
  1859. }
  1860. /**
  1861. *
  1862. * @export
  1863. * @interface LibraryResponseDto
  1864. */
  1865. export interface LibraryResponseDto {
  1866. /**
  1867. *
  1868. * @type {number}
  1869. * @memberof LibraryResponseDto
  1870. */
  1871. 'assetCount': number;
  1872. /**
  1873. *
  1874. * @type {string}
  1875. * @memberof LibraryResponseDto
  1876. */
  1877. 'createdAt': string;
  1878. /**
  1879. *
  1880. * @type {Array<string>}
  1881. * @memberof LibraryResponseDto
  1882. */
  1883. 'exclusionPatterns': Array<string>;
  1884. /**
  1885. *
  1886. * @type {string}
  1887. * @memberof LibraryResponseDto
  1888. */
  1889. 'id': string;
  1890. /**
  1891. *
  1892. * @type {Array<string>}
  1893. * @memberof LibraryResponseDto
  1894. */
  1895. 'importPaths': Array<string>;
  1896. /**
  1897. *
  1898. * @type {string}
  1899. * @memberof LibraryResponseDto
  1900. */
  1901. 'name': string;
  1902. /**
  1903. *
  1904. * @type {string}
  1905. * @memberof LibraryResponseDto
  1906. */
  1907. 'ownerId': string;
  1908. /**
  1909. *
  1910. * @type {string}
  1911. * @memberof LibraryResponseDto
  1912. */
  1913. 'refreshedAt': string | null;
  1914. /**
  1915. *
  1916. * @type {LibraryType}
  1917. * @memberof LibraryResponseDto
  1918. */
  1919. 'type': LibraryType;
  1920. /**
  1921. *
  1922. * @type {string}
  1923. * @memberof LibraryResponseDto
  1924. */
  1925. 'updatedAt': string;
  1926. }
  1927. /**
  1928. *
  1929. * @export
  1930. * @interface LibraryStatsResponseDto
  1931. */
  1932. export interface LibraryStatsResponseDto {
  1933. /**
  1934. *
  1935. * @type {number}
  1936. * @memberof LibraryStatsResponseDto
  1937. */
  1938. 'photos': number;
  1939. /**
  1940. *
  1941. * @type {number}
  1942. * @memberof LibraryStatsResponseDto
  1943. */
  1944. 'total': number;
  1945. /**
  1946. *
  1947. * @type {number}
  1948. * @memberof LibraryStatsResponseDto
  1949. */
  1950. 'usage': number;
  1951. /**
  1952. *
  1953. * @type {number}
  1954. * @memberof LibraryStatsResponseDto
  1955. */
  1956. 'videos': number;
  1957. }
  1958. /**
  1959. *
  1960. * @export
  1961. * @enum {string}
  1962. */
  1963. export const LibraryType = {
  1964. Upload: 'UPLOAD',
  1965. External: 'EXTERNAL'
  1966. } as const;
  1967. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  1968. /**
  1969. *
  1970. * @export
  1971. * @interface LoginCredentialDto
  1972. */
  1973. export interface LoginCredentialDto {
  1974. /**
  1975. *
  1976. * @type {string}
  1977. * @memberof LoginCredentialDto
  1978. */
  1979. 'email': string;
  1980. /**
  1981. *
  1982. * @type {string}
  1983. * @memberof LoginCredentialDto
  1984. */
  1985. 'password': string;
  1986. }
  1987. /**
  1988. *
  1989. * @export
  1990. * @interface LoginResponseDto
  1991. */
  1992. export interface LoginResponseDto {
  1993. /**
  1994. *
  1995. * @type {string}
  1996. * @memberof LoginResponseDto
  1997. */
  1998. 'accessToken': string;
  1999. /**
  2000. *
  2001. * @type {string}
  2002. * @memberof LoginResponseDto
  2003. */
  2004. 'firstName': string;
  2005. /**
  2006. *
  2007. * @type {boolean}
  2008. * @memberof LoginResponseDto
  2009. */
  2010. 'isAdmin': boolean;
  2011. /**
  2012. *
  2013. * @type {string}
  2014. * @memberof LoginResponseDto
  2015. */
  2016. 'lastName': string;
  2017. /**
  2018. *
  2019. * @type {string}
  2020. * @memberof LoginResponseDto
  2021. */
  2022. 'profileImagePath': string;
  2023. /**
  2024. *
  2025. * @type {boolean}
  2026. * @memberof LoginResponseDto
  2027. */
  2028. 'shouldChangePassword': boolean;
  2029. /**
  2030. *
  2031. * @type {string}
  2032. * @memberof LoginResponseDto
  2033. */
  2034. 'userEmail': string;
  2035. /**
  2036. *
  2037. * @type {string}
  2038. * @memberof LoginResponseDto
  2039. */
  2040. 'userId': string;
  2041. }
  2042. /**
  2043. *
  2044. * @export
  2045. * @interface LogoutResponseDto
  2046. */
  2047. export interface LogoutResponseDto {
  2048. /**
  2049. *
  2050. * @type {string}
  2051. * @memberof LogoutResponseDto
  2052. */
  2053. 'redirectUri': string;
  2054. /**
  2055. *
  2056. * @type {boolean}
  2057. * @memberof LogoutResponseDto
  2058. */
  2059. 'successful': boolean;
  2060. }
  2061. /**
  2062. *
  2063. * @export
  2064. * @interface MapMarkerResponseDto
  2065. */
  2066. export interface MapMarkerResponseDto {
  2067. /**
  2068. *
  2069. * @type {string}
  2070. * @memberof MapMarkerResponseDto
  2071. */
  2072. 'id': string;
  2073. /**
  2074. *
  2075. * @type {number}
  2076. * @memberof MapMarkerResponseDto
  2077. */
  2078. 'lat': number;
  2079. /**
  2080. *
  2081. * @type {number}
  2082. * @memberof MapMarkerResponseDto
  2083. */
  2084. 'lon': number;
  2085. }
  2086. /**
  2087. *
  2088. * @export
  2089. * @interface MemoryLaneResponseDto
  2090. */
  2091. export interface MemoryLaneResponseDto {
  2092. /**
  2093. *
  2094. * @type {Array<AssetResponseDto>}
  2095. * @memberof MemoryLaneResponseDto
  2096. */
  2097. 'assets': Array<AssetResponseDto>;
  2098. /**
  2099. *
  2100. * @type {string}
  2101. * @memberof MemoryLaneResponseDto
  2102. */
  2103. 'title': string;
  2104. }
  2105. /**
  2106. *
  2107. * @export
  2108. * @interface MergePersonDto
  2109. */
  2110. export interface MergePersonDto {
  2111. /**
  2112. *
  2113. * @type {Array<string>}
  2114. * @memberof MergePersonDto
  2115. */
  2116. 'ids': Array<string>;
  2117. }
  2118. /**
  2119. *
  2120. * @export
  2121. * @enum {string}
  2122. */
  2123. export const ModelType = {
  2124. ImageClassification: 'image-classification',
  2125. FacialRecognition: 'facial-recognition',
  2126. Clip: 'clip'
  2127. } as const;
  2128. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2129. /**
  2130. *
  2131. * @export
  2132. * @interface OAuthAuthorizeResponseDto
  2133. */
  2134. export interface OAuthAuthorizeResponseDto {
  2135. /**
  2136. *
  2137. * @type {string}
  2138. * @memberof OAuthAuthorizeResponseDto
  2139. */
  2140. 'url': string;
  2141. }
  2142. /**
  2143. *
  2144. * @export
  2145. * @interface OAuthCallbackDto
  2146. */
  2147. export interface OAuthCallbackDto {
  2148. /**
  2149. *
  2150. * @type {string}
  2151. * @memberof OAuthCallbackDto
  2152. */
  2153. 'url': string;
  2154. }
  2155. /**
  2156. *
  2157. * @export
  2158. * @interface OAuthConfigDto
  2159. */
  2160. export interface OAuthConfigDto {
  2161. /**
  2162. *
  2163. * @type {string}
  2164. * @memberof OAuthConfigDto
  2165. */
  2166. 'redirectUri': string;
  2167. }
  2168. /**
  2169. *
  2170. * @export
  2171. * @interface OAuthConfigResponseDto
  2172. */
  2173. export interface OAuthConfigResponseDto {
  2174. /**
  2175. *
  2176. * @type {boolean}
  2177. * @memberof OAuthConfigResponseDto
  2178. */
  2179. 'autoLaunch'?: boolean;
  2180. /**
  2181. *
  2182. * @type {string}
  2183. * @memberof OAuthConfigResponseDto
  2184. */
  2185. 'buttonText'?: string;
  2186. /**
  2187. *
  2188. * @type {boolean}
  2189. * @memberof OAuthConfigResponseDto
  2190. */
  2191. 'enabled': boolean;
  2192. /**
  2193. *
  2194. * @type {boolean}
  2195. * @memberof OAuthConfigResponseDto
  2196. */
  2197. 'passwordLoginEnabled': boolean;
  2198. /**
  2199. *
  2200. * @type {string}
  2201. * @memberof OAuthConfigResponseDto
  2202. */
  2203. 'url'?: string;
  2204. }
  2205. /**
  2206. *
  2207. * @export
  2208. * @enum {string}
  2209. */
  2210. export const PathEntityType = {
  2211. Asset: 'asset',
  2212. Person: 'person',
  2213. User: 'user'
  2214. } as const;
  2215. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2216. /**
  2217. *
  2218. * @export
  2219. * @enum {string}
  2220. */
  2221. export const PathType = {
  2222. Original: 'original',
  2223. JpegThumbnail: 'jpeg_thumbnail',
  2224. WebpThumbnail: 'webp_thumbnail',
  2225. EncodedVideo: 'encoded_video',
  2226. Sidecar: 'sidecar',
  2227. Face: 'face',
  2228. Profile: 'profile'
  2229. } as const;
  2230. export type PathType = typeof PathType[keyof typeof PathType];
  2231. /**
  2232. *
  2233. * @export
  2234. * @interface PeopleResponseDto
  2235. */
  2236. export interface PeopleResponseDto {
  2237. /**
  2238. *
  2239. * @type {Array<PersonResponseDto>}
  2240. * @memberof PeopleResponseDto
  2241. */
  2242. 'people': Array<PersonResponseDto>;
  2243. /**
  2244. *
  2245. * @type {number}
  2246. * @memberof PeopleResponseDto
  2247. */
  2248. 'total': number;
  2249. /**
  2250. *
  2251. * @type {number}
  2252. * @memberof PeopleResponseDto
  2253. */
  2254. 'visible': number;
  2255. }
  2256. /**
  2257. *
  2258. * @export
  2259. * @interface PeopleUpdateDto
  2260. */
  2261. export interface PeopleUpdateDto {
  2262. /**
  2263. *
  2264. * @type {Array<PeopleUpdateItem>}
  2265. * @memberof PeopleUpdateDto
  2266. */
  2267. 'people': Array<PeopleUpdateItem>;
  2268. }
  2269. /**
  2270. *
  2271. * @export
  2272. * @interface PeopleUpdateItem
  2273. */
  2274. export interface PeopleUpdateItem {
  2275. /**
  2276. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2277. * @type {string}
  2278. * @memberof PeopleUpdateItem
  2279. */
  2280. 'birthDate'?: string | null;
  2281. /**
  2282. * Asset is used to get the feature face thumbnail.
  2283. * @type {string}
  2284. * @memberof PeopleUpdateItem
  2285. */
  2286. 'featureFaceAssetId'?: string;
  2287. /**
  2288. * Person id.
  2289. * @type {string}
  2290. * @memberof PeopleUpdateItem
  2291. */
  2292. 'id': string;
  2293. /**
  2294. * Person visibility
  2295. * @type {boolean}
  2296. * @memberof PeopleUpdateItem
  2297. */
  2298. 'isHidden'?: boolean;
  2299. /**
  2300. * Person name.
  2301. * @type {string}
  2302. * @memberof PeopleUpdateItem
  2303. */
  2304. 'name'?: string;
  2305. }
  2306. /**
  2307. *
  2308. * @export
  2309. * @interface PersonResponseDto
  2310. */
  2311. export interface PersonResponseDto {
  2312. /**
  2313. *
  2314. * @type {string}
  2315. * @memberof PersonResponseDto
  2316. */
  2317. 'birthDate': string | null;
  2318. /**
  2319. *
  2320. * @type {string}
  2321. * @memberof PersonResponseDto
  2322. */
  2323. 'id': string;
  2324. /**
  2325. *
  2326. * @type {boolean}
  2327. * @memberof PersonResponseDto
  2328. */
  2329. 'isHidden': boolean;
  2330. /**
  2331. *
  2332. * @type {string}
  2333. * @memberof PersonResponseDto
  2334. */
  2335. 'name': string;
  2336. /**
  2337. *
  2338. * @type {string}
  2339. * @memberof PersonResponseDto
  2340. */
  2341. 'thumbnailPath': string;
  2342. }
  2343. /**
  2344. *
  2345. * @export
  2346. * @interface PersonStatisticsResponseDto
  2347. */
  2348. export interface PersonStatisticsResponseDto {
  2349. /**
  2350. *
  2351. * @type {number}
  2352. * @memberof PersonStatisticsResponseDto
  2353. */
  2354. 'assets': number;
  2355. }
  2356. /**
  2357. *
  2358. * @export
  2359. * @interface PersonUpdateDto
  2360. */
  2361. export interface PersonUpdateDto {
  2362. /**
  2363. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2364. * @type {string}
  2365. * @memberof PersonUpdateDto
  2366. */
  2367. 'birthDate'?: string | null;
  2368. /**
  2369. * Asset is used to get the feature face thumbnail.
  2370. * @type {string}
  2371. * @memberof PersonUpdateDto
  2372. */
  2373. 'featureFaceAssetId'?: string;
  2374. /**
  2375. * Person visibility
  2376. * @type {boolean}
  2377. * @memberof PersonUpdateDto
  2378. */
  2379. 'isHidden'?: boolean;
  2380. /**
  2381. * Person name.
  2382. * @type {string}
  2383. * @memberof PersonUpdateDto
  2384. */
  2385. 'name'?: string;
  2386. }
  2387. /**
  2388. *
  2389. * @export
  2390. * @interface QueueStatusDto
  2391. */
  2392. export interface QueueStatusDto {
  2393. /**
  2394. *
  2395. * @type {boolean}
  2396. * @memberof QueueStatusDto
  2397. */
  2398. 'isActive': boolean;
  2399. /**
  2400. *
  2401. * @type {boolean}
  2402. * @memberof QueueStatusDto
  2403. */
  2404. 'isPaused': boolean;
  2405. }
  2406. /**
  2407. *
  2408. * @export
  2409. * @interface RecognitionConfig
  2410. */
  2411. export interface RecognitionConfig {
  2412. /**
  2413. *
  2414. * @type {boolean}
  2415. * @memberof RecognitionConfig
  2416. */
  2417. 'enabled': boolean;
  2418. /**
  2419. *
  2420. * @type {number}
  2421. * @memberof RecognitionConfig
  2422. */
  2423. 'maxDistance': number;
  2424. /**
  2425. *
  2426. * @type {number}
  2427. * @memberof RecognitionConfig
  2428. */
  2429. 'minFaces': number;
  2430. /**
  2431. *
  2432. * @type {number}
  2433. * @memberof RecognitionConfig
  2434. */
  2435. 'minScore': number;
  2436. /**
  2437. *
  2438. * @type {string}
  2439. * @memberof RecognitionConfig
  2440. */
  2441. 'modelName': string;
  2442. /**
  2443. *
  2444. * @type {ModelType}
  2445. * @memberof RecognitionConfig
  2446. */
  2447. 'modelType'?: ModelType;
  2448. }
  2449. /**
  2450. *
  2451. * @export
  2452. * @interface ScanLibraryDto
  2453. */
  2454. export interface ScanLibraryDto {
  2455. /**
  2456. *
  2457. * @type {boolean}
  2458. * @memberof ScanLibraryDto
  2459. */
  2460. 'refreshAllFiles'?: boolean;
  2461. /**
  2462. *
  2463. * @type {boolean}
  2464. * @memberof ScanLibraryDto
  2465. */
  2466. 'refreshModifiedFiles'?: boolean;
  2467. }
  2468. /**
  2469. *
  2470. * @export
  2471. * @interface SearchAlbumResponseDto
  2472. */
  2473. export interface SearchAlbumResponseDto {
  2474. /**
  2475. *
  2476. * @type {number}
  2477. * @memberof SearchAlbumResponseDto
  2478. */
  2479. 'count': number;
  2480. /**
  2481. *
  2482. * @type {Array<SearchFacetResponseDto>}
  2483. * @memberof SearchAlbumResponseDto
  2484. */
  2485. 'facets': Array<SearchFacetResponseDto>;
  2486. /**
  2487. *
  2488. * @type {Array<AlbumResponseDto>}
  2489. * @memberof SearchAlbumResponseDto
  2490. */
  2491. 'items': Array<AlbumResponseDto>;
  2492. /**
  2493. *
  2494. * @type {number}
  2495. * @memberof SearchAlbumResponseDto
  2496. */
  2497. 'total': number;
  2498. }
  2499. /**
  2500. *
  2501. * @export
  2502. * @interface SearchAssetDto
  2503. */
  2504. export interface SearchAssetDto {
  2505. /**
  2506. *
  2507. * @type {string}
  2508. * @memberof SearchAssetDto
  2509. */
  2510. 'searchTerm': string;
  2511. }
  2512. /**
  2513. *
  2514. * @export
  2515. * @interface SearchAssetResponseDto
  2516. */
  2517. export interface SearchAssetResponseDto {
  2518. /**
  2519. *
  2520. * @type {number}
  2521. * @memberof SearchAssetResponseDto
  2522. */
  2523. 'count': number;
  2524. /**
  2525. *
  2526. * @type {Array<SearchFacetResponseDto>}
  2527. * @memberof SearchAssetResponseDto
  2528. */
  2529. 'facets': Array<SearchFacetResponseDto>;
  2530. /**
  2531. *
  2532. * @type {Array<AssetResponseDto>}
  2533. * @memberof SearchAssetResponseDto
  2534. */
  2535. 'items': Array<AssetResponseDto>;
  2536. /**
  2537. *
  2538. * @type {number}
  2539. * @memberof SearchAssetResponseDto
  2540. */
  2541. 'total': number;
  2542. }
  2543. /**
  2544. *
  2545. * @export
  2546. * @interface SearchExploreItem
  2547. */
  2548. export interface SearchExploreItem {
  2549. /**
  2550. *
  2551. * @type {AssetResponseDto}
  2552. * @memberof SearchExploreItem
  2553. */
  2554. 'data': AssetResponseDto;
  2555. /**
  2556. *
  2557. * @type {string}
  2558. * @memberof SearchExploreItem
  2559. */
  2560. 'value': string;
  2561. }
  2562. /**
  2563. *
  2564. * @export
  2565. * @interface SearchExploreResponseDto
  2566. */
  2567. export interface SearchExploreResponseDto {
  2568. /**
  2569. *
  2570. * @type {string}
  2571. * @memberof SearchExploreResponseDto
  2572. */
  2573. 'fieldName': string;
  2574. /**
  2575. *
  2576. * @type {Array<SearchExploreItem>}
  2577. * @memberof SearchExploreResponseDto
  2578. */
  2579. 'items': Array<SearchExploreItem>;
  2580. }
  2581. /**
  2582. *
  2583. * @export
  2584. * @interface SearchFacetCountResponseDto
  2585. */
  2586. export interface SearchFacetCountResponseDto {
  2587. /**
  2588. *
  2589. * @type {number}
  2590. * @memberof SearchFacetCountResponseDto
  2591. */
  2592. 'count': number;
  2593. /**
  2594. *
  2595. * @type {string}
  2596. * @memberof SearchFacetCountResponseDto
  2597. */
  2598. 'value': string;
  2599. }
  2600. /**
  2601. *
  2602. * @export
  2603. * @interface SearchFacetResponseDto
  2604. */
  2605. export interface SearchFacetResponseDto {
  2606. /**
  2607. *
  2608. * @type {Array<SearchFacetCountResponseDto>}
  2609. * @memberof SearchFacetResponseDto
  2610. */
  2611. 'counts': Array<SearchFacetCountResponseDto>;
  2612. /**
  2613. *
  2614. * @type {string}
  2615. * @memberof SearchFacetResponseDto
  2616. */
  2617. 'fieldName': string;
  2618. }
  2619. /**
  2620. *
  2621. * @export
  2622. * @interface SearchResponseDto
  2623. */
  2624. export interface SearchResponseDto {
  2625. /**
  2626. *
  2627. * @type {SearchAlbumResponseDto}
  2628. * @memberof SearchResponseDto
  2629. */
  2630. 'albums': SearchAlbumResponseDto;
  2631. /**
  2632. *
  2633. * @type {SearchAssetResponseDto}
  2634. * @memberof SearchResponseDto
  2635. */
  2636. 'assets': SearchAssetResponseDto;
  2637. }
  2638. /**
  2639. *
  2640. * @export
  2641. * @interface ServerConfigDto
  2642. */
  2643. export interface ServerConfigDto {
  2644. /**
  2645. *
  2646. * @type {boolean}
  2647. * @memberof ServerConfigDto
  2648. */
  2649. 'isInitialized': boolean;
  2650. /**
  2651. *
  2652. * @type {string}
  2653. * @memberof ServerConfigDto
  2654. */
  2655. 'loginPageMessage': string;
  2656. /**
  2657. *
  2658. * @type {string}
  2659. * @memberof ServerConfigDto
  2660. */
  2661. 'mapTileUrl': string;
  2662. /**
  2663. *
  2664. * @type {string}
  2665. * @memberof ServerConfigDto
  2666. */
  2667. 'oauthButtonText': string;
  2668. /**
  2669. *
  2670. * @type {number}
  2671. * @memberof ServerConfigDto
  2672. */
  2673. 'trashDays': number;
  2674. }
  2675. /**
  2676. *
  2677. * @export
  2678. * @interface ServerFeaturesDto
  2679. */
  2680. export interface ServerFeaturesDto {
  2681. /**
  2682. *
  2683. * @type {boolean}
  2684. * @memberof ServerFeaturesDto
  2685. */
  2686. 'clipEncode': boolean;
  2687. /**
  2688. *
  2689. * @type {boolean}
  2690. * @memberof ServerFeaturesDto
  2691. */
  2692. 'configFile': boolean;
  2693. /**
  2694. *
  2695. * @type {boolean}
  2696. * @memberof ServerFeaturesDto
  2697. */
  2698. 'facialRecognition': boolean;
  2699. /**
  2700. *
  2701. * @type {boolean}
  2702. * @memberof ServerFeaturesDto
  2703. */
  2704. 'map': boolean;
  2705. /**
  2706. *
  2707. * @type {boolean}
  2708. * @memberof ServerFeaturesDto
  2709. */
  2710. 'oauth': boolean;
  2711. /**
  2712. *
  2713. * @type {boolean}
  2714. * @memberof ServerFeaturesDto
  2715. */
  2716. 'oauthAutoLaunch': boolean;
  2717. /**
  2718. *
  2719. * @type {boolean}
  2720. * @memberof ServerFeaturesDto
  2721. */
  2722. 'passwordLogin': boolean;
  2723. /**
  2724. *
  2725. * @type {boolean}
  2726. * @memberof ServerFeaturesDto
  2727. */
  2728. 'reverseGeocoding': boolean;
  2729. /**
  2730. *
  2731. * @type {boolean}
  2732. * @memberof ServerFeaturesDto
  2733. */
  2734. 'search': boolean;
  2735. /**
  2736. *
  2737. * @type {boolean}
  2738. * @memberof ServerFeaturesDto
  2739. */
  2740. 'sidecar': boolean;
  2741. /**
  2742. *
  2743. * @type {boolean}
  2744. * @memberof ServerFeaturesDto
  2745. */
  2746. 'tagImage': boolean;
  2747. /**
  2748. *
  2749. * @type {boolean}
  2750. * @memberof ServerFeaturesDto
  2751. */
  2752. 'trash': boolean;
  2753. }
  2754. /**
  2755. *
  2756. * @export
  2757. * @interface ServerInfoResponseDto
  2758. */
  2759. export interface ServerInfoResponseDto {
  2760. /**
  2761. *
  2762. * @type {string}
  2763. * @memberof ServerInfoResponseDto
  2764. */
  2765. 'diskAvailable': string;
  2766. /**
  2767. *
  2768. * @type {number}
  2769. * @memberof ServerInfoResponseDto
  2770. */
  2771. 'diskAvailableRaw': number;
  2772. /**
  2773. *
  2774. * @type {string}
  2775. * @memberof ServerInfoResponseDto
  2776. */
  2777. 'diskSize': string;
  2778. /**
  2779. *
  2780. * @type {number}
  2781. * @memberof ServerInfoResponseDto
  2782. */
  2783. 'diskSizeRaw': number;
  2784. /**
  2785. *
  2786. * @type {number}
  2787. * @memberof ServerInfoResponseDto
  2788. */
  2789. 'diskUsagePercentage': number;
  2790. /**
  2791. *
  2792. * @type {string}
  2793. * @memberof ServerInfoResponseDto
  2794. */
  2795. 'diskUse': string;
  2796. /**
  2797. *
  2798. * @type {number}
  2799. * @memberof ServerInfoResponseDto
  2800. */
  2801. 'diskUseRaw': number;
  2802. }
  2803. /**
  2804. *
  2805. * @export
  2806. * @interface ServerMediaTypesResponseDto
  2807. */
  2808. export interface ServerMediaTypesResponseDto {
  2809. /**
  2810. *
  2811. * @type {Array<string>}
  2812. * @memberof ServerMediaTypesResponseDto
  2813. */
  2814. 'image': Array<string>;
  2815. /**
  2816. *
  2817. * @type {Array<string>}
  2818. * @memberof ServerMediaTypesResponseDto
  2819. */
  2820. 'sidecar': Array<string>;
  2821. /**
  2822. *
  2823. * @type {Array<string>}
  2824. * @memberof ServerMediaTypesResponseDto
  2825. */
  2826. 'video': Array<string>;
  2827. }
  2828. /**
  2829. *
  2830. * @export
  2831. * @interface ServerPingResponse
  2832. */
  2833. export interface ServerPingResponse {
  2834. /**
  2835. *
  2836. * @type {string}
  2837. * @memberof ServerPingResponse
  2838. */
  2839. 'res': string;
  2840. }
  2841. /**
  2842. *
  2843. * @export
  2844. * @interface ServerStatsResponseDto
  2845. */
  2846. export interface ServerStatsResponseDto {
  2847. /**
  2848. *
  2849. * @type {number}
  2850. * @memberof ServerStatsResponseDto
  2851. */
  2852. 'photos': number;
  2853. /**
  2854. *
  2855. * @type {number}
  2856. * @memberof ServerStatsResponseDto
  2857. */
  2858. 'usage': number;
  2859. /**
  2860. *
  2861. * @type {Array<UsageByUserDto>}
  2862. * @memberof ServerStatsResponseDto
  2863. */
  2864. 'usageByUser': Array<UsageByUserDto>;
  2865. /**
  2866. *
  2867. * @type {number}
  2868. * @memberof ServerStatsResponseDto
  2869. */
  2870. 'videos': number;
  2871. }
  2872. /**
  2873. *
  2874. * @export
  2875. * @interface ServerThemeDto
  2876. */
  2877. export interface ServerThemeDto {
  2878. /**
  2879. *
  2880. * @type {string}
  2881. * @memberof ServerThemeDto
  2882. */
  2883. 'customCss': string;
  2884. }
  2885. /**
  2886. *
  2887. * @export
  2888. * @interface ServerVersionResponseDto
  2889. */
  2890. export interface ServerVersionResponseDto {
  2891. /**
  2892. *
  2893. * @type {number}
  2894. * @memberof ServerVersionResponseDto
  2895. */
  2896. 'major': number;
  2897. /**
  2898. *
  2899. * @type {number}
  2900. * @memberof ServerVersionResponseDto
  2901. */
  2902. 'minor': number;
  2903. /**
  2904. *
  2905. * @type {number}
  2906. * @memberof ServerVersionResponseDto
  2907. */
  2908. 'patch': number;
  2909. }
  2910. /**
  2911. *
  2912. * @export
  2913. * @interface SharedLinkCreateDto
  2914. */
  2915. export interface SharedLinkCreateDto {
  2916. /**
  2917. *
  2918. * @type {string}
  2919. * @memberof SharedLinkCreateDto
  2920. */
  2921. 'albumId'?: string;
  2922. /**
  2923. *
  2924. * @type {boolean}
  2925. * @memberof SharedLinkCreateDto
  2926. */
  2927. 'allowDownload'?: boolean;
  2928. /**
  2929. *
  2930. * @type {boolean}
  2931. * @memberof SharedLinkCreateDto
  2932. */
  2933. 'allowUpload'?: boolean;
  2934. /**
  2935. *
  2936. * @type {Array<string>}
  2937. * @memberof SharedLinkCreateDto
  2938. */
  2939. 'assetIds'?: Array<string>;
  2940. /**
  2941. *
  2942. * @type {string}
  2943. * @memberof SharedLinkCreateDto
  2944. */
  2945. 'description'?: string;
  2946. /**
  2947. *
  2948. * @type {string}
  2949. * @memberof SharedLinkCreateDto
  2950. */
  2951. 'expiresAt'?: string | null;
  2952. /**
  2953. *
  2954. * @type {string}
  2955. * @memberof SharedLinkCreateDto
  2956. */
  2957. 'password'?: string;
  2958. /**
  2959. *
  2960. * @type {boolean}
  2961. * @memberof SharedLinkCreateDto
  2962. */
  2963. 'showMetadata'?: boolean;
  2964. /**
  2965. *
  2966. * @type {SharedLinkType}
  2967. * @memberof SharedLinkCreateDto
  2968. */
  2969. 'type': SharedLinkType;
  2970. }
  2971. /**
  2972. *
  2973. * @export
  2974. * @interface SharedLinkEditDto
  2975. */
  2976. export interface SharedLinkEditDto {
  2977. /**
  2978. *
  2979. * @type {boolean}
  2980. * @memberof SharedLinkEditDto
  2981. */
  2982. 'allowDownload'?: boolean;
  2983. /**
  2984. *
  2985. * @type {boolean}
  2986. * @memberof SharedLinkEditDto
  2987. */
  2988. 'allowUpload'?: boolean;
  2989. /**
  2990. * Few clients cannot send null to set the expiryTime to never. Setting this flag and not sending expiryAt is considered as null instead. Clients that can send null values can ignore this.
  2991. * @type {boolean}
  2992. * @memberof SharedLinkEditDto
  2993. */
  2994. 'changeExpiryTime'?: boolean;
  2995. /**
  2996. *
  2997. * @type {string}
  2998. * @memberof SharedLinkEditDto
  2999. */
  3000. 'description'?: string;
  3001. /**
  3002. *
  3003. * @type {string}
  3004. * @memberof SharedLinkEditDto
  3005. */
  3006. 'expiresAt'?: string | null;
  3007. /**
  3008. *
  3009. * @type {string}
  3010. * @memberof SharedLinkEditDto
  3011. */
  3012. 'password'?: string;
  3013. /**
  3014. *
  3015. * @type {boolean}
  3016. * @memberof SharedLinkEditDto
  3017. */
  3018. 'showMetadata'?: boolean;
  3019. }
  3020. /**
  3021. *
  3022. * @export
  3023. * @interface SharedLinkResponseDto
  3024. */
  3025. export interface SharedLinkResponseDto {
  3026. /**
  3027. *
  3028. * @type {AlbumResponseDto}
  3029. * @memberof SharedLinkResponseDto
  3030. */
  3031. 'album'?: AlbumResponseDto;
  3032. /**
  3033. *
  3034. * @type {boolean}
  3035. * @memberof SharedLinkResponseDto
  3036. */
  3037. 'allowDownload': boolean;
  3038. /**
  3039. *
  3040. * @type {boolean}
  3041. * @memberof SharedLinkResponseDto
  3042. */
  3043. 'allowUpload': boolean;
  3044. /**
  3045. *
  3046. * @type {Array<AssetResponseDto>}
  3047. * @memberof SharedLinkResponseDto
  3048. */
  3049. 'assets': Array<AssetResponseDto>;
  3050. /**
  3051. *
  3052. * @type {string}
  3053. * @memberof SharedLinkResponseDto
  3054. */
  3055. 'createdAt': string;
  3056. /**
  3057. *
  3058. * @type {string}
  3059. * @memberof SharedLinkResponseDto
  3060. */
  3061. 'description': string | null;
  3062. /**
  3063. *
  3064. * @type {string}
  3065. * @memberof SharedLinkResponseDto
  3066. */
  3067. 'expiresAt': string | null;
  3068. /**
  3069. *
  3070. * @type {string}
  3071. * @memberof SharedLinkResponseDto
  3072. */
  3073. 'id': string;
  3074. /**
  3075. *
  3076. * @type {string}
  3077. * @memberof SharedLinkResponseDto
  3078. */
  3079. 'key': string;
  3080. /**
  3081. *
  3082. * @type {string}
  3083. * @memberof SharedLinkResponseDto
  3084. */
  3085. 'password': string | null;
  3086. /**
  3087. *
  3088. * @type {boolean}
  3089. * @memberof SharedLinkResponseDto
  3090. */
  3091. 'showMetadata': boolean;
  3092. /**
  3093. *
  3094. * @type {string}
  3095. * @memberof SharedLinkResponseDto
  3096. */
  3097. 'token'?: string | null;
  3098. /**
  3099. *
  3100. * @type {SharedLinkType}
  3101. * @memberof SharedLinkResponseDto
  3102. */
  3103. 'type': SharedLinkType;
  3104. /**
  3105. *
  3106. * @type {string}
  3107. * @memberof SharedLinkResponseDto
  3108. */
  3109. 'userId': string;
  3110. }
  3111. /**
  3112. *
  3113. * @export
  3114. * @enum {string}
  3115. */
  3116. export const SharedLinkType = {
  3117. Album: 'ALBUM',
  3118. Individual: 'INDIVIDUAL'
  3119. } as const;
  3120. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3121. /**
  3122. *
  3123. * @export
  3124. * @interface SignUpDto
  3125. */
  3126. export interface SignUpDto {
  3127. /**
  3128. *
  3129. * @type {string}
  3130. * @memberof SignUpDto
  3131. */
  3132. 'email': string;
  3133. /**
  3134. *
  3135. * @type {string}
  3136. * @memberof SignUpDto
  3137. */
  3138. 'firstName': string;
  3139. /**
  3140. *
  3141. * @type {string}
  3142. * @memberof SignUpDto
  3143. */
  3144. 'lastName': string;
  3145. /**
  3146. *
  3147. * @type {string}
  3148. * @memberof SignUpDto
  3149. */
  3150. 'password': string;
  3151. }
  3152. /**
  3153. *
  3154. * @export
  3155. * @interface SmartInfoResponseDto
  3156. */
  3157. export interface SmartInfoResponseDto {
  3158. /**
  3159. *
  3160. * @type {Array<string>}
  3161. * @memberof SmartInfoResponseDto
  3162. */
  3163. 'objects'?: Array<string> | null;
  3164. /**
  3165. *
  3166. * @type {Array<string>}
  3167. * @memberof SmartInfoResponseDto
  3168. */
  3169. 'tags'?: Array<string> | null;
  3170. }
  3171. /**
  3172. *
  3173. * @export
  3174. * @interface SystemConfigDto
  3175. */
  3176. export interface SystemConfigDto {
  3177. /**
  3178. *
  3179. * @type {SystemConfigFFmpegDto}
  3180. * @memberof SystemConfigDto
  3181. */
  3182. 'ffmpeg': SystemConfigFFmpegDto;
  3183. /**
  3184. *
  3185. * @type {SystemConfigJobDto}
  3186. * @memberof SystemConfigDto
  3187. */
  3188. 'job': SystemConfigJobDto;
  3189. /**
  3190. *
  3191. * @type {SystemConfigMachineLearningDto}
  3192. * @memberof SystemConfigDto
  3193. */
  3194. 'machineLearning': SystemConfigMachineLearningDto;
  3195. /**
  3196. *
  3197. * @type {SystemConfigMapDto}
  3198. * @memberof SystemConfigDto
  3199. */
  3200. 'map': SystemConfigMapDto;
  3201. /**
  3202. *
  3203. * @type {SystemConfigNewVersionCheckDto}
  3204. * @memberof SystemConfigDto
  3205. */
  3206. 'newVersionCheck': SystemConfigNewVersionCheckDto;
  3207. /**
  3208. *
  3209. * @type {SystemConfigOAuthDto}
  3210. * @memberof SystemConfigDto
  3211. */
  3212. 'oauth': SystemConfigOAuthDto;
  3213. /**
  3214. *
  3215. * @type {SystemConfigPasswordLoginDto}
  3216. * @memberof SystemConfigDto
  3217. */
  3218. 'passwordLogin': SystemConfigPasswordLoginDto;
  3219. /**
  3220. *
  3221. * @type {SystemConfigReverseGeocodingDto}
  3222. * @memberof SystemConfigDto
  3223. */
  3224. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3225. /**
  3226. *
  3227. * @type {SystemConfigStorageTemplateDto}
  3228. * @memberof SystemConfigDto
  3229. */
  3230. 'storageTemplate': SystemConfigStorageTemplateDto;
  3231. /**
  3232. *
  3233. * @type {SystemConfigThemeDto}
  3234. * @memberof SystemConfigDto
  3235. */
  3236. 'theme': SystemConfigThemeDto;
  3237. /**
  3238. *
  3239. * @type {SystemConfigThumbnailDto}
  3240. * @memberof SystemConfigDto
  3241. */
  3242. 'thumbnail': SystemConfigThumbnailDto;
  3243. /**
  3244. *
  3245. * @type {SystemConfigTrashDto}
  3246. * @memberof SystemConfigDto
  3247. */
  3248. 'trash': SystemConfigTrashDto;
  3249. }
  3250. /**
  3251. *
  3252. * @export
  3253. * @interface SystemConfigFFmpegDto
  3254. */
  3255. export interface SystemConfigFFmpegDto {
  3256. /**
  3257. *
  3258. * @type {TranscodeHWAccel}
  3259. * @memberof SystemConfigFFmpegDto
  3260. */
  3261. 'accel': TranscodeHWAccel;
  3262. /**
  3263. *
  3264. * @type {number}
  3265. * @memberof SystemConfigFFmpegDto
  3266. */
  3267. 'bframes': number;
  3268. /**
  3269. *
  3270. * @type {CQMode}
  3271. * @memberof SystemConfigFFmpegDto
  3272. */
  3273. 'cqMode': CQMode;
  3274. /**
  3275. *
  3276. * @type {number}
  3277. * @memberof SystemConfigFFmpegDto
  3278. */
  3279. 'crf': number;
  3280. /**
  3281. *
  3282. * @type {number}
  3283. * @memberof SystemConfigFFmpegDto
  3284. */
  3285. 'gopSize': number;
  3286. /**
  3287. *
  3288. * @type {string}
  3289. * @memberof SystemConfigFFmpegDto
  3290. */
  3291. 'maxBitrate': string;
  3292. /**
  3293. *
  3294. * @type {number}
  3295. * @memberof SystemConfigFFmpegDto
  3296. */
  3297. 'npl': number;
  3298. /**
  3299. *
  3300. * @type {string}
  3301. * @memberof SystemConfigFFmpegDto
  3302. */
  3303. 'preset': string;
  3304. /**
  3305. *
  3306. * @type {number}
  3307. * @memberof SystemConfigFFmpegDto
  3308. */
  3309. 'refs': number;
  3310. /**
  3311. *
  3312. * @type {AudioCodec}
  3313. * @memberof SystemConfigFFmpegDto
  3314. */
  3315. 'targetAudioCodec': AudioCodec;
  3316. /**
  3317. *
  3318. * @type {string}
  3319. * @memberof SystemConfigFFmpegDto
  3320. */
  3321. 'targetResolution': string;
  3322. /**
  3323. *
  3324. * @type {VideoCodec}
  3325. * @memberof SystemConfigFFmpegDto
  3326. */
  3327. 'targetVideoCodec': VideoCodec;
  3328. /**
  3329. *
  3330. * @type {boolean}
  3331. * @memberof SystemConfigFFmpegDto
  3332. */
  3333. 'temporalAQ': boolean;
  3334. /**
  3335. *
  3336. * @type {number}
  3337. * @memberof SystemConfigFFmpegDto
  3338. */
  3339. 'threads': number;
  3340. /**
  3341. *
  3342. * @type {ToneMapping}
  3343. * @memberof SystemConfigFFmpegDto
  3344. */
  3345. 'tonemap': ToneMapping;
  3346. /**
  3347. *
  3348. * @type {TranscodePolicy}
  3349. * @memberof SystemConfigFFmpegDto
  3350. */
  3351. 'transcode': TranscodePolicy;
  3352. /**
  3353. *
  3354. * @type {boolean}
  3355. * @memberof SystemConfigFFmpegDto
  3356. */
  3357. 'twoPass': boolean;
  3358. }
  3359. /**
  3360. *
  3361. * @export
  3362. * @interface SystemConfigJobDto
  3363. */
  3364. export interface SystemConfigJobDto {
  3365. /**
  3366. *
  3367. * @type {JobSettingsDto}
  3368. * @memberof SystemConfigJobDto
  3369. */
  3370. 'backgroundTask': JobSettingsDto;
  3371. /**
  3372. *
  3373. * @type {JobSettingsDto}
  3374. * @memberof SystemConfigJobDto
  3375. */
  3376. 'clipEncoding': JobSettingsDto;
  3377. /**
  3378. *
  3379. * @type {JobSettingsDto}
  3380. * @memberof SystemConfigJobDto
  3381. */
  3382. 'library': JobSettingsDto;
  3383. /**
  3384. *
  3385. * @type {JobSettingsDto}
  3386. * @memberof SystemConfigJobDto
  3387. */
  3388. 'metadataExtraction': JobSettingsDto;
  3389. /**
  3390. *
  3391. * @type {JobSettingsDto}
  3392. * @memberof SystemConfigJobDto
  3393. */
  3394. 'migration': JobSettingsDto;
  3395. /**
  3396. *
  3397. * @type {JobSettingsDto}
  3398. * @memberof SystemConfigJobDto
  3399. */
  3400. 'objectTagging': JobSettingsDto;
  3401. /**
  3402. *
  3403. * @type {JobSettingsDto}
  3404. * @memberof SystemConfigJobDto
  3405. */
  3406. 'recognizeFaces': JobSettingsDto;
  3407. /**
  3408. *
  3409. * @type {JobSettingsDto}
  3410. * @memberof SystemConfigJobDto
  3411. */
  3412. 'search': JobSettingsDto;
  3413. /**
  3414. *
  3415. * @type {JobSettingsDto}
  3416. * @memberof SystemConfigJobDto
  3417. */
  3418. 'sidecar': JobSettingsDto;
  3419. /**
  3420. *
  3421. * @type {JobSettingsDto}
  3422. * @memberof SystemConfigJobDto
  3423. */
  3424. 'storageTemplateMigration': JobSettingsDto;
  3425. /**
  3426. *
  3427. * @type {JobSettingsDto}
  3428. * @memberof SystemConfigJobDto
  3429. */
  3430. 'thumbnailGeneration': JobSettingsDto;
  3431. /**
  3432. *
  3433. * @type {JobSettingsDto}
  3434. * @memberof SystemConfigJobDto
  3435. */
  3436. 'videoConversion': JobSettingsDto;
  3437. }
  3438. /**
  3439. *
  3440. * @export
  3441. * @interface SystemConfigMachineLearningDto
  3442. */
  3443. export interface SystemConfigMachineLearningDto {
  3444. /**
  3445. *
  3446. * @type {ClassificationConfig}
  3447. * @memberof SystemConfigMachineLearningDto
  3448. */
  3449. 'classification': ClassificationConfig;
  3450. /**
  3451. *
  3452. * @type {CLIPConfig}
  3453. * @memberof SystemConfigMachineLearningDto
  3454. */
  3455. 'clip': CLIPConfig;
  3456. /**
  3457. *
  3458. * @type {boolean}
  3459. * @memberof SystemConfigMachineLearningDto
  3460. */
  3461. 'enabled': boolean;
  3462. /**
  3463. *
  3464. * @type {RecognitionConfig}
  3465. * @memberof SystemConfigMachineLearningDto
  3466. */
  3467. 'facialRecognition': RecognitionConfig;
  3468. /**
  3469. *
  3470. * @type {string}
  3471. * @memberof SystemConfigMachineLearningDto
  3472. */
  3473. 'url': string;
  3474. }
  3475. /**
  3476. *
  3477. * @export
  3478. * @interface SystemConfigMapDto
  3479. */
  3480. export interface SystemConfigMapDto {
  3481. /**
  3482. *
  3483. * @type {boolean}
  3484. * @memberof SystemConfigMapDto
  3485. */
  3486. 'enabled': boolean;
  3487. /**
  3488. *
  3489. * @type {string}
  3490. * @memberof SystemConfigMapDto
  3491. */
  3492. 'tileUrl': string;
  3493. }
  3494. /**
  3495. *
  3496. * @export
  3497. * @interface SystemConfigNewVersionCheckDto
  3498. */
  3499. export interface SystemConfigNewVersionCheckDto {
  3500. /**
  3501. *
  3502. * @type {boolean}
  3503. * @memberof SystemConfigNewVersionCheckDto
  3504. */
  3505. 'enabled': boolean;
  3506. }
  3507. /**
  3508. *
  3509. * @export
  3510. * @interface SystemConfigOAuthDto
  3511. */
  3512. export interface SystemConfigOAuthDto {
  3513. /**
  3514. *
  3515. * @type {boolean}
  3516. * @memberof SystemConfigOAuthDto
  3517. */
  3518. 'autoLaunch': boolean;
  3519. /**
  3520. *
  3521. * @type {boolean}
  3522. * @memberof SystemConfigOAuthDto
  3523. */
  3524. 'autoRegister': boolean;
  3525. /**
  3526. *
  3527. * @type {string}
  3528. * @memberof SystemConfigOAuthDto
  3529. */
  3530. 'buttonText': string;
  3531. /**
  3532. *
  3533. * @type {string}
  3534. * @memberof SystemConfigOAuthDto
  3535. */
  3536. 'clientId': string;
  3537. /**
  3538. *
  3539. * @type {string}
  3540. * @memberof SystemConfigOAuthDto
  3541. */
  3542. 'clientSecret': string;
  3543. /**
  3544. *
  3545. * @type {boolean}
  3546. * @memberof SystemConfigOAuthDto
  3547. */
  3548. 'enabled': boolean;
  3549. /**
  3550. *
  3551. * @type {string}
  3552. * @memberof SystemConfigOAuthDto
  3553. */
  3554. 'issuerUrl': string;
  3555. /**
  3556. *
  3557. * @type {boolean}
  3558. * @memberof SystemConfigOAuthDto
  3559. */
  3560. 'mobileOverrideEnabled': boolean;
  3561. /**
  3562. *
  3563. * @type {string}
  3564. * @memberof SystemConfigOAuthDto
  3565. */
  3566. 'mobileRedirectUri': string;
  3567. /**
  3568. *
  3569. * @type {string}
  3570. * @memberof SystemConfigOAuthDto
  3571. */
  3572. 'scope': string;
  3573. /**
  3574. *
  3575. * @type {string}
  3576. * @memberof SystemConfigOAuthDto
  3577. */
  3578. 'storageLabelClaim': string;
  3579. }
  3580. /**
  3581. *
  3582. * @export
  3583. * @interface SystemConfigPasswordLoginDto
  3584. */
  3585. export interface SystemConfigPasswordLoginDto {
  3586. /**
  3587. *
  3588. * @type {boolean}
  3589. * @memberof SystemConfigPasswordLoginDto
  3590. */
  3591. 'enabled': boolean;
  3592. }
  3593. /**
  3594. *
  3595. * @export
  3596. * @interface SystemConfigReverseGeocodingDto
  3597. */
  3598. export interface SystemConfigReverseGeocodingDto {
  3599. /**
  3600. *
  3601. * @type {CitiesFile}
  3602. * @memberof SystemConfigReverseGeocodingDto
  3603. */
  3604. 'citiesFileOverride': CitiesFile;
  3605. /**
  3606. *
  3607. * @type {boolean}
  3608. * @memberof SystemConfigReverseGeocodingDto
  3609. */
  3610. 'enabled': boolean;
  3611. }
  3612. /**
  3613. *
  3614. * @export
  3615. * @interface SystemConfigStorageTemplateDto
  3616. */
  3617. export interface SystemConfigStorageTemplateDto {
  3618. /**
  3619. *
  3620. * @type {string}
  3621. * @memberof SystemConfigStorageTemplateDto
  3622. */
  3623. 'template': string;
  3624. }
  3625. /**
  3626. *
  3627. * @export
  3628. * @interface SystemConfigTemplateStorageOptionDto
  3629. */
  3630. export interface SystemConfigTemplateStorageOptionDto {
  3631. /**
  3632. *
  3633. * @type {Array<string>}
  3634. * @memberof SystemConfigTemplateStorageOptionDto
  3635. */
  3636. 'dayOptions': Array<string>;
  3637. /**
  3638. *
  3639. * @type {Array<string>}
  3640. * @memberof SystemConfigTemplateStorageOptionDto
  3641. */
  3642. 'hourOptions': Array<string>;
  3643. /**
  3644. *
  3645. * @type {Array<string>}
  3646. * @memberof SystemConfigTemplateStorageOptionDto
  3647. */
  3648. 'minuteOptions': Array<string>;
  3649. /**
  3650. *
  3651. * @type {Array<string>}
  3652. * @memberof SystemConfigTemplateStorageOptionDto
  3653. */
  3654. 'monthOptions': Array<string>;
  3655. /**
  3656. *
  3657. * @type {Array<string>}
  3658. * @memberof SystemConfigTemplateStorageOptionDto
  3659. */
  3660. 'presetOptions': Array<string>;
  3661. /**
  3662. *
  3663. * @type {Array<string>}
  3664. * @memberof SystemConfigTemplateStorageOptionDto
  3665. */
  3666. 'secondOptions': Array<string>;
  3667. /**
  3668. *
  3669. * @type {Array<string>}
  3670. * @memberof SystemConfigTemplateStorageOptionDto
  3671. */
  3672. 'weekOptions': Array<string>;
  3673. /**
  3674. *
  3675. * @type {Array<string>}
  3676. * @memberof SystemConfigTemplateStorageOptionDto
  3677. */
  3678. 'yearOptions': Array<string>;
  3679. }
  3680. /**
  3681. *
  3682. * @export
  3683. * @interface SystemConfigThemeDto
  3684. */
  3685. export interface SystemConfigThemeDto {
  3686. /**
  3687. *
  3688. * @type {string}
  3689. * @memberof SystemConfigThemeDto
  3690. */
  3691. 'customCss': string;
  3692. }
  3693. /**
  3694. *
  3695. * @export
  3696. * @interface SystemConfigThumbnailDto
  3697. */
  3698. export interface SystemConfigThumbnailDto {
  3699. /**
  3700. *
  3701. * @type {Colorspace}
  3702. * @memberof SystemConfigThumbnailDto
  3703. */
  3704. 'colorspace': Colorspace;
  3705. /**
  3706. *
  3707. * @type {number}
  3708. * @memberof SystemConfigThumbnailDto
  3709. */
  3710. 'jpegSize': number;
  3711. /**
  3712. *
  3713. * @type {number}
  3714. * @memberof SystemConfigThumbnailDto
  3715. */
  3716. 'quality': number;
  3717. /**
  3718. *
  3719. * @type {number}
  3720. * @memberof SystemConfigThumbnailDto
  3721. */
  3722. 'webpSize': number;
  3723. }
  3724. /**
  3725. *
  3726. * @export
  3727. * @interface SystemConfigTrashDto
  3728. */
  3729. export interface SystemConfigTrashDto {
  3730. /**
  3731. *
  3732. * @type {number}
  3733. * @memberof SystemConfigTrashDto
  3734. */
  3735. 'days': number;
  3736. /**
  3737. *
  3738. * @type {boolean}
  3739. * @memberof SystemConfigTrashDto
  3740. */
  3741. 'enabled': boolean;
  3742. }
  3743. /**
  3744. *
  3745. * @export
  3746. * @interface TagResponseDto
  3747. */
  3748. export interface TagResponseDto {
  3749. /**
  3750. *
  3751. * @type {string}
  3752. * @memberof TagResponseDto
  3753. */
  3754. 'id': string;
  3755. /**
  3756. *
  3757. * @type {string}
  3758. * @memberof TagResponseDto
  3759. */
  3760. 'name': string;
  3761. /**
  3762. *
  3763. * @type {TagTypeEnum}
  3764. * @memberof TagResponseDto
  3765. */
  3766. 'type': TagTypeEnum;
  3767. /**
  3768. *
  3769. * @type {string}
  3770. * @memberof TagResponseDto
  3771. */
  3772. 'userId': string;
  3773. }
  3774. /**
  3775. *
  3776. * @export
  3777. * @enum {string}
  3778. */
  3779. export const TagTypeEnum = {
  3780. Object: 'OBJECT',
  3781. Face: 'FACE',
  3782. Custom: 'CUSTOM'
  3783. } as const;
  3784. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3785. /**
  3786. *
  3787. * @export
  3788. * @enum {string}
  3789. */
  3790. export const ThumbnailFormat = {
  3791. Jpeg: 'JPEG',
  3792. Webp: 'WEBP'
  3793. } as const;
  3794. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3795. /**
  3796. *
  3797. * @export
  3798. * @interface TimeBucketResponseDto
  3799. */
  3800. export interface TimeBucketResponseDto {
  3801. /**
  3802. *
  3803. * @type {number}
  3804. * @memberof TimeBucketResponseDto
  3805. */
  3806. 'count': number;
  3807. /**
  3808. *
  3809. * @type {string}
  3810. * @memberof TimeBucketResponseDto
  3811. */
  3812. 'timeBucket': string;
  3813. }
  3814. /**
  3815. *
  3816. * @export
  3817. * @enum {string}
  3818. */
  3819. export const TimeBucketSize = {
  3820. Day: 'DAY',
  3821. Month: 'MONTH'
  3822. } as const;
  3823. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3824. /**
  3825. *
  3826. * @export
  3827. * @enum {string}
  3828. */
  3829. export const ToneMapping = {
  3830. Hable: 'hable',
  3831. Mobius: 'mobius',
  3832. Reinhard: 'reinhard',
  3833. Disabled: 'disabled'
  3834. } as const;
  3835. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3836. /**
  3837. *
  3838. * @export
  3839. * @enum {string}
  3840. */
  3841. export const TranscodeHWAccel = {
  3842. Nvenc: 'nvenc',
  3843. Qsv: 'qsv',
  3844. Vaapi: 'vaapi',
  3845. Disabled: 'disabled'
  3846. } as const;
  3847. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3848. /**
  3849. *
  3850. * @export
  3851. * @enum {string}
  3852. */
  3853. export const TranscodePolicy = {
  3854. All: 'all',
  3855. Optimal: 'optimal',
  3856. Required: 'required',
  3857. Disabled: 'disabled'
  3858. } as const;
  3859. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3860. /**
  3861. *
  3862. * @export
  3863. * @interface UpdateAlbumDto
  3864. */
  3865. export interface UpdateAlbumDto {
  3866. /**
  3867. *
  3868. * @type {string}
  3869. * @memberof UpdateAlbumDto
  3870. */
  3871. 'albumName'?: string;
  3872. /**
  3873. *
  3874. * @type {string}
  3875. * @memberof UpdateAlbumDto
  3876. */
  3877. 'albumThumbnailAssetId'?: string;
  3878. /**
  3879. *
  3880. * @type {string}
  3881. * @memberof UpdateAlbumDto
  3882. */
  3883. 'description'?: string;
  3884. }
  3885. /**
  3886. *
  3887. * @export
  3888. * @interface UpdateAssetDto
  3889. */
  3890. export interface UpdateAssetDto {
  3891. /**
  3892. *
  3893. * @type {string}
  3894. * @memberof UpdateAssetDto
  3895. */
  3896. 'description'?: string;
  3897. /**
  3898. *
  3899. * @type {boolean}
  3900. * @memberof UpdateAssetDto
  3901. */
  3902. 'isArchived'?: boolean;
  3903. /**
  3904. *
  3905. * @type {boolean}
  3906. * @memberof UpdateAssetDto
  3907. */
  3908. 'isFavorite'?: boolean;
  3909. }
  3910. /**
  3911. *
  3912. * @export
  3913. * @interface UpdateLibraryDto
  3914. */
  3915. export interface UpdateLibraryDto {
  3916. /**
  3917. *
  3918. * @type {Array<string>}
  3919. * @memberof UpdateLibraryDto
  3920. */
  3921. 'exclusionPatterns'?: Array<string>;
  3922. /**
  3923. *
  3924. * @type {Array<string>}
  3925. * @memberof UpdateLibraryDto
  3926. */
  3927. 'importPaths'?: Array<string>;
  3928. /**
  3929. *
  3930. * @type {boolean}
  3931. * @memberof UpdateLibraryDto
  3932. */
  3933. 'isVisible'?: boolean;
  3934. /**
  3935. *
  3936. * @type {string}
  3937. * @memberof UpdateLibraryDto
  3938. */
  3939. 'name'?: string;
  3940. }
  3941. /**
  3942. *
  3943. * @export
  3944. * @interface UpdateStackParentDto
  3945. */
  3946. export interface UpdateStackParentDto {
  3947. /**
  3948. *
  3949. * @type {string}
  3950. * @memberof UpdateStackParentDto
  3951. */
  3952. 'newParentId': string;
  3953. /**
  3954. *
  3955. * @type {string}
  3956. * @memberof UpdateStackParentDto
  3957. */
  3958. 'oldParentId': string;
  3959. }
  3960. /**
  3961. *
  3962. * @export
  3963. * @interface UpdateTagDto
  3964. */
  3965. export interface UpdateTagDto {
  3966. /**
  3967. *
  3968. * @type {string}
  3969. * @memberof UpdateTagDto
  3970. */
  3971. 'name'?: string;
  3972. }
  3973. /**
  3974. *
  3975. * @export
  3976. * @interface UpdateUserDto
  3977. */
  3978. export interface UpdateUserDto {
  3979. /**
  3980. *
  3981. * @type {string}
  3982. * @memberof UpdateUserDto
  3983. */
  3984. 'email'?: string;
  3985. /**
  3986. *
  3987. * @type {string}
  3988. * @memberof UpdateUserDto
  3989. */
  3990. 'externalPath'?: string;
  3991. /**
  3992. *
  3993. * @type {string}
  3994. * @memberof UpdateUserDto
  3995. */
  3996. 'firstName'?: string;
  3997. /**
  3998. *
  3999. * @type {string}
  4000. * @memberof UpdateUserDto
  4001. */
  4002. 'id': string;
  4003. /**
  4004. *
  4005. * @type {boolean}
  4006. * @memberof UpdateUserDto
  4007. */
  4008. 'isAdmin'?: boolean;
  4009. /**
  4010. *
  4011. * @type {string}
  4012. * @memberof UpdateUserDto
  4013. */
  4014. 'lastName'?: string;
  4015. /**
  4016. *
  4017. * @type {boolean}
  4018. * @memberof UpdateUserDto
  4019. */
  4020. 'memoriesEnabled'?: boolean;
  4021. /**
  4022. *
  4023. * @type {string}
  4024. * @memberof UpdateUserDto
  4025. */
  4026. 'password'?: string;
  4027. /**
  4028. *
  4029. * @type {boolean}
  4030. * @memberof UpdateUserDto
  4031. */
  4032. 'shouldChangePassword'?: boolean;
  4033. /**
  4034. *
  4035. * @type {string}
  4036. * @memberof UpdateUserDto
  4037. */
  4038. 'storageLabel'?: string;
  4039. }
  4040. /**
  4041. *
  4042. * @export
  4043. * @interface UsageByUserDto
  4044. */
  4045. export interface UsageByUserDto {
  4046. /**
  4047. *
  4048. * @type {number}
  4049. * @memberof UsageByUserDto
  4050. */
  4051. 'photos': number;
  4052. /**
  4053. *
  4054. * @type {number}
  4055. * @memberof UsageByUserDto
  4056. */
  4057. 'usage': number;
  4058. /**
  4059. *
  4060. * @type {string}
  4061. * @memberof UsageByUserDto
  4062. */
  4063. 'userFirstName': string;
  4064. /**
  4065. *
  4066. * @type {string}
  4067. * @memberof UsageByUserDto
  4068. */
  4069. 'userId': string;
  4070. /**
  4071. *
  4072. * @type {string}
  4073. * @memberof UsageByUserDto
  4074. */
  4075. 'userLastName': string;
  4076. /**
  4077. *
  4078. * @type {number}
  4079. * @memberof UsageByUserDto
  4080. */
  4081. 'videos': number;
  4082. }
  4083. /**
  4084. *
  4085. * @export
  4086. * @interface UserCountResponseDto
  4087. */
  4088. export interface UserCountResponseDto {
  4089. /**
  4090. *
  4091. * @type {number}
  4092. * @memberof UserCountResponseDto
  4093. */
  4094. 'userCount': number;
  4095. }
  4096. /**
  4097. *
  4098. * @export
  4099. * @interface UserResponseDto
  4100. */
  4101. export interface UserResponseDto {
  4102. /**
  4103. *
  4104. * @type {string}
  4105. * @memberof UserResponseDto
  4106. */
  4107. 'createdAt': string;
  4108. /**
  4109. *
  4110. * @type {string}
  4111. * @memberof UserResponseDto
  4112. */
  4113. 'deletedAt': string | null;
  4114. /**
  4115. *
  4116. * @type {string}
  4117. * @memberof UserResponseDto
  4118. */
  4119. 'email': string;
  4120. /**
  4121. *
  4122. * @type {string}
  4123. * @memberof UserResponseDto
  4124. */
  4125. 'externalPath': string | null;
  4126. /**
  4127. *
  4128. * @type {string}
  4129. * @memberof UserResponseDto
  4130. */
  4131. 'firstName': string;
  4132. /**
  4133. *
  4134. * @type {string}
  4135. * @memberof UserResponseDto
  4136. */
  4137. 'id': string;
  4138. /**
  4139. *
  4140. * @type {boolean}
  4141. * @memberof UserResponseDto
  4142. */
  4143. 'isAdmin': boolean;
  4144. /**
  4145. *
  4146. * @type {string}
  4147. * @memberof UserResponseDto
  4148. */
  4149. 'lastName': string;
  4150. /**
  4151. *
  4152. * @type {boolean}
  4153. * @memberof UserResponseDto
  4154. */
  4155. 'memoriesEnabled'?: boolean;
  4156. /**
  4157. *
  4158. * @type {string}
  4159. * @memberof UserResponseDto
  4160. */
  4161. 'oauthId': string;
  4162. /**
  4163. *
  4164. * @type {string}
  4165. * @memberof UserResponseDto
  4166. */
  4167. 'profileImagePath': string;
  4168. /**
  4169. *
  4170. * @type {boolean}
  4171. * @memberof UserResponseDto
  4172. */
  4173. 'shouldChangePassword': boolean;
  4174. /**
  4175. *
  4176. * @type {string}
  4177. * @memberof UserResponseDto
  4178. */
  4179. 'storageLabel': string | null;
  4180. /**
  4181. *
  4182. * @type {string}
  4183. * @memberof UserResponseDto
  4184. */
  4185. 'updatedAt': string;
  4186. }
  4187. /**
  4188. *
  4189. * @export
  4190. * @interface ValidateAccessTokenResponseDto
  4191. */
  4192. export interface ValidateAccessTokenResponseDto {
  4193. /**
  4194. *
  4195. * @type {boolean}
  4196. * @memberof ValidateAccessTokenResponseDto
  4197. */
  4198. 'authStatus': boolean;
  4199. }
  4200. /**
  4201. *
  4202. * @export
  4203. * @enum {string}
  4204. */
  4205. export const VideoCodec = {
  4206. H264: 'h264',
  4207. Hevc: 'hevc',
  4208. Vp9: 'vp9'
  4209. } as const;
  4210. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4211. /**
  4212. * APIKeyApi - axios parameter creator
  4213. * @export
  4214. */
  4215. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4216. return {
  4217. /**
  4218. *
  4219. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4220. * @param {*} [options] Override http request option.
  4221. * @throws {RequiredError}
  4222. */
  4223. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4224. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4225. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4226. const localVarPath = `/api-key`;
  4227. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4228. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4229. let baseOptions;
  4230. if (configuration) {
  4231. baseOptions = configuration.baseOptions;
  4232. }
  4233. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4234. const localVarHeaderParameter = {} as any;
  4235. const localVarQueryParameter = {} as any;
  4236. // authentication cookie required
  4237. // authentication api_key required
  4238. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4239. // authentication bearer required
  4240. // http bearer authentication required
  4241. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4242. localVarHeaderParameter['Content-Type'] = 'application/json';
  4243. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4244. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4245. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4246. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4247. return {
  4248. url: toPathString(localVarUrlObj),
  4249. options: localVarRequestOptions,
  4250. };
  4251. },
  4252. /**
  4253. *
  4254. * @param {string} id
  4255. * @param {*} [options] Override http request option.
  4256. * @throws {RequiredError}
  4257. */
  4258. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4259. // verify required parameter 'id' is not null or undefined
  4260. assertParamExists('deleteKey', 'id', id)
  4261. const localVarPath = `/api-key/{id}`
  4262. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4263. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4264. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4265. let baseOptions;
  4266. if (configuration) {
  4267. baseOptions = configuration.baseOptions;
  4268. }
  4269. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4270. const localVarHeaderParameter = {} as any;
  4271. const localVarQueryParameter = {} as any;
  4272. // authentication cookie required
  4273. // authentication api_key required
  4274. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4275. // authentication bearer required
  4276. // http bearer authentication required
  4277. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4278. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4279. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4280. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4281. return {
  4282. url: toPathString(localVarUrlObj),
  4283. options: localVarRequestOptions,
  4284. };
  4285. },
  4286. /**
  4287. *
  4288. * @param {string} id
  4289. * @param {*} [options] Override http request option.
  4290. * @throws {RequiredError}
  4291. */
  4292. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4293. // verify required parameter 'id' is not null or undefined
  4294. assertParamExists('getKey', 'id', id)
  4295. const localVarPath = `/api-key/{id}`
  4296. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4297. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4298. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4299. let baseOptions;
  4300. if (configuration) {
  4301. baseOptions = configuration.baseOptions;
  4302. }
  4303. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4304. const localVarHeaderParameter = {} as any;
  4305. const localVarQueryParameter = {} as any;
  4306. // authentication cookie required
  4307. // authentication api_key required
  4308. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4309. // authentication bearer required
  4310. // http bearer authentication required
  4311. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4312. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4313. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4314. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4315. return {
  4316. url: toPathString(localVarUrlObj),
  4317. options: localVarRequestOptions,
  4318. };
  4319. },
  4320. /**
  4321. *
  4322. * @param {*} [options] Override http request option.
  4323. * @throws {RequiredError}
  4324. */
  4325. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4326. const localVarPath = `/api-key`;
  4327. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4328. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4329. let baseOptions;
  4330. if (configuration) {
  4331. baseOptions = configuration.baseOptions;
  4332. }
  4333. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4334. const localVarHeaderParameter = {} as any;
  4335. const localVarQueryParameter = {} as any;
  4336. // authentication cookie required
  4337. // authentication api_key required
  4338. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4339. // authentication bearer required
  4340. // http bearer authentication required
  4341. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4342. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4343. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4344. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4345. return {
  4346. url: toPathString(localVarUrlObj),
  4347. options: localVarRequestOptions,
  4348. };
  4349. },
  4350. /**
  4351. *
  4352. * @param {string} id
  4353. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4354. * @param {*} [options] Override http request option.
  4355. * @throws {RequiredError}
  4356. */
  4357. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4358. // verify required parameter 'id' is not null or undefined
  4359. assertParamExists('updateKey', 'id', id)
  4360. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4361. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4362. const localVarPath = `/api-key/{id}`
  4363. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4364. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4365. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4366. let baseOptions;
  4367. if (configuration) {
  4368. baseOptions = configuration.baseOptions;
  4369. }
  4370. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4371. const localVarHeaderParameter = {} as any;
  4372. const localVarQueryParameter = {} as any;
  4373. // authentication cookie required
  4374. // authentication api_key required
  4375. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4376. // authentication bearer required
  4377. // http bearer authentication required
  4378. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4379. localVarHeaderParameter['Content-Type'] = 'application/json';
  4380. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4381. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4382. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4383. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4384. return {
  4385. url: toPathString(localVarUrlObj),
  4386. options: localVarRequestOptions,
  4387. };
  4388. },
  4389. }
  4390. };
  4391. /**
  4392. * APIKeyApi - functional programming interface
  4393. * @export
  4394. */
  4395. export const APIKeyApiFp = function(configuration?: Configuration) {
  4396. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4397. return {
  4398. /**
  4399. *
  4400. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4401. * @param {*} [options] Override http request option.
  4402. * @throws {RequiredError}
  4403. */
  4404. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4405. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  4406. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4407. },
  4408. /**
  4409. *
  4410. * @param {string} id
  4411. * @param {*} [options] Override http request option.
  4412. * @throws {RequiredError}
  4413. */
  4414. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4415. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  4416. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4417. },
  4418. /**
  4419. *
  4420. * @param {string} id
  4421. * @param {*} [options] Override http request option.
  4422. * @throws {RequiredError}
  4423. */
  4424. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4425. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  4426. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4427. },
  4428. /**
  4429. *
  4430. * @param {*} [options] Override http request option.
  4431. * @throws {RequiredError}
  4432. */
  4433. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4434. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  4435. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4436. },
  4437. /**
  4438. *
  4439. * @param {string} id
  4440. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4441. * @param {*} [options] Override http request option.
  4442. * @throws {RequiredError}
  4443. */
  4444. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4445. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  4446. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4447. },
  4448. }
  4449. };
  4450. /**
  4451. * APIKeyApi - factory interface
  4452. * @export
  4453. */
  4454. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4455. const localVarFp = APIKeyApiFp(configuration)
  4456. return {
  4457. /**
  4458. *
  4459. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4460. * @param {*} [options] Override http request option.
  4461. * @throws {RequiredError}
  4462. */
  4463. createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4464. return localVarFp.createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4465. },
  4466. /**
  4467. *
  4468. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4469. * @param {*} [options] Override http request option.
  4470. * @throws {RequiredError}
  4471. */
  4472. deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4473. return localVarFp.deleteKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4474. },
  4475. /**
  4476. *
  4477. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4478. * @param {*} [options] Override http request option.
  4479. * @throws {RequiredError}
  4480. */
  4481. getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4482. return localVarFp.getKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4483. },
  4484. /**
  4485. *
  4486. * @param {*} [options] Override http request option.
  4487. * @throws {RequiredError}
  4488. */
  4489. getKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4490. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  4491. },
  4492. /**
  4493. *
  4494. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4495. * @param {*} [options] Override http request option.
  4496. * @throws {RequiredError}
  4497. */
  4498. updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4499. return localVarFp.updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4500. },
  4501. };
  4502. };
  4503. /**
  4504. * Request parameters for createKey operation in APIKeyApi.
  4505. * @export
  4506. * @interface APIKeyApiCreateKeyRequest
  4507. */
  4508. export interface APIKeyApiCreateKeyRequest {
  4509. /**
  4510. *
  4511. * @type {APIKeyCreateDto}
  4512. * @memberof APIKeyApiCreateKey
  4513. */
  4514. readonly aPIKeyCreateDto: APIKeyCreateDto
  4515. }
  4516. /**
  4517. * Request parameters for deleteKey operation in APIKeyApi.
  4518. * @export
  4519. * @interface APIKeyApiDeleteKeyRequest
  4520. */
  4521. export interface APIKeyApiDeleteKeyRequest {
  4522. /**
  4523. *
  4524. * @type {string}
  4525. * @memberof APIKeyApiDeleteKey
  4526. */
  4527. readonly id: string
  4528. }
  4529. /**
  4530. * Request parameters for getKey operation in APIKeyApi.
  4531. * @export
  4532. * @interface APIKeyApiGetKeyRequest
  4533. */
  4534. export interface APIKeyApiGetKeyRequest {
  4535. /**
  4536. *
  4537. * @type {string}
  4538. * @memberof APIKeyApiGetKey
  4539. */
  4540. readonly id: string
  4541. }
  4542. /**
  4543. * Request parameters for updateKey operation in APIKeyApi.
  4544. * @export
  4545. * @interface APIKeyApiUpdateKeyRequest
  4546. */
  4547. export interface APIKeyApiUpdateKeyRequest {
  4548. /**
  4549. *
  4550. * @type {string}
  4551. * @memberof APIKeyApiUpdateKey
  4552. */
  4553. readonly id: string
  4554. /**
  4555. *
  4556. * @type {APIKeyUpdateDto}
  4557. * @memberof APIKeyApiUpdateKey
  4558. */
  4559. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4560. }
  4561. /**
  4562. * APIKeyApi - object-oriented interface
  4563. * @export
  4564. * @class APIKeyApi
  4565. * @extends {BaseAPI}
  4566. */
  4567. export class APIKeyApi extends BaseAPI {
  4568. /**
  4569. *
  4570. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4571. * @param {*} [options] Override http request option.
  4572. * @throws {RequiredError}
  4573. * @memberof APIKeyApi
  4574. */
  4575. public createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig) {
  4576. return APIKeyApiFp(this.configuration).createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4577. }
  4578. /**
  4579. *
  4580. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4581. * @param {*} [options] Override http request option.
  4582. * @throws {RequiredError}
  4583. * @memberof APIKeyApi
  4584. */
  4585. public deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig) {
  4586. return APIKeyApiFp(this.configuration).deleteKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4587. }
  4588. /**
  4589. *
  4590. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4591. * @param {*} [options] Override http request option.
  4592. * @throws {RequiredError}
  4593. * @memberof APIKeyApi
  4594. */
  4595. public getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig) {
  4596. return APIKeyApiFp(this.configuration).getKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4597. }
  4598. /**
  4599. *
  4600. * @param {*} [options] Override http request option.
  4601. * @throws {RequiredError}
  4602. * @memberof APIKeyApi
  4603. */
  4604. public getKeys(options?: AxiosRequestConfig) {
  4605. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  4606. }
  4607. /**
  4608. *
  4609. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4610. * @param {*} [options] Override http request option.
  4611. * @throws {RequiredError}
  4612. * @memberof APIKeyApi
  4613. */
  4614. public updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig) {
  4615. return APIKeyApiFp(this.configuration).updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4616. }
  4617. }
  4618. /**
  4619. * AlbumApi - axios parameter creator
  4620. * @export
  4621. */
  4622. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  4623. return {
  4624. /**
  4625. *
  4626. * @param {string} id
  4627. * @param {BulkIdsDto} bulkIdsDto
  4628. * @param {string} [key]
  4629. * @param {*} [options] Override http request option.
  4630. * @throws {RequiredError}
  4631. */
  4632. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4633. // verify required parameter 'id' is not null or undefined
  4634. assertParamExists('addAssetsToAlbum', 'id', id)
  4635. // verify required parameter 'bulkIdsDto' is not null or undefined
  4636. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  4637. const localVarPath = `/album/{id}/assets`
  4638. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4639. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4640. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4641. let baseOptions;
  4642. if (configuration) {
  4643. baseOptions = configuration.baseOptions;
  4644. }
  4645. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4646. const localVarHeaderParameter = {} as any;
  4647. const localVarQueryParameter = {} as any;
  4648. // authentication cookie required
  4649. // authentication api_key required
  4650. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4651. // authentication bearer required
  4652. // http bearer authentication required
  4653. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4654. if (key !== undefined) {
  4655. localVarQueryParameter['key'] = key;
  4656. }
  4657. localVarHeaderParameter['Content-Type'] = 'application/json';
  4658. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4659. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4660. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4661. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4662. return {
  4663. url: toPathString(localVarUrlObj),
  4664. options: localVarRequestOptions,
  4665. };
  4666. },
  4667. /**
  4668. *
  4669. * @param {string} id
  4670. * @param {AddUsersDto} addUsersDto
  4671. * @param {*} [options] Override http request option.
  4672. * @throws {RequiredError}
  4673. */
  4674. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4675. // verify required parameter 'id' is not null or undefined
  4676. assertParamExists('addUsersToAlbum', 'id', id)
  4677. // verify required parameter 'addUsersDto' is not null or undefined
  4678. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  4679. const localVarPath = `/album/{id}/users`
  4680. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4681. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4682. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4683. let baseOptions;
  4684. if (configuration) {
  4685. baseOptions = configuration.baseOptions;
  4686. }
  4687. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4688. const localVarHeaderParameter = {} as any;
  4689. const localVarQueryParameter = {} as any;
  4690. // authentication cookie required
  4691. // authentication api_key required
  4692. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4693. // authentication bearer required
  4694. // http bearer authentication required
  4695. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4696. localVarHeaderParameter['Content-Type'] = 'application/json';
  4697. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4698. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4699. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4700. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  4701. return {
  4702. url: toPathString(localVarUrlObj),
  4703. options: localVarRequestOptions,
  4704. };
  4705. },
  4706. /**
  4707. *
  4708. * @param {CreateAlbumDto} createAlbumDto
  4709. * @param {*} [options] Override http request option.
  4710. * @throws {RequiredError}
  4711. */
  4712. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4713. // verify required parameter 'createAlbumDto' is not null or undefined
  4714. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  4715. const localVarPath = `/album`;
  4716. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4717. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4718. let baseOptions;
  4719. if (configuration) {
  4720. baseOptions = configuration.baseOptions;
  4721. }
  4722. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4723. const localVarHeaderParameter = {} as any;
  4724. const localVarQueryParameter = {} as any;
  4725. // authentication cookie required
  4726. // authentication api_key required
  4727. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4728. // authentication bearer required
  4729. // http bearer authentication required
  4730. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4731. localVarHeaderParameter['Content-Type'] = 'application/json';
  4732. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4733. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4734. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4735. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  4736. return {
  4737. url: toPathString(localVarUrlObj),
  4738. options: localVarRequestOptions,
  4739. };
  4740. },
  4741. /**
  4742. *
  4743. * @param {string} id
  4744. * @param {*} [options] Override http request option.
  4745. * @throws {RequiredError}
  4746. */
  4747. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4748. // verify required parameter 'id' is not null or undefined
  4749. assertParamExists('deleteAlbum', 'id', id)
  4750. const localVarPath = `/album/{id}`
  4751. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4752. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4753. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4754. let baseOptions;
  4755. if (configuration) {
  4756. baseOptions = configuration.baseOptions;
  4757. }
  4758. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4759. const localVarHeaderParameter = {} as any;
  4760. const localVarQueryParameter = {} as any;
  4761. // authentication cookie required
  4762. // authentication api_key required
  4763. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4764. // authentication bearer required
  4765. // http bearer authentication required
  4766. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4767. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4768. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4769. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4770. return {
  4771. url: toPathString(localVarUrlObj),
  4772. options: localVarRequestOptions,
  4773. };
  4774. },
  4775. /**
  4776. *
  4777. * @param {*} [options] Override http request option.
  4778. * @throws {RequiredError}
  4779. */
  4780. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4781. const localVarPath = `/album/count`;
  4782. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4783. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4784. let baseOptions;
  4785. if (configuration) {
  4786. baseOptions = configuration.baseOptions;
  4787. }
  4788. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4789. const localVarHeaderParameter = {} as any;
  4790. const localVarQueryParameter = {} as any;
  4791. // authentication cookie required
  4792. // authentication api_key required
  4793. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4794. // authentication bearer required
  4795. // http bearer authentication required
  4796. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4797. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4798. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4799. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4800. return {
  4801. url: toPathString(localVarUrlObj),
  4802. options: localVarRequestOptions,
  4803. };
  4804. },
  4805. /**
  4806. *
  4807. * @param {string} id
  4808. * @param {boolean} [withoutAssets]
  4809. * @param {string} [key]
  4810. * @param {*} [options] Override http request option.
  4811. * @throws {RequiredError}
  4812. */
  4813. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4814. // verify required parameter 'id' is not null or undefined
  4815. assertParamExists('getAlbumInfo', 'id', id)
  4816. const localVarPath = `/album/{id}`
  4817. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4818. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4819. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4820. let baseOptions;
  4821. if (configuration) {
  4822. baseOptions = configuration.baseOptions;
  4823. }
  4824. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4825. const localVarHeaderParameter = {} as any;
  4826. const localVarQueryParameter = {} as any;
  4827. // authentication cookie required
  4828. // authentication api_key required
  4829. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4830. // authentication bearer required
  4831. // http bearer authentication required
  4832. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4833. if (withoutAssets !== undefined) {
  4834. localVarQueryParameter['withoutAssets'] = withoutAssets;
  4835. }
  4836. if (key !== undefined) {
  4837. localVarQueryParameter['key'] = key;
  4838. }
  4839. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4840. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4841. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4842. return {
  4843. url: toPathString(localVarUrlObj),
  4844. options: localVarRequestOptions,
  4845. };
  4846. },
  4847. /**
  4848. *
  4849. * @param {boolean} [shared]
  4850. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  4851. * @param {*} [options] Override http request option.
  4852. * @throws {RequiredError}
  4853. */
  4854. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4855. const localVarPath = `/album`;
  4856. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4857. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4858. let baseOptions;
  4859. if (configuration) {
  4860. baseOptions = configuration.baseOptions;
  4861. }
  4862. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4863. const localVarHeaderParameter = {} as any;
  4864. const localVarQueryParameter = {} as any;
  4865. // authentication cookie required
  4866. // authentication api_key required
  4867. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4868. // authentication bearer required
  4869. // http bearer authentication required
  4870. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4871. if (shared !== undefined) {
  4872. localVarQueryParameter['shared'] = shared;
  4873. }
  4874. if (assetId !== undefined) {
  4875. localVarQueryParameter['assetId'] = assetId;
  4876. }
  4877. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4878. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4879. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4880. return {
  4881. url: toPathString(localVarUrlObj),
  4882. options: localVarRequestOptions,
  4883. };
  4884. },
  4885. /**
  4886. *
  4887. * @param {string} id
  4888. * @param {BulkIdsDto} bulkIdsDto
  4889. * @param {*} [options] Override http request option.
  4890. * @throws {RequiredError}
  4891. */
  4892. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4893. // verify required parameter 'id' is not null or undefined
  4894. assertParamExists('removeAssetFromAlbum', 'id', id)
  4895. // verify required parameter 'bulkIdsDto' is not null or undefined
  4896. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  4897. const localVarPath = `/album/{id}/assets`
  4898. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4899. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4900. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4901. let baseOptions;
  4902. if (configuration) {
  4903. baseOptions = configuration.baseOptions;
  4904. }
  4905. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4906. const localVarHeaderParameter = {} as any;
  4907. const localVarQueryParameter = {} as any;
  4908. // authentication cookie required
  4909. // authentication api_key required
  4910. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4911. // authentication bearer required
  4912. // http bearer authentication required
  4913. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4914. localVarHeaderParameter['Content-Type'] = 'application/json';
  4915. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4916. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4917. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4918. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4919. return {
  4920. url: toPathString(localVarUrlObj),
  4921. options: localVarRequestOptions,
  4922. };
  4923. },
  4924. /**
  4925. *
  4926. * @param {string} id
  4927. * @param {string} userId
  4928. * @param {*} [options] Override http request option.
  4929. * @throws {RequiredError}
  4930. */
  4931. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4932. // verify required parameter 'id' is not null or undefined
  4933. assertParamExists('removeUserFromAlbum', 'id', id)
  4934. // verify required parameter 'userId' is not null or undefined
  4935. assertParamExists('removeUserFromAlbum', 'userId', userId)
  4936. const localVarPath = `/album/{id}/user/{userId}`
  4937. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  4938. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  4939. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4940. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4941. let baseOptions;
  4942. if (configuration) {
  4943. baseOptions = configuration.baseOptions;
  4944. }
  4945. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4946. const localVarHeaderParameter = {} as any;
  4947. const localVarQueryParameter = {} as any;
  4948. // authentication cookie required
  4949. // authentication api_key required
  4950. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4951. // authentication bearer required
  4952. // http bearer authentication required
  4953. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4954. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4955. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4956. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4957. return {
  4958. url: toPathString(localVarUrlObj),
  4959. options: localVarRequestOptions,
  4960. };
  4961. },
  4962. /**
  4963. *
  4964. * @param {string} id
  4965. * @param {UpdateAlbumDto} updateAlbumDto
  4966. * @param {*} [options] Override http request option.
  4967. * @throws {RequiredError}
  4968. */
  4969. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4970. // verify required parameter 'id' is not null or undefined
  4971. assertParamExists('updateAlbumInfo', 'id', id)
  4972. // verify required parameter 'updateAlbumDto' is not null or undefined
  4973. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  4974. const localVarPath = `/album/{id}`
  4975. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4976. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4977. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4978. let baseOptions;
  4979. if (configuration) {
  4980. baseOptions = configuration.baseOptions;
  4981. }
  4982. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4983. const localVarHeaderParameter = {} as any;
  4984. const localVarQueryParameter = {} as any;
  4985. // authentication cookie required
  4986. // authentication api_key required
  4987. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4988. // authentication bearer required
  4989. // http bearer authentication required
  4990. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4991. localVarHeaderParameter['Content-Type'] = 'application/json';
  4992. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4993. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4994. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4995. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  4996. return {
  4997. url: toPathString(localVarUrlObj),
  4998. options: localVarRequestOptions,
  4999. };
  5000. },
  5001. }
  5002. };
  5003. /**
  5004. * AlbumApi - functional programming interface
  5005. * @export
  5006. */
  5007. export const AlbumApiFp = function(configuration?: Configuration) {
  5008. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  5009. return {
  5010. /**
  5011. *
  5012. * @param {string} id
  5013. * @param {BulkIdsDto} bulkIdsDto
  5014. * @param {string} [key]
  5015. * @param {*} [options] Override http request option.
  5016. * @throws {RequiredError}
  5017. */
  5018. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5019. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  5020. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5021. },
  5022. /**
  5023. *
  5024. * @param {string} id
  5025. * @param {AddUsersDto} addUsersDto
  5026. * @param {*} [options] Override http request option.
  5027. * @throws {RequiredError}
  5028. */
  5029. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5030. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5031. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5032. },
  5033. /**
  5034. *
  5035. * @param {CreateAlbumDto} createAlbumDto
  5036. * @param {*} [options] Override http request option.
  5037. * @throws {RequiredError}
  5038. */
  5039. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5040. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5041. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5042. },
  5043. /**
  5044. *
  5045. * @param {string} id
  5046. * @param {*} [options] Override http request option.
  5047. * @throws {RequiredError}
  5048. */
  5049. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5050. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5051. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5052. },
  5053. /**
  5054. *
  5055. * @param {*} [options] Override http request option.
  5056. * @throws {RequiredError}
  5057. */
  5058. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5059. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5060. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5061. },
  5062. /**
  5063. *
  5064. * @param {string} id
  5065. * @param {boolean} [withoutAssets]
  5066. * @param {string} [key]
  5067. * @param {*} [options] Override http request option.
  5068. * @throws {RequiredError}
  5069. */
  5070. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5071. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5072. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5073. },
  5074. /**
  5075. *
  5076. * @param {boolean} [shared]
  5077. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5078. * @param {*} [options] Override http request option.
  5079. * @throws {RequiredError}
  5080. */
  5081. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5082. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5083. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5084. },
  5085. /**
  5086. *
  5087. * @param {string} id
  5088. * @param {BulkIdsDto} bulkIdsDto
  5089. * @param {*} [options] Override http request option.
  5090. * @throws {RequiredError}
  5091. */
  5092. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5093. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5094. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5095. },
  5096. /**
  5097. *
  5098. * @param {string} id
  5099. * @param {string} userId
  5100. * @param {*} [options] Override http request option.
  5101. * @throws {RequiredError}
  5102. */
  5103. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5104. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5105. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5106. },
  5107. /**
  5108. *
  5109. * @param {string} id
  5110. * @param {UpdateAlbumDto} updateAlbumDto
  5111. * @param {*} [options] Override http request option.
  5112. * @throws {RequiredError}
  5113. */
  5114. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5115. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5116. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5117. },
  5118. }
  5119. };
  5120. /**
  5121. * AlbumApi - factory interface
  5122. * @export
  5123. */
  5124. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5125. const localVarFp = AlbumApiFp(configuration)
  5126. return {
  5127. /**
  5128. *
  5129. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5130. * @param {*} [options] Override http request option.
  5131. * @throws {RequiredError}
  5132. */
  5133. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5134. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5135. },
  5136. /**
  5137. *
  5138. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5139. * @param {*} [options] Override http request option.
  5140. * @throws {RequiredError}
  5141. */
  5142. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5143. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5144. },
  5145. /**
  5146. *
  5147. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5148. * @param {*} [options] Override http request option.
  5149. * @throws {RequiredError}
  5150. */
  5151. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5152. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5153. },
  5154. /**
  5155. *
  5156. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5157. * @param {*} [options] Override http request option.
  5158. * @throws {RequiredError}
  5159. */
  5160. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5161. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5162. },
  5163. /**
  5164. *
  5165. * @param {*} [options] Override http request option.
  5166. * @throws {RequiredError}
  5167. */
  5168. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5169. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5170. },
  5171. /**
  5172. *
  5173. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5174. * @param {*} [options] Override http request option.
  5175. * @throws {RequiredError}
  5176. */
  5177. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5178. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5179. },
  5180. /**
  5181. *
  5182. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5183. * @param {*} [options] Override http request option.
  5184. * @throws {RequiredError}
  5185. */
  5186. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5187. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5188. },
  5189. /**
  5190. *
  5191. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5192. * @param {*} [options] Override http request option.
  5193. * @throws {RequiredError}
  5194. */
  5195. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5196. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5197. },
  5198. /**
  5199. *
  5200. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5201. * @param {*} [options] Override http request option.
  5202. * @throws {RequiredError}
  5203. */
  5204. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5205. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5206. },
  5207. /**
  5208. *
  5209. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5210. * @param {*} [options] Override http request option.
  5211. * @throws {RequiredError}
  5212. */
  5213. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5214. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5215. },
  5216. };
  5217. };
  5218. /**
  5219. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5220. * @export
  5221. * @interface AlbumApiAddAssetsToAlbumRequest
  5222. */
  5223. export interface AlbumApiAddAssetsToAlbumRequest {
  5224. /**
  5225. *
  5226. * @type {string}
  5227. * @memberof AlbumApiAddAssetsToAlbum
  5228. */
  5229. readonly id: string
  5230. /**
  5231. *
  5232. * @type {BulkIdsDto}
  5233. * @memberof AlbumApiAddAssetsToAlbum
  5234. */
  5235. readonly bulkIdsDto: BulkIdsDto
  5236. /**
  5237. *
  5238. * @type {string}
  5239. * @memberof AlbumApiAddAssetsToAlbum
  5240. */
  5241. readonly key?: string
  5242. }
  5243. /**
  5244. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5245. * @export
  5246. * @interface AlbumApiAddUsersToAlbumRequest
  5247. */
  5248. export interface AlbumApiAddUsersToAlbumRequest {
  5249. /**
  5250. *
  5251. * @type {string}
  5252. * @memberof AlbumApiAddUsersToAlbum
  5253. */
  5254. readonly id: string
  5255. /**
  5256. *
  5257. * @type {AddUsersDto}
  5258. * @memberof AlbumApiAddUsersToAlbum
  5259. */
  5260. readonly addUsersDto: AddUsersDto
  5261. }
  5262. /**
  5263. * Request parameters for createAlbum operation in AlbumApi.
  5264. * @export
  5265. * @interface AlbumApiCreateAlbumRequest
  5266. */
  5267. export interface AlbumApiCreateAlbumRequest {
  5268. /**
  5269. *
  5270. * @type {CreateAlbumDto}
  5271. * @memberof AlbumApiCreateAlbum
  5272. */
  5273. readonly createAlbumDto: CreateAlbumDto
  5274. }
  5275. /**
  5276. * Request parameters for deleteAlbum operation in AlbumApi.
  5277. * @export
  5278. * @interface AlbumApiDeleteAlbumRequest
  5279. */
  5280. export interface AlbumApiDeleteAlbumRequest {
  5281. /**
  5282. *
  5283. * @type {string}
  5284. * @memberof AlbumApiDeleteAlbum
  5285. */
  5286. readonly id: string
  5287. }
  5288. /**
  5289. * Request parameters for getAlbumInfo operation in AlbumApi.
  5290. * @export
  5291. * @interface AlbumApiGetAlbumInfoRequest
  5292. */
  5293. export interface AlbumApiGetAlbumInfoRequest {
  5294. /**
  5295. *
  5296. * @type {string}
  5297. * @memberof AlbumApiGetAlbumInfo
  5298. */
  5299. readonly id: string
  5300. /**
  5301. *
  5302. * @type {boolean}
  5303. * @memberof AlbumApiGetAlbumInfo
  5304. */
  5305. readonly withoutAssets?: boolean
  5306. /**
  5307. *
  5308. * @type {string}
  5309. * @memberof AlbumApiGetAlbumInfo
  5310. */
  5311. readonly key?: string
  5312. }
  5313. /**
  5314. * Request parameters for getAllAlbums operation in AlbumApi.
  5315. * @export
  5316. * @interface AlbumApiGetAllAlbumsRequest
  5317. */
  5318. export interface AlbumApiGetAllAlbumsRequest {
  5319. /**
  5320. *
  5321. * @type {boolean}
  5322. * @memberof AlbumApiGetAllAlbums
  5323. */
  5324. readonly shared?: boolean
  5325. /**
  5326. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5327. * @type {string}
  5328. * @memberof AlbumApiGetAllAlbums
  5329. */
  5330. readonly assetId?: string
  5331. }
  5332. /**
  5333. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5334. * @export
  5335. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5336. */
  5337. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5338. /**
  5339. *
  5340. * @type {string}
  5341. * @memberof AlbumApiRemoveAssetFromAlbum
  5342. */
  5343. readonly id: string
  5344. /**
  5345. *
  5346. * @type {BulkIdsDto}
  5347. * @memberof AlbumApiRemoveAssetFromAlbum
  5348. */
  5349. readonly bulkIdsDto: BulkIdsDto
  5350. }
  5351. /**
  5352. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5353. * @export
  5354. * @interface AlbumApiRemoveUserFromAlbumRequest
  5355. */
  5356. export interface AlbumApiRemoveUserFromAlbumRequest {
  5357. /**
  5358. *
  5359. * @type {string}
  5360. * @memberof AlbumApiRemoveUserFromAlbum
  5361. */
  5362. readonly id: string
  5363. /**
  5364. *
  5365. * @type {string}
  5366. * @memberof AlbumApiRemoveUserFromAlbum
  5367. */
  5368. readonly userId: string
  5369. }
  5370. /**
  5371. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5372. * @export
  5373. * @interface AlbumApiUpdateAlbumInfoRequest
  5374. */
  5375. export interface AlbumApiUpdateAlbumInfoRequest {
  5376. /**
  5377. *
  5378. * @type {string}
  5379. * @memberof AlbumApiUpdateAlbumInfo
  5380. */
  5381. readonly id: string
  5382. /**
  5383. *
  5384. * @type {UpdateAlbumDto}
  5385. * @memberof AlbumApiUpdateAlbumInfo
  5386. */
  5387. readonly updateAlbumDto: UpdateAlbumDto
  5388. }
  5389. /**
  5390. * AlbumApi - object-oriented interface
  5391. * @export
  5392. * @class AlbumApi
  5393. * @extends {BaseAPI}
  5394. */
  5395. export class AlbumApi extends BaseAPI {
  5396. /**
  5397. *
  5398. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5399. * @param {*} [options] Override http request option.
  5400. * @throws {RequiredError}
  5401. * @memberof AlbumApi
  5402. */
  5403. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5404. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5405. }
  5406. /**
  5407. *
  5408. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5409. * @param {*} [options] Override http request option.
  5410. * @throws {RequiredError}
  5411. * @memberof AlbumApi
  5412. */
  5413. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5414. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5415. }
  5416. /**
  5417. *
  5418. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5419. * @param {*} [options] Override http request option.
  5420. * @throws {RequiredError}
  5421. * @memberof AlbumApi
  5422. */
  5423. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5424. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5425. }
  5426. /**
  5427. *
  5428. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5429. * @param {*} [options] Override http request option.
  5430. * @throws {RequiredError}
  5431. * @memberof AlbumApi
  5432. */
  5433. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  5434. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5435. }
  5436. /**
  5437. *
  5438. * @param {*} [options] Override http request option.
  5439. * @throws {RequiredError}
  5440. * @memberof AlbumApi
  5441. */
  5442. public getAlbumCount(options?: AxiosRequestConfig) {
  5443. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  5444. }
  5445. /**
  5446. *
  5447. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5448. * @param {*} [options] Override http request option.
  5449. * @throws {RequiredError}
  5450. * @memberof AlbumApi
  5451. */
  5452. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  5453. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5454. }
  5455. /**
  5456. *
  5457. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5458. * @param {*} [options] Override http request option.
  5459. * @throws {RequiredError}
  5460. * @memberof AlbumApi
  5461. */
  5462. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  5463. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5464. }
  5465. /**
  5466. *
  5467. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5468. * @param {*} [options] Override http request option.
  5469. * @throws {RequiredError}
  5470. * @memberof AlbumApi
  5471. */
  5472. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  5473. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  5474. }
  5475. /**
  5476. *
  5477. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5478. * @param {*} [options] Override http request option.
  5479. * @throws {RequiredError}
  5480. * @memberof AlbumApi
  5481. */
  5482. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  5483. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5484. }
  5485. /**
  5486. *
  5487. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5488. * @param {*} [options] Override http request option.
  5489. * @throws {RequiredError}
  5490. * @memberof AlbumApi
  5491. */
  5492. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  5493. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5494. }
  5495. }
  5496. /**
  5497. * AssetApi - axios parameter creator
  5498. * @export
  5499. */
  5500. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  5501. return {
  5502. /**
  5503. * Checks if assets exist by checksums
  5504. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  5505. * @param {*} [options] Override http request option.
  5506. * @throws {RequiredError}
  5507. */
  5508. bulkUploadCheck: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5509. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  5510. assertParamExists('bulkUploadCheck', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  5511. const localVarPath = `/asset/bulk-upload-check`;
  5512. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5513. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5514. let baseOptions;
  5515. if (configuration) {
  5516. baseOptions = configuration.baseOptions;
  5517. }
  5518. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5519. const localVarHeaderParameter = {} as any;
  5520. const localVarQueryParameter = {} as any;
  5521. // authentication cookie required
  5522. // authentication api_key required
  5523. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5524. // authentication bearer required
  5525. // http bearer authentication required
  5526. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5527. localVarHeaderParameter['Content-Type'] = 'application/json';
  5528. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5529. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5530. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5531. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  5532. return {
  5533. url: toPathString(localVarUrlObj),
  5534. options: localVarRequestOptions,
  5535. };
  5536. },
  5537. /**
  5538. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5539. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5540. * @param {*} [options] Override http request option.
  5541. * @throws {RequiredError}
  5542. */
  5543. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5544. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  5545. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  5546. const localVarPath = `/asset/exist`;
  5547. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5548. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5549. let baseOptions;
  5550. if (configuration) {
  5551. baseOptions = configuration.baseOptions;
  5552. }
  5553. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5554. const localVarHeaderParameter = {} as any;
  5555. const localVarQueryParameter = {} as any;
  5556. // authentication cookie required
  5557. // authentication api_key required
  5558. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5559. // authentication bearer required
  5560. // http bearer authentication required
  5561. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5562. localVarHeaderParameter['Content-Type'] = 'application/json';
  5563. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5564. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5565. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5566. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  5567. return {
  5568. url: toPathString(localVarUrlObj),
  5569. options: localVarRequestOptions,
  5570. };
  5571. },
  5572. /**
  5573. *
  5574. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  5575. * @param {*} [options] Override http request option.
  5576. * @throws {RequiredError}
  5577. */
  5578. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5579. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  5580. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  5581. const localVarPath = `/asset`;
  5582. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5583. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5584. let baseOptions;
  5585. if (configuration) {
  5586. baseOptions = configuration.baseOptions;
  5587. }
  5588. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5589. const localVarHeaderParameter = {} as any;
  5590. const localVarQueryParameter = {} as any;
  5591. // authentication cookie required
  5592. // authentication api_key required
  5593. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5594. // authentication bearer required
  5595. // http bearer authentication required
  5596. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5597. localVarHeaderParameter['Content-Type'] = 'application/json';
  5598. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5599. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5600. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5601. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  5602. return {
  5603. url: toPathString(localVarUrlObj),
  5604. options: localVarRequestOptions,
  5605. };
  5606. },
  5607. /**
  5608. *
  5609. * @param {AssetIdsDto} assetIdsDto
  5610. * @param {string} [key]
  5611. * @param {*} [options] Override http request option.
  5612. * @throws {RequiredError}
  5613. */
  5614. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5615. // verify required parameter 'assetIdsDto' is not null or undefined
  5616. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  5617. const localVarPath = `/asset/download/archive`;
  5618. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5619. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5620. let baseOptions;
  5621. if (configuration) {
  5622. baseOptions = configuration.baseOptions;
  5623. }
  5624. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5625. const localVarHeaderParameter = {} as any;
  5626. const localVarQueryParameter = {} as any;
  5627. // authentication cookie required
  5628. // authentication api_key required
  5629. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5630. // authentication bearer required
  5631. // http bearer authentication required
  5632. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5633. if (key !== undefined) {
  5634. localVarQueryParameter['key'] = key;
  5635. }
  5636. localVarHeaderParameter['Content-Type'] = 'application/json';
  5637. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5638. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5639. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5640. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  5641. return {
  5642. url: toPathString(localVarUrlObj),
  5643. options: localVarRequestOptions,
  5644. };
  5645. },
  5646. /**
  5647. *
  5648. * @param {string} id
  5649. * @param {string} [key]
  5650. * @param {*} [options] Override http request option.
  5651. * @throws {RequiredError}
  5652. */
  5653. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5654. // verify required parameter 'id' is not null or undefined
  5655. assertParamExists('downloadFile', 'id', id)
  5656. const localVarPath = `/asset/download/{id}`
  5657. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5658. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5659. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5660. let baseOptions;
  5661. if (configuration) {
  5662. baseOptions = configuration.baseOptions;
  5663. }
  5664. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5665. const localVarHeaderParameter = {} as any;
  5666. const localVarQueryParameter = {} as any;
  5667. // authentication cookie required
  5668. // authentication api_key required
  5669. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5670. // authentication bearer required
  5671. // http bearer authentication required
  5672. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5673. if (key !== undefined) {
  5674. localVarQueryParameter['key'] = key;
  5675. }
  5676. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5677. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5678. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5679. return {
  5680. url: toPathString(localVarUrlObj),
  5681. options: localVarRequestOptions,
  5682. };
  5683. },
  5684. /**
  5685. *
  5686. * @param {*} [options] Override http request option.
  5687. * @throws {RequiredError}
  5688. */
  5689. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5690. const localVarPath = `/asset/trash/empty`;
  5691. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5692. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5693. let baseOptions;
  5694. if (configuration) {
  5695. baseOptions = configuration.baseOptions;
  5696. }
  5697. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5698. const localVarHeaderParameter = {} as any;
  5699. const localVarQueryParameter = {} as any;
  5700. // authentication cookie required
  5701. // authentication api_key required
  5702. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5703. // authentication bearer required
  5704. // http bearer authentication required
  5705. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5706. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5707. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5708. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5709. return {
  5710. url: toPathString(localVarUrlObj),
  5711. options: localVarRequestOptions,
  5712. };
  5713. },
  5714. /**
  5715. * Get all AssetEntity belong to the user
  5716. * @param {string} [userId]
  5717. * @param {boolean} [isFavorite]
  5718. * @param {boolean} [isArchived]
  5719. * @param {number} [skip]
  5720. * @param {string} [updatedAfter]
  5721. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5722. * @param {*} [options] Override http request option.
  5723. * @throws {RequiredError}
  5724. */
  5725. getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5726. const localVarPath = `/asset`;
  5727. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5728. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5729. let baseOptions;
  5730. if (configuration) {
  5731. baseOptions = configuration.baseOptions;
  5732. }
  5733. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5734. const localVarHeaderParameter = {} as any;
  5735. const localVarQueryParameter = {} as any;
  5736. // authentication cookie required
  5737. // authentication api_key required
  5738. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5739. // authentication bearer required
  5740. // http bearer authentication required
  5741. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5742. if (userId !== undefined) {
  5743. localVarQueryParameter['userId'] = userId;
  5744. }
  5745. if (isFavorite !== undefined) {
  5746. localVarQueryParameter['isFavorite'] = isFavorite;
  5747. }
  5748. if (isArchived !== undefined) {
  5749. localVarQueryParameter['isArchived'] = isArchived;
  5750. }
  5751. if (skip !== undefined) {
  5752. localVarQueryParameter['skip'] = skip;
  5753. }
  5754. if (updatedAfter !== undefined) {
  5755. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  5756. (updatedAfter as any).toISOString() :
  5757. updatedAfter;
  5758. }
  5759. if (ifNoneMatch != null) {
  5760. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  5761. }
  5762. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5763. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5764. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5765. return {
  5766. url: toPathString(localVarUrlObj),
  5767. options: localVarRequestOptions,
  5768. };
  5769. },
  5770. /**
  5771. * Get a single asset\'s information
  5772. * @param {string} id
  5773. * @param {string} [key]
  5774. * @param {*} [options] Override http request option.
  5775. * @throws {RequiredError}
  5776. */
  5777. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5778. // verify required parameter 'id' is not null or undefined
  5779. assertParamExists('getAssetById', 'id', id)
  5780. const localVarPath = `/asset/assetById/{id}`
  5781. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5782. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5783. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5784. let baseOptions;
  5785. if (configuration) {
  5786. baseOptions = configuration.baseOptions;
  5787. }
  5788. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5789. const localVarHeaderParameter = {} as any;
  5790. const localVarQueryParameter = {} as any;
  5791. // authentication cookie required
  5792. // authentication api_key required
  5793. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5794. // authentication bearer required
  5795. // http bearer authentication required
  5796. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5797. if (key !== undefined) {
  5798. localVarQueryParameter['key'] = key;
  5799. }
  5800. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5801. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5802. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5803. return {
  5804. url: toPathString(localVarUrlObj),
  5805. options: localVarRequestOptions,
  5806. };
  5807. },
  5808. /**
  5809. *
  5810. * @param {*} [options] Override http request option.
  5811. * @throws {RequiredError}
  5812. */
  5813. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5814. const localVarPath = `/asset/search-terms`;
  5815. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5816. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5817. let baseOptions;
  5818. if (configuration) {
  5819. baseOptions = configuration.baseOptions;
  5820. }
  5821. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5822. const localVarHeaderParameter = {} as any;
  5823. const localVarQueryParameter = {} as any;
  5824. // authentication cookie required
  5825. // authentication api_key required
  5826. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5827. // authentication bearer required
  5828. // http bearer authentication required
  5829. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5830. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5831. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5832. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5833. return {
  5834. url: toPathString(localVarUrlObj),
  5835. options: localVarRequestOptions,
  5836. };
  5837. },
  5838. /**
  5839. *
  5840. * @param {boolean} [isArchived]
  5841. * @param {boolean} [isFavorite]
  5842. * @param {boolean} [isTrashed]
  5843. * @param {*} [options] Override http request option.
  5844. * @throws {RequiredError}
  5845. */
  5846. getAssetStats: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5847. const localVarPath = `/asset/statistics`;
  5848. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5849. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5850. let baseOptions;
  5851. if (configuration) {
  5852. baseOptions = configuration.baseOptions;
  5853. }
  5854. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5855. const localVarHeaderParameter = {} as any;
  5856. const localVarQueryParameter = {} as any;
  5857. // authentication cookie required
  5858. // authentication api_key required
  5859. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5860. // authentication bearer required
  5861. // http bearer authentication required
  5862. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5863. if (isArchived !== undefined) {
  5864. localVarQueryParameter['isArchived'] = isArchived;
  5865. }
  5866. if (isFavorite !== undefined) {
  5867. localVarQueryParameter['isFavorite'] = isFavorite;
  5868. }
  5869. if (isTrashed !== undefined) {
  5870. localVarQueryParameter['isTrashed'] = isTrashed;
  5871. }
  5872. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5873. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5874. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5875. return {
  5876. url: toPathString(localVarUrlObj),
  5877. options: localVarRequestOptions,
  5878. };
  5879. },
  5880. /**
  5881. *
  5882. * @param {string} id
  5883. * @param {ThumbnailFormat} [format]
  5884. * @param {string} [key]
  5885. * @param {*} [options] Override http request option.
  5886. * @throws {RequiredError}
  5887. */
  5888. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5889. // verify required parameter 'id' is not null or undefined
  5890. assertParamExists('getAssetThumbnail', 'id', id)
  5891. const localVarPath = `/asset/thumbnail/{id}`
  5892. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5893. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5894. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5895. let baseOptions;
  5896. if (configuration) {
  5897. baseOptions = configuration.baseOptions;
  5898. }
  5899. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5900. const localVarHeaderParameter = {} as any;
  5901. const localVarQueryParameter = {} as any;
  5902. // authentication cookie required
  5903. // authentication api_key required
  5904. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5905. // authentication bearer required
  5906. // http bearer authentication required
  5907. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5908. if (format !== undefined) {
  5909. localVarQueryParameter['format'] = format;
  5910. }
  5911. if (key !== undefined) {
  5912. localVarQueryParameter['key'] = key;
  5913. }
  5914. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5915. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5916. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5917. return {
  5918. url: toPathString(localVarUrlObj),
  5919. options: localVarRequestOptions,
  5920. };
  5921. },
  5922. /**
  5923. *
  5924. * @param {TimeBucketSize} size
  5925. * @param {string} timeBucket
  5926. * @param {string} [userId]
  5927. * @param {string} [albumId]
  5928. * @param {string} [personId]
  5929. * @param {boolean} [isArchived]
  5930. * @param {boolean} [isFavorite]
  5931. * @param {boolean} [isTrashed]
  5932. * @param {boolean} [withStacked]
  5933. * @param {string} [key]
  5934. * @param {*} [options] Override http request option.
  5935. * @throws {RequiredError}
  5936. */
  5937. getByTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5938. // verify required parameter 'size' is not null or undefined
  5939. assertParamExists('getByTimeBucket', 'size', size)
  5940. // verify required parameter 'timeBucket' is not null or undefined
  5941. assertParamExists('getByTimeBucket', 'timeBucket', timeBucket)
  5942. const localVarPath = `/asset/time-bucket`;
  5943. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5944. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5945. let baseOptions;
  5946. if (configuration) {
  5947. baseOptions = configuration.baseOptions;
  5948. }
  5949. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5950. const localVarHeaderParameter = {} as any;
  5951. const localVarQueryParameter = {} as any;
  5952. // authentication cookie required
  5953. // authentication api_key required
  5954. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5955. // authentication bearer required
  5956. // http bearer authentication required
  5957. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5958. if (size !== undefined) {
  5959. localVarQueryParameter['size'] = size;
  5960. }
  5961. if (userId !== undefined) {
  5962. localVarQueryParameter['userId'] = userId;
  5963. }
  5964. if (albumId !== undefined) {
  5965. localVarQueryParameter['albumId'] = albumId;
  5966. }
  5967. if (personId !== undefined) {
  5968. localVarQueryParameter['personId'] = personId;
  5969. }
  5970. if (isArchived !== undefined) {
  5971. localVarQueryParameter['isArchived'] = isArchived;
  5972. }
  5973. if (isFavorite !== undefined) {
  5974. localVarQueryParameter['isFavorite'] = isFavorite;
  5975. }
  5976. if (isTrashed !== undefined) {
  5977. localVarQueryParameter['isTrashed'] = isTrashed;
  5978. }
  5979. if (withStacked !== undefined) {
  5980. localVarQueryParameter['withStacked'] = withStacked;
  5981. }
  5982. if (timeBucket !== undefined) {
  5983. localVarQueryParameter['timeBucket'] = timeBucket;
  5984. }
  5985. if (key !== undefined) {
  5986. localVarQueryParameter['key'] = key;
  5987. }
  5988. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5989. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5990. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5991. return {
  5992. url: toPathString(localVarUrlObj),
  5993. options: localVarRequestOptions,
  5994. };
  5995. },
  5996. /**
  5997. *
  5998. * @param {*} [options] Override http request option.
  5999. * @throws {RequiredError}
  6000. */
  6001. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6002. const localVarPath = `/asset/curated-locations`;
  6003. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6004. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6005. let baseOptions;
  6006. if (configuration) {
  6007. baseOptions = configuration.baseOptions;
  6008. }
  6009. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6010. const localVarHeaderParameter = {} as any;
  6011. const localVarQueryParameter = {} as any;
  6012. // authentication cookie required
  6013. // authentication api_key required
  6014. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6015. // authentication bearer required
  6016. // http bearer authentication required
  6017. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6018. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6019. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6020. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6021. return {
  6022. url: toPathString(localVarUrlObj),
  6023. options: localVarRequestOptions,
  6024. };
  6025. },
  6026. /**
  6027. *
  6028. * @param {*} [options] Override http request option.
  6029. * @throws {RequiredError}
  6030. */
  6031. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6032. const localVarPath = `/asset/curated-objects`;
  6033. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6034. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6035. let baseOptions;
  6036. if (configuration) {
  6037. baseOptions = configuration.baseOptions;
  6038. }
  6039. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6040. const localVarHeaderParameter = {} as any;
  6041. const localVarQueryParameter = {} as any;
  6042. // authentication cookie required
  6043. // authentication api_key required
  6044. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6045. // authentication bearer required
  6046. // http bearer authentication required
  6047. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6048. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6049. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6050. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6051. return {
  6052. url: toPathString(localVarUrlObj),
  6053. options: localVarRequestOptions,
  6054. };
  6055. },
  6056. /**
  6057. *
  6058. * @param {DownloadInfoDto} downloadInfoDto
  6059. * @param {string} [key]
  6060. * @param {*} [options] Override http request option.
  6061. * @throws {RequiredError}
  6062. */
  6063. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6064. // verify required parameter 'downloadInfoDto' is not null or undefined
  6065. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6066. const localVarPath = `/asset/download/info`;
  6067. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6068. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6069. let baseOptions;
  6070. if (configuration) {
  6071. baseOptions = configuration.baseOptions;
  6072. }
  6073. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6074. const localVarHeaderParameter = {} as any;
  6075. const localVarQueryParameter = {} as any;
  6076. // authentication cookie required
  6077. // authentication api_key required
  6078. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6079. // authentication bearer required
  6080. // http bearer authentication required
  6081. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6082. if (key !== undefined) {
  6083. localVarQueryParameter['key'] = key;
  6084. }
  6085. localVarHeaderParameter['Content-Type'] = 'application/json';
  6086. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6087. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6088. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6089. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6090. return {
  6091. url: toPathString(localVarUrlObj),
  6092. options: localVarRequestOptions,
  6093. };
  6094. },
  6095. /**
  6096. *
  6097. * @param {boolean} [isArchived]
  6098. * @param {boolean} [isFavorite]
  6099. * @param {string} [fileCreatedAfter]
  6100. * @param {string} [fileCreatedBefore]
  6101. * @param {*} [options] Override http request option.
  6102. * @throws {RequiredError}
  6103. */
  6104. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6105. const localVarPath = `/asset/map-marker`;
  6106. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6107. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6108. let baseOptions;
  6109. if (configuration) {
  6110. baseOptions = configuration.baseOptions;
  6111. }
  6112. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6113. const localVarHeaderParameter = {} as any;
  6114. const localVarQueryParameter = {} as any;
  6115. // authentication cookie required
  6116. // authentication api_key required
  6117. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6118. // authentication bearer required
  6119. // http bearer authentication required
  6120. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6121. if (isArchived !== undefined) {
  6122. localVarQueryParameter['isArchived'] = isArchived;
  6123. }
  6124. if (isFavorite !== undefined) {
  6125. localVarQueryParameter['isFavorite'] = isFavorite;
  6126. }
  6127. if (fileCreatedAfter !== undefined) {
  6128. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6129. (fileCreatedAfter as any).toISOString() :
  6130. fileCreatedAfter;
  6131. }
  6132. if (fileCreatedBefore !== undefined) {
  6133. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6134. (fileCreatedBefore as any).toISOString() :
  6135. fileCreatedBefore;
  6136. }
  6137. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6138. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6139. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6140. return {
  6141. url: toPathString(localVarUrlObj),
  6142. options: localVarRequestOptions,
  6143. };
  6144. },
  6145. /**
  6146. *
  6147. * @param {number} day
  6148. * @param {number} month
  6149. * @param {*} [options] Override http request option.
  6150. * @throws {RequiredError}
  6151. */
  6152. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6153. // verify required parameter 'day' is not null or undefined
  6154. assertParamExists('getMemoryLane', 'day', day)
  6155. // verify required parameter 'month' is not null or undefined
  6156. assertParamExists('getMemoryLane', 'month', month)
  6157. const localVarPath = `/asset/memory-lane`;
  6158. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6159. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6160. let baseOptions;
  6161. if (configuration) {
  6162. baseOptions = configuration.baseOptions;
  6163. }
  6164. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6165. const localVarHeaderParameter = {} as any;
  6166. const localVarQueryParameter = {} as any;
  6167. // authentication cookie required
  6168. // authentication api_key required
  6169. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6170. // authentication bearer required
  6171. // http bearer authentication required
  6172. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6173. if (day !== undefined) {
  6174. localVarQueryParameter['day'] = day;
  6175. }
  6176. if (month !== undefined) {
  6177. localVarQueryParameter['month'] = month;
  6178. }
  6179. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6180. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6181. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6182. return {
  6183. url: toPathString(localVarUrlObj),
  6184. options: localVarRequestOptions,
  6185. };
  6186. },
  6187. /**
  6188. *
  6189. * @param {number} [count]
  6190. * @param {*} [options] Override http request option.
  6191. * @throws {RequiredError}
  6192. */
  6193. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6194. const localVarPath = `/asset/random`;
  6195. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6196. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6197. let baseOptions;
  6198. if (configuration) {
  6199. baseOptions = configuration.baseOptions;
  6200. }
  6201. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6202. const localVarHeaderParameter = {} as any;
  6203. const localVarQueryParameter = {} as any;
  6204. // authentication cookie required
  6205. // authentication api_key required
  6206. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6207. // authentication bearer required
  6208. // http bearer authentication required
  6209. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6210. if (count !== undefined) {
  6211. localVarQueryParameter['count'] = count;
  6212. }
  6213. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6214. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6215. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6216. return {
  6217. url: toPathString(localVarUrlObj),
  6218. options: localVarRequestOptions,
  6219. };
  6220. },
  6221. /**
  6222. *
  6223. * @param {TimeBucketSize} size
  6224. * @param {string} [userId]
  6225. * @param {string} [albumId]
  6226. * @param {string} [personId]
  6227. * @param {boolean} [isArchived]
  6228. * @param {boolean} [isFavorite]
  6229. * @param {boolean} [isTrashed]
  6230. * @param {boolean} [withStacked]
  6231. * @param {string} [key]
  6232. * @param {*} [options] Override http request option.
  6233. * @throws {RequiredError}
  6234. */
  6235. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6236. // verify required parameter 'size' is not null or undefined
  6237. assertParamExists('getTimeBuckets', 'size', size)
  6238. const localVarPath = `/asset/time-buckets`;
  6239. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6240. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6241. let baseOptions;
  6242. if (configuration) {
  6243. baseOptions = configuration.baseOptions;
  6244. }
  6245. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6246. const localVarHeaderParameter = {} as any;
  6247. const localVarQueryParameter = {} as any;
  6248. // authentication cookie required
  6249. // authentication api_key required
  6250. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6251. // authentication bearer required
  6252. // http bearer authentication required
  6253. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6254. if (size !== undefined) {
  6255. localVarQueryParameter['size'] = size;
  6256. }
  6257. if (userId !== undefined) {
  6258. localVarQueryParameter['userId'] = userId;
  6259. }
  6260. if (albumId !== undefined) {
  6261. localVarQueryParameter['albumId'] = albumId;
  6262. }
  6263. if (personId !== undefined) {
  6264. localVarQueryParameter['personId'] = personId;
  6265. }
  6266. if (isArchived !== undefined) {
  6267. localVarQueryParameter['isArchived'] = isArchived;
  6268. }
  6269. if (isFavorite !== undefined) {
  6270. localVarQueryParameter['isFavorite'] = isFavorite;
  6271. }
  6272. if (isTrashed !== undefined) {
  6273. localVarQueryParameter['isTrashed'] = isTrashed;
  6274. }
  6275. if (withStacked !== undefined) {
  6276. localVarQueryParameter['withStacked'] = withStacked;
  6277. }
  6278. if (key !== undefined) {
  6279. localVarQueryParameter['key'] = key;
  6280. }
  6281. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6282. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6283. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6284. return {
  6285. url: toPathString(localVarUrlObj),
  6286. options: localVarRequestOptions,
  6287. };
  6288. },
  6289. /**
  6290. * Get all asset of a device that are in the database, ID only.
  6291. * @param {string} deviceId
  6292. * @param {*} [options] Override http request option.
  6293. * @throws {RequiredError}
  6294. */
  6295. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6296. // verify required parameter 'deviceId' is not null or undefined
  6297. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6298. const localVarPath = `/asset/{deviceId}`
  6299. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6300. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6301. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6302. let baseOptions;
  6303. if (configuration) {
  6304. baseOptions = configuration.baseOptions;
  6305. }
  6306. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6307. const localVarHeaderParameter = {} as any;
  6308. const localVarQueryParameter = {} as any;
  6309. // authentication cookie required
  6310. // authentication api_key required
  6311. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6312. // authentication bearer required
  6313. // http bearer authentication required
  6314. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6315. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6316. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6317. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6318. return {
  6319. url: toPathString(localVarUrlObj),
  6320. options: localVarRequestOptions,
  6321. };
  6322. },
  6323. /**
  6324. *
  6325. * @param {ImportAssetDto} importAssetDto
  6326. * @param {*} [options] Override http request option.
  6327. * @throws {RequiredError}
  6328. */
  6329. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6330. // verify required parameter 'importAssetDto' is not null or undefined
  6331. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  6332. const localVarPath = `/asset/import`;
  6333. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6334. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6335. let baseOptions;
  6336. if (configuration) {
  6337. baseOptions = configuration.baseOptions;
  6338. }
  6339. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6340. const localVarHeaderParameter = {} as any;
  6341. const localVarQueryParameter = {} as any;
  6342. // authentication cookie required
  6343. // authentication api_key required
  6344. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6345. // authentication bearer required
  6346. // http bearer authentication required
  6347. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6348. localVarHeaderParameter['Content-Type'] = 'application/json';
  6349. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6350. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6351. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6352. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  6353. return {
  6354. url: toPathString(localVarUrlObj),
  6355. options: localVarRequestOptions,
  6356. };
  6357. },
  6358. /**
  6359. *
  6360. * @param {BulkIdsDto} bulkIdsDto
  6361. * @param {*} [options] Override http request option.
  6362. * @throws {RequiredError}
  6363. */
  6364. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6365. // verify required parameter 'bulkIdsDto' is not null or undefined
  6366. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6367. const localVarPath = `/asset/restore`;
  6368. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6369. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6370. let baseOptions;
  6371. if (configuration) {
  6372. baseOptions = configuration.baseOptions;
  6373. }
  6374. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6375. const localVarHeaderParameter = {} as any;
  6376. const localVarQueryParameter = {} as any;
  6377. // authentication cookie required
  6378. // authentication api_key required
  6379. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6380. // authentication bearer required
  6381. // http bearer authentication required
  6382. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6383. localVarHeaderParameter['Content-Type'] = 'application/json';
  6384. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6385. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6386. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6387. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6388. return {
  6389. url: toPathString(localVarUrlObj),
  6390. options: localVarRequestOptions,
  6391. };
  6392. },
  6393. /**
  6394. *
  6395. * @param {*} [options] Override http request option.
  6396. * @throws {RequiredError}
  6397. */
  6398. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6399. const localVarPath = `/asset/trash/restore`;
  6400. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6401. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6402. let baseOptions;
  6403. if (configuration) {
  6404. baseOptions = configuration.baseOptions;
  6405. }
  6406. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6407. const localVarHeaderParameter = {} as any;
  6408. const localVarQueryParameter = {} as any;
  6409. // authentication cookie required
  6410. // authentication api_key required
  6411. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6412. // authentication bearer required
  6413. // http bearer authentication required
  6414. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6415. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6416. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6417. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6418. return {
  6419. url: toPathString(localVarUrlObj),
  6420. options: localVarRequestOptions,
  6421. };
  6422. },
  6423. /**
  6424. *
  6425. * @param {AssetJobsDto} assetJobsDto
  6426. * @param {*} [options] Override http request option.
  6427. * @throws {RequiredError}
  6428. */
  6429. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6430. // verify required parameter 'assetJobsDto' is not null or undefined
  6431. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  6432. const localVarPath = `/asset/jobs`;
  6433. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6434. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6435. let baseOptions;
  6436. if (configuration) {
  6437. baseOptions = configuration.baseOptions;
  6438. }
  6439. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6440. const localVarHeaderParameter = {} as any;
  6441. const localVarQueryParameter = {} as any;
  6442. // authentication cookie required
  6443. // authentication api_key required
  6444. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6445. // authentication bearer required
  6446. // http bearer authentication required
  6447. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6448. localVarHeaderParameter['Content-Type'] = 'application/json';
  6449. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6450. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6451. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6452. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  6453. return {
  6454. url: toPathString(localVarUrlObj),
  6455. options: localVarRequestOptions,
  6456. };
  6457. },
  6458. /**
  6459. *
  6460. * @param {SearchAssetDto} searchAssetDto
  6461. * @param {*} [options] Override http request option.
  6462. * @throws {RequiredError}
  6463. */
  6464. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6465. // verify required parameter 'searchAssetDto' is not null or undefined
  6466. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  6467. const localVarPath = `/asset/search`;
  6468. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6469. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6470. let baseOptions;
  6471. if (configuration) {
  6472. baseOptions = configuration.baseOptions;
  6473. }
  6474. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6475. const localVarHeaderParameter = {} as any;
  6476. const localVarQueryParameter = {} as any;
  6477. // authentication cookie required
  6478. // authentication api_key required
  6479. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6480. // authentication bearer required
  6481. // http bearer authentication required
  6482. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6483. localVarHeaderParameter['Content-Type'] = 'application/json';
  6484. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6485. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6486. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6487. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  6488. return {
  6489. url: toPathString(localVarUrlObj),
  6490. options: localVarRequestOptions,
  6491. };
  6492. },
  6493. /**
  6494. *
  6495. * @param {string} id
  6496. * @param {boolean} [isThumb]
  6497. * @param {boolean} [isWeb]
  6498. * @param {string} [key]
  6499. * @param {*} [options] Override http request option.
  6500. * @throws {RequiredError}
  6501. */
  6502. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6503. // verify required parameter 'id' is not null or undefined
  6504. assertParamExists('serveFile', 'id', id)
  6505. const localVarPath = `/asset/file/{id}`
  6506. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6507. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6508. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6509. let baseOptions;
  6510. if (configuration) {
  6511. baseOptions = configuration.baseOptions;
  6512. }
  6513. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6514. const localVarHeaderParameter = {} as any;
  6515. const localVarQueryParameter = {} as any;
  6516. // authentication cookie required
  6517. // authentication api_key required
  6518. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6519. // authentication bearer required
  6520. // http bearer authentication required
  6521. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6522. if (isThumb !== undefined) {
  6523. localVarQueryParameter['isThumb'] = isThumb;
  6524. }
  6525. if (isWeb !== undefined) {
  6526. localVarQueryParameter['isWeb'] = isWeb;
  6527. }
  6528. if (key !== undefined) {
  6529. localVarQueryParameter['key'] = key;
  6530. }
  6531. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6532. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6533. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6534. return {
  6535. url: toPathString(localVarUrlObj),
  6536. options: localVarRequestOptions,
  6537. };
  6538. },
  6539. /**
  6540. *
  6541. * @param {string} id
  6542. * @param {UpdateAssetDto} updateAssetDto
  6543. * @param {*} [options] Override http request option.
  6544. * @throws {RequiredError}
  6545. */
  6546. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6547. // verify required parameter 'id' is not null or undefined
  6548. assertParamExists('updateAsset', 'id', id)
  6549. // verify required parameter 'updateAssetDto' is not null or undefined
  6550. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  6551. const localVarPath = `/asset/{id}`
  6552. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6553. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6554. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6555. let baseOptions;
  6556. if (configuration) {
  6557. baseOptions = configuration.baseOptions;
  6558. }
  6559. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6560. const localVarHeaderParameter = {} as any;
  6561. const localVarQueryParameter = {} as any;
  6562. // authentication cookie required
  6563. // authentication api_key required
  6564. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6565. // authentication bearer required
  6566. // http bearer authentication required
  6567. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6568. localVarHeaderParameter['Content-Type'] = 'application/json';
  6569. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6570. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6571. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6572. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  6573. return {
  6574. url: toPathString(localVarUrlObj),
  6575. options: localVarRequestOptions,
  6576. };
  6577. },
  6578. /**
  6579. *
  6580. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  6581. * @param {*} [options] Override http request option.
  6582. * @throws {RequiredError}
  6583. */
  6584. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6585. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  6586. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  6587. const localVarPath = `/asset`;
  6588. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6589. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6590. let baseOptions;
  6591. if (configuration) {
  6592. baseOptions = configuration.baseOptions;
  6593. }
  6594. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6595. const localVarHeaderParameter = {} as any;
  6596. const localVarQueryParameter = {} as any;
  6597. // authentication cookie required
  6598. // authentication api_key required
  6599. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6600. // authentication bearer required
  6601. // http bearer authentication required
  6602. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6603. localVarHeaderParameter['Content-Type'] = 'application/json';
  6604. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6605. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6606. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6607. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  6608. return {
  6609. url: toPathString(localVarUrlObj),
  6610. options: localVarRequestOptions,
  6611. };
  6612. },
  6613. /**
  6614. *
  6615. * @param {UpdateStackParentDto} updateStackParentDto
  6616. * @param {*} [options] Override http request option.
  6617. * @throws {RequiredError}
  6618. */
  6619. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6620. // verify required parameter 'updateStackParentDto' is not null or undefined
  6621. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  6622. const localVarPath = `/asset/stack/parent`;
  6623. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6624. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6625. let baseOptions;
  6626. if (configuration) {
  6627. baseOptions = configuration.baseOptions;
  6628. }
  6629. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6630. const localVarHeaderParameter = {} as any;
  6631. const localVarQueryParameter = {} as any;
  6632. // authentication cookie required
  6633. // authentication api_key required
  6634. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6635. // authentication bearer required
  6636. // http bearer authentication required
  6637. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6638. localVarHeaderParameter['Content-Type'] = 'application/json';
  6639. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6640. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6641. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6642. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  6643. return {
  6644. url: toPathString(localVarUrlObj),
  6645. options: localVarRequestOptions,
  6646. };
  6647. },
  6648. /**
  6649. *
  6650. * @param {File} assetData
  6651. * @param {string} deviceAssetId
  6652. * @param {string} deviceId
  6653. * @param {string} fileCreatedAt
  6654. * @param {string} fileModifiedAt
  6655. * @param {boolean} isFavorite
  6656. * @param {string} [key]
  6657. * @param {string} [duration]
  6658. * @param {boolean} [isArchived]
  6659. * @param {boolean} [isExternal]
  6660. * @param {boolean} [isOffline]
  6661. * @param {boolean} [isReadOnly]
  6662. * @param {boolean} [isVisible]
  6663. * @param {string} [libraryId]
  6664. * @param {File} [livePhotoData]
  6665. * @param {File} [sidecarData]
  6666. * @param {*} [options] Override http request option.
  6667. * @throws {RequiredError}
  6668. */
  6669. uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6670. // verify required parameter 'assetData' is not null or undefined
  6671. assertParamExists('uploadFile', 'assetData', assetData)
  6672. // verify required parameter 'deviceAssetId' is not null or undefined
  6673. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  6674. // verify required parameter 'deviceId' is not null or undefined
  6675. assertParamExists('uploadFile', 'deviceId', deviceId)
  6676. // verify required parameter 'fileCreatedAt' is not null or undefined
  6677. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  6678. // verify required parameter 'fileModifiedAt' is not null or undefined
  6679. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  6680. // verify required parameter 'isFavorite' is not null or undefined
  6681. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  6682. const localVarPath = `/asset/upload`;
  6683. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6684. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6685. let baseOptions;
  6686. if (configuration) {
  6687. baseOptions = configuration.baseOptions;
  6688. }
  6689. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6690. const localVarHeaderParameter = {} as any;
  6691. const localVarQueryParameter = {} as any;
  6692. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  6693. // authentication cookie required
  6694. // authentication api_key required
  6695. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6696. // authentication bearer required
  6697. // http bearer authentication required
  6698. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6699. if (key !== undefined) {
  6700. localVarQueryParameter['key'] = key;
  6701. }
  6702. if (assetData !== undefined) {
  6703. localVarFormParams.append('assetData', assetData as any);
  6704. }
  6705. if (deviceAssetId !== undefined) {
  6706. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  6707. }
  6708. if (deviceId !== undefined) {
  6709. localVarFormParams.append('deviceId', deviceId as any);
  6710. }
  6711. if (duration !== undefined) {
  6712. localVarFormParams.append('duration', duration as any);
  6713. }
  6714. if (fileCreatedAt !== undefined) {
  6715. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  6716. }
  6717. if (fileModifiedAt !== undefined) {
  6718. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  6719. }
  6720. if (isArchived !== undefined) {
  6721. localVarFormParams.append('isArchived', isArchived as any);
  6722. }
  6723. if (isExternal !== undefined) {
  6724. localVarFormParams.append('isExternal', isExternal as any);
  6725. }
  6726. if (isFavorite !== undefined) {
  6727. localVarFormParams.append('isFavorite', isFavorite as any);
  6728. }
  6729. if (isOffline !== undefined) {
  6730. localVarFormParams.append('isOffline', isOffline as any);
  6731. }
  6732. if (isReadOnly !== undefined) {
  6733. localVarFormParams.append('isReadOnly', isReadOnly as any);
  6734. }
  6735. if (isVisible !== undefined) {
  6736. localVarFormParams.append('isVisible', isVisible as any);
  6737. }
  6738. if (libraryId !== undefined) {
  6739. localVarFormParams.append('libraryId', libraryId as any);
  6740. }
  6741. if (livePhotoData !== undefined) {
  6742. localVarFormParams.append('livePhotoData', livePhotoData as any);
  6743. }
  6744. if (sidecarData !== undefined) {
  6745. localVarFormParams.append('sidecarData', sidecarData as any);
  6746. }
  6747. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  6748. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6749. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6750. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6751. localVarRequestOptions.data = localVarFormParams;
  6752. return {
  6753. url: toPathString(localVarUrlObj),
  6754. options: localVarRequestOptions,
  6755. };
  6756. },
  6757. }
  6758. };
  6759. /**
  6760. * AssetApi - functional programming interface
  6761. * @export
  6762. */
  6763. export const AssetApiFp = function(configuration?: Configuration) {
  6764. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  6765. return {
  6766. /**
  6767. * Checks if assets exist by checksums
  6768. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6769. * @param {*} [options] Override http request option.
  6770. * @throws {RequiredError}
  6771. */
  6772. async bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  6773. const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUploadCheck(assetBulkUploadCheckDto, options);
  6774. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6775. },
  6776. /**
  6777. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6778. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6779. * @param {*} [options] Override http request option.
  6780. * @throws {RequiredError}
  6781. */
  6782. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  6783. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  6784. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6785. },
  6786. /**
  6787. *
  6788. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6789. * @param {*} [options] Override http request option.
  6790. * @throws {RequiredError}
  6791. */
  6792. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6793. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  6794. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6795. },
  6796. /**
  6797. *
  6798. * @param {AssetIdsDto} assetIdsDto
  6799. * @param {string} [key]
  6800. * @param {*} [options] Override http request option.
  6801. * @throws {RequiredError}
  6802. */
  6803. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6804. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  6805. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6806. },
  6807. /**
  6808. *
  6809. * @param {string} id
  6810. * @param {string} [key]
  6811. * @param {*} [options] Override http request option.
  6812. * @throws {RequiredError}
  6813. */
  6814. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6815. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  6816. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6817. },
  6818. /**
  6819. *
  6820. * @param {*} [options] Override http request option.
  6821. * @throws {RequiredError}
  6822. */
  6823. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6824. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  6825. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6826. },
  6827. /**
  6828. * Get all AssetEntity belong to the user
  6829. * @param {string} [userId]
  6830. * @param {boolean} [isFavorite]
  6831. * @param {boolean} [isArchived]
  6832. * @param {number} [skip]
  6833. * @param {string} [updatedAfter]
  6834. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6835. * @param {*} [options] Override http request option.
  6836. * @throws {RequiredError}
  6837. */
  6838. async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6839. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
  6840. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6841. },
  6842. /**
  6843. * Get a single asset\'s information
  6844. * @param {string} id
  6845. * @param {string} [key]
  6846. * @param {*} [options] Override http request option.
  6847. * @throws {RequiredError}
  6848. */
  6849. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  6850. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  6851. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6852. },
  6853. /**
  6854. *
  6855. * @param {*} [options] Override http request option.
  6856. * @throws {RequiredError}
  6857. */
  6858. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6859. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  6860. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6861. },
  6862. /**
  6863. *
  6864. * @param {boolean} [isArchived]
  6865. * @param {boolean} [isFavorite]
  6866. * @param {boolean} [isTrashed]
  6867. * @param {*} [options] Override http request option.
  6868. * @throws {RequiredError}
  6869. */
  6870. async getAssetStats(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  6871. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStats(isArchived, isFavorite, isTrashed, options);
  6872. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6873. },
  6874. /**
  6875. *
  6876. * @param {string} id
  6877. * @param {ThumbnailFormat} [format]
  6878. * @param {string} [key]
  6879. * @param {*} [options] Override http request option.
  6880. * @throws {RequiredError}
  6881. */
  6882. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6883. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  6884. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6885. },
  6886. /**
  6887. *
  6888. * @param {TimeBucketSize} size
  6889. * @param {string} timeBucket
  6890. * @param {string} [userId]
  6891. * @param {string} [albumId]
  6892. * @param {string} [personId]
  6893. * @param {boolean} [isArchived]
  6894. * @param {boolean} [isFavorite]
  6895. * @param {boolean} [isTrashed]
  6896. * @param {boolean} [withStacked]
  6897. * @param {string} [key]
  6898. * @param {*} [options] Override http request option.
  6899. * @throws {RequiredError}
  6900. */
  6901. async getByTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6902. const localVarAxiosArgs = await localVarAxiosParamCreator.getByTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, key, options);
  6903. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6904. },
  6905. /**
  6906. *
  6907. * @param {*} [options] Override http request option.
  6908. * @throws {RequiredError}
  6909. */
  6910. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  6911. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  6912. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6913. },
  6914. /**
  6915. *
  6916. * @param {*} [options] Override http request option.
  6917. * @throws {RequiredError}
  6918. */
  6919. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  6920. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  6921. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6922. },
  6923. /**
  6924. *
  6925. * @param {DownloadInfoDto} downloadInfoDto
  6926. * @param {string} [key]
  6927. * @param {*} [options] Override http request option.
  6928. * @throws {RequiredError}
  6929. */
  6930. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  6931. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  6932. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6933. },
  6934. /**
  6935. *
  6936. * @param {boolean} [isArchived]
  6937. * @param {boolean} [isFavorite]
  6938. * @param {string} [fileCreatedAfter]
  6939. * @param {string} [fileCreatedBefore]
  6940. * @param {*} [options] Override http request option.
  6941. * @throws {RequiredError}
  6942. */
  6943. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  6944. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  6945. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6946. },
  6947. /**
  6948. *
  6949. * @param {number} day
  6950. * @param {number} month
  6951. * @param {*} [options] Override http request option.
  6952. * @throws {RequiredError}
  6953. */
  6954. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  6955. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  6956. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6957. },
  6958. /**
  6959. *
  6960. * @param {number} [count]
  6961. * @param {*} [options] Override http request option.
  6962. * @throws {RequiredError}
  6963. */
  6964. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6965. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  6966. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6967. },
  6968. /**
  6969. *
  6970. * @param {TimeBucketSize} size
  6971. * @param {string} [userId]
  6972. * @param {string} [albumId]
  6973. * @param {string} [personId]
  6974. * @param {boolean} [isArchived]
  6975. * @param {boolean} [isFavorite]
  6976. * @param {boolean} [isTrashed]
  6977. * @param {boolean} [withStacked]
  6978. * @param {string} [key]
  6979. * @param {*} [options] Override http request option.
  6980. * @throws {RequiredError}
  6981. */
  6982. async getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
  6983. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, key, options);
  6984. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6985. },
  6986. /**
  6987. * Get all asset of a device that are in the database, ID only.
  6988. * @param {string} deviceId
  6989. * @param {*} [options] Override http request option.
  6990. * @throws {RequiredError}
  6991. */
  6992. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6993. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  6994. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6995. },
  6996. /**
  6997. *
  6998. * @param {ImportAssetDto} importAssetDto
  6999. * @param {*} [options] Override http request option.
  7000. * @throws {RequiredError}
  7001. */
  7002. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7003. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  7004. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7005. },
  7006. /**
  7007. *
  7008. * @param {BulkIdsDto} bulkIdsDto
  7009. * @param {*} [options] Override http request option.
  7010. * @throws {RequiredError}
  7011. */
  7012. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7013. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  7014. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7015. },
  7016. /**
  7017. *
  7018. * @param {*} [options] Override http request option.
  7019. * @throws {RequiredError}
  7020. */
  7021. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7022. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7023. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7024. },
  7025. /**
  7026. *
  7027. * @param {AssetJobsDto} assetJobsDto
  7028. * @param {*} [options] Override http request option.
  7029. * @throws {RequiredError}
  7030. */
  7031. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7032. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7033. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7034. },
  7035. /**
  7036. *
  7037. * @param {SearchAssetDto} searchAssetDto
  7038. * @param {*} [options] Override http request option.
  7039. * @throws {RequiredError}
  7040. */
  7041. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7042. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  7043. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7044. },
  7045. /**
  7046. *
  7047. * @param {string} id
  7048. * @param {boolean} [isThumb]
  7049. * @param {boolean} [isWeb]
  7050. * @param {string} [key]
  7051. * @param {*} [options] Override http request option.
  7052. * @throws {RequiredError}
  7053. */
  7054. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7055. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7056. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7057. },
  7058. /**
  7059. *
  7060. * @param {string} id
  7061. * @param {UpdateAssetDto} updateAssetDto
  7062. * @param {*} [options] Override http request option.
  7063. * @throws {RequiredError}
  7064. */
  7065. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7066. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7067. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7068. },
  7069. /**
  7070. *
  7071. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7072. * @param {*} [options] Override http request option.
  7073. * @throws {RequiredError}
  7074. */
  7075. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7076. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7077. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7078. },
  7079. /**
  7080. *
  7081. * @param {UpdateStackParentDto} updateStackParentDto
  7082. * @param {*} [options] Override http request option.
  7083. * @throws {RequiredError}
  7084. */
  7085. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7086. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7087. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7088. },
  7089. /**
  7090. *
  7091. * @param {File} assetData
  7092. * @param {string} deviceAssetId
  7093. * @param {string} deviceId
  7094. * @param {string} fileCreatedAt
  7095. * @param {string} fileModifiedAt
  7096. * @param {boolean} isFavorite
  7097. * @param {string} [key]
  7098. * @param {string} [duration]
  7099. * @param {boolean} [isArchived]
  7100. * @param {boolean} [isExternal]
  7101. * @param {boolean} [isOffline]
  7102. * @param {boolean} [isReadOnly]
  7103. * @param {boolean} [isVisible]
  7104. * @param {string} [libraryId]
  7105. * @param {File} [livePhotoData]
  7106. * @param {File} [sidecarData]
  7107. * @param {*} [options] Override http request option.
  7108. * @throws {RequiredError}
  7109. */
  7110. async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7111. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isExternal, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7112. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7113. },
  7114. }
  7115. };
  7116. /**
  7117. * AssetApi - factory interface
  7118. * @export
  7119. */
  7120. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7121. const localVarFp = AssetApiFp(configuration)
  7122. return {
  7123. /**
  7124. * Checks if assets exist by checksums
  7125. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  7126. * @param {*} [options] Override http request option.
  7127. * @throws {RequiredError}
  7128. */
  7129. bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7130. return localVarFp.bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7131. },
  7132. /**
  7133. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7134. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7135. * @param {*} [options] Override http request option.
  7136. * @throws {RequiredError}
  7137. */
  7138. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7139. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7140. },
  7141. /**
  7142. *
  7143. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7144. * @param {*} [options] Override http request option.
  7145. * @throws {RequiredError}
  7146. */
  7147. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7148. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7149. },
  7150. /**
  7151. *
  7152. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7153. * @param {*} [options] Override http request option.
  7154. * @throws {RequiredError}
  7155. */
  7156. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7157. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7158. },
  7159. /**
  7160. *
  7161. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7162. * @param {*} [options] Override http request option.
  7163. * @throws {RequiredError}
  7164. */
  7165. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7166. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7167. },
  7168. /**
  7169. *
  7170. * @param {*} [options] Override http request option.
  7171. * @throws {RequiredError}
  7172. */
  7173. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7174. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7175. },
  7176. /**
  7177. * Get all AssetEntity belong to the user
  7178. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7179. * @param {*} [options] Override http request option.
  7180. * @throws {RequiredError}
  7181. */
  7182. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7183. return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7184. },
  7185. /**
  7186. * Get a single asset\'s information
  7187. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7188. * @param {*} [options] Override http request option.
  7189. * @throws {RequiredError}
  7190. */
  7191. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7192. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7193. },
  7194. /**
  7195. *
  7196. * @param {*} [options] Override http request option.
  7197. * @throws {RequiredError}
  7198. */
  7199. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7200. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7201. },
  7202. /**
  7203. *
  7204. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  7205. * @param {*} [options] Override http request option.
  7206. * @throws {RequiredError}
  7207. */
  7208. getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7209. return localVarFp.getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7210. },
  7211. /**
  7212. *
  7213. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7214. * @param {*} [options] Override http request option.
  7215. * @throws {RequiredError}
  7216. */
  7217. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7218. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7219. },
  7220. /**
  7221. *
  7222. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  7223. * @param {*} [options] Override http request option.
  7224. * @throws {RequiredError}
  7225. */
  7226. getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7227. return localVarFp.getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.key, options).then((request) => request(axios, basePath));
  7228. },
  7229. /**
  7230. *
  7231. * @param {*} [options] Override http request option.
  7232. * @throws {RequiredError}
  7233. */
  7234. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7235. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7236. },
  7237. /**
  7238. *
  7239. * @param {*} [options] Override http request option.
  7240. * @throws {RequiredError}
  7241. */
  7242. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7243. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7244. },
  7245. /**
  7246. *
  7247. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7248. * @param {*} [options] Override http request option.
  7249. * @throws {RequiredError}
  7250. */
  7251. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7252. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7253. },
  7254. /**
  7255. *
  7256. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7257. * @param {*} [options] Override http request option.
  7258. * @throws {RequiredError}
  7259. */
  7260. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7261. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7262. },
  7263. /**
  7264. *
  7265. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7266. * @param {*} [options] Override http request option.
  7267. * @throws {RequiredError}
  7268. */
  7269. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7270. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7271. },
  7272. /**
  7273. *
  7274. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7275. * @param {*} [options] Override http request option.
  7276. * @throws {RequiredError}
  7277. */
  7278. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7279. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7280. },
  7281. /**
  7282. *
  7283. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7284. * @param {*} [options] Override http request option.
  7285. * @throws {RequiredError}
  7286. */
  7287. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7288. return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.key, options).then((request) => request(axios, basePath));
  7289. },
  7290. /**
  7291. * Get all asset of a device that are in the database, ID only.
  7292. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7293. * @param {*} [options] Override http request option.
  7294. * @throws {RequiredError}
  7295. */
  7296. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7297. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7298. },
  7299. /**
  7300. *
  7301. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7302. * @param {*} [options] Override http request option.
  7303. * @throws {RequiredError}
  7304. */
  7305. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7306. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7307. },
  7308. /**
  7309. *
  7310. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7311. * @param {*} [options] Override http request option.
  7312. * @throws {RequiredError}
  7313. */
  7314. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7315. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7316. },
  7317. /**
  7318. *
  7319. * @param {*} [options] Override http request option.
  7320. * @throws {RequiredError}
  7321. */
  7322. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7323. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  7324. },
  7325. /**
  7326. *
  7327. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  7328. * @param {*} [options] Override http request option.
  7329. * @throws {RequiredError}
  7330. */
  7331. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7332. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  7333. },
  7334. /**
  7335. *
  7336. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  7337. * @param {*} [options] Override http request option.
  7338. * @throws {RequiredError}
  7339. */
  7340. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7341. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  7342. },
  7343. /**
  7344. *
  7345. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  7346. * @param {*} [options] Override http request option.
  7347. * @throws {RequiredError}
  7348. */
  7349. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7350. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  7351. },
  7352. /**
  7353. *
  7354. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  7355. * @param {*} [options] Override http request option.
  7356. * @throws {RequiredError}
  7357. */
  7358. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7359. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  7360. },
  7361. /**
  7362. *
  7363. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  7364. * @param {*} [options] Override http request option.
  7365. * @throws {RequiredError}
  7366. */
  7367. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7368. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  7369. },
  7370. /**
  7371. *
  7372. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  7373. * @param {*} [options] Override http request option.
  7374. * @throws {RequiredError}
  7375. */
  7376. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7377. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  7378. },
  7379. /**
  7380. *
  7381. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  7382. * @param {*} [options] Override http request option.
  7383. * @throws {RequiredError}
  7384. */
  7385. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7386. return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
  7387. },
  7388. };
  7389. };
  7390. /**
  7391. * Request parameters for bulkUploadCheck operation in AssetApi.
  7392. * @export
  7393. * @interface AssetApiBulkUploadCheckRequest
  7394. */
  7395. export interface AssetApiBulkUploadCheckRequest {
  7396. /**
  7397. *
  7398. * @type {AssetBulkUploadCheckDto}
  7399. * @memberof AssetApiBulkUploadCheck
  7400. */
  7401. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  7402. }
  7403. /**
  7404. * Request parameters for checkExistingAssets operation in AssetApi.
  7405. * @export
  7406. * @interface AssetApiCheckExistingAssetsRequest
  7407. */
  7408. export interface AssetApiCheckExistingAssetsRequest {
  7409. /**
  7410. *
  7411. * @type {CheckExistingAssetsDto}
  7412. * @memberof AssetApiCheckExistingAssets
  7413. */
  7414. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  7415. }
  7416. /**
  7417. * Request parameters for deleteAssets operation in AssetApi.
  7418. * @export
  7419. * @interface AssetApiDeleteAssetsRequest
  7420. */
  7421. export interface AssetApiDeleteAssetsRequest {
  7422. /**
  7423. *
  7424. * @type {AssetBulkDeleteDto}
  7425. * @memberof AssetApiDeleteAssets
  7426. */
  7427. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  7428. }
  7429. /**
  7430. * Request parameters for downloadArchive operation in AssetApi.
  7431. * @export
  7432. * @interface AssetApiDownloadArchiveRequest
  7433. */
  7434. export interface AssetApiDownloadArchiveRequest {
  7435. /**
  7436. *
  7437. * @type {AssetIdsDto}
  7438. * @memberof AssetApiDownloadArchive
  7439. */
  7440. readonly assetIdsDto: AssetIdsDto
  7441. /**
  7442. *
  7443. * @type {string}
  7444. * @memberof AssetApiDownloadArchive
  7445. */
  7446. readonly key?: string
  7447. }
  7448. /**
  7449. * Request parameters for downloadFile operation in AssetApi.
  7450. * @export
  7451. * @interface AssetApiDownloadFileRequest
  7452. */
  7453. export interface AssetApiDownloadFileRequest {
  7454. /**
  7455. *
  7456. * @type {string}
  7457. * @memberof AssetApiDownloadFile
  7458. */
  7459. readonly id: string
  7460. /**
  7461. *
  7462. * @type {string}
  7463. * @memberof AssetApiDownloadFile
  7464. */
  7465. readonly key?: string
  7466. }
  7467. /**
  7468. * Request parameters for getAllAssets operation in AssetApi.
  7469. * @export
  7470. * @interface AssetApiGetAllAssetsRequest
  7471. */
  7472. export interface AssetApiGetAllAssetsRequest {
  7473. /**
  7474. *
  7475. * @type {string}
  7476. * @memberof AssetApiGetAllAssets
  7477. */
  7478. readonly userId?: string
  7479. /**
  7480. *
  7481. * @type {boolean}
  7482. * @memberof AssetApiGetAllAssets
  7483. */
  7484. readonly isFavorite?: boolean
  7485. /**
  7486. *
  7487. * @type {boolean}
  7488. * @memberof AssetApiGetAllAssets
  7489. */
  7490. readonly isArchived?: boolean
  7491. /**
  7492. *
  7493. * @type {number}
  7494. * @memberof AssetApiGetAllAssets
  7495. */
  7496. readonly skip?: number
  7497. /**
  7498. *
  7499. * @type {string}
  7500. * @memberof AssetApiGetAllAssets
  7501. */
  7502. readonly updatedAfter?: string
  7503. /**
  7504. * ETag of data already cached on the client
  7505. * @type {string}
  7506. * @memberof AssetApiGetAllAssets
  7507. */
  7508. readonly ifNoneMatch?: string
  7509. }
  7510. /**
  7511. * Request parameters for getAssetById operation in AssetApi.
  7512. * @export
  7513. * @interface AssetApiGetAssetByIdRequest
  7514. */
  7515. export interface AssetApiGetAssetByIdRequest {
  7516. /**
  7517. *
  7518. * @type {string}
  7519. * @memberof AssetApiGetAssetById
  7520. */
  7521. readonly id: string
  7522. /**
  7523. *
  7524. * @type {string}
  7525. * @memberof AssetApiGetAssetById
  7526. */
  7527. readonly key?: string
  7528. }
  7529. /**
  7530. * Request parameters for getAssetStats operation in AssetApi.
  7531. * @export
  7532. * @interface AssetApiGetAssetStatsRequest
  7533. */
  7534. export interface AssetApiGetAssetStatsRequest {
  7535. /**
  7536. *
  7537. * @type {boolean}
  7538. * @memberof AssetApiGetAssetStats
  7539. */
  7540. readonly isArchived?: boolean
  7541. /**
  7542. *
  7543. * @type {boolean}
  7544. * @memberof AssetApiGetAssetStats
  7545. */
  7546. readonly isFavorite?: boolean
  7547. /**
  7548. *
  7549. * @type {boolean}
  7550. * @memberof AssetApiGetAssetStats
  7551. */
  7552. readonly isTrashed?: boolean
  7553. }
  7554. /**
  7555. * Request parameters for getAssetThumbnail operation in AssetApi.
  7556. * @export
  7557. * @interface AssetApiGetAssetThumbnailRequest
  7558. */
  7559. export interface AssetApiGetAssetThumbnailRequest {
  7560. /**
  7561. *
  7562. * @type {string}
  7563. * @memberof AssetApiGetAssetThumbnail
  7564. */
  7565. readonly id: string
  7566. /**
  7567. *
  7568. * @type {ThumbnailFormat}
  7569. * @memberof AssetApiGetAssetThumbnail
  7570. */
  7571. readonly format?: ThumbnailFormat
  7572. /**
  7573. *
  7574. * @type {string}
  7575. * @memberof AssetApiGetAssetThumbnail
  7576. */
  7577. readonly key?: string
  7578. }
  7579. /**
  7580. * Request parameters for getByTimeBucket operation in AssetApi.
  7581. * @export
  7582. * @interface AssetApiGetByTimeBucketRequest
  7583. */
  7584. export interface AssetApiGetByTimeBucketRequest {
  7585. /**
  7586. *
  7587. * @type {TimeBucketSize}
  7588. * @memberof AssetApiGetByTimeBucket
  7589. */
  7590. readonly size: TimeBucketSize
  7591. /**
  7592. *
  7593. * @type {string}
  7594. * @memberof AssetApiGetByTimeBucket
  7595. */
  7596. readonly timeBucket: string
  7597. /**
  7598. *
  7599. * @type {string}
  7600. * @memberof AssetApiGetByTimeBucket
  7601. */
  7602. readonly userId?: string
  7603. /**
  7604. *
  7605. * @type {string}
  7606. * @memberof AssetApiGetByTimeBucket
  7607. */
  7608. readonly albumId?: string
  7609. /**
  7610. *
  7611. * @type {string}
  7612. * @memberof AssetApiGetByTimeBucket
  7613. */
  7614. readonly personId?: string
  7615. /**
  7616. *
  7617. * @type {boolean}
  7618. * @memberof AssetApiGetByTimeBucket
  7619. */
  7620. readonly isArchived?: boolean
  7621. /**
  7622. *
  7623. * @type {boolean}
  7624. * @memberof AssetApiGetByTimeBucket
  7625. */
  7626. readonly isFavorite?: boolean
  7627. /**
  7628. *
  7629. * @type {boolean}
  7630. * @memberof AssetApiGetByTimeBucket
  7631. */
  7632. readonly isTrashed?: boolean
  7633. /**
  7634. *
  7635. * @type {boolean}
  7636. * @memberof AssetApiGetByTimeBucket
  7637. */
  7638. readonly withStacked?: boolean
  7639. /**
  7640. *
  7641. * @type {string}
  7642. * @memberof AssetApiGetByTimeBucket
  7643. */
  7644. readonly key?: string
  7645. }
  7646. /**
  7647. * Request parameters for getDownloadInfo operation in AssetApi.
  7648. * @export
  7649. * @interface AssetApiGetDownloadInfoRequest
  7650. */
  7651. export interface AssetApiGetDownloadInfoRequest {
  7652. /**
  7653. *
  7654. * @type {DownloadInfoDto}
  7655. * @memberof AssetApiGetDownloadInfo
  7656. */
  7657. readonly downloadInfoDto: DownloadInfoDto
  7658. /**
  7659. *
  7660. * @type {string}
  7661. * @memberof AssetApiGetDownloadInfo
  7662. */
  7663. readonly key?: string
  7664. }
  7665. /**
  7666. * Request parameters for getMapMarkers operation in AssetApi.
  7667. * @export
  7668. * @interface AssetApiGetMapMarkersRequest
  7669. */
  7670. export interface AssetApiGetMapMarkersRequest {
  7671. /**
  7672. *
  7673. * @type {boolean}
  7674. * @memberof AssetApiGetMapMarkers
  7675. */
  7676. readonly isArchived?: boolean
  7677. /**
  7678. *
  7679. * @type {boolean}
  7680. * @memberof AssetApiGetMapMarkers
  7681. */
  7682. readonly isFavorite?: boolean
  7683. /**
  7684. *
  7685. * @type {string}
  7686. * @memberof AssetApiGetMapMarkers
  7687. */
  7688. readonly fileCreatedAfter?: string
  7689. /**
  7690. *
  7691. * @type {string}
  7692. * @memberof AssetApiGetMapMarkers
  7693. */
  7694. readonly fileCreatedBefore?: string
  7695. }
  7696. /**
  7697. * Request parameters for getMemoryLane operation in AssetApi.
  7698. * @export
  7699. * @interface AssetApiGetMemoryLaneRequest
  7700. */
  7701. export interface AssetApiGetMemoryLaneRequest {
  7702. /**
  7703. *
  7704. * @type {number}
  7705. * @memberof AssetApiGetMemoryLane
  7706. */
  7707. readonly day: number
  7708. /**
  7709. *
  7710. * @type {number}
  7711. * @memberof AssetApiGetMemoryLane
  7712. */
  7713. readonly month: number
  7714. }
  7715. /**
  7716. * Request parameters for getRandom operation in AssetApi.
  7717. * @export
  7718. * @interface AssetApiGetRandomRequest
  7719. */
  7720. export interface AssetApiGetRandomRequest {
  7721. /**
  7722. *
  7723. * @type {number}
  7724. * @memberof AssetApiGetRandom
  7725. */
  7726. readonly count?: number
  7727. }
  7728. /**
  7729. * Request parameters for getTimeBuckets operation in AssetApi.
  7730. * @export
  7731. * @interface AssetApiGetTimeBucketsRequest
  7732. */
  7733. export interface AssetApiGetTimeBucketsRequest {
  7734. /**
  7735. *
  7736. * @type {TimeBucketSize}
  7737. * @memberof AssetApiGetTimeBuckets
  7738. */
  7739. readonly size: TimeBucketSize
  7740. /**
  7741. *
  7742. * @type {string}
  7743. * @memberof AssetApiGetTimeBuckets
  7744. */
  7745. readonly userId?: string
  7746. /**
  7747. *
  7748. * @type {string}
  7749. * @memberof AssetApiGetTimeBuckets
  7750. */
  7751. readonly albumId?: string
  7752. /**
  7753. *
  7754. * @type {string}
  7755. * @memberof AssetApiGetTimeBuckets
  7756. */
  7757. readonly personId?: string
  7758. /**
  7759. *
  7760. * @type {boolean}
  7761. * @memberof AssetApiGetTimeBuckets
  7762. */
  7763. readonly isArchived?: boolean
  7764. /**
  7765. *
  7766. * @type {boolean}
  7767. * @memberof AssetApiGetTimeBuckets
  7768. */
  7769. readonly isFavorite?: boolean
  7770. /**
  7771. *
  7772. * @type {boolean}
  7773. * @memberof AssetApiGetTimeBuckets
  7774. */
  7775. readonly isTrashed?: boolean
  7776. /**
  7777. *
  7778. * @type {boolean}
  7779. * @memberof AssetApiGetTimeBuckets
  7780. */
  7781. readonly withStacked?: boolean
  7782. /**
  7783. *
  7784. * @type {string}
  7785. * @memberof AssetApiGetTimeBuckets
  7786. */
  7787. readonly key?: string
  7788. }
  7789. /**
  7790. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  7791. * @export
  7792. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  7793. */
  7794. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  7795. /**
  7796. *
  7797. * @type {string}
  7798. * @memberof AssetApiGetUserAssetsByDeviceId
  7799. */
  7800. readonly deviceId: string
  7801. }
  7802. /**
  7803. * Request parameters for importFile operation in AssetApi.
  7804. * @export
  7805. * @interface AssetApiImportFileRequest
  7806. */
  7807. export interface AssetApiImportFileRequest {
  7808. /**
  7809. *
  7810. * @type {ImportAssetDto}
  7811. * @memberof AssetApiImportFile
  7812. */
  7813. readonly importAssetDto: ImportAssetDto
  7814. }
  7815. /**
  7816. * Request parameters for restoreAssets operation in AssetApi.
  7817. * @export
  7818. * @interface AssetApiRestoreAssetsRequest
  7819. */
  7820. export interface AssetApiRestoreAssetsRequest {
  7821. /**
  7822. *
  7823. * @type {BulkIdsDto}
  7824. * @memberof AssetApiRestoreAssets
  7825. */
  7826. readonly bulkIdsDto: BulkIdsDto
  7827. }
  7828. /**
  7829. * Request parameters for runAssetJobs operation in AssetApi.
  7830. * @export
  7831. * @interface AssetApiRunAssetJobsRequest
  7832. */
  7833. export interface AssetApiRunAssetJobsRequest {
  7834. /**
  7835. *
  7836. * @type {AssetJobsDto}
  7837. * @memberof AssetApiRunAssetJobs
  7838. */
  7839. readonly assetJobsDto: AssetJobsDto
  7840. }
  7841. /**
  7842. * Request parameters for searchAsset operation in AssetApi.
  7843. * @export
  7844. * @interface AssetApiSearchAssetRequest
  7845. */
  7846. export interface AssetApiSearchAssetRequest {
  7847. /**
  7848. *
  7849. * @type {SearchAssetDto}
  7850. * @memberof AssetApiSearchAsset
  7851. */
  7852. readonly searchAssetDto: SearchAssetDto
  7853. }
  7854. /**
  7855. * Request parameters for serveFile operation in AssetApi.
  7856. * @export
  7857. * @interface AssetApiServeFileRequest
  7858. */
  7859. export interface AssetApiServeFileRequest {
  7860. /**
  7861. *
  7862. * @type {string}
  7863. * @memberof AssetApiServeFile
  7864. */
  7865. readonly id: string
  7866. /**
  7867. *
  7868. * @type {boolean}
  7869. * @memberof AssetApiServeFile
  7870. */
  7871. readonly isThumb?: boolean
  7872. /**
  7873. *
  7874. * @type {boolean}
  7875. * @memberof AssetApiServeFile
  7876. */
  7877. readonly isWeb?: boolean
  7878. /**
  7879. *
  7880. * @type {string}
  7881. * @memberof AssetApiServeFile
  7882. */
  7883. readonly key?: string
  7884. }
  7885. /**
  7886. * Request parameters for updateAsset operation in AssetApi.
  7887. * @export
  7888. * @interface AssetApiUpdateAssetRequest
  7889. */
  7890. export interface AssetApiUpdateAssetRequest {
  7891. /**
  7892. *
  7893. * @type {string}
  7894. * @memberof AssetApiUpdateAsset
  7895. */
  7896. readonly id: string
  7897. /**
  7898. *
  7899. * @type {UpdateAssetDto}
  7900. * @memberof AssetApiUpdateAsset
  7901. */
  7902. readonly updateAssetDto: UpdateAssetDto
  7903. }
  7904. /**
  7905. * Request parameters for updateAssets operation in AssetApi.
  7906. * @export
  7907. * @interface AssetApiUpdateAssetsRequest
  7908. */
  7909. export interface AssetApiUpdateAssetsRequest {
  7910. /**
  7911. *
  7912. * @type {AssetBulkUpdateDto}
  7913. * @memberof AssetApiUpdateAssets
  7914. */
  7915. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  7916. }
  7917. /**
  7918. * Request parameters for updateStackParent operation in AssetApi.
  7919. * @export
  7920. * @interface AssetApiUpdateStackParentRequest
  7921. */
  7922. export interface AssetApiUpdateStackParentRequest {
  7923. /**
  7924. *
  7925. * @type {UpdateStackParentDto}
  7926. * @memberof AssetApiUpdateStackParent
  7927. */
  7928. readonly updateStackParentDto: UpdateStackParentDto
  7929. }
  7930. /**
  7931. * Request parameters for uploadFile operation in AssetApi.
  7932. * @export
  7933. * @interface AssetApiUploadFileRequest
  7934. */
  7935. export interface AssetApiUploadFileRequest {
  7936. /**
  7937. *
  7938. * @type {File}
  7939. * @memberof AssetApiUploadFile
  7940. */
  7941. readonly assetData: File
  7942. /**
  7943. *
  7944. * @type {string}
  7945. * @memberof AssetApiUploadFile
  7946. */
  7947. readonly deviceAssetId: string
  7948. /**
  7949. *
  7950. * @type {string}
  7951. * @memberof AssetApiUploadFile
  7952. */
  7953. readonly deviceId: string
  7954. /**
  7955. *
  7956. * @type {string}
  7957. * @memberof AssetApiUploadFile
  7958. */
  7959. readonly fileCreatedAt: string
  7960. /**
  7961. *
  7962. * @type {string}
  7963. * @memberof AssetApiUploadFile
  7964. */
  7965. readonly fileModifiedAt: string
  7966. /**
  7967. *
  7968. * @type {boolean}
  7969. * @memberof AssetApiUploadFile
  7970. */
  7971. readonly isFavorite: boolean
  7972. /**
  7973. *
  7974. * @type {string}
  7975. * @memberof AssetApiUploadFile
  7976. */
  7977. readonly key?: string
  7978. /**
  7979. *
  7980. * @type {string}
  7981. * @memberof AssetApiUploadFile
  7982. */
  7983. readonly duration?: string
  7984. /**
  7985. *
  7986. * @type {boolean}
  7987. * @memberof AssetApiUploadFile
  7988. */
  7989. readonly isArchived?: boolean
  7990. /**
  7991. *
  7992. * @type {boolean}
  7993. * @memberof AssetApiUploadFile
  7994. */
  7995. readonly isExternal?: boolean
  7996. /**
  7997. *
  7998. * @type {boolean}
  7999. * @memberof AssetApiUploadFile
  8000. */
  8001. readonly isOffline?: boolean
  8002. /**
  8003. *
  8004. * @type {boolean}
  8005. * @memberof AssetApiUploadFile
  8006. */
  8007. readonly isReadOnly?: boolean
  8008. /**
  8009. *
  8010. * @type {boolean}
  8011. * @memberof AssetApiUploadFile
  8012. */
  8013. readonly isVisible?: boolean
  8014. /**
  8015. *
  8016. * @type {string}
  8017. * @memberof AssetApiUploadFile
  8018. */
  8019. readonly libraryId?: string
  8020. /**
  8021. *
  8022. * @type {File}
  8023. * @memberof AssetApiUploadFile
  8024. */
  8025. readonly livePhotoData?: File
  8026. /**
  8027. *
  8028. * @type {File}
  8029. * @memberof AssetApiUploadFile
  8030. */
  8031. readonly sidecarData?: File
  8032. }
  8033. /**
  8034. * AssetApi - object-oriented interface
  8035. * @export
  8036. * @class AssetApi
  8037. * @extends {BaseAPI}
  8038. */
  8039. export class AssetApi extends BaseAPI {
  8040. /**
  8041. * Checks if assets exist by checksums
  8042. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  8043. * @param {*} [options] Override http request option.
  8044. * @throws {RequiredError}
  8045. * @memberof AssetApi
  8046. */
  8047. public bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig) {
  8048. return AssetApiFp(this.configuration).bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  8049. }
  8050. /**
  8051. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  8052. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  8053. * @param {*} [options] Override http request option.
  8054. * @throws {RequiredError}
  8055. * @memberof AssetApi
  8056. */
  8057. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  8058. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  8059. }
  8060. /**
  8061. *
  8062. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  8063. * @param {*} [options] Override http request option.
  8064. * @throws {RequiredError}
  8065. * @memberof AssetApi
  8066. */
  8067. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  8068. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  8069. }
  8070. /**
  8071. *
  8072. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  8073. * @param {*} [options] Override http request option.
  8074. * @throws {RequiredError}
  8075. * @memberof AssetApi
  8076. */
  8077. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  8078. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8079. }
  8080. /**
  8081. *
  8082. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  8083. * @param {*} [options] Override http request option.
  8084. * @throws {RequiredError}
  8085. * @memberof AssetApi
  8086. */
  8087. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  8088. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8089. }
  8090. /**
  8091. *
  8092. * @param {*} [options] Override http request option.
  8093. * @throws {RequiredError}
  8094. * @memberof AssetApi
  8095. */
  8096. public emptyTrash(options?: AxiosRequestConfig) {
  8097. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  8098. }
  8099. /**
  8100. * Get all AssetEntity belong to the user
  8101. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  8102. * @param {*} [options] Override http request option.
  8103. * @throws {RequiredError}
  8104. * @memberof AssetApi
  8105. */
  8106. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  8107. return AssetApiFp(this.configuration).getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  8108. }
  8109. /**
  8110. * Get a single asset\'s information
  8111. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8112. * @param {*} [options] Override http request option.
  8113. * @throws {RequiredError}
  8114. * @memberof AssetApi
  8115. */
  8116. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  8117. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8118. }
  8119. /**
  8120. *
  8121. * @param {*} [options] Override http request option.
  8122. * @throws {RequiredError}
  8123. * @memberof AssetApi
  8124. */
  8125. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  8126. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  8127. }
  8128. /**
  8129. *
  8130. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  8131. * @param {*} [options] Override http request option.
  8132. * @throws {RequiredError}
  8133. * @memberof AssetApi
  8134. */
  8135. public getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig) {
  8136. return AssetApiFp(this.configuration).getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  8137. }
  8138. /**
  8139. *
  8140. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8141. * @param {*} [options] Override http request option.
  8142. * @throws {RequiredError}
  8143. * @memberof AssetApi
  8144. */
  8145. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  8146. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8147. }
  8148. /**
  8149. *
  8150. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  8151. * @param {*} [options] Override http request option.
  8152. * @throws {RequiredError}
  8153. * @memberof AssetApi
  8154. */
  8155. public getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig) {
  8156. return AssetApiFp(this.configuration).getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8157. }
  8158. /**
  8159. *
  8160. * @param {*} [options] Override http request option.
  8161. * @throws {RequiredError}
  8162. * @memberof AssetApi
  8163. */
  8164. public getCuratedLocations(options?: AxiosRequestConfig) {
  8165. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  8166. }
  8167. /**
  8168. *
  8169. * @param {*} [options] Override http request option.
  8170. * @throws {RequiredError}
  8171. * @memberof AssetApi
  8172. */
  8173. public getCuratedObjects(options?: AxiosRequestConfig) {
  8174. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  8175. }
  8176. /**
  8177. *
  8178. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8179. * @param {*} [options] Override http request option.
  8180. * @throws {RequiredError}
  8181. * @memberof AssetApi
  8182. */
  8183. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  8184. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8185. }
  8186. /**
  8187. *
  8188. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8189. * @param {*} [options] Override http request option.
  8190. * @throws {RequiredError}
  8191. * @memberof AssetApi
  8192. */
  8193. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  8194. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  8195. }
  8196. /**
  8197. *
  8198. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8199. * @param {*} [options] Override http request option.
  8200. * @throws {RequiredError}
  8201. * @memberof AssetApi
  8202. */
  8203. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  8204. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  8205. }
  8206. /**
  8207. *
  8208. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8209. * @param {*} [options] Override http request option.
  8210. * @throws {RequiredError}
  8211. * @memberof AssetApi
  8212. */
  8213. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  8214. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  8215. }
  8216. /**
  8217. *
  8218. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8219. * @param {*} [options] Override http request option.
  8220. * @throws {RequiredError}
  8221. * @memberof AssetApi
  8222. */
  8223. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  8224. return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8225. }
  8226. /**
  8227. * Get all asset of a device that are in the database, ID only.
  8228. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8229. * @param {*} [options] Override http request option.
  8230. * @throws {RequiredError}
  8231. * @memberof AssetApi
  8232. */
  8233. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  8234. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  8235. }
  8236. /**
  8237. *
  8238. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  8239. * @param {*} [options] Override http request option.
  8240. * @throws {RequiredError}
  8241. * @memberof AssetApi
  8242. */
  8243. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  8244. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8245. }
  8246. /**
  8247. *
  8248. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8249. * @param {*} [options] Override http request option.
  8250. * @throws {RequiredError}
  8251. * @memberof AssetApi
  8252. */
  8253. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8254. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8255. }
  8256. /**
  8257. *
  8258. * @param {*} [options] Override http request option.
  8259. * @throws {RequiredError}
  8260. * @memberof AssetApi
  8261. */
  8262. public restoreTrash(options?: AxiosRequestConfig) {
  8263. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8264. }
  8265. /**
  8266. *
  8267. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8268. * @param {*} [options] Override http request option.
  8269. * @throws {RequiredError}
  8270. * @memberof AssetApi
  8271. */
  8272. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8273. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8274. }
  8275. /**
  8276. *
  8277. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8278. * @param {*} [options] Override http request option.
  8279. * @throws {RequiredError}
  8280. * @memberof AssetApi
  8281. */
  8282. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8283. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8284. }
  8285. /**
  8286. *
  8287. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8288. * @param {*} [options] Override http request option.
  8289. * @throws {RequiredError}
  8290. * @memberof AssetApi
  8291. */
  8292. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8293. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8294. }
  8295. /**
  8296. *
  8297. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8298. * @param {*} [options] Override http request option.
  8299. * @throws {RequiredError}
  8300. * @memberof AssetApi
  8301. */
  8302. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  8303. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  8304. }
  8305. /**
  8306. *
  8307. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8308. * @param {*} [options] Override http request option.
  8309. * @throws {RequiredError}
  8310. * @memberof AssetApi
  8311. */
  8312. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  8313. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8314. }
  8315. /**
  8316. *
  8317. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8318. * @param {*} [options] Override http request option.
  8319. * @throws {RequiredError}
  8320. * @memberof AssetApi
  8321. */
  8322. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  8323. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  8324. }
  8325. /**
  8326. *
  8327. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8328. * @param {*} [options] Override http request option.
  8329. * @throws {RequiredError}
  8330. * @memberof AssetApi
  8331. */
  8332. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  8333. return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
  8334. }
  8335. }
  8336. /**
  8337. * AuditApi - axios parameter creator
  8338. * @export
  8339. */
  8340. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  8341. return {
  8342. /**
  8343. *
  8344. * @param {FileReportFixDto} fileReportFixDto
  8345. * @param {*} [options] Override http request option.
  8346. * @throws {RequiredError}
  8347. */
  8348. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8349. // verify required parameter 'fileReportFixDto' is not null or undefined
  8350. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  8351. const localVarPath = `/audit/file-report/fix`;
  8352. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8353. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8354. let baseOptions;
  8355. if (configuration) {
  8356. baseOptions = configuration.baseOptions;
  8357. }
  8358. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8359. const localVarHeaderParameter = {} as any;
  8360. const localVarQueryParameter = {} as any;
  8361. // authentication cookie required
  8362. // authentication api_key required
  8363. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8364. // authentication bearer required
  8365. // http bearer authentication required
  8366. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8367. localVarHeaderParameter['Content-Type'] = 'application/json';
  8368. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8369. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8370. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8371. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  8372. return {
  8373. url: toPathString(localVarUrlObj),
  8374. options: localVarRequestOptions,
  8375. };
  8376. },
  8377. /**
  8378. *
  8379. * @param {EntityType} entityType
  8380. * @param {string} after
  8381. * @param {string} [userId]
  8382. * @param {*} [options] Override http request option.
  8383. * @throws {RequiredError}
  8384. */
  8385. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8386. // verify required parameter 'entityType' is not null or undefined
  8387. assertParamExists('getAuditDeletes', 'entityType', entityType)
  8388. // verify required parameter 'after' is not null or undefined
  8389. assertParamExists('getAuditDeletes', 'after', after)
  8390. const localVarPath = `/audit/deletes`;
  8391. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8392. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8393. let baseOptions;
  8394. if (configuration) {
  8395. baseOptions = configuration.baseOptions;
  8396. }
  8397. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8398. const localVarHeaderParameter = {} as any;
  8399. const localVarQueryParameter = {} as any;
  8400. // authentication cookie required
  8401. // authentication api_key required
  8402. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8403. // authentication bearer required
  8404. // http bearer authentication required
  8405. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8406. if (entityType !== undefined) {
  8407. localVarQueryParameter['entityType'] = entityType;
  8408. }
  8409. if (userId !== undefined) {
  8410. localVarQueryParameter['userId'] = userId;
  8411. }
  8412. if (after !== undefined) {
  8413. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  8414. (after as any).toISOString() :
  8415. after;
  8416. }
  8417. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8418. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8419. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8420. return {
  8421. url: toPathString(localVarUrlObj),
  8422. options: localVarRequestOptions,
  8423. };
  8424. },
  8425. /**
  8426. *
  8427. * @param {*} [options] Override http request option.
  8428. * @throws {RequiredError}
  8429. */
  8430. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8431. const localVarPath = `/audit/file-report`;
  8432. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8433. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8434. let baseOptions;
  8435. if (configuration) {
  8436. baseOptions = configuration.baseOptions;
  8437. }
  8438. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8439. const localVarHeaderParameter = {} as any;
  8440. const localVarQueryParameter = {} as any;
  8441. // authentication cookie required
  8442. // authentication api_key required
  8443. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8444. // authentication bearer required
  8445. // http bearer authentication required
  8446. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8447. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8448. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8449. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8450. return {
  8451. url: toPathString(localVarUrlObj),
  8452. options: localVarRequestOptions,
  8453. };
  8454. },
  8455. /**
  8456. *
  8457. * @param {FileChecksumDto} fileChecksumDto
  8458. * @param {*} [options] Override http request option.
  8459. * @throws {RequiredError}
  8460. */
  8461. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8462. // verify required parameter 'fileChecksumDto' is not null or undefined
  8463. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  8464. const localVarPath = `/audit/file-report/checksum`;
  8465. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8466. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8467. let baseOptions;
  8468. if (configuration) {
  8469. baseOptions = configuration.baseOptions;
  8470. }
  8471. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8472. const localVarHeaderParameter = {} as any;
  8473. const localVarQueryParameter = {} as any;
  8474. // authentication cookie required
  8475. // authentication api_key required
  8476. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8477. // authentication bearer required
  8478. // http bearer authentication required
  8479. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8480. localVarHeaderParameter['Content-Type'] = 'application/json';
  8481. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8482. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8483. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8484. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  8485. return {
  8486. url: toPathString(localVarUrlObj),
  8487. options: localVarRequestOptions,
  8488. };
  8489. },
  8490. }
  8491. };
  8492. /**
  8493. * AuditApi - functional programming interface
  8494. * @export
  8495. */
  8496. export const AuditApiFp = function(configuration?: Configuration) {
  8497. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  8498. return {
  8499. /**
  8500. *
  8501. * @param {FileReportFixDto} fileReportFixDto
  8502. * @param {*} [options] Override http request option.
  8503. * @throws {RequiredError}
  8504. */
  8505. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8506. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  8507. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8508. },
  8509. /**
  8510. *
  8511. * @param {EntityType} entityType
  8512. * @param {string} after
  8513. * @param {string} [userId]
  8514. * @param {*} [options] Override http request option.
  8515. * @throws {RequiredError}
  8516. */
  8517. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  8518. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  8519. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8520. },
  8521. /**
  8522. *
  8523. * @param {*} [options] Override http request option.
  8524. * @throws {RequiredError}
  8525. */
  8526. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  8527. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  8528. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8529. },
  8530. /**
  8531. *
  8532. * @param {FileChecksumDto} fileChecksumDto
  8533. * @param {*} [options] Override http request option.
  8534. * @throws {RequiredError}
  8535. */
  8536. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  8537. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  8538. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8539. },
  8540. }
  8541. };
  8542. /**
  8543. * AuditApi - factory interface
  8544. * @export
  8545. */
  8546. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8547. const localVarFp = AuditApiFp(configuration)
  8548. return {
  8549. /**
  8550. *
  8551. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8552. * @param {*} [options] Override http request option.
  8553. * @throws {RequiredError}
  8554. */
  8555. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8556. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  8557. },
  8558. /**
  8559. *
  8560. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8561. * @param {*} [options] Override http request option.
  8562. * @throws {RequiredError}
  8563. */
  8564. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  8565. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  8566. },
  8567. /**
  8568. *
  8569. * @param {*} [options] Override http request option.
  8570. * @throws {RequiredError}
  8571. */
  8572. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  8573. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  8574. },
  8575. /**
  8576. *
  8577. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8578. * @param {*} [options] Override http request option.
  8579. * @throws {RequiredError}
  8580. */
  8581. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  8582. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  8583. },
  8584. };
  8585. };
  8586. /**
  8587. * Request parameters for fixAuditFiles operation in AuditApi.
  8588. * @export
  8589. * @interface AuditApiFixAuditFilesRequest
  8590. */
  8591. export interface AuditApiFixAuditFilesRequest {
  8592. /**
  8593. *
  8594. * @type {FileReportFixDto}
  8595. * @memberof AuditApiFixAuditFiles
  8596. */
  8597. readonly fileReportFixDto: FileReportFixDto
  8598. }
  8599. /**
  8600. * Request parameters for getAuditDeletes operation in AuditApi.
  8601. * @export
  8602. * @interface AuditApiGetAuditDeletesRequest
  8603. */
  8604. export interface AuditApiGetAuditDeletesRequest {
  8605. /**
  8606. *
  8607. * @type {EntityType}
  8608. * @memberof AuditApiGetAuditDeletes
  8609. */
  8610. readonly entityType: EntityType
  8611. /**
  8612. *
  8613. * @type {string}
  8614. * @memberof AuditApiGetAuditDeletes
  8615. */
  8616. readonly after: string
  8617. /**
  8618. *
  8619. * @type {string}
  8620. * @memberof AuditApiGetAuditDeletes
  8621. */
  8622. readonly userId?: string
  8623. }
  8624. /**
  8625. * Request parameters for getFileChecksums operation in AuditApi.
  8626. * @export
  8627. * @interface AuditApiGetFileChecksumsRequest
  8628. */
  8629. export interface AuditApiGetFileChecksumsRequest {
  8630. /**
  8631. *
  8632. * @type {FileChecksumDto}
  8633. * @memberof AuditApiGetFileChecksums
  8634. */
  8635. readonly fileChecksumDto: FileChecksumDto
  8636. }
  8637. /**
  8638. * AuditApi - object-oriented interface
  8639. * @export
  8640. * @class AuditApi
  8641. * @extends {BaseAPI}
  8642. */
  8643. export class AuditApi extends BaseAPI {
  8644. /**
  8645. *
  8646. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8647. * @param {*} [options] Override http request option.
  8648. * @throws {RequiredError}
  8649. * @memberof AuditApi
  8650. */
  8651. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  8652. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  8653. }
  8654. /**
  8655. *
  8656. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8657. * @param {*} [options] Override http request option.
  8658. * @throws {RequiredError}
  8659. * @memberof AuditApi
  8660. */
  8661. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  8662. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  8663. }
  8664. /**
  8665. *
  8666. * @param {*} [options] Override http request option.
  8667. * @throws {RequiredError}
  8668. * @memberof AuditApi
  8669. */
  8670. public getAuditFiles(options?: AxiosRequestConfig) {
  8671. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  8672. }
  8673. /**
  8674. *
  8675. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8676. * @param {*} [options] Override http request option.
  8677. * @throws {RequiredError}
  8678. * @memberof AuditApi
  8679. */
  8680. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  8681. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  8682. }
  8683. }
  8684. /**
  8685. * AuthenticationApi - axios parameter creator
  8686. * @export
  8687. */
  8688. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  8689. return {
  8690. /**
  8691. *
  8692. * @param {SignUpDto} signUpDto
  8693. * @param {*} [options] Override http request option.
  8694. * @throws {RequiredError}
  8695. */
  8696. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8697. // verify required parameter 'signUpDto' is not null or undefined
  8698. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  8699. const localVarPath = `/auth/admin-sign-up`;
  8700. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8701. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8702. let baseOptions;
  8703. if (configuration) {
  8704. baseOptions = configuration.baseOptions;
  8705. }
  8706. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8707. const localVarHeaderParameter = {} as any;
  8708. const localVarQueryParameter = {} as any;
  8709. localVarHeaderParameter['Content-Type'] = 'application/json';
  8710. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8711. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8712. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8713. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  8714. return {
  8715. url: toPathString(localVarUrlObj),
  8716. options: localVarRequestOptions,
  8717. };
  8718. },
  8719. /**
  8720. *
  8721. * @param {ChangePasswordDto} changePasswordDto
  8722. * @param {*} [options] Override http request option.
  8723. * @throws {RequiredError}
  8724. */
  8725. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8726. // verify required parameter 'changePasswordDto' is not null or undefined
  8727. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  8728. const localVarPath = `/auth/change-password`;
  8729. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8730. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8731. let baseOptions;
  8732. if (configuration) {
  8733. baseOptions = configuration.baseOptions;
  8734. }
  8735. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8736. const localVarHeaderParameter = {} as any;
  8737. const localVarQueryParameter = {} as any;
  8738. // authentication cookie required
  8739. // authentication api_key required
  8740. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8741. // authentication bearer required
  8742. // http bearer authentication required
  8743. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8744. localVarHeaderParameter['Content-Type'] = 'application/json';
  8745. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8746. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8747. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8748. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  8749. return {
  8750. url: toPathString(localVarUrlObj),
  8751. options: localVarRequestOptions,
  8752. };
  8753. },
  8754. /**
  8755. *
  8756. * @param {*} [options] Override http request option.
  8757. * @throws {RequiredError}
  8758. */
  8759. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8760. const localVarPath = `/auth/devices`;
  8761. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8762. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8763. let baseOptions;
  8764. if (configuration) {
  8765. baseOptions = configuration.baseOptions;
  8766. }
  8767. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8768. const localVarHeaderParameter = {} as any;
  8769. const localVarQueryParameter = {} as any;
  8770. // authentication cookie required
  8771. // authentication api_key required
  8772. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8773. // authentication bearer required
  8774. // http bearer authentication required
  8775. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8776. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8777. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8778. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8779. return {
  8780. url: toPathString(localVarUrlObj),
  8781. options: localVarRequestOptions,
  8782. };
  8783. },
  8784. /**
  8785. *
  8786. * @param {LoginCredentialDto} loginCredentialDto
  8787. * @param {*} [options] Override http request option.
  8788. * @throws {RequiredError}
  8789. */
  8790. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8791. // verify required parameter 'loginCredentialDto' is not null or undefined
  8792. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  8793. const localVarPath = `/auth/login`;
  8794. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8795. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8796. let baseOptions;
  8797. if (configuration) {
  8798. baseOptions = configuration.baseOptions;
  8799. }
  8800. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8801. const localVarHeaderParameter = {} as any;
  8802. const localVarQueryParameter = {} as any;
  8803. localVarHeaderParameter['Content-Type'] = 'application/json';
  8804. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8805. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8806. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8807. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  8808. return {
  8809. url: toPathString(localVarUrlObj),
  8810. options: localVarRequestOptions,
  8811. };
  8812. },
  8813. /**
  8814. *
  8815. * @param {*} [options] Override http request option.
  8816. * @throws {RequiredError}
  8817. */
  8818. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8819. const localVarPath = `/auth/logout`;
  8820. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8821. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8822. let baseOptions;
  8823. if (configuration) {
  8824. baseOptions = configuration.baseOptions;
  8825. }
  8826. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8827. const localVarHeaderParameter = {} as any;
  8828. const localVarQueryParameter = {} as any;
  8829. // authentication cookie required
  8830. // authentication api_key required
  8831. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8832. // authentication bearer required
  8833. // http bearer authentication required
  8834. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8835. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8836. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8837. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8838. return {
  8839. url: toPathString(localVarUrlObj),
  8840. options: localVarRequestOptions,
  8841. };
  8842. },
  8843. /**
  8844. *
  8845. * @param {string} id
  8846. * @param {*} [options] Override http request option.
  8847. * @throws {RequiredError}
  8848. */
  8849. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8850. // verify required parameter 'id' is not null or undefined
  8851. assertParamExists('logoutAuthDevice', 'id', id)
  8852. const localVarPath = `/auth/devices/{id}`
  8853. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8854. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8855. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8856. let baseOptions;
  8857. if (configuration) {
  8858. baseOptions = configuration.baseOptions;
  8859. }
  8860. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8861. const localVarHeaderParameter = {} as any;
  8862. const localVarQueryParameter = {} as any;
  8863. // authentication cookie required
  8864. // authentication api_key required
  8865. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8866. // authentication bearer required
  8867. // http bearer authentication required
  8868. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8869. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8870. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8871. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8872. return {
  8873. url: toPathString(localVarUrlObj),
  8874. options: localVarRequestOptions,
  8875. };
  8876. },
  8877. /**
  8878. *
  8879. * @param {*} [options] Override http request option.
  8880. * @throws {RequiredError}
  8881. */
  8882. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8883. const localVarPath = `/auth/devices`;
  8884. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8885. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8886. let baseOptions;
  8887. if (configuration) {
  8888. baseOptions = configuration.baseOptions;
  8889. }
  8890. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8891. const localVarHeaderParameter = {} as any;
  8892. const localVarQueryParameter = {} as any;
  8893. // authentication cookie required
  8894. // authentication api_key required
  8895. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8896. // authentication bearer required
  8897. // http bearer authentication required
  8898. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8899. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8900. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8901. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8902. return {
  8903. url: toPathString(localVarUrlObj),
  8904. options: localVarRequestOptions,
  8905. };
  8906. },
  8907. /**
  8908. *
  8909. * @param {*} [options] Override http request option.
  8910. * @throws {RequiredError}
  8911. */
  8912. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8913. const localVarPath = `/auth/validateToken`;
  8914. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8915. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8916. let baseOptions;
  8917. if (configuration) {
  8918. baseOptions = configuration.baseOptions;
  8919. }
  8920. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8921. const localVarHeaderParameter = {} as any;
  8922. const localVarQueryParameter = {} as any;
  8923. // authentication cookie required
  8924. // authentication api_key required
  8925. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8926. // authentication bearer required
  8927. // http bearer authentication required
  8928. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8929. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8930. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8931. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8932. return {
  8933. url: toPathString(localVarUrlObj),
  8934. options: localVarRequestOptions,
  8935. };
  8936. },
  8937. }
  8938. };
  8939. /**
  8940. * AuthenticationApi - functional programming interface
  8941. * @export
  8942. */
  8943. export const AuthenticationApiFp = function(configuration?: Configuration) {
  8944. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  8945. return {
  8946. /**
  8947. *
  8948. * @param {SignUpDto} signUpDto
  8949. * @param {*} [options] Override http request option.
  8950. * @throws {RequiredError}
  8951. */
  8952. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  8953. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  8954. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8955. },
  8956. /**
  8957. *
  8958. * @param {ChangePasswordDto} changePasswordDto
  8959. * @param {*} [options] Override http request option.
  8960. * @throws {RequiredError}
  8961. */
  8962. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8963. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  8964. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8965. },
  8966. /**
  8967. *
  8968. * @param {*} [options] Override http request option.
  8969. * @throws {RequiredError}
  8970. */
  8971. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  8972. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  8973. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8974. },
  8975. /**
  8976. *
  8977. * @param {LoginCredentialDto} loginCredentialDto
  8978. * @param {*} [options] Override http request option.
  8979. * @throws {RequiredError}
  8980. */
  8981. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  8982. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  8983. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8984. },
  8985. /**
  8986. *
  8987. * @param {*} [options] Override http request option.
  8988. * @throws {RequiredError}
  8989. */
  8990. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  8991. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  8992. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8993. },
  8994. /**
  8995. *
  8996. * @param {string} id
  8997. * @param {*} [options] Override http request option.
  8998. * @throws {RequiredError}
  8999. */
  9000. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9001. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  9002. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9003. },
  9004. /**
  9005. *
  9006. * @param {*} [options] Override http request option.
  9007. * @throws {RequiredError}
  9008. */
  9009. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9010. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  9011. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9012. },
  9013. /**
  9014. *
  9015. * @param {*} [options] Override http request option.
  9016. * @throws {RequiredError}
  9017. */
  9018. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  9019. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  9020. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9021. },
  9022. }
  9023. };
  9024. /**
  9025. * AuthenticationApi - factory interface
  9026. * @export
  9027. */
  9028. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9029. const localVarFp = AuthenticationApiFp(configuration)
  9030. return {
  9031. /**
  9032. *
  9033. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9034. * @param {*} [options] Override http request option.
  9035. * @throws {RequiredError}
  9036. */
  9037. adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
  9038. return localVarFp.adminSignUp(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  9039. },
  9040. /**
  9041. *
  9042. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9043. * @param {*} [options] Override http request option.
  9044. * @throws {RequiredError}
  9045. */
  9046. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9047. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  9048. },
  9049. /**
  9050. *
  9051. * @param {*} [options] Override http request option.
  9052. * @throws {RequiredError}
  9053. */
  9054. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  9055. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  9056. },
  9057. /**
  9058. *
  9059. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9060. * @param {*} [options] Override http request option.
  9061. * @throws {RequiredError}
  9062. */
  9063. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9064. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  9065. },
  9066. /**
  9067. *
  9068. * @param {*} [options] Override http request option.
  9069. * @throws {RequiredError}
  9070. */
  9071. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  9072. return localVarFp.logout(options).then((request) => request(axios, basePath));
  9073. },
  9074. /**
  9075. *
  9076. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9077. * @param {*} [options] Override http request option.
  9078. * @throws {RequiredError}
  9079. */
  9080. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9081. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  9082. },
  9083. /**
  9084. *
  9085. * @param {*} [options] Override http request option.
  9086. * @throws {RequiredError}
  9087. */
  9088. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  9089. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  9090. },
  9091. /**
  9092. *
  9093. * @param {*} [options] Override http request option.
  9094. * @throws {RequiredError}
  9095. */
  9096. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  9097. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  9098. },
  9099. };
  9100. };
  9101. /**
  9102. * Request parameters for adminSignUp operation in AuthenticationApi.
  9103. * @export
  9104. * @interface AuthenticationApiAdminSignUpRequest
  9105. */
  9106. export interface AuthenticationApiAdminSignUpRequest {
  9107. /**
  9108. *
  9109. * @type {SignUpDto}
  9110. * @memberof AuthenticationApiAdminSignUp
  9111. */
  9112. readonly signUpDto: SignUpDto
  9113. }
  9114. /**
  9115. * Request parameters for changePassword operation in AuthenticationApi.
  9116. * @export
  9117. * @interface AuthenticationApiChangePasswordRequest
  9118. */
  9119. export interface AuthenticationApiChangePasswordRequest {
  9120. /**
  9121. *
  9122. * @type {ChangePasswordDto}
  9123. * @memberof AuthenticationApiChangePassword
  9124. */
  9125. readonly changePasswordDto: ChangePasswordDto
  9126. }
  9127. /**
  9128. * Request parameters for login operation in AuthenticationApi.
  9129. * @export
  9130. * @interface AuthenticationApiLoginRequest
  9131. */
  9132. export interface AuthenticationApiLoginRequest {
  9133. /**
  9134. *
  9135. * @type {LoginCredentialDto}
  9136. * @memberof AuthenticationApiLogin
  9137. */
  9138. readonly loginCredentialDto: LoginCredentialDto
  9139. }
  9140. /**
  9141. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  9142. * @export
  9143. * @interface AuthenticationApiLogoutAuthDeviceRequest
  9144. */
  9145. export interface AuthenticationApiLogoutAuthDeviceRequest {
  9146. /**
  9147. *
  9148. * @type {string}
  9149. * @memberof AuthenticationApiLogoutAuthDevice
  9150. */
  9151. readonly id: string
  9152. }
  9153. /**
  9154. * AuthenticationApi - object-oriented interface
  9155. * @export
  9156. * @class AuthenticationApi
  9157. * @extends {BaseAPI}
  9158. */
  9159. export class AuthenticationApi extends BaseAPI {
  9160. /**
  9161. *
  9162. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9163. * @param {*} [options] Override http request option.
  9164. * @throws {RequiredError}
  9165. * @memberof AuthenticationApi
  9166. */
  9167. public adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig) {
  9168. return AuthenticationApiFp(this.configuration).adminSignUp(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  9169. }
  9170. /**
  9171. *
  9172. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9173. * @param {*} [options] Override http request option.
  9174. * @throws {RequiredError}
  9175. * @memberof AuthenticationApi
  9176. */
  9177. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  9178. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  9179. }
  9180. /**
  9181. *
  9182. * @param {*} [options] Override http request option.
  9183. * @throws {RequiredError}
  9184. * @memberof AuthenticationApi
  9185. */
  9186. public getAuthDevices(options?: AxiosRequestConfig) {
  9187. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9188. }
  9189. /**
  9190. *
  9191. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9192. * @param {*} [options] Override http request option.
  9193. * @throws {RequiredError}
  9194. * @memberof AuthenticationApi
  9195. */
  9196. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  9197. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  9198. }
  9199. /**
  9200. *
  9201. * @param {*} [options] Override http request option.
  9202. * @throws {RequiredError}
  9203. * @memberof AuthenticationApi
  9204. */
  9205. public logout(options?: AxiosRequestConfig) {
  9206. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  9207. }
  9208. /**
  9209. *
  9210. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9211. * @param {*} [options] Override http request option.
  9212. * @throws {RequiredError}
  9213. * @memberof AuthenticationApi
  9214. */
  9215. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  9216. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9217. }
  9218. /**
  9219. *
  9220. * @param {*} [options] Override http request option.
  9221. * @throws {RequiredError}
  9222. * @memberof AuthenticationApi
  9223. */
  9224. public logoutAuthDevices(options?: AxiosRequestConfig) {
  9225. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9226. }
  9227. /**
  9228. *
  9229. * @param {*} [options] Override http request option.
  9230. * @throws {RequiredError}
  9231. * @memberof AuthenticationApi
  9232. */
  9233. public validateAccessToken(options?: AxiosRequestConfig) {
  9234. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  9235. }
  9236. }
  9237. /**
  9238. * JobApi - axios parameter creator
  9239. * @export
  9240. */
  9241. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  9242. return {
  9243. /**
  9244. *
  9245. * @param {*} [options] Override http request option.
  9246. * @throws {RequiredError}
  9247. */
  9248. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9249. const localVarPath = `/jobs`;
  9250. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9251. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9252. let baseOptions;
  9253. if (configuration) {
  9254. baseOptions = configuration.baseOptions;
  9255. }
  9256. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9257. const localVarHeaderParameter = {} as any;
  9258. const localVarQueryParameter = {} as any;
  9259. // authentication cookie required
  9260. // authentication api_key required
  9261. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9262. // authentication bearer required
  9263. // http bearer authentication required
  9264. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9265. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9266. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9267. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9268. return {
  9269. url: toPathString(localVarUrlObj),
  9270. options: localVarRequestOptions,
  9271. };
  9272. },
  9273. /**
  9274. *
  9275. * @param {JobName} id
  9276. * @param {JobCommandDto} jobCommandDto
  9277. * @param {*} [options] Override http request option.
  9278. * @throws {RequiredError}
  9279. */
  9280. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9281. // verify required parameter 'id' is not null or undefined
  9282. assertParamExists('sendJobCommand', 'id', id)
  9283. // verify required parameter 'jobCommandDto' is not null or undefined
  9284. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  9285. const localVarPath = `/jobs/{id}`
  9286. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9287. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9288. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9289. let baseOptions;
  9290. if (configuration) {
  9291. baseOptions = configuration.baseOptions;
  9292. }
  9293. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9294. const localVarHeaderParameter = {} as any;
  9295. const localVarQueryParameter = {} as any;
  9296. // authentication cookie required
  9297. // authentication api_key required
  9298. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9299. // authentication bearer required
  9300. // http bearer authentication required
  9301. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9302. localVarHeaderParameter['Content-Type'] = 'application/json';
  9303. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9304. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9305. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9306. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  9307. return {
  9308. url: toPathString(localVarUrlObj),
  9309. options: localVarRequestOptions,
  9310. };
  9311. },
  9312. }
  9313. };
  9314. /**
  9315. * JobApi - functional programming interface
  9316. * @export
  9317. */
  9318. export const JobApiFp = function(configuration?: Configuration) {
  9319. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  9320. return {
  9321. /**
  9322. *
  9323. * @param {*} [options] Override http request option.
  9324. * @throws {RequiredError}
  9325. */
  9326. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  9327. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  9328. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9329. },
  9330. /**
  9331. *
  9332. * @param {JobName} id
  9333. * @param {JobCommandDto} jobCommandDto
  9334. * @param {*} [options] Override http request option.
  9335. * @throws {RequiredError}
  9336. */
  9337. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  9338. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  9339. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9340. },
  9341. }
  9342. };
  9343. /**
  9344. * JobApi - factory interface
  9345. * @export
  9346. */
  9347. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9348. const localVarFp = JobApiFp(configuration)
  9349. return {
  9350. /**
  9351. *
  9352. * @param {*} [options] Override http request option.
  9353. * @throws {RequiredError}
  9354. */
  9355. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  9356. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  9357. },
  9358. /**
  9359. *
  9360. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9361. * @param {*} [options] Override http request option.
  9362. * @throws {RequiredError}
  9363. */
  9364. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  9365. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  9366. },
  9367. };
  9368. };
  9369. /**
  9370. * Request parameters for sendJobCommand operation in JobApi.
  9371. * @export
  9372. * @interface JobApiSendJobCommandRequest
  9373. */
  9374. export interface JobApiSendJobCommandRequest {
  9375. /**
  9376. *
  9377. * @type {JobName}
  9378. * @memberof JobApiSendJobCommand
  9379. */
  9380. readonly id: JobName
  9381. /**
  9382. *
  9383. * @type {JobCommandDto}
  9384. * @memberof JobApiSendJobCommand
  9385. */
  9386. readonly jobCommandDto: JobCommandDto
  9387. }
  9388. /**
  9389. * JobApi - object-oriented interface
  9390. * @export
  9391. * @class JobApi
  9392. * @extends {BaseAPI}
  9393. */
  9394. export class JobApi extends BaseAPI {
  9395. /**
  9396. *
  9397. * @param {*} [options] Override http request option.
  9398. * @throws {RequiredError}
  9399. * @memberof JobApi
  9400. */
  9401. public getAllJobsStatus(options?: AxiosRequestConfig) {
  9402. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  9403. }
  9404. /**
  9405. *
  9406. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9407. * @param {*} [options] Override http request option.
  9408. * @throws {RequiredError}
  9409. * @memberof JobApi
  9410. */
  9411. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  9412. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  9413. }
  9414. }
  9415. /**
  9416. * LibraryApi - axios parameter creator
  9417. * @export
  9418. */
  9419. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  9420. return {
  9421. /**
  9422. *
  9423. * @param {CreateLibraryDto} createLibraryDto
  9424. * @param {*} [options] Override http request option.
  9425. * @throws {RequiredError}
  9426. */
  9427. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9428. // verify required parameter 'createLibraryDto' is not null or undefined
  9429. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  9430. const localVarPath = `/library`;
  9431. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9432. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9433. let baseOptions;
  9434. if (configuration) {
  9435. baseOptions = configuration.baseOptions;
  9436. }
  9437. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9438. const localVarHeaderParameter = {} as any;
  9439. const localVarQueryParameter = {} as any;
  9440. // authentication cookie required
  9441. // authentication api_key required
  9442. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9443. // authentication bearer required
  9444. // http bearer authentication required
  9445. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9446. localVarHeaderParameter['Content-Type'] = 'application/json';
  9447. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9448. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9449. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9450. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  9451. return {
  9452. url: toPathString(localVarUrlObj),
  9453. options: localVarRequestOptions,
  9454. };
  9455. },
  9456. /**
  9457. *
  9458. * @param {string} id
  9459. * @param {*} [options] Override http request option.
  9460. * @throws {RequiredError}
  9461. */
  9462. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9463. // verify required parameter 'id' is not null or undefined
  9464. assertParamExists('deleteLibrary', 'id', id)
  9465. const localVarPath = `/library/{id}`
  9466. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9467. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9468. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9469. let baseOptions;
  9470. if (configuration) {
  9471. baseOptions = configuration.baseOptions;
  9472. }
  9473. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9474. const localVarHeaderParameter = {} as any;
  9475. const localVarQueryParameter = {} as any;
  9476. // authentication cookie required
  9477. // authentication api_key required
  9478. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9479. // authentication bearer required
  9480. // http bearer authentication required
  9481. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9482. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9483. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9484. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9485. return {
  9486. url: toPathString(localVarUrlObj),
  9487. options: localVarRequestOptions,
  9488. };
  9489. },
  9490. /**
  9491. *
  9492. * @param {*} [options] Override http request option.
  9493. * @throws {RequiredError}
  9494. */
  9495. getAllForUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9496. const localVarPath = `/library`;
  9497. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9498. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9499. let baseOptions;
  9500. if (configuration) {
  9501. baseOptions = configuration.baseOptions;
  9502. }
  9503. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9504. const localVarHeaderParameter = {} as any;
  9505. const localVarQueryParameter = {} as any;
  9506. // authentication cookie required
  9507. // authentication api_key required
  9508. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9509. // authentication bearer required
  9510. // http bearer authentication required
  9511. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9512. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9513. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9514. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9515. return {
  9516. url: toPathString(localVarUrlObj),
  9517. options: localVarRequestOptions,
  9518. };
  9519. },
  9520. /**
  9521. *
  9522. * @param {string} id
  9523. * @param {*} [options] Override http request option.
  9524. * @throws {RequiredError}
  9525. */
  9526. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9527. // verify required parameter 'id' is not null or undefined
  9528. assertParamExists('getLibraryInfo', 'id', id)
  9529. const localVarPath = `/library/{id}`
  9530. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9531. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9532. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9533. let baseOptions;
  9534. if (configuration) {
  9535. baseOptions = configuration.baseOptions;
  9536. }
  9537. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9538. const localVarHeaderParameter = {} as any;
  9539. const localVarQueryParameter = {} as any;
  9540. // authentication cookie required
  9541. // authentication api_key required
  9542. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9543. // authentication bearer required
  9544. // http bearer authentication required
  9545. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9546. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9547. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9548. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9549. return {
  9550. url: toPathString(localVarUrlObj),
  9551. options: localVarRequestOptions,
  9552. };
  9553. },
  9554. /**
  9555. *
  9556. * @param {string} id
  9557. * @param {*} [options] Override http request option.
  9558. * @throws {RequiredError}
  9559. */
  9560. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9561. // verify required parameter 'id' is not null or undefined
  9562. assertParamExists('getLibraryStatistics', 'id', id)
  9563. const localVarPath = `/library/{id}/statistics`
  9564. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9565. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9566. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9567. let baseOptions;
  9568. if (configuration) {
  9569. baseOptions = configuration.baseOptions;
  9570. }
  9571. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9572. const localVarHeaderParameter = {} as any;
  9573. const localVarQueryParameter = {} as any;
  9574. // authentication cookie required
  9575. // authentication api_key required
  9576. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9577. // authentication bearer required
  9578. // http bearer authentication required
  9579. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9580. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9581. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9582. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9583. return {
  9584. url: toPathString(localVarUrlObj),
  9585. options: localVarRequestOptions,
  9586. };
  9587. },
  9588. /**
  9589. *
  9590. * @param {string} id
  9591. * @param {*} [options] Override http request option.
  9592. * @throws {RequiredError}
  9593. */
  9594. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9595. // verify required parameter 'id' is not null or undefined
  9596. assertParamExists('removeOfflineFiles', 'id', id)
  9597. const localVarPath = `/library/{id}/removeOffline`
  9598. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9599. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9600. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9601. let baseOptions;
  9602. if (configuration) {
  9603. baseOptions = configuration.baseOptions;
  9604. }
  9605. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9606. const localVarHeaderParameter = {} as any;
  9607. const localVarQueryParameter = {} as any;
  9608. // authentication cookie required
  9609. // authentication api_key required
  9610. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9611. // authentication bearer required
  9612. // http bearer authentication required
  9613. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9614. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9615. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9616. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9617. return {
  9618. url: toPathString(localVarUrlObj),
  9619. options: localVarRequestOptions,
  9620. };
  9621. },
  9622. /**
  9623. *
  9624. * @param {string} id
  9625. * @param {ScanLibraryDto} scanLibraryDto
  9626. * @param {*} [options] Override http request option.
  9627. * @throws {RequiredError}
  9628. */
  9629. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9630. // verify required parameter 'id' is not null or undefined
  9631. assertParamExists('scanLibrary', 'id', id)
  9632. // verify required parameter 'scanLibraryDto' is not null or undefined
  9633. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  9634. const localVarPath = `/library/{id}/scan`
  9635. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9636. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9637. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9638. let baseOptions;
  9639. if (configuration) {
  9640. baseOptions = configuration.baseOptions;
  9641. }
  9642. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9643. const localVarHeaderParameter = {} as any;
  9644. const localVarQueryParameter = {} as any;
  9645. // authentication cookie required
  9646. // authentication api_key required
  9647. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9648. // authentication bearer required
  9649. // http bearer authentication required
  9650. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9651. localVarHeaderParameter['Content-Type'] = 'application/json';
  9652. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9653. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9654. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9655. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  9656. return {
  9657. url: toPathString(localVarUrlObj),
  9658. options: localVarRequestOptions,
  9659. };
  9660. },
  9661. /**
  9662. *
  9663. * @param {string} id
  9664. * @param {UpdateLibraryDto} updateLibraryDto
  9665. * @param {*} [options] Override http request option.
  9666. * @throws {RequiredError}
  9667. */
  9668. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9669. // verify required parameter 'id' is not null or undefined
  9670. assertParamExists('updateLibrary', 'id', id)
  9671. // verify required parameter 'updateLibraryDto' is not null or undefined
  9672. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  9673. const localVarPath = `/library/{id}`
  9674. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9675. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9676. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9677. let baseOptions;
  9678. if (configuration) {
  9679. baseOptions = configuration.baseOptions;
  9680. }
  9681. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9682. const localVarHeaderParameter = {} as any;
  9683. const localVarQueryParameter = {} as any;
  9684. // authentication cookie required
  9685. // authentication api_key required
  9686. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9687. // authentication bearer required
  9688. // http bearer authentication required
  9689. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9690. localVarHeaderParameter['Content-Type'] = 'application/json';
  9691. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9692. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9693. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9694. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  9695. return {
  9696. url: toPathString(localVarUrlObj),
  9697. options: localVarRequestOptions,
  9698. };
  9699. },
  9700. }
  9701. };
  9702. /**
  9703. * LibraryApi - functional programming interface
  9704. * @export
  9705. */
  9706. export const LibraryApiFp = function(configuration?: Configuration) {
  9707. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  9708. return {
  9709. /**
  9710. *
  9711. * @param {CreateLibraryDto} createLibraryDto
  9712. * @param {*} [options] Override http request option.
  9713. * @throws {RequiredError}
  9714. */
  9715. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9716. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  9717. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9718. },
  9719. /**
  9720. *
  9721. * @param {string} id
  9722. * @param {*} [options] Override http request option.
  9723. * @throws {RequiredError}
  9724. */
  9725. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9726. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  9727. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9728. },
  9729. /**
  9730. *
  9731. * @param {*} [options] Override http request option.
  9732. * @throws {RequiredError}
  9733. */
  9734. async getAllForUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  9735. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllForUser(options);
  9736. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9737. },
  9738. /**
  9739. *
  9740. * @param {string} id
  9741. * @param {*} [options] Override http request option.
  9742. * @throws {RequiredError}
  9743. */
  9744. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9745. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  9746. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9747. },
  9748. /**
  9749. *
  9750. * @param {string} id
  9751. * @param {*} [options] Override http request option.
  9752. * @throws {RequiredError}
  9753. */
  9754. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  9755. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  9756. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9757. },
  9758. /**
  9759. *
  9760. * @param {string} id
  9761. * @param {*} [options] Override http request option.
  9762. * @throws {RequiredError}
  9763. */
  9764. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9765. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  9766. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9767. },
  9768. /**
  9769. *
  9770. * @param {string} id
  9771. * @param {ScanLibraryDto} scanLibraryDto
  9772. * @param {*} [options] Override http request option.
  9773. * @throws {RequiredError}
  9774. */
  9775. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9776. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  9777. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9778. },
  9779. /**
  9780. *
  9781. * @param {string} id
  9782. * @param {UpdateLibraryDto} updateLibraryDto
  9783. * @param {*} [options] Override http request option.
  9784. * @throws {RequiredError}
  9785. */
  9786. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9787. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  9788. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9789. },
  9790. }
  9791. };
  9792. /**
  9793. * LibraryApi - factory interface
  9794. * @export
  9795. */
  9796. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9797. const localVarFp = LibraryApiFp(configuration)
  9798. return {
  9799. /**
  9800. *
  9801. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9802. * @param {*} [options] Override http request option.
  9803. * @throws {RequiredError}
  9804. */
  9805. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9806. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  9807. },
  9808. /**
  9809. *
  9810. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9811. * @param {*} [options] Override http request option.
  9812. * @throws {RequiredError}
  9813. */
  9814. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9815. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  9816. },
  9817. /**
  9818. *
  9819. * @param {*} [options] Override http request option.
  9820. * @throws {RequiredError}
  9821. */
  9822. getAllForUser(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  9823. return localVarFp.getAllForUser(options).then((request) => request(axios, basePath));
  9824. },
  9825. /**
  9826. *
  9827. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  9828. * @param {*} [options] Override http request option.
  9829. * @throws {RequiredError}
  9830. */
  9831. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9832. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  9833. },
  9834. /**
  9835. *
  9836. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  9837. * @param {*} [options] Override http request option.
  9838. * @throws {RequiredError}
  9839. */
  9840. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  9841. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  9842. },
  9843. /**
  9844. *
  9845. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  9846. * @param {*} [options] Override http request option.
  9847. * @throws {RequiredError}
  9848. */
  9849. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9850. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  9851. },
  9852. /**
  9853. *
  9854. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  9855. * @param {*} [options] Override http request option.
  9856. * @throws {RequiredError}
  9857. */
  9858. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9859. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  9860. },
  9861. /**
  9862. *
  9863. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  9864. * @param {*} [options] Override http request option.
  9865. * @throws {RequiredError}
  9866. */
  9867. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9868. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  9869. },
  9870. };
  9871. };
  9872. /**
  9873. * Request parameters for createLibrary operation in LibraryApi.
  9874. * @export
  9875. * @interface LibraryApiCreateLibraryRequest
  9876. */
  9877. export interface LibraryApiCreateLibraryRequest {
  9878. /**
  9879. *
  9880. * @type {CreateLibraryDto}
  9881. * @memberof LibraryApiCreateLibrary
  9882. */
  9883. readonly createLibraryDto: CreateLibraryDto
  9884. }
  9885. /**
  9886. * Request parameters for deleteLibrary operation in LibraryApi.
  9887. * @export
  9888. * @interface LibraryApiDeleteLibraryRequest
  9889. */
  9890. export interface LibraryApiDeleteLibraryRequest {
  9891. /**
  9892. *
  9893. * @type {string}
  9894. * @memberof LibraryApiDeleteLibrary
  9895. */
  9896. readonly id: string
  9897. }
  9898. /**
  9899. * Request parameters for getLibraryInfo operation in LibraryApi.
  9900. * @export
  9901. * @interface LibraryApiGetLibraryInfoRequest
  9902. */
  9903. export interface LibraryApiGetLibraryInfoRequest {
  9904. /**
  9905. *
  9906. * @type {string}
  9907. * @memberof LibraryApiGetLibraryInfo
  9908. */
  9909. readonly id: string
  9910. }
  9911. /**
  9912. * Request parameters for getLibraryStatistics operation in LibraryApi.
  9913. * @export
  9914. * @interface LibraryApiGetLibraryStatisticsRequest
  9915. */
  9916. export interface LibraryApiGetLibraryStatisticsRequest {
  9917. /**
  9918. *
  9919. * @type {string}
  9920. * @memberof LibraryApiGetLibraryStatistics
  9921. */
  9922. readonly id: string
  9923. }
  9924. /**
  9925. * Request parameters for removeOfflineFiles operation in LibraryApi.
  9926. * @export
  9927. * @interface LibraryApiRemoveOfflineFilesRequest
  9928. */
  9929. export interface LibraryApiRemoveOfflineFilesRequest {
  9930. /**
  9931. *
  9932. * @type {string}
  9933. * @memberof LibraryApiRemoveOfflineFiles
  9934. */
  9935. readonly id: string
  9936. }
  9937. /**
  9938. * Request parameters for scanLibrary operation in LibraryApi.
  9939. * @export
  9940. * @interface LibraryApiScanLibraryRequest
  9941. */
  9942. export interface LibraryApiScanLibraryRequest {
  9943. /**
  9944. *
  9945. * @type {string}
  9946. * @memberof LibraryApiScanLibrary
  9947. */
  9948. readonly id: string
  9949. /**
  9950. *
  9951. * @type {ScanLibraryDto}
  9952. * @memberof LibraryApiScanLibrary
  9953. */
  9954. readonly scanLibraryDto: ScanLibraryDto
  9955. }
  9956. /**
  9957. * Request parameters for updateLibrary operation in LibraryApi.
  9958. * @export
  9959. * @interface LibraryApiUpdateLibraryRequest
  9960. */
  9961. export interface LibraryApiUpdateLibraryRequest {
  9962. /**
  9963. *
  9964. * @type {string}
  9965. * @memberof LibraryApiUpdateLibrary
  9966. */
  9967. readonly id: string
  9968. /**
  9969. *
  9970. * @type {UpdateLibraryDto}
  9971. * @memberof LibraryApiUpdateLibrary
  9972. */
  9973. readonly updateLibraryDto: UpdateLibraryDto
  9974. }
  9975. /**
  9976. * LibraryApi - object-oriented interface
  9977. * @export
  9978. * @class LibraryApi
  9979. * @extends {BaseAPI}
  9980. */
  9981. export class LibraryApi extends BaseAPI {
  9982. /**
  9983. *
  9984. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9985. * @param {*} [options] Override http request option.
  9986. * @throws {RequiredError}
  9987. * @memberof LibraryApi
  9988. */
  9989. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  9990. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  9991. }
  9992. /**
  9993. *
  9994. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9995. * @param {*} [options] Override http request option.
  9996. * @throws {RequiredError}
  9997. * @memberof LibraryApi
  9998. */
  9999. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  10000. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10001. }
  10002. /**
  10003. *
  10004. * @param {*} [options] Override http request option.
  10005. * @throws {RequiredError}
  10006. * @memberof LibraryApi
  10007. */
  10008. public getAllForUser(options?: AxiosRequestConfig) {
  10009. return LibraryApiFp(this.configuration).getAllForUser(options).then((request) => request(this.axios, this.basePath));
  10010. }
  10011. /**
  10012. *
  10013. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10014. * @param {*} [options] Override http request option.
  10015. * @throws {RequiredError}
  10016. * @memberof LibraryApi
  10017. */
  10018. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  10019. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10020. }
  10021. /**
  10022. *
  10023. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10024. * @param {*} [options] Override http request option.
  10025. * @throws {RequiredError}
  10026. * @memberof LibraryApi
  10027. */
  10028. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  10029. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10030. }
  10031. /**
  10032. *
  10033. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10034. * @param {*} [options] Override http request option.
  10035. * @throws {RequiredError}
  10036. * @memberof LibraryApi
  10037. */
  10038. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  10039. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10040. }
  10041. /**
  10042. *
  10043. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10044. * @param {*} [options] Override http request option.
  10045. * @throws {RequiredError}
  10046. * @memberof LibraryApi
  10047. */
  10048. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  10049. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10050. }
  10051. /**
  10052. *
  10053. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10054. * @param {*} [options] Override http request option.
  10055. * @throws {RequiredError}
  10056. * @memberof LibraryApi
  10057. */
  10058. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  10059. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10060. }
  10061. }
  10062. /**
  10063. * OAuthApi - axios parameter creator
  10064. * @export
  10065. */
  10066. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  10067. return {
  10068. /**
  10069. *
  10070. * @param {OAuthConfigDto} oAuthConfigDto
  10071. * @param {*} [options] Override http request option.
  10072. * @throws {RequiredError}
  10073. */
  10074. authorizeOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10075. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10076. assertParamExists('authorizeOAuth', 'oAuthConfigDto', oAuthConfigDto)
  10077. const localVarPath = `/oauth/authorize`;
  10078. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10079. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10080. let baseOptions;
  10081. if (configuration) {
  10082. baseOptions = configuration.baseOptions;
  10083. }
  10084. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10085. const localVarHeaderParameter = {} as any;
  10086. const localVarQueryParameter = {} as any;
  10087. localVarHeaderParameter['Content-Type'] = 'application/json';
  10088. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10089. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10090. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10091. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10092. return {
  10093. url: toPathString(localVarUrlObj),
  10094. options: localVarRequestOptions,
  10095. };
  10096. },
  10097. /**
  10098. *
  10099. * @param {OAuthCallbackDto} oAuthCallbackDto
  10100. * @param {*} [options] Override http request option.
  10101. * @throws {RequiredError}
  10102. */
  10103. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10104. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10105. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  10106. const localVarPath = `/oauth/callback`;
  10107. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10108. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10109. let baseOptions;
  10110. if (configuration) {
  10111. baseOptions = configuration.baseOptions;
  10112. }
  10113. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10114. const localVarHeaderParameter = {} as any;
  10115. const localVarQueryParameter = {} as any;
  10116. localVarHeaderParameter['Content-Type'] = 'application/json';
  10117. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10118. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10119. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10120. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10121. return {
  10122. url: toPathString(localVarUrlObj),
  10123. options: localVarRequestOptions,
  10124. };
  10125. },
  10126. /**
  10127. * @deprecated use feature flags and /oauth/authorize
  10128. * @param {OAuthConfigDto} oAuthConfigDto
  10129. * @param {*} [options] Override http request option.
  10130. * @deprecated
  10131. * @throws {RequiredError}
  10132. */
  10133. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10134. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10135. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  10136. const localVarPath = `/oauth/config`;
  10137. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10138. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10139. let baseOptions;
  10140. if (configuration) {
  10141. baseOptions = configuration.baseOptions;
  10142. }
  10143. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10144. const localVarHeaderParameter = {} as any;
  10145. const localVarQueryParameter = {} as any;
  10146. localVarHeaderParameter['Content-Type'] = 'application/json';
  10147. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10148. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10149. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10150. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10151. return {
  10152. url: toPathString(localVarUrlObj),
  10153. options: localVarRequestOptions,
  10154. };
  10155. },
  10156. /**
  10157. *
  10158. * @param {OAuthCallbackDto} oAuthCallbackDto
  10159. * @param {*} [options] Override http request option.
  10160. * @throws {RequiredError}
  10161. */
  10162. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10163. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10164. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  10165. const localVarPath = `/oauth/link`;
  10166. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10167. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10168. let baseOptions;
  10169. if (configuration) {
  10170. baseOptions = configuration.baseOptions;
  10171. }
  10172. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10173. const localVarHeaderParameter = {} as any;
  10174. const localVarQueryParameter = {} as any;
  10175. // authentication cookie required
  10176. // authentication api_key required
  10177. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10178. // authentication bearer required
  10179. // http bearer authentication required
  10180. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10181. localVarHeaderParameter['Content-Type'] = 'application/json';
  10182. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10183. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10184. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10185. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10186. return {
  10187. url: toPathString(localVarUrlObj),
  10188. options: localVarRequestOptions,
  10189. };
  10190. },
  10191. /**
  10192. *
  10193. * @param {*} [options] Override http request option.
  10194. * @throws {RequiredError}
  10195. */
  10196. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10197. const localVarPath = `/oauth/mobile-redirect`;
  10198. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10199. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10200. let baseOptions;
  10201. if (configuration) {
  10202. baseOptions = configuration.baseOptions;
  10203. }
  10204. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10205. const localVarHeaderParameter = {} as any;
  10206. const localVarQueryParameter = {} as any;
  10207. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10208. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10209. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10210. return {
  10211. url: toPathString(localVarUrlObj),
  10212. options: localVarRequestOptions,
  10213. };
  10214. },
  10215. /**
  10216. *
  10217. * @param {*} [options] Override http request option.
  10218. * @throws {RequiredError}
  10219. */
  10220. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10221. const localVarPath = `/oauth/unlink`;
  10222. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10223. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10224. let baseOptions;
  10225. if (configuration) {
  10226. baseOptions = configuration.baseOptions;
  10227. }
  10228. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10229. const localVarHeaderParameter = {} as any;
  10230. const localVarQueryParameter = {} as any;
  10231. // authentication cookie required
  10232. // authentication api_key required
  10233. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10234. // authentication bearer required
  10235. // http bearer authentication required
  10236. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10237. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10238. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10239. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10240. return {
  10241. url: toPathString(localVarUrlObj),
  10242. options: localVarRequestOptions,
  10243. };
  10244. },
  10245. }
  10246. };
  10247. /**
  10248. * OAuthApi - functional programming interface
  10249. * @export
  10250. */
  10251. export const OAuthApiFp = function(configuration?: Configuration) {
  10252. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  10253. return {
  10254. /**
  10255. *
  10256. * @param {OAuthConfigDto} oAuthConfigDto
  10257. * @param {*} [options] Override http request option.
  10258. * @throws {RequiredError}
  10259. */
  10260. async authorizeOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  10261. const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeOAuth(oAuthConfigDto, options);
  10262. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10263. },
  10264. /**
  10265. *
  10266. * @param {OAuthCallbackDto} oAuthCallbackDto
  10267. * @param {*} [options] Override http request option.
  10268. * @throws {RequiredError}
  10269. */
  10270. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10271. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  10272. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10273. },
  10274. /**
  10275. * @deprecated use feature flags and /oauth/authorize
  10276. * @param {OAuthConfigDto} oAuthConfigDto
  10277. * @param {*} [options] Override http request option.
  10278. * @deprecated
  10279. * @throws {RequiredError}
  10280. */
  10281. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  10282. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  10283. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10284. },
  10285. /**
  10286. *
  10287. * @param {OAuthCallbackDto} oAuthCallbackDto
  10288. * @param {*} [options] Override http request option.
  10289. * @throws {RequiredError}
  10290. */
  10291. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10292. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  10293. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10294. },
  10295. /**
  10296. *
  10297. * @param {*} [options] Override http request option.
  10298. * @throws {RequiredError}
  10299. */
  10300. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10301. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  10302. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10303. },
  10304. /**
  10305. *
  10306. * @param {*} [options] Override http request option.
  10307. * @throws {RequiredError}
  10308. */
  10309. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10310. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  10311. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10312. },
  10313. }
  10314. };
  10315. /**
  10316. * OAuthApi - factory interface
  10317. * @export
  10318. */
  10319. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10320. const localVarFp = OAuthApiFp(configuration)
  10321. return {
  10322. /**
  10323. *
  10324. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10325. * @param {*} [options] Override http request option.
  10326. * @throws {RequiredError}
  10327. */
  10328. authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  10329. return localVarFp.authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10330. },
  10331. /**
  10332. *
  10333. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10334. * @param {*} [options] Override http request option.
  10335. * @throws {RequiredError}
  10336. */
  10337. callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10338. return localVarFp.callback(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10339. },
  10340. /**
  10341. * @deprecated use feature flags and /oauth/authorize
  10342. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10343. * @param {*} [options] Override http request option.
  10344. * @deprecated
  10345. * @throws {RequiredError}
  10346. */
  10347. generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  10348. return localVarFp.generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10349. },
  10350. /**
  10351. *
  10352. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10353. * @param {*} [options] Override http request option.
  10354. * @throws {RequiredError}
  10355. */
  10356. link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10357. return localVarFp.link(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10358. },
  10359. /**
  10360. *
  10361. * @param {*} [options] Override http request option.
  10362. * @throws {RequiredError}
  10363. */
  10364. mobileRedirect(options?: AxiosRequestConfig): AxiosPromise<void> {
  10365. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  10366. },
  10367. /**
  10368. *
  10369. * @param {*} [options] Override http request option.
  10370. * @throws {RequiredError}
  10371. */
  10372. unlink(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10373. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  10374. },
  10375. };
  10376. };
  10377. /**
  10378. * Request parameters for authorizeOAuth operation in OAuthApi.
  10379. * @export
  10380. * @interface OAuthApiAuthorizeOAuthRequest
  10381. */
  10382. export interface OAuthApiAuthorizeOAuthRequest {
  10383. /**
  10384. *
  10385. * @type {OAuthConfigDto}
  10386. * @memberof OAuthApiAuthorizeOAuth
  10387. */
  10388. readonly oAuthConfigDto: OAuthConfigDto
  10389. }
  10390. /**
  10391. * Request parameters for callback operation in OAuthApi.
  10392. * @export
  10393. * @interface OAuthApiCallbackRequest
  10394. */
  10395. export interface OAuthApiCallbackRequest {
  10396. /**
  10397. *
  10398. * @type {OAuthCallbackDto}
  10399. * @memberof OAuthApiCallback
  10400. */
  10401. readonly oAuthCallbackDto: OAuthCallbackDto
  10402. }
  10403. /**
  10404. * Request parameters for generateConfig operation in OAuthApi.
  10405. * @export
  10406. * @interface OAuthApiGenerateConfigRequest
  10407. */
  10408. export interface OAuthApiGenerateConfigRequest {
  10409. /**
  10410. *
  10411. * @type {OAuthConfigDto}
  10412. * @memberof OAuthApiGenerateConfig
  10413. */
  10414. readonly oAuthConfigDto: OAuthConfigDto
  10415. }
  10416. /**
  10417. * Request parameters for link operation in OAuthApi.
  10418. * @export
  10419. * @interface OAuthApiLinkRequest
  10420. */
  10421. export interface OAuthApiLinkRequest {
  10422. /**
  10423. *
  10424. * @type {OAuthCallbackDto}
  10425. * @memberof OAuthApiLink
  10426. */
  10427. readonly oAuthCallbackDto: OAuthCallbackDto
  10428. }
  10429. /**
  10430. * OAuthApi - object-oriented interface
  10431. * @export
  10432. * @class OAuthApi
  10433. * @extends {BaseAPI}
  10434. */
  10435. export class OAuthApi extends BaseAPI {
  10436. /**
  10437. *
  10438. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10439. * @param {*} [options] Override http request option.
  10440. * @throws {RequiredError}
  10441. * @memberof OAuthApi
  10442. */
  10443. public authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig) {
  10444. return OAuthApiFp(this.configuration).authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10445. }
  10446. /**
  10447. *
  10448. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10449. * @param {*} [options] Override http request option.
  10450. * @throws {RequiredError}
  10451. * @memberof OAuthApi
  10452. */
  10453. public callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig) {
  10454. return OAuthApiFp(this.configuration).callback(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10455. }
  10456. /**
  10457. * @deprecated use feature flags and /oauth/authorize
  10458. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10459. * @param {*} [options] Override http request option.
  10460. * @deprecated
  10461. * @throws {RequiredError}
  10462. * @memberof OAuthApi
  10463. */
  10464. public generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig) {
  10465. return OAuthApiFp(this.configuration).generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10466. }
  10467. /**
  10468. *
  10469. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10470. * @param {*} [options] Override http request option.
  10471. * @throws {RequiredError}
  10472. * @memberof OAuthApi
  10473. */
  10474. public link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig) {
  10475. return OAuthApiFp(this.configuration).link(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10476. }
  10477. /**
  10478. *
  10479. * @param {*} [options] Override http request option.
  10480. * @throws {RequiredError}
  10481. * @memberof OAuthApi
  10482. */
  10483. public mobileRedirect(options?: AxiosRequestConfig) {
  10484. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  10485. }
  10486. /**
  10487. *
  10488. * @param {*} [options] Override http request option.
  10489. * @throws {RequiredError}
  10490. * @memberof OAuthApi
  10491. */
  10492. public unlink(options?: AxiosRequestConfig) {
  10493. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  10494. }
  10495. }
  10496. /**
  10497. * PartnerApi - axios parameter creator
  10498. * @export
  10499. */
  10500. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  10501. return {
  10502. /**
  10503. *
  10504. * @param {string} id
  10505. * @param {*} [options] Override http request option.
  10506. * @throws {RequiredError}
  10507. */
  10508. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10509. // verify required parameter 'id' is not null or undefined
  10510. assertParamExists('createPartner', 'id', id)
  10511. const localVarPath = `/partner/{id}`
  10512. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10513. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10514. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10515. let baseOptions;
  10516. if (configuration) {
  10517. baseOptions = configuration.baseOptions;
  10518. }
  10519. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10520. const localVarHeaderParameter = {} as any;
  10521. const localVarQueryParameter = {} as any;
  10522. // authentication cookie required
  10523. // authentication api_key required
  10524. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10525. // authentication bearer required
  10526. // http bearer authentication required
  10527. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10528. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10529. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10530. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10531. return {
  10532. url: toPathString(localVarUrlObj),
  10533. options: localVarRequestOptions,
  10534. };
  10535. },
  10536. /**
  10537. *
  10538. * @param {'shared-by' | 'shared-with'} direction
  10539. * @param {*} [options] Override http request option.
  10540. * @throws {RequiredError}
  10541. */
  10542. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10543. // verify required parameter 'direction' is not null or undefined
  10544. assertParamExists('getPartners', 'direction', direction)
  10545. const localVarPath = `/partner`;
  10546. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10547. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10548. let baseOptions;
  10549. if (configuration) {
  10550. baseOptions = configuration.baseOptions;
  10551. }
  10552. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10553. const localVarHeaderParameter = {} as any;
  10554. const localVarQueryParameter = {} as any;
  10555. // authentication cookie required
  10556. // authentication api_key required
  10557. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10558. // authentication bearer required
  10559. // http bearer authentication required
  10560. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10561. if (direction !== undefined) {
  10562. localVarQueryParameter['direction'] = direction;
  10563. }
  10564. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10565. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10566. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10567. return {
  10568. url: toPathString(localVarUrlObj),
  10569. options: localVarRequestOptions,
  10570. };
  10571. },
  10572. /**
  10573. *
  10574. * @param {string} id
  10575. * @param {*} [options] Override http request option.
  10576. * @throws {RequiredError}
  10577. */
  10578. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10579. // verify required parameter 'id' is not null or undefined
  10580. assertParamExists('removePartner', 'id', id)
  10581. const localVarPath = `/partner/{id}`
  10582. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10583. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10584. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10585. let baseOptions;
  10586. if (configuration) {
  10587. baseOptions = configuration.baseOptions;
  10588. }
  10589. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10590. const localVarHeaderParameter = {} as any;
  10591. const localVarQueryParameter = {} as any;
  10592. // authentication cookie required
  10593. // authentication api_key required
  10594. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10595. // authentication bearer required
  10596. // http bearer authentication required
  10597. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10598. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10599. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10600. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10601. return {
  10602. url: toPathString(localVarUrlObj),
  10603. options: localVarRequestOptions,
  10604. };
  10605. },
  10606. }
  10607. };
  10608. /**
  10609. * PartnerApi - functional programming interface
  10610. * @export
  10611. */
  10612. export const PartnerApiFp = function(configuration?: Configuration) {
  10613. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  10614. return {
  10615. /**
  10616. *
  10617. * @param {string} id
  10618. * @param {*} [options] Override http request option.
  10619. * @throws {RequiredError}
  10620. */
  10621. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10622. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  10623. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10624. },
  10625. /**
  10626. *
  10627. * @param {'shared-by' | 'shared-with'} direction
  10628. * @param {*} [options] Override http request option.
  10629. * @throws {RequiredError}
  10630. */
  10631. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  10632. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  10633. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10634. },
  10635. /**
  10636. *
  10637. * @param {string} id
  10638. * @param {*} [options] Override http request option.
  10639. * @throws {RequiredError}
  10640. */
  10641. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10642. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  10643. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10644. },
  10645. }
  10646. };
  10647. /**
  10648. * PartnerApi - factory interface
  10649. * @export
  10650. */
  10651. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10652. const localVarFp = PartnerApiFp(configuration)
  10653. return {
  10654. /**
  10655. *
  10656. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10657. * @param {*} [options] Override http request option.
  10658. * @throws {RequiredError}
  10659. */
  10660. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10661. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10662. },
  10663. /**
  10664. *
  10665. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10666. * @param {*} [options] Override http request option.
  10667. * @throws {RequiredError}
  10668. */
  10669. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  10670. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  10671. },
  10672. /**
  10673. *
  10674. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10675. * @param {*} [options] Override http request option.
  10676. * @throws {RequiredError}
  10677. */
  10678. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10679. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10680. },
  10681. };
  10682. };
  10683. /**
  10684. * Request parameters for createPartner operation in PartnerApi.
  10685. * @export
  10686. * @interface PartnerApiCreatePartnerRequest
  10687. */
  10688. export interface PartnerApiCreatePartnerRequest {
  10689. /**
  10690. *
  10691. * @type {string}
  10692. * @memberof PartnerApiCreatePartner
  10693. */
  10694. readonly id: string
  10695. }
  10696. /**
  10697. * Request parameters for getPartners operation in PartnerApi.
  10698. * @export
  10699. * @interface PartnerApiGetPartnersRequest
  10700. */
  10701. export interface PartnerApiGetPartnersRequest {
  10702. /**
  10703. *
  10704. * @type {'shared-by' | 'shared-with'}
  10705. * @memberof PartnerApiGetPartners
  10706. */
  10707. readonly direction: 'shared-by' | 'shared-with'
  10708. }
  10709. /**
  10710. * Request parameters for removePartner operation in PartnerApi.
  10711. * @export
  10712. * @interface PartnerApiRemovePartnerRequest
  10713. */
  10714. export interface PartnerApiRemovePartnerRequest {
  10715. /**
  10716. *
  10717. * @type {string}
  10718. * @memberof PartnerApiRemovePartner
  10719. */
  10720. readonly id: string
  10721. }
  10722. /**
  10723. * PartnerApi - object-oriented interface
  10724. * @export
  10725. * @class PartnerApi
  10726. * @extends {BaseAPI}
  10727. */
  10728. export class PartnerApi extends BaseAPI {
  10729. /**
  10730. *
  10731. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10732. * @param {*} [options] Override http request option.
  10733. * @throws {RequiredError}
  10734. * @memberof PartnerApi
  10735. */
  10736. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  10737. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10738. }
  10739. /**
  10740. *
  10741. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10742. * @param {*} [options] Override http request option.
  10743. * @throws {RequiredError}
  10744. * @memberof PartnerApi
  10745. */
  10746. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  10747. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  10748. }
  10749. /**
  10750. *
  10751. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10752. * @param {*} [options] Override http request option.
  10753. * @throws {RequiredError}
  10754. * @memberof PartnerApi
  10755. */
  10756. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  10757. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10758. }
  10759. }
  10760. /**
  10761. * PersonApi - axios parameter creator
  10762. * @export
  10763. */
  10764. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  10765. return {
  10766. /**
  10767. *
  10768. * @param {boolean} [withHidden]
  10769. * @param {*} [options] Override http request option.
  10770. * @throws {RequiredError}
  10771. */
  10772. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10773. const localVarPath = `/person`;
  10774. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10775. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10776. let baseOptions;
  10777. if (configuration) {
  10778. baseOptions = configuration.baseOptions;
  10779. }
  10780. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10781. const localVarHeaderParameter = {} as any;
  10782. const localVarQueryParameter = {} as any;
  10783. // authentication cookie required
  10784. // authentication api_key required
  10785. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10786. // authentication bearer required
  10787. // http bearer authentication required
  10788. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10789. if (withHidden !== undefined) {
  10790. localVarQueryParameter['withHidden'] = withHidden;
  10791. }
  10792. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10793. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10794. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10795. return {
  10796. url: toPathString(localVarUrlObj),
  10797. options: localVarRequestOptions,
  10798. };
  10799. },
  10800. /**
  10801. *
  10802. * @param {string} id
  10803. * @param {*} [options] Override http request option.
  10804. * @throws {RequiredError}
  10805. */
  10806. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10807. // verify required parameter 'id' is not null or undefined
  10808. assertParamExists('getPerson', 'id', id)
  10809. const localVarPath = `/person/{id}`
  10810. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10811. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10812. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10813. let baseOptions;
  10814. if (configuration) {
  10815. baseOptions = configuration.baseOptions;
  10816. }
  10817. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10818. const localVarHeaderParameter = {} as any;
  10819. const localVarQueryParameter = {} as any;
  10820. // authentication cookie required
  10821. // authentication api_key required
  10822. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10823. // authentication bearer required
  10824. // http bearer authentication required
  10825. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10826. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10827. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10828. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10829. return {
  10830. url: toPathString(localVarUrlObj),
  10831. options: localVarRequestOptions,
  10832. };
  10833. },
  10834. /**
  10835. *
  10836. * @param {string} id
  10837. * @param {*} [options] Override http request option.
  10838. * @throws {RequiredError}
  10839. */
  10840. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10841. // verify required parameter 'id' is not null or undefined
  10842. assertParamExists('getPersonAssets', 'id', id)
  10843. const localVarPath = `/person/{id}/assets`
  10844. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10845. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10846. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10847. let baseOptions;
  10848. if (configuration) {
  10849. baseOptions = configuration.baseOptions;
  10850. }
  10851. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10852. const localVarHeaderParameter = {} as any;
  10853. const localVarQueryParameter = {} as any;
  10854. // authentication cookie required
  10855. // authentication api_key required
  10856. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10857. // authentication bearer required
  10858. // http bearer authentication required
  10859. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10860. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10861. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10862. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10863. return {
  10864. url: toPathString(localVarUrlObj),
  10865. options: localVarRequestOptions,
  10866. };
  10867. },
  10868. /**
  10869. *
  10870. * @param {string} id
  10871. * @param {*} [options] Override http request option.
  10872. * @throws {RequiredError}
  10873. */
  10874. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10875. // verify required parameter 'id' is not null or undefined
  10876. assertParamExists('getPersonStatistics', 'id', id)
  10877. const localVarPath = `/person/{id}/statistics`
  10878. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10879. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10880. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10881. let baseOptions;
  10882. if (configuration) {
  10883. baseOptions = configuration.baseOptions;
  10884. }
  10885. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10886. const localVarHeaderParameter = {} as any;
  10887. const localVarQueryParameter = {} as any;
  10888. // authentication cookie required
  10889. // authentication api_key required
  10890. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10891. // authentication bearer required
  10892. // http bearer authentication required
  10893. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10894. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10895. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10896. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10897. return {
  10898. url: toPathString(localVarUrlObj),
  10899. options: localVarRequestOptions,
  10900. };
  10901. },
  10902. /**
  10903. *
  10904. * @param {string} id
  10905. * @param {*} [options] Override http request option.
  10906. * @throws {RequiredError}
  10907. */
  10908. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10909. // verify required parameter 'id' is not null or undefined
  10910. assertParamExists('getPersonThumbnail', 'id', id)
  10911. const localVarPath = `/person/{id}/thumbnail`
  10912. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10913. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10914. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10915. let baseOptions;
  10916. if (configuration) {
  10917. baseOptions = configuration.baseOptions;
  10918. }
  10919. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10920. const localVarHeaderParameter = {} as any;
  10921. const localVarQueryParameter = {} as any;
  10922. // authentication cookie required
  10923. // authentication api_key required
  10924. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10925. // authentication bearer required
  10926. // http bearer authentication required
  10927. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10928. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10929. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10930. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10931. return {
  10932. url: toPathString(localVarUrlObj),
  10933. options: localVarRequestOptions,
  10934. };
  10935. },
  10936. /**
  10937. *
  10938. * @param {string} id
  10939. * @param {MergePersonDto} mergePersonDto
  10940. * @param {*} [options] Override http request option.
  10941. * @throws {RequiredError}
  10942. */
  10943. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10944. // verify required parameter 'id' is not null or undefined
  10945. assertParamExists('mergePerson', 'id', id)
  10946. // verify required parameter 'mergePersonDto' is not null or undefined
  10947. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  10948. const localVarPath = `/person/{id}/merge`
  10949. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10950. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10951. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10952. let baseOptions;
  10953. if (configuration) {
  10954. baseOptions = configuration.baseOptions;
  10955. }
  10956. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10957. const localVarHeaderParameter = {} as any;
  10958. const localVarQueryParameter = {} as any;
  10959. // authentication cookie required
  10960. // authentication api_key required
  10961. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10962. // authentication bearer required
  10963. // http bearer authentication required
  10964. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10965. localVarHeaderParameter['Content-Type'] = 'application/json';
  10966. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10967. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10968. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10969. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  10970. return {
  10971. url: toPathString(localVarUrlObj),
  10972. options: localVarRequestOptions,
  10973. };
  10974. },
  10975. /**
  10976. *
  10977. * @param {PeopleUpdateDto} peopleUpdateDto
  10978. * @param {*} [options] Override http request option.
  10979. * @throws {RequiredError}
  10980. */
  10981. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10982. // verify required parameter 'peopleUpdateDto' is not null or undefined
  10983. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  10984. const localVarPath = `/person`;
  10985. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10986. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10987. let baseOptions;
  10988. if (configuration) {
  10989. baseOptions = configuration.baseOptions;
  10990. }
  10991. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10992. const localVarHeaderParameter = {} as any;
  10993. const localVarQueryParameter = {} as any;
  10994. // authentication cookie required
  10995. // authentication api_key required
  10996. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10997. // authentication bearer required
  10998. // http bearer authentication required
  10999. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11000. localVarHeaderParameter['Content-Type'] = 'application/json';
  11001. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11002. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11003. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11004. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  11005. return {
  11006. url: toPathString(localVarUrlObj),
  11007. options: localVarRequestOptions,
  11008. };
  11009. },
  11010. /**
  11011. *
  11012. * @param {string} id
  11013. * @param {PersonUpdateDto} personUpdateDto
  11014. * @param {*} [options] Override http request option.
  11015. * @throws {RequiredError}
  11016. */
  11017. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11018. // verify required parameter 'id' is not null or undefined
  11019. assertParamExists('updatePerson', 'id', id)
  11020. // verify required parameter 'personUpdateDto' is not null or undefined
  11021. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  11022. const localVarPath = `/person/{id}`
  11023. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11024. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11025. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11026. let baseOptions;
  11027. if (configuration) {
  11028. baseOptions = configuration.baseOptions;
  11029. }
  11030. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11031. const localVarHeaderParameter = {} as any;
  11032. const localVarQueryParameter = {} as any;
  11033. // authentication cookie required
  11034. // authentication api_key required
  11035. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11036. // authentication bearer required
  11037. // http bearer authentication required
  11038. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11039. localVarHeaderParameter['Content-Type'] = 'application/json';
  11040. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11041. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11042. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11043. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  11044. return {
  11045. url: toPathString(localVarUrlObj),
  11046. options: localVarRequestOptions,
  11047. };
  11048. },
  11049. }
  11050. };
  11051. /**
  11052. * PersonApi - functional programming interface
  11053. * @export
  11054. */
  11055. export const PersonApiFp = function(configuration?: Configuration) {
  11056. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  11057. return {
  11058. /**
  11059. *
  11060. * @param {boolean} [withHidden]
  11061. * @param {*} [options] Override http request option.
  11062. * @throws {RequiredError}
  11063. */
  11064. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  11065. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  11066. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11067. },
  11068. /**
  11069. *
  11070. * @param {string} id
  11071. * @param {*} [options] Override http request option.
  11072. * @throws {RequiredError}
  11073. */
  11074. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11075. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  11076. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11077. },
  11078. /**
  11079. *
  11080. * @param {string} id
  11081. * @param {*} [options] Override http request option.
  11082. * @throws {RequiredError}
  11083. */
  11084. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  11085. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  11086. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11087. },
  11088. /**
  11089. *
  11090. * @param {string} id
  11091. * @param {*} [options] Override http request option.
  11092. * @throws {RequiredError}
  11093. */
  11094. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  11095. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  11096. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11097. },
  11098. /**
  11099. *
  11100. * @param {string} id
  11101. * @param {*} [options] Override http request option.
  11102. * @throws {RequiredError}
  11103. */
  11104. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  11105. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  11106. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11107. },
  11108. /**
  11109. *
  11110. * @param {string} id
  11111. * @param {MergePersonDto} mergePersonDto
  11112. * @param {*} [options] Override http request option.
  11113. * @throws {RequiredError}
  11114. */
  11115. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11116. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  11117. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11118. },
  11119. /**
  11120. *
  11121. * @param {PeopleUpdateDto} peopleUpdateDto
  11122. * @param {*} [options] Override http request option.
  11123. * @throws {RequiredError}
  11124. */
  11125. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11126. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  11127. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11128. },
  11129. /**
  11130. *
  11131. * @param {string} id
  11132. * @param {PersonUpdateDto} personUpdateDto
  11133. * @param {*} [options] Override http request option.
  11134. * @throws {RequiredError}
  11135. */
  11136. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11137. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  11138. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11139. },
  11140. }
  11141. };
  11142. /**
  11143. * PersonApi - factory interface
  11144. * @export
  11145. */
  11146. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11147. const localVarFp = PersonApiFp(configuration)
  11148. return {
  11149. /**
  11150. *
  11151. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11152. * @param {*} [options] Override http request option.
  11153. * @throws {RequiredError}
  11154. */
  11155. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  11156. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11157. },
  11158. /**
  11159. *
  11160. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11161. * @param {*} [options] Override http request option.
  11162. * @throws {RequiredError}
  11163. */
  11164. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11165. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  11166. },
  11167. /**
  11168. *
  11169. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11170. * @param {*} [options] Override http request option.
  11171. * @throws {RequiredError}
  11172. */
  11173. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  11174. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  11175. },
  11176. /**
  11177. *
  11178. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11179. * @param {*} [options] Override http request option.
  11180. * @throws {RequiredError}
  11181. */
  11182. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  11183. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  11184. },
  11185. /**
  11186. *
  11187. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11188. * @param {*} [options] Override http request option.
  11189. * @throws {RequiredError}
  11190. */
  11191. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  11192. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  11193. },
  11194. /**
  11195. *
  11196. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11197. * @param {*} [options] Override http request option.
  11198. * @throws {RequiredError}
  11199. */
  11200. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11201. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  11202. },
  11203. /**
  11204. *
  11205. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11206. * @param {*} [options] Override http request option.
  11207. * @throws {RequiredError}
  11208. */
  11209. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11210. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  11211. },
  11212. /**
  11213. *
  11214. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11215. * @param {*} [options] Override http request option.
  11216. * @throws {RequiredError}
  11217. */
  11218. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11219. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  11220. },
  11221. };
  11222. };
  11223. /**
  11224. * Request parameters for getAllPeople operation in PersonApi.
  11225. * @export
  11226. * @interface PersonApiGetAllPeopleRequest
  11227. */
  11228. export interface PersonApiGetAllPeopleRequest {
  11229. /**
  11230. *
  11231. * @type {boolean}
  11232. * @memberof PersonApiGetAllPeople
  11233. */
  11234. readonly withHidden?: boolean
  11235. }
  11236. /**
  11237. * Request parameters for getPerson operation in PersonApi.
  11238. * @export
  11239. * @interface PersonApiGetPersonRequest
  11240. */
  11241. export interface PersonApiGetPersonRequest {
  11242. /**
  11243. *
  11244. * @type {string}
  11245. * @memberof PersonApiGetPerson
  11246. */
  11247. readonly id: string
  11248. }
  11249. /**
  11250. * Request parameters for getPersonAssets operation in PersonApi.
  11251. * @export
  11252. * @interface PersonApiGetPersonAssetsRequest
  11253. */
  11254. export interface PersonApiGetPersonAssetsRequest {
  11255. /**
  11256. *
  11257. * @type {string}
  11258. * @memberof PersonApiGetPersonAssets
  11259. */
  11260. readonly id: string
  11261. }
  11262. /**
  11263. * Request parameters for getPersonStatistics operation in PersonApi.
  11264. * @export
  11265. * @interface PersonApiGetPersonStatisticsRequest
  11266. */
  11267. export interface PersonApiGetPersonStatisticsRequest {
  11268. /**
  11269. *
  11270. * @type {string}
  11271. * @memberof PersonApiGetPersonStatistics
  11272. */
  11273. readonly id: string
  11274. }
  11275. /**
  11276. * Request parameters for getPersonThumbnail operation in PersonApi.
  11277. * @export
  11278. * @interface PersonApiGetPersonThumbnailRequest
  11279. */
  11280. export interface PersonApiGetPersonThumbnailRequest {
  11281. /**
  11282. *
  11283. * @type {string}
  11284. * @memberof PersonApiGetPersonThumbnail
  11285. */
  11286. readonly id: string
  11287. }
  11288. /**
  11289. * Request parameters for mergePerson operation in PersonApi.
  11290. * @export
  11291. * @interface PersonApiMergePersonRequest
  11292. */
  11293. export interface PersonApiMergePersonRequest {
  11294. /**
  11295. *
  11296. * @type {string}
  11297. * @memberof PersonApiMergePerson
  11298. */
  11299. readonly id: string
  11300. /**
  11301. *
  11302. * @type {MergePersonDto}
  11303. * @memberof PersonApiMergePerson
  11304. */
  11305. readonly mergePersonDto: MergePersonDto
  11306. }
  11307. /**
  11308. * Request parameters for updatePeople operation in PersonApi.
  11309. * @export
  11310. * @interface PersonApiUpdatePeopleRequest
  11311. */
  11312. export interface PersonApiUpdatePeopleRequest {
  11313. /**
  11314. *
  11315. * @type {PeopleUpdateDto}
  11316. * @memberof PersonApiUpdatePeople
  11317. */
  11318. readonly peopleUpdateDto: PeopleUpdateDto
  11319. }
  11320. /**
  11321. * Request parameters for updatePerson operation in PersonApi.
  11322. * @export
  11323. * @interface PersonApiUpdatePersonRequest
  11324. */
  11325. export interface PersonApiUpdatePersonRequest {
  11326. /**
  11327. *
  11328. * @type {string}
  11329. * @memberof PersonApiUpdatePerson
  11330. */
  11331. readonly id: string
  11332. /**
  11333. *
  11334. * @type {PersonUpdateDto}
  11335. * @memberof PersonApiUpdatePerson
  11336. */
  11337. readonly personUpdateDto: PersonUpdateDto
  11338. }
  11339. /**
  11340. * PersonApi - object-oriented interface
  11341. * @export
  11342. * @class PersonApi
  11343. * @extends {BaseAPI}
  11344. */
  11345. export class PersonApi extends BaseAPI {
  11346. /**
  11347. *
  11348. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11349. * @param {*} [options] Override http request option.
  11350. * @throws {RequiredError}
  11351. * @memberof PersonApi
  11352. */
  11353. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  11354. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11355. }
  11356. /**
  11357. *
  11358. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11359. * @param {*} [options] Override http request option.
  11360. * @throws {RequiredError}
  11361. * @memberof PersonApi
  11362. */
  11363. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  11364. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11365. }
  11366. /**
  11367. *
  11368. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11369. * @param {*} [options] Override http request option.
  11370. * @throws {RequiredError}
  11371. * @memberof PersonApi
  11372. */
  11373. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  11374. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11375. }
  11376. /**
  11377. *
  11378. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11379. * @param {*} [options] Override http request option.
  11380. * @throws {RequiredError}
  11381. * @memberof PersonApi
  11382. */
  11383. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  11384. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11385. }
  11386. /**
  11387. *
  11388. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11389. * @param {*} [options] Override http request option.
  11390. * @throws {RequiredError}
  11391. * @memberof PersonApi
  11392. */
  11393. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  11394. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11395. }
  11396. /**
  11397. *
  11398. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11399. * @param {*} [options] Override http request option.
  11400. * @throws {RequiredError}
  11401. * @memberof PersonApi
  11402. */
  11403. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  11404. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  11405. }
  11406. /**
  11407. *
  11408. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11409. * @param {*} [options] Override http request option.
  11410. * @throws {RequiredError}
  11411. * @memberof PersonApi
  11412. */
  11413. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  11414. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11415. }
  11416. /**
  11417. *
  11418. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11419. * @param {*} [options] Override http request option.
  11420. * @throws {RequiredError}
  11421. * @memberof PersonApi
  11422. */
  11423. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  11424. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11425. }
  11426. }
  11427. /**
  11428. * SearchApi - axios parameter creator
  11429. * @export
  11430. */
  11431. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  11432. return {
  11433. /**
  11434. *
  11435. * @param {*} [options] Override http request option.
  11436. * @throws {RequiredError}
  11437. */
  11438. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11439. const localVarPath = `/search/explore`;
  11440. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11441. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11442. let baseOptions;
  11443. if (configuration) {
  11444. baseOptions = configuration.baseOptions;
  11445. }
  11446. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11447. const localVarHeaderParameter = {} as any;
  11448. const localVarQueryParameter = {} as any;
  11449. // authentication cookie required
  11450. // authentication api_key required
  11451. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11452. // authentication bearer required
  11453. // http bearer authentication required
  11454. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11455. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11456. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11457. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11458. return {
  11459. url: toPathString(localVarUrlObj),
  11460. options: localVarRequestOptions,
  11461. };
  11462. },
  11463. /**
  11464. *
  11465. * @param {string} [q]
  11466. * @param {string} [query]
  11467. * @param {boolean} [clip]
  11468. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11469. * @param {boolean} [isFavorite]
  11470. * @param {boolean} [isArchived]
  11471. * @param {string} [exifInfoCity]
  11472. * @param {string} [exifInfoState]
  11473. * @param {string} [exifInfoCountry]
  11474. * @param {string} [exifInfoMake]
  11475. * @param {string} [exifInfoModel]
  11476. * @param {string} [exifInfoProjectionType]
  11477. * @param {Array<string>} [smartInfoObjects]
  11478. * @param {Array<string>} [smartInfoTags]
  11479. * @param {boolean} [recent]
  11480. * @param {boolean} [motion]
  11481. * @param {*} [options] Override http request option.
  11482. * @throws {RequiredError}
  11483. */
  11484. 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, exifInfoProjectionType?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11485. const localVarPath = `/search`;
  11486. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11487. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11488. let baseOptions;
  11489. if (configuration) {
  11490. baseOptions = configuration.baseOptions;
  11491. }
  11492. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11493. const localVarHeaderParameter = {} as any;
  11494. const localVarQueryParameter = {} as any;
  11495. // authentication cookie required
  11496. // authentication api_key required
  11497. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11498. // authentication bearer required
  11499. // http bearer authentication required
  11500. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11501. if (q !== undefined) {
  11502. localVarQueryParameter['q'] = q;
  11503. }
  11504. if (query !== undefined) {
  11505. localVarQueryParameter['query'] = query;
  11506. }
  11507. if (clip !== undefined) {
  11508. localVarQueryParameter['clip'] = clip;
  11509. }
  11510. if (type !== undefined) {
  11511. localVarQueryParameter['type'] = type;
  11512. }
  11513. if (isFavorite !== undefined) {
  11514. localVarQueryParameter['isFavorite'] = isFavorite;
  11515. }
  11516. if (isArchived !== undefined) {
  11517. localVarQueryParameter['isArchived'] = isArchived;
  11518. }
  11519. if (exifInfoCity !== undefined) {
  11520. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  11521. }
  11522. if (exifInfoState !== undefined) {
  11523. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  11524. }
  11525. if (exifInfoCountry !== undefined) {
  11526. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  11527. }
  11528. if (exifInfoMake !== undefined) {
  11529. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  11530. }
  11531. if (exifInfoModel !== undefined) {
  11532. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  11533. }
  11534. if (exifInfoProjectionType !== undefined) {
  11535. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  11536. }
  11537. if (smartInfoObjects) {
  11538. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  11539. }
  11540. if (smartInfoTags) {
  11541. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  11542. }
  11543. if (recent !== undefined) {
  11544. localVarQueryParameter['recent'] = recent;
  11545. }
  11546. if (motion !== undefined) {
  11547. localVarQueryParameter['motion'] = motion;
  11548. }
  11549. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11550. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11551. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11552. return {
  11553. url: toPathString(localVarUrlObj),
  11554. options: localVarRequestOptions,
  11555. };
  11556. },
  11557. /**
  11558. *
  11559. * @param {string} name
  11560. * @param {boolean} [withHidden]
  11561. * @param {*} [options] Override http request option.
  11562. * @throws {RequiredError}
  11563. */
  11564. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11565. // verify required parameter 'name' is not null or undefined
  11566. assertParamExists('searchPerson', 'name', name)
  11567. const localVarPath = `/search/person`;
  11568. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11569. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11570. let baseOptions;
  11571. if (configuration) {
  11572. baseOptions = configuration.baseOptions;
  11573. }
  11574. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11575. const localVarHeaderParameter = {} as any;
  11576. const localVarQueryParameter = {} as any;
  11577. // authentication cookie required
  11578. // authentication api_key required
  11579. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11580. // authentication bearer required
  11581. // http bearer authentication required
  11582. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11583. if (name !== undefined) {
  11584. localVarQueryParameter['name'] = name;
  11585. }
  11586. if (withHidden !== undefined) {
  11587. localVarQueryParameter['withHidden'] = withHidden;
  11588. }
  11589. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11590. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11591. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11592. return {
  11593. url: toPathString(localVarUrlObj),
  11594. options: localVarRequestOptions,
  11595. };
  11596. },
  11597. }
  11598. };
  11599. /**
  11600. * SearchApi - functional programming interface
  11601. * @export
  11602. */
  11603. export const SearchApiFp = function(configuration?: Configuration) {
  11604. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  11605. return {
  11606. /**
  11607. *
  11608. * @param {*} [options] Override http request option.
  11609. * @throws {RequiredError}
  11610. */
  11611. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  11612. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  11613. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11614. },
  11615. /**
  11616. *
  11617. * @param {string} [q]
  11618. * @param {string} [query]
  11619. * @param {boolean} [clip]
  11620. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11621. * @param {boolean} [isFavorite]
  11622. * @param {boolean} [isArchived]
  11623. * @param {string} [exifInfoCity]
  11624. * @param {string} [exifInfoState]
  11625. * @param {string} [exifInfoCountry]
  11626. * @param {string} [exifInfoMake]
  11627. * @param {string} [exifInfoModel]
  11628. * @param {string} [exifInfoProjectionType]
  11629. * @param {Array<string>} [smartInfoObjects]
  11630. * @param {Array<string>} [smartInfoTags]
  11631. * @param {boolean} [recent]
  11632. * @param {boolean} [motion]
  11633. * @param {*} [options] Override http request option.
  11634. * @throws {RequiredError}
  11635. */
  11636. 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, exifInfoProjectionType?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchResponseDto>> {
  11637. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  11638. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11639. },
  11640. /**
  11641. *
  11642. * @param {string} name
  11643. * @param {boolean} [withHidden]
  11644. * @param {*} [options] Override http request option.
  11645. * @throws {RequiredError}
  11646. */
  11647. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  11648. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  11649. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11650. },
  11651. }
  11652. };
  11653. /**
  11654. * SearchApi - factory interface
  11655. * @export
  11656. */
  11657. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11658. const localVarFp = SearchApiFp(configuration)
  11659. return {
  11660. /**
  11661. *
  11662. * @param {*} [options] Override http request option.
  11663. * @throws {RequiredError}
  11664. */
  11665. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  11666. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  11667. },
  11668. /**
  11669. *
  11670. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11671. * @param {*} [options] Override http request option.
  11672. * @throws {RequiredError}
  11673. */
  11674. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  11675. return localVarFp.search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.exifInfoCity, requestParameters.exifInfoState, requestParameters.exifInfoCountry, requestParameters.exifInfoMake, requestParameters.exifInfoModel, requestParameters.exifInfoProjectionType, requestParameters.smartInfoObjects, requestParameters.smartInfoTags, requestParameters.recent, requestParameters.motion, options).then((request) => request(axios, basePath));
  11676. },
  11677. /**
  11678. *
  11679. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11680. * @param {*} [options] Override http request option.
  11681. * @throws {RequiredError}
  11682. */
  11683. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  11684. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11685. },
  11686. };
  11687. };
  11688. /**
  11689. * Request parameters for search operation in SearchApi.
  11690. * @export
  11691. * @interface SearchApiSearchRequest
  11692. */
  11693. export interface SearchApiSearchRequest {
  11694. /**
  11695. *
  11696. * @type {string}
  11697. * @memberof SearchApiSearch
  11698. */
  11699. readonly q?: string
  11700. /**
  11701. *
  11702. * @type {string}
  11703. * @memberof SearchApiSearch
  11704. */
  11705. readonly query?: string
  11706. /**
  11707. *
  11708. * @type {boolean}
  11709. * @memberof SearchApiSearch
  11710. */
  11711. readonly clip?: boolean
  11712. /**
  11713. *
  11714. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  11715. * @memberof SearchApiSearch
  11716. */
  11717. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  11718. /**
  11719. *
  11720. * @type {boolean}
  11721. * @memberof SearchApiSearch
  11722. */
  11723. readonly isFavorite?: boolean
  11724. /**
  11725. *
  11726. * @type {boolean}
  11727. * @memberof SearchApiSearch
  11728. */
  11729. readonly isArchived?: boolean
  11730. /**
  11731. *
  11732. * @type {string}
  11733. * @memberof SearchApiSearch
  11734. */
  11735. readonly exifInfoCity?: string
  11736. /**
  11737. *
  11738. * @type {string}
  11739. * @memberof SearchApiSearch
  11740. */
  11741. readonly exifInfoState?: string
  11742. /**
  11743. *
  11744. * @type {string}
  11745. * @memberof SearchApiSearch
  11746. */
  11747. readonly exifInfoCountry?: string
  11748. /**
  11749. *
  11750. * @type {string}
  11751. * @memberof SearchApiSearch
  11752. */
  11753. readonly exifInfoMake?: string
  11754. /**
  11755. *
  11756. * @type {string}
  11757. * @memberof SearchApiSearch
  11758. */
  11759. readonly exifInfoModel?: string
  11760. /**
  11761. *
  11762. * @type {string}
  11763. * @memberof SearchApiSearch
  11764. */
  11765. readonly exifInfoProjectionType?: string
  11766. /**
  11767. *
  11768. * @type {Array<string>}
  11769. * @memberof SearchApiSearch
  11770. */
  11771. readonly smartInfoObjects?: Array<string>
  11772. /**
  11773. *
  11774. * @type {Array<string>}
  11775. * @memberof SearchApiSearch
  11776. */
  11777. readonly smartInfoTags?: Array<string>
  11778. /**
  11779. *
  11780. * @type {boolean}
  11781. * @memberof SearchApiSearch
  11782. */
  11783. readonly recent?: boolean
  11784. /**
  11785. *
  11786. * @type {boolean}
  11787. * @memberof SearchApiSearch
  11788. */
  11789. readonly motion?: boolean
  11790. }
  11791. /**
  11792. * Request parameters for searchPerson operation in SearchApi.
  11793. * @export
  11794. * @interface SearchApiSearchPersonRequest
  11795. */
  11796. export interface SearchApiSearchPersonRequest {
  11797. /**
  11798. *
  11799. * @type {string}
  11800. * @memberof SearchApiSearchPerson
  11801. */
  11802. readonly name: string
  11803. /**
  11804. *
  11805. * @type {boolean}
  11806. * @memberof SearchApiSearchPerson
  11807. */
  11808. readonly withHidden?: boolean
  11809. }
  11810. /**
  11811. * SearchApi - object-oriented interface
  11812. * @export
  11813. * @class SearchApi
  11814. * @extends {BaseAPI}
  11815. */
  11816. export class SearchApi extends BaseAPI {
  11817. /**
  11818. *
  11819. * @param {*} [options] Override http request option.
  11820. * @throws {RequiredError}
  11821. * @memberof SearchApi
  11822. */
  11823. public getExploreData(options?: AxiosRequestConfig) {
  11824. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  11825. }
  11826. /**
  11827. *
  11828. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11829. * @param {*} [options] Override http request option.
  11830. * @throws {RequiredError}
  11831. * @memberof SearchApi
  11832. */
  11833. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  11834. return SearchApiFp(this.configuration).search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.exifInfoCity, requestParameters.exifInfoState, requestParameters.exifInfoCountry, requestParameters.exifInfoMake, requestParameters.exifInfoModel, requestParameters.exifInfoProjectionType, requestParameters.smartInfoObjects, requestParameters.smartInfoTags, requestParameters.recent, requestParameters.motion, options).then((request) => request(this.axios, this.basePath));
  11835. }
  11836. /**
  11837. *
  11838. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11839. * @param {*} [options] Override http request option.
  11840. * @throws {RequiredError}
  11841. * @memberof SearchApi
  11842. */
  11843. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  11844. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11845. }
  11846. }
  11847. /**
  11848. * ServerInfoApi - axios parameter creator
  11849. * @export
  11850. */
  11851. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  11852. return {
  11853. /**
  11854. *
  11855. * @param {*} [options] Override http request option.
  11856. * @throws {RequiredError}
  11857. */
  11858. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11859. const localVarPath = `/server-info/config`;
  11860. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11861. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11862. let baseOptions;
  11863. if (configuration) {
  11864. baseOptions = configuration.baseOptions;
  11865. }
  11866. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11867. const localVarHeaderParameter = {} as any;
  11868. const localVarQueryParameter = {} as any;
  11869. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11870. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11871. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11872. return {
  11873. url: toPathString(localVarUrlObj),
  11874. options: localVarRequestOptions,
  11875. };
  11876. },
  11877. /**
  11878. *
  11879. * @param {*} [options] Override http request option.
  11880. * @throws {RequiredError}
  11881. */
  11882. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11883. const localVarPath = `/server-info/features`;
  11884. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11885. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11886. let baseOptions;
  11887. if (configuration) {
  11888. baseOptions = configuration.baseOptions;
  11889. }
  11890. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11891. const localVarHeaderParameter = {} as any;
  11892. const localVarQueryParameter = {} as any;
  11893. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11894. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11895. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11896. return {
  11897. url: toPathString(localVarUrlObj),
  11898. options: localVarRequestOptions,
  11899. };
  11900. },
  11901. /**
  11902. *
  11903. * @param {*} [options] Override http request option.
  11904. * @throws {RequiredError}
  11905. */
  11906. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11907. const localVarPath = `/server-info`;
  11908. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11909. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11910. let baseOptions;
  11911. if (configuration) {
  11912. baseOptions = configuration.baseOptions;
  11913. }
  11914. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11915. const localVarHeaderParameter = {} as any;
  11916. const localVarQueryParameter = {} as any;
  11917. // authentication cookie required
  11918. // authentication api_key required
  11919. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11920. // authentication bearer required
  11921. // http bearer authentication required
  11922. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11923. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11924. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11925. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11926. return {
  11927. url: toPathString(localVarUrlObj),
  11928. options: localVarRequestOptions,
  11929. };
  11930. },
  11931. /**
  11932. *
  11933. * @param {*} [options] Override http request option.
  11934. * @throws {RequiredError}
  11935. */
  11936. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11937. const localVarPath = `/server-info/version`;
  11938. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11939. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11940. let baseOptions;
  11941. if (configuration) {
  11942. baseOptions = configuration.baseOptions;
  11943. }
  11944. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11945. const localVarHeaderParameter = {} as any;
  11946. const localVarQueryParameter = {} as any;
  11947. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11948. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11949. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11950. return {
  11951. url: toPathString(localVarUrlObj),
  11952. options: localVarRequestOptions,
  11953. };
  11954. },
  11955. /**
  11956. *
  11957. * @param {*} [options] Override http request option.
  11958. * @throws {RequiredError}
  11959. */
  11960. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11961. const localVarPath = `/server-info/stats`;
  11962. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11963. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11964. let baseOptions;
  11965. if (configuration) {
  11966. baseOptions = configuration.baseOptions;
  11967. }
  11968. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11969. const localVarHeaderParameter = {} as any;
  11970. const localVarQueryParameter = {} as any;
  11971. // authentication cookie required
  11972. // authentication api_key required
  11973. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11974. // authentication bearer required
  11975. // http bearer authentication required
  11976. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11977. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11978. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11979. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11980. return {
  11981. url: toPathString(localVarUrlObj),
  11982. options: localVarRequestOptions,
  11983. };
  11984. },
  11985. /**
  11986. *
  11987. * @param {*} [options] Override http request option.
  11988. * @throws {RequiredError}
  11989. */
  11990. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11991. const localVarPath = `/server-info/media-types`;
  11992. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11993. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11994. let baseOptions;
  11995. if (configuration) {
  11996. baseOptions = configuration.baseOptions;
  11997. }
  11998. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11999. const localVarHeaderParameter = {} as any;
  12000. const localVarQueryParameter = {} as any;
  12001. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12002. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12003. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12004. return {
  12005. url: toPathString(localVarUrlObj),
  12006. options: localVarRequestOptions,
  12007. };
  12008. },
  12009. /**
  12010. *
  12011. * @param {*} [options] Override http request option.
  12012. * @throws {RequiredError}
  12013. */
  12014. getTheme: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12015. const localVarPath = `/server-info/theme`;
  12016. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12017. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12018. let baseOptions;
  12019. if (configuration) {
  12020. baseOptions = configuration.baseOptions;
  12021. }
  12022. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12023. const localVarHeaderParameter = {} as any;
  12024. const localVarQueryParameter = {} as any;
  12025. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12026. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12027. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12028. return {
  12029. url: toPathString(localVarUrlObj),
  12030. options: localVarRequestOptions,
  12031. };
  12032. },
  12033. /**
  12034. *
  12035. * @param {*} [options] Override http request option.
  12036. * @throws {RequiredError}
  12037. */
  12038. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12039. const localVarPath = `/server-info/ping`;
  12040. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12041. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12042. let baseOptions;
  12043. if (configuration) {
  12044. baseOptions = configuration.baseOptions;
  12045. }
  12046. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12047. const localVarHeaderParameter = {} as any;
  12048. const localVarQueryParameter = {} as any;
  12049. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12050. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12051. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12052. return {
  12053. url: toPathString(localVarUrlObj),
  12054. options: localVarRequestOptions,
  12055. };
  12056. },
  12057. }
  12058. };
  12059. /**
  12060. * ServerInfoApi - functional programming interface
  12061. * @export
  12062. */
  12063. export const ServerInfoApiFp = function(configuration?: Configuration) {
  12064. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  12065. return {
  12066. /**
  12067. *
  12068. * @param {*} [options] Override http request option.
  12069. * @throws {RequiredError}
  12070. */
  12071. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  12072. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  12073. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12074. },
  12075. /**
  12076. *
  12077. * @param {*} [options] Override http request option.
  12078. * @throws {RequiredError}
  12079. */
  12080. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  12081. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  12082. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12083. },
  12084. /**
  12085. *
  12086. * @param {*} [options] Override http request option.
  12087. * @throws {RequiredError}
  12088. */
  12089. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  12090. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  12091. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12092. },
  12093. /**
  12094. *
  12095. * @param {*} [options] Override http request option.
  12096. * @throws {RequiredError}
  12097. */
  12098. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  12099. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  12100. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12101. },
  12102. /**
  12103. *
  12104. * @param {*} [options] Override http request option.
  12105. * @throws {RequiredError}
  12106. */
  12107. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  12108. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  12109. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12110. },
  12111. /**
  12112. *
  12113. * @param {*} [options] Override http request option.
  12114. * @throws {RequiredError}
  12115. */
  12116. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  12117. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  12118. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12119. },
  12120. /**
  12121. *
  12122. * @param {*} [options] Override http request option.
  12123. * @throws {RequiredError}
  12124. */
  12125. async getTheme(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerThemeDto>> {
  12126. const localVarAxiosArgs = await localVarAxiosParamCreator.getTheme(options);
  12127. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12128. },
  12129. /**
  12130. *
  12131. * @param {*} [options] Override http request option.
  12132. * @throws {RequiredError}
  12133. */
  12134. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  12135. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  12136. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12137. },
  12138. }
  12139. };
  12140. /**
  12141. * ServerInfoApi - factory interface
  12142. * @export
  12143. */
  12144. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12145. const localVarFp = ServerInfoApiFp(configuration)
  12146. return {
  12147. /**
  12148. *
  12149. * @param {*} [options] Override http request option.
  12150. * @throws {RequiredError}
  12151. */
  12152. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  12153. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  12154. },
  12155. /**
  12156. *
  12157. * @param {*} [options] Override http request option.
  12158. * @throws {RequiredError}
  12159. */
  12160. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  12161. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  12162. },
  12163. /**
  12164. *
  12165. * @param {*} [options] Override http request option.
  12166. * @throws {RequiredError}
  12167. */
  12168. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  12169. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  12170. },
  12171. /**
  12172. *
  12173. * @param {*} [options] Override http request option.
  12174. * @throws {RequiredError}
  12175. */
  12176. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  12177. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  12178. },
  12179. /**
  12180. *
  12181. * @param {*} [options] Override http request option.
  12182. * @throws {RequiredError}
  12183. */
  12184. getStats(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  12185. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  12186. },
  12187. /**
  12188. *
  12189. * @param {*} [options] Override http request option.
  12190. * @throws {RequiredError}
  12191. */
  12192. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  12193. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  12194. },
  12195. /**
  12196. *
  12197. * @param {*} [options] Override http request option.
  12198. * @throws {RequiredError}
  12199. */
  12200. getTheme(options?: AxiosRequestConfig): AxiosPromise<ServerThemeDto> {
  12201. return localVarFp.getTheme(options).then((request) => request(axios, basePath));
  12202. },
  12203. /**
  12204. *
  12205. * @param {*} [options] Override http request option.
  12206. * @throws {RequiredError}
  12207. */
  12208. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  12209. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  12210. },
  12211. };
  12212. };
  12213. /**
  12214. * ServerInfoApi - object-oriented interface
  12215. * @export
  12216. * @class ServerInfoApi
  12217. * @extends {BaseAPI}
  12218. */
  12219. export class ServerInfoApi extends BaseAPI {
  12220. /**
  12221. *
  12222. * @param {*} [options] Override http request option.
  12223. * @throws {RequiredError}
  12224. * @memberof ServerInfoApi
  12225. */
  12226. public getServerConfig(options?: AxiosRequestConfig) {
  12227. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  12228. }
  12229. /**
  12230. *
  12231. * @param {*} [options] Override http request option.
  12232. * @throws {RequiredError}
  12233. * @memberof ServerInfoApi
  12234. */
  12235. public getServerFeatures(options?: AxiosRequestConfig) {
  12236. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  12237. }
  12238. /**
  12239. *
  12240. * @param {*} [options] Override http request option.
  12241. * @throws {RequiredError}
  12242. * @memberof ServerInfoApi
  12243. */
  12244. public getServerInfo(options?: AxiosRequestConfig) {
  12245. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  12246. }
  12247. /**
  12248. *
  12249. * @param {*} [options] Override http request option.
  12250. * @throws {RequiredError}
  12251. * @memberof ServerInfoApi
  12252. */
  12253. public getServerVersion(options?: AxiosRequestConfig) {
  12254. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  12255. }
  12256. /**
  12257. *
  12258. * @param {*} [options] Override http request option.
  12259. * @throws {RequiredError}
  12260. * @memberof ServerInfoApi
  12261. */
  12262. public getStats(options?: AxiosRequestConfig) {
  12263. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  12264. }
  12265. /**
  12266. *
  12267. * @param {*} [options] Override http request option.
  12268. * @throws {RequiredError}
  12269. * @memberof ServerInfoApi
  12270. */
  12271. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  12272. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  12273. }
  12274. /**
  12275. *
  12276. * @param {*} [options] Override http request option.
  12277. * @throws {RequiredError}
  12278. * @memberof ServerInfoApi
  12279. */
  12280. public getTheme(options?: AxiosRequestConfig) {
  12281. return ServerInfoApiFp(this.configuration).getTheme(options).then((request) => request(this.axios, this.basePath));
  12282. }
  12283. /**
  12284. *
  12285. * @param {*} [options] Override http request option.
  12286. * @throws {RequiredError}
  12287. * @memberof ServerInfoApi
  12288. */
  12289. public pingServer(options?: AxiosRequestConfig) {
  12290. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  12291. }
  12292. }
  12293. /**
  12294. * SharedLinkApi - axios parameter creator
  12295. * @export
  12296. */
  12297. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  12298. return {
  12299. /**
  12300. *
  12301. * @param {string} id
  12302. * @param {AssetIdsDto} assetIdsDto
  12303. * @param {string} [key]
  12304. * @param {*} [options] Override http request option.
  12305. * @throws {RequiredError}
  12306. */
  12307. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12308. // verify required parameter 'id' is not null or undefined
  12309. assertParamExists('addSharedLinkAssets', 'id', id)
  12310. // verify required parameter 'assetIdsDto' is not null or undefined
  12311. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12312. const localVarPath = `/shared-link/{id}/assets`
  12313. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12314. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12315. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12316. let baseOptions;
  12317. if (configuration) {
  12318. baseOptions = configuration.baseOptions;
  12319. }
  12320. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12321. const localVarHeaderParameter = {} as any;
  12322. const localVarQueryParameter = {} as any;
  12323. // authentication cookie required
  12324. // authentication api_key required
  12325. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12326. // authentication bearer required
  12327. // http bearer authentication required
  12328. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12329. if (key !== undefined) {
  12330. localVarQueryParameter['key'] = key;
  12331. }
  12332. localVarHeaderParameter['Content-Type'] = 'application/json';
  12333. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12334. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12335. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12336. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12337. return {
  12338. url: toPathString(localVarUrlObj),
  12339. options: localVarRequestOptions,
  12340. };
  12341. },
  12342. /**
  12343. *
  12344. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12345. * @param {*} [options] Override http request option.
  12346. * @throws {RequiredError}
  12347. */
  12348. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12349. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  12350. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  12351. const localVarPath = `/shared-link`;
  12352. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12353. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12354. let baseOptions;
  12355. if (configuration) {
  12356. baseOptions = configuration.baseOptions;
  12357. }
  12358. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12359. const localVarHeaderParameter = {} as any;
  12360. const localVarQueryParameter = {} as any;
  12361. // authentication cookie required
  12362. // authentication api_key required
  12363. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12364. // authentication bearer required
  12365. // http bearer authentication required
  12366. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12367. localVarHeaderParameter['Content-Type'] = 'application/json';
  12368. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12369. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12370. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12371. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  12372. return {
  12373. url: toPathString(localVarUrlObj),
  12374. options: localVarRequestOptions,
  12375. };
  12376. },
  12377. /**
  12378. *
  12379. * @param {*} [options] Override http request option.
  12380. * @throws {RequiredError}
  12381. */
  12382. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12383. const localVarPath = `/shared-link`;
  12384. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12385. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12386. let baseOptions;
  12387. if (configuration) {
  12388. baseOptions = configuration.baseOptions;
  12389. }
  12390. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12391. const localVarHeaderParameter = {} as any;
  12392. const localVarQueryParameter = {} as any;
  12393. // authentication cookie required
  12394. // authentication api_key required
  12395. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12396. // authentication bearer required
  12397. // http bearer authentication required
  12398. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12399. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12400. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12401. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12402. return {
  12403. url: toPathString(localVarUrlObj),
  12404. options: localVarRequestOptions,
  12405. };
  12406. },
  12407. /**
  12408. *
  12409. * @param {string} [password]
  12410. * @param {string} [token]
  12411. * @param {string} [key]
  12412. * @param {*} [options] Override http request option.
  12413. * @throws {RequiredError}
  12414. */
  12415. getMySharedLink: async (password?: string, token?: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12416. const localVarPath = `/shared-link/me`;
  12417. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12418. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12419. let baseOptions;
  12420. if (configuration) {
  12421. baseOptions = configuration.baseOptions;
  12422. }
  12423. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12424. const localVarHeaderParameter = {} as any;
  12425. const localVarQueryParameter = {} as any;
  12426. // authentication cookie required
  12427. // authentication api_key required
  12428. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12429. // authentication bearer required
  12430. // http bearer authentication required
  12431. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12432. if (password !== undefined) {
  12433. localVarQueryParameter['password'] = password;
  12434. }
  12435. if (token !== undefined) {
  12436. localVarQueryParameter['token'] = token;
  12437. }
  12438. if (key !== undefined) {
  12439. localVarQueryParameter['key'] = key;
  12440. }
  12441. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12442. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12443. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12444. return {
  12445. url: toPathString(localVarUrlObj),
  12446. options: localVarRequestOptions,
  12447. };
  12448. },
  12449. /**
  12450. *
  12451. * @param {string} id
  12452. * @param {*} [options] Override http request option.
  12453. * @throws {RequiredError}
  12454. */
  12455. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12456. // verify required parameter 'id' is not null or undefined
  12457. assertParamExists('getSharedLinkById', 'id', id)
  12458. const localVarPath = `/shared-link/{id}`
  12459. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12460. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12461. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12462. let baseOptions;
  12463. if (configuration) {
  12464. baseOptions = configuration.baseOptions;
  12465. }
  12466. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12467. const localVarHeaderParameter = {} as any;
  12468. const localVarQueryParameter = {} as any;
  12469. // authentication cookie required
  12470. // authentication api_key required
  12471. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12472. // authentication bearer required
  12473. // http bearer authentication required
  12474. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12475. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12476. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12477. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12478. return {
  12479. url: toPathString(localVarUrlObj),
  12480. options: localVarRequestOptions,
  12481. };
  12482. },
  12483. /**
  12484. *
  12485. * @param {string} id
  12486. * @param {*} [options] Override http request option.
  12487. * @throws {RequiredError}
  12488. */
  12489. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12490. // verify required parameter 'id' is not null or undefined
  12491. assertParamExists('removeSharedLink', 'id', id)
  12492. const localVarPath = `/shared-link/{id}`
  12493. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12494. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12495. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12496. let baseOptions;
  12497. if (configuration) {
  12498. baseOptions = configuration.baseOptions;
  12499. }
  12500. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12501. const localVarHeaderParameter = {} as any;
  12502. const localVarQueryParameter = {} as any;
  12503. // authentication cookie required
  12504. // authentication api_key required
  12505. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12506. // authentication bearer required
  12507. // http bearer authentication required
  12508. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12509. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12510. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12511. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12512. return {
  12513. url: toPathString(localVarUrlObj),
  12514. options: localVarRequestOptions,
  12515. };
  12516. },
  12517. /**
  12518. *
  12519. * @param {string} id
  12520. * @param {AssetIdsDto} assetIdsDto
  12521. * @param {string} [key]
  12522. * @param {*} [options] Override http request option.
  12523. * @throws {RequiredError}
  12524. */
  12525. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12526. // verify required parameter 'id' is not null or undefined
  12527. assertParamExists('removeSharedLinkAssets', 'id', id)
  12528. // verify required parameter 'assetIdsDto' is not null or undefined
  12529. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12530. const localVarPath = `/shared-link/{id}/assets`
  12531. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12532. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12533. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12534. let baseOptions;
  12535. if (configuration) {
  12536. baseOptions = configuration.baseOptions;
  12537. }
  12538. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12539. const localVarHeaderParameter = {} as any;
  12540. const localVarQueryParameter = {} as any;
  12541. // authentication cookie required
  12542. // authentication api_key required
  12543. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12544. // authentication bearer required
  12545. // http bearer authentication required
  12546. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12547. if (key !== undefined) {
  12548. localVarQueryParameter['key'] = key;
  12549. }
  12550. localVarHeaderParameter['Content-Type'] = 'application/json';
  12551. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12552. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12553. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12554. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12555. return {
  12556. url: toPathString(localVarUrlObj),
  12557. options: localVarRequestOptions,
  12558. };
  12559. },
  12560. /**
  12561. *
  12562. * @param {string} id
  12563. * @param {SharedLinkEditDto} sharedLinkEditDto
  12564. * @param {*} [options] Override http request option.
  12565. * @throws {RequiredError}
  12566. */
  12567. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12568. // verify required parameter 'id' is not null or undefined
  12569. assertParamExists('updateSharedLink', 'id', id)
  12570. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  12571. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  12572. const localVarPath = `/shared-link/{id}`
  12573. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12574. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12575. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12576. let baseOptions;
  12577. if (configuration) {
  12578. baseOptions = configuration.baseOptions;
  12579. }
  12580. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  12581. const localVarHeaderParameter = {} as any;
  12582. const localVarQueryParameter = {} as any;
  12583. // authentication cookie required
  12584. // authentication api_key required
  12585. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12586. // authentication bearer required
  12587. // http bearer authentication required
  12588. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12589. localVarHeaderParameter['Content-Type'] = 'application/json';
  12590. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12591. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12592. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12593. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  12594. return {
  12595. url: toPathString(localVarUrlObj),
  12596. options: localVarRequestOptions,
  12597. };
  12598. },
  12599. }
  12600. };
  12601. /**
  12602. * SharedLinkApi - functional programming interface
  12603. * @export
  12604. */
  12605. export const SharedLinkApiFp = function(configuration?: Configuration) {
  12606. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  12607. return {
  12608. /**
  12609. *
  12610. * @param {string} id
  12611. * @param {AssetIdsDto} assetIdsDto
  12612. * @param {string} [key]
  12613. * @param {*} [options] Override http request option.
  12614. * @throws {RequiredError}
  12615. */
  12616. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12617. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  12618. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12619. },
  12620. /**
  12621. *
  12622. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12623. * @param {*} [options] Override http request option.
  12624. * @throws {RequiredError}
  12625. */
  12626. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12627. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  12628. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12629. },
  12630. /**
  12631. *
  12632. * @param {*} [options] Override http request option.
  12633. * @throws {RequiredError}
  12634. */
  12635. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  12636. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  12637. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12638. },
  12639. /**
  12640. *
  12641. * @param {string} [password]
  12642. * @param {string} [token]
  12643. * @param {string} [key]
  12644. * @param {*} [options] Override http request option.
  12645. * @throws {RequiredError}
  12646. */
  12647. async getMySharedLink(password?: string, token?: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12648. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(password, token, key, options);
  12649. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12650. },
  12651. /**
  12652. *
  12653. * @param {string} id
  12654. * @param {*} [options] Override http request option.
  12655. * @throws {RequiredError}
  12656. */
  12657. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12658. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  12659. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12660. },
  12661. /**
  12662. *
  12663. * @param {string} id
  12664. * @param {*} [options] Override http request option.
  12665. * @throws {RequiredError}
  12666. */
  12667. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  12668. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  12669. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12670. },
  12671. /**
  12672. *
  12673. * @param {string} id
  12674. * @param {AssetIdsDto} assetIdsDto
  12675. * @param {string} [key]
  12676. * @param {*} [options] Override http request option.
  12677. * @throws {RequiredError}
  12678. */
  12679. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12680. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  12681. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12682. },
  12683. /**
  12684. *
  12685. * @param {string} id
  12686. * @param {SharedLinkEditDto} sharedLinkEditDto
  12687. * @param {*} [options] Override http request option.
  12688. * @throws {RequiredError}
  12689. */
  12690. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12691. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  12692. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12693. },
  12694. }
  12695. };
  12696. /**
  12697. * SharedLinkApi - factory interface
  12698. * @export
  12699. */
  12700. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12701. const localVarFp = SharedLinkApiFp(configuration)
  12702. return {
  12703. /**
  12704. *
  12705. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12706. * @param {*} [options] Override http request option.
  12707. * @throws {RequiredError}
  12708. */
  12709. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12710. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12711. },
  12712. /**
  12713. *
  12714. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12715. * @param {*} [options] Override http request option.
  12716. * @throws {RequiredError}
  12717. */
  12718. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12719. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  12720. },
  12721. /**
  12722. *
  12723. * @param {*} [options] Override http request option.
  12724. * @throws {RequiredError}
  12725. */
  12726. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  12727. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  12728. },
  12729. /**
  12730. *
  12731. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12732. * @param {*} [options] Override http request option.
  12733. * @throws {RequiredError}
  12734. */
  12735. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12736. return localVarFp.getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(axios, basePath));
  12737. },
  12738. /**
  12739. *
  12740. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12741. * @param {*} [options] Override http request option.
  12742. * @throws {RequiredError}
  12743. */
  12744. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12745. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  12746. },
  12747. /**
  12748. *
  12749. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12750. * @param {*} [options] Override http request option.
  12751. * @throws {RequiredError}
  12752. */
  12753. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  12754. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  12755. },
  12756. /**
  12757. *
  12758. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12759. * @param {*} [options] Override http request option.
  12760. * @throws {RequiredError}
  12761. */
  12762. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12763. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12764. },
  12765. /**
  12766. *
  12767. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12768. * @param {*} [options] Override http request option.
  12769. * @throws {RequiredError}
  12770. */
  12771. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12772. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  12773. },
  12774. };
  12775. };
  12776. /**
  12777. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  12778. * @export
  12779. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  12780. */
  12781. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  12782. /**
  12783. *
  12784. * @type {string}
  12785. * @memberof SharedLinkApiAddSharedLinkAssets
  12786. */
  12787. readonly id: string
  12788. /**
  12789. *
  12790. * @type {AssetIdsDto}
  12791. * @memberof SharedLinkApiAddSharedLinkAssets
  12792. */
  12793. readonly assetIdsDto: AssetIdsDto
  12794. /**
  12795. *
  12796. * @type {string}
  12797. * @memberof SharedLinkApiAddSharedLinkAssets
  12798. */
  12799. readonly key?: string
  12800. }
  12801. /**
  12802. * Request parameters for createSharedLink operation in SharedLinkApi.
  12803. * @export
  12804. * @interface SharedLinkApiCreateSharedLinkRequest
  12805. */
  12806. export interface SharedLinkApiCreateSharedLinkRequest {
  12807. /**
  12808. *
  12809. * @type {SharedLinkCreateDto}
  12810. * @memberof SharedLinkApiCreateSharedLink
  12811. */
  12812. readonly sharedLinkCreateDto: SharedLinkCreateDto
  12813. }
  12814. /**
  12815. * Request parameters for getMySharedLink operation in SharedLinkApi.
  12816. * @export
  12817. * @interface SharedLinkApiGetMySharedLinkRequest
  12818. */
  12819. export interface SharedLinkApiGetMySharedLinkRequest {
  12820. /**
  12821. *
  12822. * @type {string}
  12823. * @memberof SharedLinkApiGetMySharedLink
  12824. */
  12825. readonly password?: string
  12826. /**
  12827. *
  12828. * @type {string}
  12829. * @memberof SharedLinkApiGetMySharedLink
  12830. */
  12831. readonly token?: string
  12832. /**
  12833. *
  12834. * @type {string}
  12835. * @memberof SharedLinkApiGetMySharedLink
  12836. */
  12837. readonly key?: string
  12838. }
  12839. /**
  12840. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  12841. * @export
  12842. * @interface SharedLinkApiGetSharedLinkByIdRequest
  12843. */
  12844. export interface SharedLinkApiGetSharedLinkByIdRequest {
  12845. /**
  12846. *
  12847. * @type {string}
  12848. * @memberof SharedLinkApiGetSharedLinkById
  12849. */
  12850. readonly id: string
  12851. }
  12852. /**
  12853. * Request parameters for removeSharedLink operation in SharedLinkApi.
  12854. * @export
  12855. * @interface SharedLinkApiRemoveSharedLinkRequest
  12856. */
  12857. export interface SharedLinkApiRemoveSharedLinkRequest {
  12858. /**
  12859. *
  12860. * @type {string}
  12861. * @memberof SharedLinkApiRemoveSharedLink
  12862. */
  12863. readonly id: string
  12864. }
  12865. /**
  12866. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  12867. * @export
  12868. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  12869. */
  12870. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  12871. /**
  12872. *
  12873. * @type {string}
  12874. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12875. */
  12876. readonly id: string
  12877. /**
  12878. *
  12879. * @type {AssetIdsDto}
  12880. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12881. */
  12882. readonly assetIdsDto: AssetIdsDto
  12883. /**
  12884. *
  12885. * @type {string}
  12886. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12887. */
  12888. readonly key?: string
  12889. }
  12890. /**
  12891. * Request parameters for updateSharedLink operation in SharedLinkApi.
  12892. * @export
  12893. * @interface SharedLinkApiUpdateSharedLinkRequest
  12894. */
  12895. export interface SharedLinkApiUpdateSharedLinkRequest {
  12896. /**
  12897. *
  12898. * @type {string}
  12899. * @memberof SharedLinkApiUpdateSharedLink
  12900. */
  12901. readonly id: string
  12902. /**
  12903. *
  12904. * @type {SharedLinkEditDto}
  12905. * @memberof SharedLinkApiUpdateSharedLink
  12906. */
  12907. readonly sharedLinkEditDto: SharedLinkEditDto
  12908. }
  12909. /**
  12910. * SharedLinkApi - object-oriented interface
  12911. * @export
  12912. * @class SharedLinkApi
  12913. * @extends {BaseAPI}
  12914. */
  12915. export class SharedLinkApi extends BaseAPI {
  12916. /**
  12917. *
  12918. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12919. * @param {*} [options] Override http request option.
  12920. * @throws {RequiredError}
  12921. * @memberof SharedLinkApi
  12922. */
  12923. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12924. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12925. }
  12926. /**
  12927. *
  12928. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12929. * @param {*} [options] Override http request option.
  12930. * @throws {RequiredError}
  12931. * @memberof SharedLinkApi
  12932. */
  12933. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  12934. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  12935. }
  12936. /**
  12937. *
  12938. * @param {*} [options] Override http request option.
  12939. * @throws {RequiredError}
  12940. * @memberof SharedLinkApi
  12941. */
  12942. public getAllSharedLinks(options?: AxiosRequestConfig) {
  12943. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  12944. }
  12945. /**
  12946. *
  12947. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12948. * @param {*} [options] Override http request option.
  12949. * @throws {RequiredError}
  12950. * @memberof SharedLinkApi
  12951. */
  12952. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  12953. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12954. }
  12955. /**
  12956. *
  12957. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12958. * @param {*} [options] Override http request option.
  12959. * @throws {RequiredError}
  12960. * @memberof SharedLinkApi
  12961. */
  12962. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  12963. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12964. }
  12965. /**
  12966. *
  12967. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12968. * @param {*} [options] Override http request option.
  12969. * @throws {RequiredError}
  12970. * @memberof SharedLinkApi
  12971. */
  12972. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  12973. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12974. }
  12975. /**
  12976. *
  12977. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12978. * @param {*} [options] Override http request option.
  12979. * @throws {RequiredError}
  12980. * @memberof SharedLinkApi
  12981. */
  12982. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12983. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12984. }
  12985. /**
  12986. *
  12987. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12988. * @param {*} [options] Override http request option.
  12989. * @throws {RequiredError}
  12990. * @memberof SharedLinkApi
  12991. */
  12992. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  12993. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  12994. }
  12995. }
  12996. /**
  12997. * SystemConfigApi - axios parameter creator
  12998. * @export
  12999. */
  13000. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  13001. return {
  13002. /**
  13003. *
  13004. * @param {*} [options] Override http request option.
  13005. * @throws {RequiredError}
  13006. */
  13007. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13008. const localVarPath = `/system-config`;
  13009. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13010. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13011. let baseOptions;
  13012. if (configuration) {
  13013. baseOptions = configuration.baseOptions;
  13014. }
  13015. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13016. const localVarHeaderParameter = {} as any;
  13017. const localVarQueryParameter = {} as any;
  13018. // authentication cookie required
  13019. // authentication api_key required
  13020. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13021. // authentication bearer required
  13022. // http bearer authentication required
  13023. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13024. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13025. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13026. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13027. return {
  13028. url: toPathString(localVarUrlObj),
  13029. options: localVarRequestOptions,
  13030. };
  13031. },
  13032. /**
  13033. *
  13034. * @param {*} [options] Override http request option.
  13035. * @throws {RequiredError}
  13036. */
  13037. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13038. const localVarPath = `/system-config/defaults`;
  13039. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13040. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13041. let baseOptions;
  13042. if (configuration) {
  13043. baseOptions = configuration.baseOptions;
  13044. }
  13045. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13046. const localVarHeaderParameter = {} as any;
  13047. const localVarQueryParameter = {} as any;
  13048. // authentication cookie required
  13049. // authentication api_key required
  13050. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13051. // authentication bearer required
  13052. // http bearer authentication required
  13053. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13054. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13055. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13056. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13057. return {
  13058. url: toPathString(localVarUrlObj),
  13059. options: localVarRequestOptions,
  13060. };
  13061. },
  13062. /**
  13063. *
  13064. * @param {*} [options] Override http request option.
  13065. * @throws {RequiredError}
  13066. */
  13067. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13068. const localVarPath = `/system-config/storage-template-options`;
  13069. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13070. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13071. let baseOptions;
  13072. if (configuration) {
  13073. baseOptions = configuration.baseOptions;
  13074. }
  13075. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13076. const localVarHeaderParameter = {} as any;
  13077. const localVarQueryParameter = {} as any;
  13078. // authentication cookie required
  13079. // authentication api_key required
  13080. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13081. // authentication bearer required
  13082. // http bearer authentication required
  13083. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13084. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13085. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13086. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13087. return {
  13088. url: toPathString(localVarUrlObj),
  13089. options: localVarRequestOptions,
  13090. };
  13091. },
  13092. /**
  13093. *
  13094. * @param {SystemConfigDto} systemConfigDto
  13095. * @param {*} [options] Override http request option.
  13096. * @throws {RequiredError}
  13097. */
  13098. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13099. // verify required parameter 'systemConfigDto' is not null or undefined
  13100. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  13101. const localVarPath = `/system-config`;
  13102. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13103. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13104. let baseOptions;
  13105. if (configuration) {
  13106. baseOptions = configuration.baseOptions;
  13107. }
  13108. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13109. const localVarHeaderParameter = {} as any;
  13110. const localVarQueryParameter = {} as any;
  13111. // authentication cookie required
  13112. // authentication api_key required
  13113. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13114. // authentication bearer required
  13115. // http bearer authentication required
  13116. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13117. localVarHeaderParameter['Content-Type'] = 'application/json';
  13118. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13119. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13120. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13121. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  13122. return {
  13123. url: toPathString(localVarUrlObj),
  13124. options: localVarRequestOptions,
  13125. };
  13126. },
  13127. }
  13128. };
  13129. /**
  13130. * SystemConfigApi - functional programming interface
  13131. * @export
  13132. */
  13133. export const SystemConfigApiFp = function(configuration?: Configuration) {
  13134. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  13135. return {
  13136. /**
  13137. *
  13138. * @param {*} [options] Override http request option.
  13139. * @throws {RequiredError}
  13140. */
  13141. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13142. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  13143. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13144. },
  13145. /**
  13146. *
  13147. * @param {*} [options] Override http request option.
  13148. * @throws {RequiredError}
  13149. */
  13150. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13151. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  13152. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13153. },
  13154. /**
  13155. *
  13156. * @param {*} [options] Override http request option.
  13157. * @throws {RequiredError}
  13158. */
  13159. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  13160. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  13161. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13162. },
  13163. /**
  13164. *
  13165. * @param {SystemConfigDto} systemConfigDto
  13166. * @param {*} [options] Override http request option.
  13167. * @throws {RequiredError}
  13168. */
  13169. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13170. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  13171. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13172. },
  13173. }
  13174. };
  13175. /**
  13176. * SystemConfigApi - factory interface
  13177. * @export
  13178. */
  13179. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13180. const localVarFp = SystemConfigApiFp(configuration)
  13181. return {
  13182. /**
  13183. *
  13184. * @param {*} [options] Override http request option.
  13185. * @throws {RequiredError}
  13186. */
  13187. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13188. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  13189. },
  13190. /**
  13191. *
  13192. * @param {*} [options] Override http request option.
  13193. * @throws {RequiredError}
  13194. */
  13195. getDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13196. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  13197. },
  13198. /**
  13199. *
  13200. * @param {*} [options] Override http request option.
  13201. * @throws {RequiredError}
  13202. */
  13203. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  13204. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  13205. },
  13206. /**
  13207. *
  13208. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13209. * @param {*} [options] Override http request option.
  13210. * @throws {RequiredError}
  13211. */
  13212. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13213. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  13214. },
  13215. };
  13216. };
  13217. /**
  13218. * Request parameters for updateConfig operation in SystemConfigApi.
  13219. * @export
  13220. * @interface SystemConfigApiUpdateConfigRequest
  13221. */
  13222. export interface SystemConfigApiUpdateConfigRequest {
  13223. /**
  13224. *
  13225. * @type {SystemConfigDto}
  13226. * @memberof SystemConfigApiUpdateConfig
  13227. */
  13228. readonly systemConfigDto: SystemConfigDto
  13229. }
  13230. /**
  13231. * SystemConfigApi - object-oriented interface
  13232. * @export
  13233. * @class SystemConfigApi
  13234. * @extends {BaseAPI}
  13235. */
  13236. export class SystemConfigApi extends BaseAPI {
  13237. /**
  13238. *
  13239. * @param {*} [options] Override http request option.
  13240. * @throws {RequiredError}
  13241. * @memberof SystemConfigApi
  13242. */
  13243. public getConfig(options?: AxiosRequestConfig) {
  13244. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  13245. }
  13246. /**
  13247. *
  13248. * @param {*} [options] Override http request option.
  13249. * @throws {RequiredError}
  13250. * @memberof SystemConfigApi
  13251. */
  13252. public getDefaults(options?: AxiosRequestConfig) {
  13253. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  13254. }
  13255. /**
  13256. *
  13257. * @param {*} [options] Override http request option.
  13258. * @throws {RequiredError}
  13259. * @memberof SystemConfigApi
  13260. */
  13261. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  13262. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  13263. }
  13264. /**
  13265. *
  13266. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13267. * @param {*} [options] Override http request option.
  13268. * @throws {RequiredError}
  13269. * @memberof SystemConfigApi
  13270. */
  13271. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  13272. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  13273. }
  13274. }
  13275. /**
  13276. * TagApi - axios parameter creator
  13277. * @export
  13278. */
  13279. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  13280. return {
  13281. /**
  13282. *
  13283. * @param {CreateTagDto} createTagDto
  13284. * @param {*} [options] Override http request option.
  13285. * @throws {RequiredError}
  13286. */
  13287. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13288. // verify required parameter 'createTagDto' is not null or undefined
  13289. assertParamExists('createTag', 'createTagDto', createTagDto)
  13290. const localVarPath = `/tag`;
  13291. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13292. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13293. let baseOptions;
  13294. if (configuration) {
  13295. baseOptions = configuration.baseOptions;
  13296. }
  13297. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13298. const localVarHeaderParameter = {} as any;
  13299. const localVarQueryParameter = {} as any;
  13300. // authentication cookie required
  13301. // authentication api_key required
  13302. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13303. // authentication bearer required
  13304. // http bearer authentication required
  13305. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13306. localVarHeaderParameter['Content-Type'] = 'application/json';
  13307. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13308. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13309. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13310. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  13311. return {
  13312. url: toPathString(localVarUrlObj),
  13313. options: localVarRequestOptions,
  13314. };
  13315. },
  13316. /**
  13317. *
  13318. * @param {string} id
  13319. * @param {*} [options] Override http request option.
  13320. * @throws {RequiredError}
  13321. */
  13322. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13323. // verify required parameter 'id' is not null or undefined
  13324. assertParamExists('deleteTag', 'id', id)
  13325. const localVarPath = `/tag/{id}`
  13326. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13327. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13328. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13329. let baseOptions;
  13330. if (configuration) {
  13331. baseOptions = configuration.baseOptions;
  13332. }
  13333. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13334. const localVarHeaderParameter = {} as any;
  13335. const localVarQueryParameter = {} as any;
  13336. // authentication cookie required
  13337. // authentication api_key required
  13338. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13339. // authentication bearer required
  13340. // http bearer authentication required
  13341. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13342. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13343. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13344. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13345. return {
  13346. url: toPathString(localVarUrlObj),
  13347. options: localVarRequestOptions,
  13348. };
  13349. },
  13350. /**
  13351. *
  13352. * @param {*} [options] Override http request option.
  13353. * @throws {RequiredError}
  13354. */
  13355. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13356. const localVarPath = `/tag`;
  13357. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13358. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13359. let baseOptions;
  13360. if (configuration) {
  13361. baseOptions = configuration.baseOptions;
  13362. }
  13363. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13364. const localVarHeaderParameter = {} as any;
  13365. const localVarQueryParameter = {} as any;
  13366. // authentication cookie required
  13367. // authentication api_key required
  13368. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13369. // authentication bearer required
  13370. // http bearer authentication required
  13371. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13372. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13373. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13374. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13375. return {
  13376. url: toPathString(localVarUrlObj),
  13377. options: localVarRequestOptions,
  13378. };
  13379. },
  13380. /**
  13381. *
  13382. * @param {string} id
  13383. * @param {*} [options] Override http request option.
  13384. * @throws {RequiredError}
  13385. */
  13386. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13387. // verify required parameter 'id' is not null or undefined
  13388. assertParamExists('getTagAssets', 'id', id)
  13389. const localVarPath = `/tag/{id}/assets`
  13390. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13391. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13392. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13393. let baseOptions;
  13394. if (configuration) {
  13395. baseOptions = configuration.baseOptions;
  13396. }
  13397. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13398. const localVarHeaderParameter = {} as any;
  13399. const localVarQueryParameter = {} as any;
  13400. // authentication cookie required
  13401. // authentication api_key required
  13402. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13403. // authentication bearer required
  13404. // http bearer authentication required
  13405. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13406. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13407. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13408. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13409. return {
  13410. url: toPathString(localVarUrlObj),
  13411. options: localVarRequestOptions,
  13412. };
  13413. },
  13414. /**
  13415. *
  13416. * @param {string} id
  13417. * @param {*} [options] Override http request option.
  13418. * @throws {RequiredError}
  13419. */
  13420. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13421. // verify required parameter 'id' is not null or undefined
  13422. assertParamExists('getTagById', 'id', id)
  13423. const localVarPath = `/tag/{id}`
  13424. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13425. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13426. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13427. let baseOptions;
  13428. if (configuration) {
  13429. baseOptions = configuration.baseOptions;
  13430. }
  13431. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13432. const localVarHeaderParameter = {} as any;
  13433. const localVarQueryParameter = {} as any;
  13434. // authentication cookie required
  13435. // authentication api_key required
  13436. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13437. // authentication bearer required
  13438. // http bearer authentication required
  13439. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13440. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13441. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13442. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13443. return {
  13444. url: toPathString(localVarUrlObj),
  13445. options: localVarRequestOptions,
  13446. };
  13447. },
  13448. /**
  13449. *
  13450. * @param {string} id
  13451. * @param {AssetIdsDto} assetIdsDto
  13452. * @param {*} [options] Override http request option.
  13453. * @throws {RequiredError}
  13454. */
  13455. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13456. // verify required parameter 'id' is not null or undefined
  13457. assertParamExists('tagAssets', 'id', id)
  13458. // verify required parameter 'assetIdsDto' is not null or undefined
  13459. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  13460. const localVarPath = `/tag/{id}/assets`
  13461. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13462. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13463. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13464. let baseOptions;
  13465. if (configuration) {
  13466. baseOptions = configuration.baseOptions;
  13467. }
  13468. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13469. const localVarHeaderParameter = {} as any;
  13470. const localVarQueryParameter = {} as any;
  13471. // authentication cookie required
  13472. // authentication api_key required
  13473. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13474. // authentication bearer required
  13475. // http bearer authentication required
  13476. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13477. localVarHeaderParameter['Content-Type'] = 'application/json';
  13478. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13479. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13480. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13481. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13482. return {
  13483. url: toPathString(localVarUrlObj),
  13484. options: localVarRequestOptions,
  13485. };
  13486. },
  13487. /**
  13488. *
  13489. * @param {string} id
  13490. * @param {AssetIdsDto} assetIdsDto
  13491. * @param {*} [options] Override http request option.
  13492. * @throws {RequiredError}
  13493. */
  13494. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13495. // verify required parameter 'id' is not null or undefined
  13496. assertParamExists('untagAssets', 'id', id)
  13497. // verify required parameter 'assetIdsDto' is not null or undefined
  13498. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  13499. const localVarPath = `/tag/{id}/assets`
  13500. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13501. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13502. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13503. let baseOptions;
  13504. if (configuration) {
  13505. baseOptions = configuration.baseOptions;
  13506. }
  13507. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13508. const localVarHeaderParameter = {} as any;
  13509. const localVarQueryParameter = {} as any;
  13510. // authentication cookie required
  13511. // authentication api_key required
  13512. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13513. // authentication bearer required
  13514. // http bearer authentication required
  13515. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13516. localVarHeaderParameter['Content-Type'] = 'application/json';
  13517. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13518. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13519. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13520. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13521. return {
  13522. url: toPathString(localVarUrlObj),
  13523. options: localVarRequestOptions,
  13524. };
  13525. },
  13526. /**
  13527. *
  13528. * @param {string} id
  13529. * @param {UpdateTagDto} updateTagDto
  13530. * @param {*} [options] Override http request option.
  13531. * @throws {RequiredError}
  13532. */
  13533. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13534. // verify required parameter 'id' is not null or undefined
  13535. assertParamExists('updateTag', 'id', id)
  13536. // verify required parameter 'updateTagDto' is not null or undefined
  13537. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  13538. const localVarPath = `/tag/{id}`
  13539. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13540. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13541. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13542. let baseOptions;
  13543. if (configuration) {
  13544. baseOptions = configuration.baseOptions;
  13545. }
  13546. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13547. const localVarHeaderParameter = {} as any;
  13548. const localVarQueryParameter = {} as any;
  13549. // authentication cookie required
  13550. // authentication api_key required
  13551. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13552. // authentication bearer required
  13553. // http bearer authentication required
  13554. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13555. localVarHeaderParameter['Content-Type'] = 'application/json';
  13556. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13557. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13558. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13559. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  13560. return {
  13561. url: toPathString(localVarUrlObj),
  13562. options: localVarRequestOptions,
  13563. };
  13564. },
  13565. }
  13566. };
  13567. /**
  13568. * TagApi - functional programming interface
  13569. * @export
  13570. */
  13571. export const TagApiFp = function(configuration?: Configuration) {
  13572. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  13573. return {
  13574. /**
  13575. *
  13576. * @param {CreateTagDto} createTagDto
  13577. * @param {*} [options] Override http request option.
  13578. * @throws {RequiredError}
  13579. */
  13580. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13581. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  13582. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13583. },
  13584. /**
  13585. *
  13586. * @param {string} id
  13587. * @param {*} [options] Override http request option.
  13588. * @throws {RequiredError}
  13589. */
  13590. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13591. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  13592. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13593. },
  13594. /**
  13595. *
  13596. * @param {*} [options] Override http request option.
  13597. * @throws {RequiredError}
  13598. */
  13599. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  13600. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  13601. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13602. },
  13603. /**
  13604. *
  13605. * @param {string} id
  13606. * @param {*} [options] Override http request option.
  13607. * @throws {RequiredError}
  13608. */
  13609. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  13610. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  13611. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13612. },
  13613. /**
  13614. *
  13615. * @param {string} id
  13616. * @param {*} [options] Override http request option.
  13617. * @throws {RequiredError}
  13618. */
  13619. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13620. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  13621. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13622. },
  13623. /**
  13624. *
  13625. * @param {string} id
  13626. * @param {AssetIdsDto} assetIdsDto
  13627. * @param {*} [options] Override http request option.
  13628. * @throws {RequiredError}
  13629. */
  13630. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13631. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  13632. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13633. },
  13634. /**
  13635. *
  13636. * @param {string} id
  13637. * @param {AssetIdsDto} assetIdsDto
  13638. * @param {*} [options] Override http request option.
  13639. * @throws {RequiredError}
  13640. */
  13641. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13642. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  13643. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13644. },
  13645. /**
  13646. *
  13647. * @param {string} id
  13648. * @param {UpdateTagDto} updateTagDto
  13649. * @param {*} [options] Override http request option.
  13650. * @throws {RequiredError}
  13651. */
  13652. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13653. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  13654. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13655. },
  13656. }
  13657. };
  13658. /**
  13659. * TagApi - factory interface
  13660. * @export
  13661. */
  13662. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13663. const localVarFp = TagApiFp(configuration)
  13664. return {
  13665. /**
  13666. *
  13667. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13668. * @param {*} [options] Override http request option.
  13669. * @throws {RequiredError}
  13670. */
  13671. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13672. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  13673. },
  13674. /**
  13675. *
  13676. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13677. * @param {*} [options] Override http request option.
  13678. * @throws {RequiredError}
  13679. */
  13680. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13681. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  13682. },
  13683. /**
  13684. *
  13685. * @param {*} [options] Override http request option.
  13686. * @throws {RequiredError}
  13687. */
  13688. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  13689. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  13690. },
  13691. /**
  13692. *
  13693. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13694. * @param {*} [options] Override http request option.
  13695. * @throws {RequiredError}
  13696. */
  13697. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  13698. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  13699. },
  13700. /**
  13701. *
  13702. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13703. * @param {*} [options] Override http request option.
  13704. * @throws {RequiredError}
  13705. */
  13706. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13707. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  13708. },
  13709. /**
  13710. *
  13711. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13712. * @param {*} [options] Override http request option.
  13713. * @throws {RequiredError}
  13714. */
  13715. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13716. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13717. },
  13718. /**
  13719. *
  13720. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13721. * @param {*} [options] Override http request option.
  13722. * @throws {RequiredError}
  13723. */
  13724. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13725. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13726. },
  13727. /**
  13728. *
  13729. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13730. * @param {*} [options] Override http request option.
  13731. * @throws {RequiredError}
  13732. */
  13733. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13734. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  13735. },
  13736. };
  13737. };
  13738. /**
  13739. * Request parameters for createTag operation in TagApi.
  13740. * @export
  13741. * @interface TagApiCreateTagRequest
  13742. */
  13743. export interface TagApiCreateTagRequest {
  13744. /**
  13745. *
  13746. * @type {CreateTagDto}
  13747. * @memberof TagApiCreateTag
  13748. */
  13749. readonly createTagDto: CreateTagDto
  13750. }
  13751. /**
  13752. * Request parameters for deleteTag operation in TagApi.
  13753. * @export
  13754. * @interface TagApiDeleteTagRequest
  13755. */
  13756. export interface TagApiDeleteTagRequest {
  13757. /**
  13758. *
  13759. * @type {string}
  13760. * @memberof TagApiDeleteTag
  13761. */
  13762. readonly id: string
  13763. }
  13764. /**
  13765. * Request parameters for getTagAssets operation in TagApi.
  13766. * @export
  13767. * @interface TagApiGetTagAssetsRequest
  13768. */
  13769. export interface TagApiGetTagAssetsRequest {
  13770. /**
  13771. *
  13772. * @type {string}
  13773. * @memberof TagApiGetTagAssets
  13774. */
  13775. readonly id: string
  13776. }
  13777. /**
  13778. * Request parameters for getTagById operation in TagApi.
  13779. * @export
  13780. * @interface TagApiGetTagByIdRequest
  13781. */
  13782. export interface TagApiGetTagByIdRequest {
  13783. /**
  13784. *
  13785. * @type {string}
  13786. * @memberof TagApiGetTagById
  13787. */
  13788. readonly id: string
  13789. }
  13790. /**
  13791. * Request parameters for tagAssets operation in TagApi.
  13792. * @export
  13793. * @interface TagApiTagAssetsRequest
  13794. */
  13795. export interface TagApiTagAssetsRequest {
  13796. /**
  13797. *
  13798. * @type {string}
  13799. * @memberof TagApiTagAssets
  13800. */
  13801. readonly id: string
  13802. /**
  13803. *
  13804. * @type {AssetIdsDto}
  13805. * @memberof TagApiTagAssets
  13806. */
  13807. readonly assetIdsDto: AssetIdsDto
  13808. }
  13809. /**
  13810. * Request parameters for untagAssets operation in TagApi.
  13811. * @export
  13812. * @interface TagApiUntagAssetsRequest
  13813. */
  13814. export interface TagApiUntagAssetsRequest {
  13815. /**
  13816. *
  13817. * @type {string}
  13818. * @memberof TagApiUntagAssets
  13819. */
  13820. readonly id: string
  13821. /**
  13822. *
  13823. * @type {AssetIdsDto}
  13824. * @memberof TagApiUntagAssets
  13825. */
  13826. readonly assetIdsDto: AssetIdsDto
  13827. }
  13828. /**
  13829. * Request parameters for updateTag operation in TagApi.
  13830. * @export
  13831. * @interface TagApiUpdateTagRequest
  13832. */
  13833. export interface TagApiUpdateTagRequest {
  13834. /**
  13835. *
  13836. * @type {string}
  13837. * @memberof TagApiUpdateTag
  13838. */
  13839. readonly id: string
  13840. /**
  13841. *
  13842. * @type {UpdateTagDto}
  13843. * @memberof TagApiUpdateTag
  13844. */
  13845. readonly updateTagDto: UpdateTagDto
  13846. }
  13847. /**
  13848. * TagApi - object-oriented interface
  13849. * @export
  13850. * @class TagApi
  13851. * @extends {BaseAPI}
  13852. */
  13853. export class TagApi extends BaseAPI {
  13854. /**
  13855. *
  13856. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13857. * @param {*} [options] Override http request option.
  13858. * @throws {RequiredError}
  13859. * @memberof TagApi
  13860. */
  13861. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  13862. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  13863. }
  13864. /**
  13865. *
  13866. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13867. * @param {*} [options] Override http request option.
  13868. * @throws {RequiredError}
  13869. * @memberof TagApi
  13870. */
  13871. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  13872. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13873. }
  13874. /**
  13875. *
  13876. * @param {*} [options] Override http request option.
  13877. * @throws {RequiredError}
  13878. * @memberof TagApi
  13879. */
  13880. public getAllTags(options?: AxiosRequestConfig) {
  13881. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  13882. }
  13883. /**
  13884. *
  13885. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13886. * @param {*} [options] Override http request option.
  13887. * @throws {RequiredError}
  13888. * @memberof TagApi
  13889. */
  13890. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  13891. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13892. }
  13893. /**
  13894. *
  13895. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13896. * @param {*} [options] Override http request option.
  13897. * @throws {RequiredError}
  13898. * @memberof TagApi
  13899. */
  13900. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  13901. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13902. }
  13903. /**
  13904. *
  13905. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13906. * @param {*} [options] Override http request option.
  13907. * @throws {RequiredError}
  13908. * @memberof TagApi
  13909. */
  13910. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  13911. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13912. }
  13913. /**
  13914. *
  13915. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13916. * @param {*} [options] Override http request option.
  13917. * @throws {RequiredError}
  13918. * @memberof TagApi
  13919. */
  13920. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  13921. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13922. }
  13923. /**
  13924. *
  13925. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13926. * @param {*} [options] Override http request option.
  13927. * @throws {RequiredError}
  13928. * @memberof TagApi
  13929. */
  13930. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  13931. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  13932. }
  13933. }
  13934. /**
  13935. * UserApi - axios parameter creator
  13936. * @export
  13937. */
  13938. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  13939. return {
  13940. /**
  13941. *
  13942. * @param {File} file
  13943. * @param {*} [options] Override http request option.
  13944. * @throws {RequiredError}
  13945. */
  13946. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13947. // verify required parameter 'file' is not null or undefined
  13948. assertParamExists('createProfileImage', 'file', file)
  13949. const localVarPath = `/user/profile-image`;
  13950. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13951. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13952. let baseOptions;
  13953. if (configuration) {
  13954. baseOptions = configuration.baseOptions;
  13955. }
  13956. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13957. const localVarHeaderParameter = {} as any;
  13958. const localVarQueryParameter = {} as any;
  13959. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  13960. // authentication cookie required
  13961. // authentication api_key required
  13962. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13963. // authentication bearer required
  13964. // http bearer authentication required
  13965. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13966. if (file !== undefined) {
  13967. localVarFormParams.append('file', file as any);
  13968. }
  13969. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  13970. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13971. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13972. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13973. localVarRequestOptions.data = localVarFormParams;
  13974. return {
  13975. url: toPathString(localVarUrlObj),
  13976. options: localVarRequestOptions,
  13977. };
  13978. },
  13979. /**
  13980. *
  13981. * @param {CreateUserDto} createUserDto
  13982. * @param {*} [options] Override http request option.
  13983. * @throws {RequiredError}
  13984. */
  13985. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13986. // verify required parameter 'createUserDto' is not null or undefined
  13987. assertParamExists('createUser', 'createUserDto', createUserDto)
  13988. const localVarPath = `/user`;
  13989. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13990. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13991. let baseOptions;
  13992. if (configuration) {
  13993. baseOptions = configuration.baseOptions;
  13994. }
  13995. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13996. const localVarHeaderParameter = {} as any;
  13997. const localVarQueryParameter = {} as any;
  13998. // authentication cookie required
  13999. // authentication api_key required
  14000. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14001. // authentication bearer required
  14002. // http bearer authentication required
  14003. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14004. localVarHeaderParameter['Content-Type'] = 'application/json';
  14005. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14006. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14007. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14008. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  14009. return {
  14010. url: toPathString(localVarUrlObj),
  14011. options: localVarRequestOptions,
  14012. };
  14013. },
  14014. /**
  14015. *
  14016. * @param {string} id
  14017. * @param {*} [options] Override http request option.
  14018. * @throws {RequiredError}
  14019. */
  14020. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14021. // verify required parameter 'id' is not null or undefined
  14022. assertParamExists('deleteUser', 'id', id)
  14023. const localVarPath = `/user/{id}`
  14024. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14025. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14026. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14027. let baseOptions;
  14028. if (configuration) {
  14029. baseOptions = configuration.baseOptions;
  14030. }
  14031. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14032. const localVarHeaderParameter = {} as any;
  14033. const localVarQueryParameter = {} as any;
  14034. // authentication cookie required
  14035. // authentication api_key required
  14036. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14037. // authentication bearer required
  14038. // http bearer authentication required
  14039. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14040. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14041. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14042. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14043. return {
  14044. url: toPathString(localVarUrlObj),
  14045. options: localVarRequestOptions,
  14046. };
  14047. },
  14048. /**
  14049. *
  14050. * @param {boolean} isAll
  14051. * @param {*} [options] Override http request option.
  14052. * @throws {RequiredError}
  14053. */
  14054. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14055. // verify required parameter 'isAll' is not null or undefined
  14056. assertParamExists('getAllUsers', 'isAll', isAll)
  14057. const localVarPath = `/user`;
  14058. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14059. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14060. let baseOptions;
  14061. if (configuration) {
  14062. baseOptions = configuration.baseOptions;
  14063. }
  14064. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14065. const localVarHeaderParameter = {} as any;
  14066. const localVarQueryParameter = {} as any;
  14067. // authentication cookie required
  14068. // authentication api_key required
  14069. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14070. // authentication bearer required
  14071. // http bearer authentication required
  14072. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14073. if (isAll !== undefined) {
  14074. localVarQueryParameter['isAll'] = isAll;
  14075. }
  14076. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14077. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14078. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14079. return {
  14080. url: toPathString(localVarUrlObj),
  14081. options: localVarRequestOptions,
  14082. };
  14083. },
  14084. /**
  14085. *
  14086. * @param {*} [options] Override http request option.
  14087. * @throws {RequiredError}
  14088. */
  14089. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14090. const localVarPath = `/user/me`;
  14091. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14092. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14093. let baseOptions;
  14094. if (configuration) {
  14095. baseOptions = configuration.baseOptions;
  14096. }
  14097. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14098. const localVarHeaderParameter = {} as any;
  14099. const localVarQueryParameter = {} as any;
  14100. // authentication cookie required
  14101. // authentication api_key required
  14102. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14103. // authentication bearer required
  14104. // http bearer authentication required
  14105. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14106. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14107. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14108. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14109. return {
  14110. url: toPathString(localVarUrlObj),
  14111. options: localVarRequestOptions,
  14112. };
  14113. },
  14114. /**
  14115. *
  14116. * @param {string} id
  14117. * @param {*} [options] Override http request option.
  14118. * @throws {RequiredError}
  14119. */
  14120. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14121. // verify required parameter 'id' is not null or undefined
  14122. assertParamExists('getProfileImage', 'id', id)
  14123. const localVarPath = `/user/profile-image/{id}`
  14124. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14125. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14126. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14127. let baseOptions;
  14128. if (configuration) {
  14129. baseOptions = configuration.baseOptions;
  14130. }
  14131. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14132. const localVarHeaderParameter = {} as any;
  14133. const localVarQueryParameter = {} as any;
  14134. // authentication cookie required
  14135. // authentication api_key required
  14136. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14137. // authentication bearer required
  14138. // http bearer authentication required
  14139. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14140. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14141. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14142. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14143. return {
  14144. url: toPathString(localVarUrlObj),
  14145. options: localVarRequestOptions,
  14146. };
  14147. },
  14148. /**
  14149. *
  14150. * @param {string} id
  14151. * @param {*} [options] Override http request option.
  14152. * @throws {RequiredError}
  14153. */
  14154. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14155. // verify required parameter 'id' is not null or undefined
  14156. assertParamExists('getUserById', 'id', id)
  14157. const localVarPath = `/user/info/{id}`
  14158. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14159. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14160. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14161. let baseOptions;
  14162. if (configuration) {
  14163. baseOptions = configuration.baseOptions;
  14164. }
  14165. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14166. const localVarHeaderParameter = {} as any;
  14167. const localVarQueryParameter = {} as any;
  14168. // authentication cookie required
  14169. // authentication api_key required
  14170. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14171. // authentication bearer required
  14172. // http bearer authentication required
  14173. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14174. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14175. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14176. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14177. return {
  14178. url: toPathString(localVarUrlObj),
  14179. options: localVarRequestOptions,
  14180. };
  14181. },
  14182. /**
  14183. *
  14184. * @param {boolean} [admin]
  14185. * @param {*} [options] Override http request option.
  14186. * @throws {RequiredError}
  14187. */
  14188. getUserCount: async (admin?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14189. const localVarPath = `/user/count`;
  14190. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14191. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14192. let baseOptions;
  14193. if (configuration) {
  14194. baseOptions = configuration.baseOptions;
  14195. }
  14196. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14197. const localVarHeaderParameter = {} as any;
  14198. const localVarQueryParameter = {} as any;
  14199. // authentication cookie required
  14200. // authentication api_key required
  14201. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14202. // authentication bearer required
  14203. // http bearer authentication required
  14204. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14205. if (admin !== undefined) {
  14206. localVarQueryParameter['admin'] = admin;
  14207. }
  14208. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14209. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14210. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14211. return {
  14212. url: toPathString(localVarUrlObj),
  14213. options: localVarRequestOptions,
  14214. };
  14215. },
  14216. /**
  14217. *
  14218. * @param {string} id
  14219. * @param {*} [options] Override http request option.
  14220. * @throws {RequiredError}
  14221. */
  14222. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14223. // verify required parameter 'id' is not null or undefined
  14224. assertParamExists('restoreUser', 'id', id)
  14225. const localVarPath = `/user/{id}/restore`
  14226. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14227. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14228. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14229. let baseOptions;
  14230. if (configuration) {
  14231. baseOptions = configuration.baseOptions;
  14232. }
  14233. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14234. const localVarHeaderParameter = {} as any;
  14235. const localVarQueryParameter = {} as any;
  14236. // authentication cookie required
  14237. // authentication api_key required
  14238. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14239. // authentication bearer required
  14240. // http bearer authentication required
  14241. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14242. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14243. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14244. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14245. return {
  14246. url: toPathString(localVarUrlObj),
  14247. options: localVarRequestOptions,
  14248. };
  14249. },
  14250. /**
  14251. *
  14252. * @param {UpdateUserDto} updateUserDto
  14253. * @param {*} [options] Override http request option.
  14254. * @throws {RequiredError}
  14255. */
  14256. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14257. // verify required parameter 'updateUserDto' is not null or undefined
  14258. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  14259. const localVarPath = `/user`;
  14260. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14261. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14262. let baseOptions;
  14263. if (configuration) {
  14264. baseOptions = configuration.baseOptions;
  14265. }
  14266. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14267. const localVarHeaderParameter = {} as any;
  14268. const localVarQueryParameter = {} as any;
  14269. // authentication cookie required
  14270. // authentication api_key required
  14271. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14272. // authentication bearer required
  14273. // http bearer authentication required
  14274. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14275. localVarHeaderParameter['Content-Type'] = 'application/json';
  14276. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14277. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14278. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14279. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  14280. return {
  14281. url: toPathString(localVarUrlObj),
  14282. options: localVarRequestOptions,
  14283. };
  14284. },
  14285. }
  14286. };
  14287. /**
  14288. * UserApi - functional programming interface
  14289. * @export
  14290. */
  14291. export const UserApiFp = function(configuration?: Configuration) {
  14292. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  14293. return {
  14294. /**
  14295. *
  14296. * @param {File} file
  14297. * @param {*} [options] Override http request option.
  14298. * @throws {RequiredError}
  14299. */
  14300. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  14301. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  14302. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14303. },
  14304. /**
  14305. *
  14306. * @param {CreateUserDto} createUserDto
  14307. * @param {*} [options] Override http request option.
  14308. * @throws {RequiredError}
  14309. */
  14310. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14311. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  14312. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14313. },
  14314. /**
  14315. *
  14316. * @param {string} id
  14317. * @param {*} [options] Override http request option.
  14318. * @throws {RequiredError}
  14319. */
  14320. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14321. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  14322. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14323. },
  14324. /**
  14325. *
  14326. * @param {boolean} isAll
  14327. * @param {*} [options] Override http request option.
  14328. * @throws {RequiredError}
  14329. */
  14330. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  14331. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  14332. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14333. },
  14334. /**
  14335. *
  14336. * @param {*} [options] Override http request option.
  14337. * @throws {RequiredError}
  14338. */
  14339. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14340. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  14341. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14342. },
  14343. /**
  14344. *
  14345. * @param {string} id
  14346. * @param {*} [options] Override http request option.
  14347. * @throws {RequiredError}
  14348. */
  14349. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14350. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  14351. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14352. },
  14353. /**
  14354. *
  14355. * @param {string} id
  14356. * @param {*} [options] Override http request option.
  14357. * @throws {RequiredError}
  14358. */
  14359. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14360. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  14361. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14362. },
  14363. /**
  14364. *
  14365. * @param {boolean} [admin]
  14366. * @param {*} [options] Override http request option.
  14367. * @throws {RequiredError}
  14368. */
  14369. async getUserCount(admin?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  14370. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(admin, options);
  14371. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14372. },
  14373. /**
  14374. *
  14375. * @param {string} id
  14376. * @param {*} [options] Override http request option.
  14377. * @throws {RequiredError}
  14378. */
  14379. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14380. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  14381. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14382. },
  14383. /**
  14384. *
  14385. * @param {UpdateUserDto} updateUserDto
  14386. * @param {*} [options] Override http request option.
  14387. * @throws {RequiredError}
  14388. */
  14389. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14390. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  14391. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14392. },
  14393. }
  14394. };
  14395. /**
  14396. * UserApi - factory interface
  14397. * @export
  14398. */
  14399. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14400. const localVarFp = UserApiFp(configuration)
  14401. return {
  14402. /**
  14403. *
  14404. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14405. * @param {*} [options] Override http request option.
  14406. * @throws {RequiredError}
  14407. */
  14408. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  14409. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  14410. },
  14411. /**
  14412. *
  14413. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14414. * @param {*} [options] Override http request option.
  14415. * @throws {RequiredError}
  14416. */
  14417. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14418. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  14419. },
  14420. /**
  14421. *
  14422. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14423. * @param {*} [options] Override http request option.
  14424. * @throws {RequiredError}
  14425. */
  14426. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14427. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14428. },
  14429. /**
  14430. *
  14431. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14432. * @param {*} [options] Override http request option.
  14433. * @throws {RequiredError}
  14434. */
  14435. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  14436. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  14437. },
  14438. /**
  14439. *
  14440. * @param {*} [options] Override http request option.
  14441. * @throws {RequiredError}
  14442. */
  14443. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14444. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  14445. },
  14446. /**
  14447. *
  14448. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14449. * @param {*} [options] Override http request option.
  14450. * @throws {RequiredError}
  14451. */
  14452. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14453. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  14454. },
  14455. /**
  14456. *
  14457. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14458. * @param {*} [options] Override http request option.
  14459. * @throws {RequiredError}
  14460. */
  14461. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14462. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  14463. },
  14464. /**
  14465. *
  14466. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14467. * @param {*} [options] Override http request option.
  14468. * @throws {RequiredError}
  14469. */
  14470. getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig): AxiosPromise<UserCountResponseDto> {
  14471. return localVarFp.getUserCount(requestParameters.admin, options).then((request) => request(axios, basePath));
  14472. },
  14473. /**
  14474. *
  14475. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14476. * @param {*} [options] Override http request option.
  14477. * @throws {RequiredError}
  14478. */
  14479. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14480. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14481. },
  14482. /**
  14483. *
  14484. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14485. * @param {*} [options] Override http request option.
  14486. * @throws {RequiredError}
  14487. */
  14488. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14489. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  14490. },
  14491. };
  14492. };
  14493. /**
  14494. * Request parameters for createProfileImage operation in UserApi.
  14495. * @export
  14496. * @interface UserApiCreateProfileImageRequest
  14497. */
  14498. export interface UserApiCreateProfileImageRequest {
  14499. /**
  14500. *
  14501. * @type {File}
  14502. * @memberof UserApiCreateProfileImage
  14503. */
  14504. readonly file: File
  14505. }
  14506. /**
  14507. * Request parameters for createUser operation in UserApi.
  14508. * @export
  14509. * @interface UserApiCreateUserRequest
  14510. */
  14511. export interface UserApiCreateUserRequest {
  14512. /**
  14513. *
  14514. * @type {CreateUserDto}
  14515. * @memberof UserApiCreateUser
  14516. */
  14517. readonly createUserDto: CreateUserDto
  14518. }
  14519. /**
  14520. * Request parameters for deleteUser operation in UserApi.
  14521. * @export
  14522. * @interface UserApiDeleteUserRequest
  14523. */
  14524. export interface UserApiDeleteUserRequest {
  14525. /**
  14526. *
  14527. * @type {string}
  14528. * @memberof UserApiDeleteUser
  14529. */
  14530. readonly id: string
  14531. }
  14532. /**
  14533. * Request parameters for getAllUsers operation in UserApi.
  14534. * @export
  14535. * @interface UserApiGetAllUsersRequest
  14536. */
  14537. export interface UserApiGetAllUsersRequest {
  14538. /**
  14539. *
  14540. * @type {boolean}
  14541. * @memberof UserApiGetAllUsers
  14542. */
  14543. readonly isAll: boolean
  14544. }
  14545. /**
  14546. * Request parameters for getProfileImage operation in UserApi.
  14547. * @export
  14548. * @interface UserApiGetProfileImageRequest
  14549. */
  14550. export interface UserApiGetProfileImageRequest {
  14551. /**
  14552. *
  14553. * @type {string}
  14554. * @memberof UserApiGetProfileImage
  14555. */
  14556. readonly id: string
  14557. }
  14558. /**
  14559. * Request parameters for getUserById operation in UserApi.
  14560. * @export
  14561. * @interface UserApiGetUserByIdRequest
  14562. */
  14563. export interface UserApiGetUserByIdRequest {
  14564. /**
  14565. *
  14566. * @type {string}
  14567. * @memberof UserApiGetUserById
  14568. */
  14569. readonly id: string
  14570. }
  14571. /**
  14572. * Request parameters for getUserCount operation in UserApi.
  14573. * @export
  14574. * @interface UserApiGetUserCountRequest
  14575. */
  14576. export interface UserApiGetUserCountRequest {
  14577. /**
  14578. *
  14579. * @type {boolean}
  14580. * @memberof UserApiGetUserCount
  14581. */
  14582. readonly admin?: boolean
  14583. }
  14584. /**
  14585. * Request parameters for restoreUser operation in UserApi.
  14586. * @export
  14587. * @interface UserApiRestoreUserRequest
  14588. */
  14589. export interface UserApiRestoreUserRequest {
  14590. /**
  14591. *
  14592. * @type {string}
  14593. * @memberof UserApiRestoreUser
  14594. */
  14595. readonly id: string
  14596. }
  14597. /**
  14598. * Request parameters for updateUser operation in UserApi.
  14599. * @export
  14600. * @interface UserApiUpdateUserRequest
  14601. */
  14602. export interface UserApiUpdateUserRequest {
  14603. /**
  14604. *
  14605. * @type {UpdateUserDto}
  14606. * @memberof UserApiUpdateUser
  14607. */
  14608. readonly updateUserDto: UpdateUserDto
  14609. }
  14610. /**
  14611. * UserApi - object-oriented interface
  14612. * @export
  14613. * @class UserApi
  14614. * @extends {BaseAPI}
  14615. */
  14616. export class UserApi extends BaseAPI {
  14617. /**
  14618. *
  14619. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14620. * @param {*} [options] Override http request option.
  14621. * @throws {RequiredError}
  14622. * @memberof UserApi
  14623. */
  14624. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  14625. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  14626. }
  14627. /**
  14628. *
  14629. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14630. * @param {*} [options] Override http request option.
  14631. * @throws {RequiredError}
  14632. * @memberof UserApi
  14633. */
  14634. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  14635. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  14636. }
  14637. /**
  14638. *
  14639. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14640. * @param {*} [options] Override http request option.
  14641. * @throws {RequiredError}
  14642. * @memberof UserApi
  14643. */
  14644. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  14645. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14646. }
  14647. /**
  14648. *
  14649. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14650. * @param {*} [options] Override http request option.
  14651. * @throws {RequiredError}
  14652. * @memberof UserApi
  14653. */
  14654. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  14655. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  14656. }
  14657. /**
  14658. *
  14659. * @param {*} [options] Override http request option.
  14660. * @throws {RequiredError}
  14661. * @memberof UserApi
  14662. */
  14663. public getMyUserInfo(options?: AxiosRequestConfig) {
  14664. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  14665. }
  14666. /**
  14667. *
  14668. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14669. * @param {*} [options] Override http request option.
  14670. * @throws {RequiredError}
  14671. * @memberof UserApi
  14672. */
  14673. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  14674. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14675. }
  14676. /**
  14677. *
  14678. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14679. * @param {*} [options] Override http request option.
  14680. * @throws {RequiredError}
  14681. * @memberof UserApi
  14682. */
  14683. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  14684. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14685. }
  14686. /**
  14687. *
  14688. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14689. * @param {*} [options] Override http request option.
  14690. * @throws {RequiredError}
  14691. * @memberof UserApi
  14692. */
  14693. public getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig) {
  14694. return UserApiFp(this.configuration).getUserCount(requestParameters.admin, options).then((request) => request(this.axios, this.basePath));
  14695. }
  14696. /**
  14697. *
  14698. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14699. * @param {*} [options] Override http request option.
  14700. * @throws {RequiredError}
  14701. * @memberof UserApi
  14702. */
  14703. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  14704. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14705. }
  14706. /**
  14707. *
  14708. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14709. * @param {*} [options] Override http request option.
  14710. * @throws {RequiredError}
  14711. * @memberof UserApi
  14712. */
  14713. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  14714. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  14715. }
  14716. }