api.ts 556 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238
  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. Rkmpp: 'rkmpp',
  3846. Disabled: 'disabled'
  3847. } as const;
  3848. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3849. /**
  3850. *
  3851. * @export
  3852. * @enum {string}
  3853. */
  3854. export const TranscodePolicy = {
  3855. All: 'all',
  3856. Optimal: 'optimal',
  3857. Required: 'required',
  3858. Disabled: 'disabled'
  3859. } as const;
  3860. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3861. /**
  3862. *
  3863. * @export
  3864. * @interface UpdateAlbumDto
  3865. */
  3866. export interface UpdateAlbumDto {
  3867. /**
  3868. *
  3869. * @type {string}
  3870. * @memberof UpdateAlbumDto
  3871. */
  3872. 'albumName'?: string;
  3873. /**
  3874. *
  3875. * @type {string}
  3876. * @memberof UpdateAlbumDto
  3877. */
  3878. 'albumThumbnailAssetId'?: string;
  3879. /**
  3880. *
  3881. * @type {string}
  3882. * @memberof UpdateAlbumDto
  3883. */
  3884. 'description'?: string;
  3885. }
  3886. /**
  3887. *
  3888. * @export
  3889. * @interface UpdateAssetDto
  3890. */
  3891. export interface UpdateAssetDto {
  3892. /**
  3893. *
  3894. * @type {string}
  3895. * @memberof UpdateAssetDto
  3896. */
  3897. 'description'?: string;
  3898. /**
  3899. *
  3900. * @type {boolean}
  3901. * @memberof UpdateAssetDto
  3902. */
  3903. 'isArchived'?: boolean;
  3904. /**
  3905. *
  3906. * @type {boolean}
  3907. * @memberof UpdateAssetDto
  3908. */
  3909. 'isFavorite'?: boolean;
  3910. }
  3911. /**
  3912. *
  3913. * @export
  3914. * @interface UpdateLibraryDto
  3915. */
  3916. export interface UpdateLibraryDto {
  3917. /**
  3918. *
  3919. * @type {Array<string>}
  3920. * @memberof UpdateLibraryDto
  3921. */
  3922. 'exclusionPatterns'?: Array<string>;
  3923. /**
  3924. *
  3925. * @type {Array<string>}
  3926. * @memberof UpdateLibraryDto
  3927. */
  3928. 'importPaths'?: Array<string>;
  3929. /**
  3930. *
  3931. * @type {boolean}
  3932. * @memberof UpdateLibraryDto
  3933. */
  3934. 'isVisible'?: boolean;
  3935. /**
  3936. *
  3937. * @type {string}
  3938. * @memberof UpdateLibraryDto
  3939. */
  3940. 'name'?: string;
  3941. }
  3942. /**
  3943. *
  3944. * @export
  3945. * @interface UpdateStackParentDto
  3946. */
  3947. export interface UpdateStackParentDto {
  3948. /**
  3949. *
  3950. * @type {string}
  3951. * @memberof UpdateStackParentDto
  3952. */
  3953. 'newParentId': string;
  3954. /**
  3955. *
  3956. * @type {string}
  3957. * @memberof UpdateStackParentDto
  3958. */
  3959. 'oldParentId': string;
  3960. }
  3961. /**
  3962. *
  3963. * @export
  3964. * @interface UpdateTagDto
  3965. */
  3966. export interface UpdateTagDto {
  3967. /**
  3968. *
  3969. * @type {string}
  3970. * @memberof UpdateTagDto
  3971. */
  3972. 'name'?: string;
  3973. }
  3974. /**
  3975. *
  3976. * @export
  3977. * @interface UpdateUserDto
  3978. */
  3979. export interface UpdateUserDto {
  3980. /**
  3981. *
  3982. * @type {string}
  3983. * @memberof UpdateUserDto
  3984. */
  3985. 'email'?: string;
  3986. /**
  3987. *
  3988. * @type {string}
  3989. * @memberof UpdateUserDto
  3990. */
  3991. 'externalPath'?: string;
  3992. /**
  3993. *
  3994. * @type {string}
  3995. * @memberof UpdateUserDto
  3996. */
  3997. 'firstName'?: string;
  3998. /**
  3999. *
  4000. * @type {string}
  4001. * @memberof UpdateUserDto
  4002. */
  4003. 'id': string;
  4004. /**
  4005. *
  4006. * @type {boolean}
  4007. * @memberof UpdateUserDto
  4008. */
  4009. 'isAdmin'?: boolean;
  4010. /**
  4011. *
  4012. * @type {string}
  4013. * @memberof UpdateUserDto
  4014. */
  4015. 'lastName'?: string;
  4016. /**
  4017. *
  4018. * @type {boolean}
  4019. * @memberof UpdateUserDto
  4020. */
  4021. 'memoriesEnabled'?: boolean;
  4022. /**
  4023. *
  4024. * @type {string}
  4025. * @memberof UpdateUserDto
  4026. */
  4027. 'password'?: string;
  4028. /**
  4029. *
  4030. * @type {boolean}
  4031. * @memberof UpdateUserDto
  4032. */
  4033. 'shouldChangePassword'?: boolean;
  4034. /**
  4035. *
  4036. * @type {string}
  4037. * @memberof UpdateUserDto
  4038. */
  4039. 'storageLabel'?: string;
  4040. }
  4041. /**
  4042. *
  4043. * @export
  4044. * @interface UsageByUserDto
  4045. */
  4046. export interface UsageByUserDto {
  4047. /**
  4048. *
  4049. * @type {number}
  4050. * @memberof UsageByUserDto
  4051. */
  4052. 'photos': number;
  4053. /**
  4054. *
  4055. * @type {number}
  4056. * @memberof UsageByUserDto
  4057. */
  4058. 'usage': number;
  4059. /**
  4060. *
  4061. * @type {string}
  4062. * @memberof UsageByUserDto
  4063. */
  4064. 'userFirstName': string;
  4065. /**
  4066. *
  4067. * @type {string}
  4068. * @memberof UsageByUserDto
  4069. */
  4070. 'userId': string;
  4071. /**
  4072. *
  4073. * @type {string}
  4074. * @memberof UsageByUserDto
  4075. */
  4076. 'userLastName': string;
  4077. /**
  4078. *
  4079. * @type {number}
  4080. * @memberof UsageByUserDto
  4081. */
  4082. 'videos': number;
  4083. }
  4084. /**
  4085. *
  4086. * @export
  4087. * @interface UserResponseDto
  4088. */
  4089. export interface UserResponseDto {
  4090. /**
  4091. *
  4092. * @type {string}
  4093. * @memberof UserResponseDto
  4094. */
  4095. 'createdAt': string;
  4096. /**
  4097. *
  4098. * @type {string}
  4099. * @memberof UserResponseDto
  4100. */
  4101. 'deletedAt': string | null;
  4102. /**
  4103. *
  4104. * @type {string}
  4105. * @memberof UserResponseDto
  4106. */
  4107. 'email': string;
  4108. /**
  4109. *
  4110. * @type {string}
  4111. * @memberof UserResponseDto
  4112. */
  4113. 'externalPath': string | null;
  4114. /**
  4115. *
  4116. * @type {string}
  4117. * @memberof UserResponseDto
  4118. */
  4119. 'firstName': string;
  4120. /**
  4121. *
  4122. * @type {string}
  4123. * @memberof UserResponseDto
  4124. */
  4125. 'id': string;
  4126. /**
  4127. *
  4128. * @type {boolean}
  4129. * @memberof UserResponseDto
  4130. */
  4131. 'isAdmin': boolean;
  4132. /**
  4133. *
  4134. * @type {string}
  4135. * @memberof UserResponseDto
  4136. */
  4137. 'lastName': string;
  4138. /**
  4139. *
  4140. * @type {boolean}
  4141. * @memberof UserResponseDto
  4142. */
  4143. 'memoriesEnabled'?: boolean;
  4144. /**
  4145. *
  4146. * @type {string}
  4147. * @memberof UserResponseDto
  4148. */
  4149. 'oauthId': string;
  4150. /**
  4151. *
  4152. * @type {string}
  4153. * @memberof UserResponseDto
  4154. */
  4155. 'profileImagePath': string;
  4156. /**
  4157. *
  4158. * @type {boolean}
  4159. * @memberof UserResponseDto
  4160. */
  4161. 'shouldChangePassword': boolean;
  4162. /**
  4163. *
  4164. * @type {string}
  4165. * @memberof UserResponseDto
  4166. */
  4167. 'storageLabel': string | null;
  4168. /**
  4169. *
  4170. * @type {string}
  4171. * @memberof UserResponseDto
  4172. */
  4173. 'updatedAt': string;
  4174. }
  4175. /**
  4176. *
  4177. * @export
  4178. * @interface ValidateAccessTokenResponseDto
  4179. */
  4180. export interface ValidateAccessTokenResponseDto {
  4181. /**
  4182. *
  4183. * @type {boolean}
  4184. * @memberof ValidateAccessTokenResponseDto
  4185. */
  4186. 'authStatus': boolean;
  4187. }
  4188. /**
  4189. *
  4190. * @export
  4191. * @enum {string}
  4192. */
  4193. export const VideoCodec = {
  4194. H264: 'h264',
  4195. Hevc: 'hevc',
  4196. Vp9: 'vp9'
  4197. } as const;
  4198. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4199. /**
  4200. * APIKeyApi - axios parameter creator
  4201. * @export
  4202. */
  4203. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4204. return {
  4205. /**
  4206. *
  4207. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4208. * @param {*} [options] Override http request option.
  4209. * @throws {RequiredError}
  4210. */
  4211. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4212. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4213. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4214. const localVarPath = `/api-key`;
  4215. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4216. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4217. let baseOptions;
  4218. if (configuration) {
  4219. baseOptions = configuration.baseOptions;
  4220. }
  4221. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4222. const localVarHeaderParameter = {} as any;
  4223. const localVarQueryParameter = {} as any;
  4224. // authentication cookie required
  4225. // authentication api_key required
  4226. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4227. // authentication bearer required
  4228. // http bearer authentication required
  4229. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4230. localVarHeaderParameter['Content-Type'] = 'application/json';
  4231. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4232. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4233. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4234. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4235. return {
  4236. url: toPathString(localVarUrlObj),
  4237. options: localVarRequestOptions,
  4238. };
  4239. },
  4240. /**
  4241. *
  4242. * @param {string} id
  4243. * @param {*} [options] Override http request option.
  4244. * @throws {RequiredError}
  4245. */
  4246. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4247. // verify required parameter 'id' is not null or undefined
  4248. assertParamExists('deleteKey', 'id', id)
  4249. const localVarPath = `/api-key/{id}`
  4250. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4251. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4252. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4253. let baseOptions;
  4254. if (configuration) {
  4255. baseOptions = configuration.baseOptions;
  4256. }
  4257. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4258. const localVarHeaderParameter = {} as any;
  4259. const localVarQueryParameter = {} as any;
  4260. // authentication cookie required
  4261. // authentication api_key required
  4262. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4263. // authentication bearer required
  4264. // http bearer authentication required
  4265. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4266. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4267. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4268. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4269. return {
  4270. url: toPathString(localVarUrlObj),
  4271. options: localVarRequestOptions,
  4272. };
  4273. },
  4274. /**
  4275. *
  4276. * @param {string} id
  4277. * @param {*} [options] Override http request option.
  4278. * @throws {RequiredError}
  4279. */
  4280. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4281. // verify required parameter 'id' is not null or undefined
  4282. assertParamExists('getKey', 'id', id)
  4283. const localVarPath = `/api-key/{id}`
  4284. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4285. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4286. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4287. let baseOptions;
  4288. if (configuration) {
  4289. baseOptions = configuration.baseOptions;
  4290. }
  4291. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4292. const localVarHeaderParameter = {} as any;
  4293. const localVarQueryParameter = {} as any;
  4294. // authentication cookie required
  4295. // authentication api_key required
  4296. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4297. // authentication bearer required
  4298. // http bearer authentication required
  4299. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4300. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4301. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4302. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4303. return {
  4304. url: toPathString(localVarUrlObj),
  4305. options: localVarRequestOptions,
  4306. };
  4307. },
  4308. /**
  4309. *
  4310. * @param {*} [options] Override http request option.
  4311. * @throws {RequiredError}
  4312. */
  4313. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4314. const localVarPath = `/api-key`;
  4315. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4316. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4317. let baseOptions;
  4318. if (configuration) {
  4319. baseOptions = configuration.baseOptions;
  4320. }
  4321. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4322. const localVarHeaderParameter = {} as any;
  4323. const localVarQueryParameter = {} as any;
  4324. // authentication cookie required
  4325. // authentication api_key required
  4326. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4327. // authentication bearer required
  4328. // http bearer authentication required
  4329. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4330. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4331. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4332. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4333. return {
  4334. url: toPathString(localVarUrlObj),
  4335. options: localVarRequestOptions,
  4336. };
  4337. },
  4338. /**
  4339. *
  4340. * @param {string} id
  4341. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4342. * @param {*} [options] Override http request option.
  4343. * @throws {RequiredError}
  4344. */
  4345. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4346. // verify required parameter 'id' is not null or undefined
  4347. assertParamExists('updateKey', 'id', id)
  4348. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4349. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4350. const localVarPath = `/api-key/{id}`
  4351. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4352. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4353. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4354. let baseOptions;
  4355. if (configuration) {
  4356. baseOptions = configuration.baseOptions;
  4357. }
  4358. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4359. const localVarHeaderParameter = {} as any;
  4360. const localVarQueryParameter = {} as any;
  4361. // authentication cookie required
  4362. // authentication api_key required
  4363. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4364. // authentication bearer required
  4365. // http bearer authentication required
  4366. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4367. localVarHeaderParameter['Content-Type'] = 'application/json';
  4368. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4369. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4370. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4371. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4372. return {
  4373. url: toPathString(localVarUrlObj),
  4374. options: localVarRequestOptions,
  4375. };
  4376. },
  4377. }
  4378. };
  4379. /**
  4380. * APIKeyApi - functional programming interface
  4381. * @export
  4382. */
  4383. export const APIKeyApiFp = function(configuration?: Configuration) {
  4384. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4385. return {
  4386. /**
  4387. *
  4388. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4389. * @param {*} [options] Override http request option.
  4390. * @throws {RequiredError}
  4391. */
  4392. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4393. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  4394. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4395. },
  4396. /**
  4397. *
  4398. * @param {string} id
  4399. * @param {*} [options] Override http request option.
  4400. * @throws {RequiredError}
  4401. */
  4402. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4403. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  4404. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4405. },
  4406. /**
  4407. *
  4408. * @param {string} id
  4409. * @param {*} [options] Override http request option.
  4410. * @throws {RequiredError}
  4411. */
  4412. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4413. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  4414. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4415. },
  4416. /**
  4417. *
  4418. * @param {*} [options] Override http request option.
  4419. * @throws {RequiredError}
  4420. */
  4421. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4422. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  4423. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4424. },
  4425. /**
  4426. *
  4427. * @param {string} id
  4428. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4429. * @param {*} [options] Override http request option.
  4430. * @throws {RequiredError}
  4431. */
  4432. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4433. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  4434. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4435. },
  4436. }
  4437. };
  4438. /**
  4439. * APIKeyApi - factory interface
  4440. * @export
  4441. */
  4442. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4443. const localVarFp = APIKeyApiFp(configuration)
  4444. return {
  4445. /**
  4446. *
  4447. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4448. * @param {*} [options] Override http request option.
  4449. * @throws {RequiredError}
  4450. */
  4451. createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4452. return localVarFp.createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4453. },
  4454. /**
  4455. *
  4456. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4457. * @param {*} [options] Override http request option.
  4458. * @throws {RequiredError}
  4459. */
  4460. deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4461. return localVarFp.deleteKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4462. },
  4463. /**
  4464. *
  4465. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4466. * @param {*} [options] Override http request option.
  4467. * @throws {RequiredError}
  4468. */
  4469. getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4470. return localVarFp.getKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4471. },
  4472. /**
  4473. *
  4474. * @param {*} [options] Override http request option.
  4475. * @throws {RequiredError}
  4476. */
  4477. getKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4478. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  4479. },
  4480. /**
  4481. *
  4482. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4483. * @param {*} [options] Override http request option.
  4484. * @throws {RequiredError}
  4485. */
  4486. updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4487. return localVarFp.updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4488. },
  4489. };
  4490. };
  4491. /**
  4492. * Request parameters for createKey operation in APIKeyApi.
  4493. * @export
  4494. * @interface APIKeyApiCreateKeyRequest
  4495. */
  4496. export interface APIKeyApiCreateKeyRequest {
  4497. /**
  4498. *
  4499. * @type {APIKeyCreateDto}
  4500. * @memberof APIKeyApiCreateKey
  4501. */
  4502. readonly aPIKeyCreateDto: APIKeyCreateDto
  4503. }
  4504. /**
  4505. * Request parameters for deleteKey operation in APIKeyApi.
  4506. * @export
  4507. * @interface APIKeyApiDeleteKeyRequest
  4508. */
  4509. export interface APIKeyApiDeleteKeyRequest {
  4510. /**
  4511. *
  4512. * @type {string}
  4513. * @memberof APIKeyApiDeleteKey
  4514. */
  4515. readonly id: string
  4516. }
  4517. /**
  4518. * Request parameters for getKey operation in APIKeyApi.
  4519. * @export
  4520. * @interface APIKeyApiGetKeyRequest
  4521. */
  4522. export interface APIKeyApiGetKeyRequest {
  4523. /**
  4524. *
  4525. * @type {string}
  4526. * @memberof APIKeyApiGetKey
  4527. */
  4528. readonly id: string
  4529. }
  4530. /**
  4531. * Request parameters for updateKey operation in APIKeyApi.
  4532. * @export
  4533. * @interface APIKeyApiUpdateKeyRequest
  4534. */
  4535. export interface APIKeyApiUpdateKeyRequest {
  4536. /**
  4537. *
  4538. * @type {string}
  4539. * @memberof APIKeyApiUpdateKey
  4540. */
  4541. readonly id: string
  4542. /**
  4543. *
  4544. * @type {APIKeyUpdateDto}
  4545. * @memberof APIKeyApiUpdateKey
  4546. */
  4547. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4548. }
  4549. /**
  4550. * APIKeyApi - object-oriented interface
  4551. * @export
  4552. * @class APIKeyApi
  4553. * @extends {BaseAPI}
  4554. */
  4555. export class APIKeyApi extends BaseAPI {
  4556. /**
  4557. *
  4558. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4559. * @param {*} [options] Override http request option.
  4560. * @throws {RequiredError}
  4561. * @memberof APIKeyApi
  4562. */
  4563. public createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig) {
  4564. return APIKeyApiFp(this.configuration).createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4565. }
  4566. /**
  4567. *
  4568. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4569. * @param {*} [options] Override http request option.
  4570. * @throws {RequiredError}
  4571. * @memberof APIKeyApi
  4572. */
  4573. public deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig) {
  4574. return APIKeyApiFp(this.configuration).deleteKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4575. }
  4576. /**
  4577. *
  4578. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4579. * @param {*} [options] Override http request option.
  4580. * @throws {RequiredError}
  4581. * @memberof APIKeyApi
  4582. */
  4583. public getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig) {
  4584. return APIKeyApiFp(this.configuration).getKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4585. }
  4586. /**
  4587. *
  4588. * @param {*} [options] Override http request option.
  4589. * @throws {RequiredError}
  4590. * @memberof APIKeyApi
  4591. */
  4592. public getKeys(options?: AxiosRequestConfig) {
  4593. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  4594. }
  4595. /**
  4596. *
  4597. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4598. * @param {*} [options] Override http request option.
  4599. * @throws {RequiredError}
  4600. * @memberof APIKeyApi
  4601. */
  4602. public updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig) {
  4603. return APIKeyApiFp(this.configuration).updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4604. }
  4605. }
  4606. /**
  4607. * AlbumApi - axios parameter creator
  4608. * @export
  4609. */
  4610. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  4611. return {
  4612. /**
  4613. *
  4614. * @param {string} id
  4615. * @param {BulkIdsDto} bulkIdsDto
  4616. * @param {string} [key]
  4617. * @param {*} [options] Override http request option.
  4618. * @throws {RequiredError}
  4619. */
  4620. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4621. // verify required parameter 'id' is not null or undefined
  4622. assertParamExists('addAssetsToAlbum', 'id', id)
  4623. // verify required parameter 'bulkIdsDto' is not null or undefined
  4624. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  4625. const localVarPath = `/album/{id}/assets`
  4626. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4627. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4628. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4629. let baseOptions;
  4630. if (configuration) {
  4631. baseOptions = configuration.baseOptions;
  4632. }
  4633. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4634. const localVarHeaderParameter = {} as any;
  4635. const localVarQueryParameter = {} as any;
  4636. // authentication cookie required
  4637. // authentication api_key required
  4638. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4639. // authentication bearer required
  4640. // http bearer authentication required
  4641. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4642. if (key !== undefined) {
  4643. localVarQueryParameter['key'] = key;
  4644. }
  4645. localVarHeaderParameter['Content-Type'] = 'application/json';
  4646. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4647. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4648. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4649. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4650. return {
  4651. url: toPathString(localVarUrlObj),
  4652. options: localVarRequestOptions,
  4653. };
  4654. },
  4655. /**
  4656. *
  4657. * @param {string} id
  4658. * @param {AddUsersDto} addUsersDto
  4659. * @param {*} [options] Override http request option.
  4660. * @throws {RequiredError}
  4661. */
  4662. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4663. // verify required parameter 'id' is not null or undefined
  4664. assertParamExists('addUsersToAlbum', 'id', id)
  4665. // verify required parameter 'addUsersDto' is not null or undefined
  4666. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  4667. const localVarPath = `/album/{id}/users`
  4668. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4669. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4670. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4671. let baseOptions;
  4672. if (configuration) {
  4673. baseOptions = configuration.baseOptions;
  4674. }
  4675. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4676. const localVarHeaderParameter = {} as any;
  4677. const localVarQueryParameter = {} as any;
  4678. // authentication cookie required
  4679. // authentication api_key required
  4680. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4681. // authentication bearer required
  4682. // http bearer authentication required
  4683. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4684. localVarHeaderParameter['Content-Type'] = 'application/json';
  4685. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4686. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4687. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4688. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  4689. return {
  4690. url: toPathString(localVarUrlObj),
  4691. options: localVarRequestOptions,
  4692. };
  4693. },
  4694. /**
  4695. *
  4696. * @param {CreateAlbumDto} createAlbumDto
  4697. * @param {*} [options] Override http request option.
  4698. * @throws {RequiredError}
  4699. */
  4700. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4701. // verify required parameter 'createAlbumDto' is not null or undefined
  4702. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  4703. const localVarPath = `/album`;
  4704. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4705. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4706. let baseOptions;
  4707. if (configuration) {
  4708. baseOptions = configuration.baseOptions;
  4709. }
  4710. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4711. const localVarHeaderParameter = {} as any;
  4712. const localVarQueryParameter = {} as any;
  4713. // authentication cookie required
  4714. // authentication api_key required
  4715. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4716. // authentication bearer required
  4717. // http bearer authentication required
  4718. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4719. localVarHeaderParameter['Content-Type'] = 'application/json';
  4720. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4721. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4722. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4723. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  4724. return {
  4725. url: toPathString(localVarUrlObj),
  4726. options: localVarRequestOptions,
  4727. };
  4728. },
  4729. /**
  4730. *
  4731. * @param {string} id
  4732. * @param {*} [options] Override http request option.
  4733. * @throws {RequiredError}
  4734. */
  4735. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4736. // verify required parameter 'id' is not null or undefined
  4737. assertParamExists('deleteAlbum', 'id', id)
  4738. const localVarPath = `/album/{id}`
  4739. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4740. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4741. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4742. let baseOptions;
  4743. if (configuration) {
  4744. baseOptions = configuration.baseOptions;
  4745. }
  4746. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4747. const localVarHeaderParameter = {} as any;
  4748. const localVarQueryParameter = {} as any;
  4749. // authentication cookie required
  4750. // authentication api_key required
  4751. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4752. // authentication bearer required
  4753. // http bearer authentication required
  4754. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4755. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4756. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4757. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4758. return {
  4759. url: toPathString(localVarUrlObj),
  4760. options: localVarRequestOptions,
  4761. };
  4762. },
  4763. /**
  4764. *
  4765. * @param {*} [options] Override http request option.
  4766. * @throws {RequiredError}
  4767. */
  4768. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4769. const localVarPath = `/album/count`;
  4770. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4771. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4772. let baseOptions;
  4773. if (configuration) {
  4774. baseOptions = configuration.baseOptions;
  4775. }
  4776. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4777. const localVarHeaderParameter = {} as any;
  4778. const localVarQueryParameter = {} as any;
  4779. // authentication cookie required
  4780. // authentication api_key required
  4781. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4782. // authentication bearer required
  4783. // http bearer authentication required
  4784. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4785. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4786. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4787. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4788. return {
  4789. url: toPathString(localVarUrlObj),
  4790. options: localVarRequestOptions,
  4791. };
  4792. },
  4793. /**
  4794. *
  4795. * @param {string} id
  4796. * @param {boolean} [withoutAssets]
  4797. * @param {string} [key]
  4798. * @param {*} [options] Override http request option.
  4799. * @throws {RequiredError}
  4800. */
  4801. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4802. // verify required parameter 'id' is not null or undefined
  4803. assertParamExists('getAlbumInfo', 'id', id)
  4804. const localVarPath = `/album/{id}`
  4805. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4806. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4807. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4808. let baseOptions;
  4809. if (configuration) {
  4810. baseOptions = configuration.baseOptions;
  4811. }
  4812. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4813. const localVarHeaderParameter = {} as any;
  4814. const localVarQueryParameter = {} as any;
  4815. // authentication cookie required
  4816. // authentication api_key required
  4817. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4818. // authentication bearer required
  4819. // http bearer authentication required
  4820. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4821. if (withoutAssets !== undefined) {
  4822. localVarQueryParameter['withoutAssets'] = withoutAssets;
  4823. }
  4824. if (key !== undefined) {
  4825. localVarQueryParameter['key'] = key;
  4826. }
  4827. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4828. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4829. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4830. return {
  4831. url: toPathString(localVarUrlObj),
  4832. options: localVarRequestOptions,
  4833. };
  4834. },
  4835. /**
  4836. *
  4837. * @param {boolean} [shared]
  4838. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  4839. * @param {*} [options] Override http request option.
  4840. * @throws {RequiredError}
  4841. */
  4842. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4843. const localVarPath = `/album`;
  4844. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4845. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4846. let baseOptions;
  4847. if (configuration) {
  4848. baseOptions = configuration.baseOptions;
  4849. }
  4850. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4851. const localVarHeaderParameter = {} as any;
  4852. const localVarQueryParameter = {} as any;
  4853. // authentication cookie required
  4854. // authentication api_key required
  4855. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4856. // authentication bearer required
  4857. // http bearer authentication required
  4858. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4859. if (shared !== undefined) {
  4860. localVarQueryParameter['shared'] = shared;
  4861. }
  4862. if (assetId !== undefined) {
  4863. localVarQueryParameter['assetId'] = assetId;
  4864. }
  4865. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4866. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4867. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4868. return {
  4869. url: toPathString(localVarUrlObj),
  4870. options: localVarRequestOptions,
  4871. };
  4872. },
  4873. /**
  4874. *
  4875. * @param {string} id
  4876. * @param {BulkIdsDto} bulkIdsDto
  4877. * @param {*} [options] Override http request option.
  4878. * @throws {RequiredError}
  4879. */
  4880. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4881. // verify required parameter 'id' is not null or undefined
  4882. assertParamExists('removeAssetFromAlbum', 'id', id)
  4883. // verify required parameter 'bulkIdsDto' is not null or undefined
  4884. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  4885. const localVarPath = `/album/{id}/assets`
  4886. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4887. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4888. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4889. let baseOptions;
  4890. if (configuration) {
  4891. baseOptions = configuration.baseOptions;
  4892. }
  4893. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4894. const localVarHeaderParameter = {} as any;
  4895. const localVarQueryParameter = {} as any;
  4896. // authentication cookie required
  4897. // authentication api_key required
  4898. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4899. // authentication bearer required
  4900. // http bearer authentication required
  4901. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4902. localVarHeaderParameter['Content-Type'] = 'application/json';
  4903. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4904. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4905. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4906. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4907. return {
  4908. url: toPathString(localVarUrlObj),
  4909. options: localVarRequestOptions,
  4910. };
  4911. },
  4912. /**
  4913. *
  4914. * @param {string} id
  4915. * @param {string} userId
  4916. * @param {*} [options] Override http request option.
  4917. * @throws {RequiredError}
  4918. */
  4919. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4920. // verify required parameter 'id' is not null or undefined
  4921. assertParamExists('removeUserFromAlbum', 'id', id)
  4922. // verify required parameter 'userId' is not null or undefined
  4923. assertParamExists('removeUserFromAlbum', 'userId', userId)
  4924. const localVarPath = `/album/{id}/user/{userId}`
  4925. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  4926. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  4927. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4928. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4929. let baseOptions;
  4930. if (configuration) {
  4931. baseOptions = configuration.baseOptions;
  4932. }
  4933. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4934. const localVarHeaderParameter = {} as any;
  4935. const localVarQueryParameter = {} as any;
  4936. // authentication cookie required
  4937. // authentication api_key required
  4938. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4939. // authentication bearer required
  4940. // http bearer authentication required
  4941. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4942. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4943. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4944. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4945. return {
  4946. url: toPathString(localVarUrlObj),
  4947. options: localVarRequestOptions,
  4948. };
  4949. },
  4950. /**
  4951. *
  4952. * @param {string} id
  4953. * @param {UpdateAlbumDto} updateAlbumDto
  4954. * @param {*} [options] Override http request option.
  4955. * @throws {RequiredError}
  4956. */
  4957. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4958. // verify required parameter 'id' is not null or undefined
  4959. assertParamExists('updateAlbumInfo', 'id', id)
  4960. // verify required parameter 'updateAlbumDto' is not null or undefined
  4961. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  4962. const localVarPath = `/album/{id}`
  4963. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4964. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4965. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4966. let baseOptions;
  4967. if (configuration) {
  4968. baseOptions = configuration.baseOptions;
  4969. }
  4970. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4971. const localVarHeaderParameter = {} as any;
  4972. const localVarQueryParameter = {} as any;
  4973. // authentication cookie required
  4974. // authentication api_key required
  4975. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4976. // authentication bearer required
  4977. // http bearer authentication required
  4978. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4979. localVarHeaderParameter['Content-Type'] = 'application/json';
  4980. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4981. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4982. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4983. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  4984. return {
  4985. url: toPathString(localVarUrlObj),
  4986. options: localVarRequestOptions,
  4987. };
  4988. },
  4989. }
  4990. };
  4991. /**
  4992. * AlbumApi - functional programming interface
  4993. * @export
  4994. */
  4995. export const AlbumApiFp = function(configuration?: Configuration) {
  4996. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  4997. return {
  4998. /**
  4999. *
  5000. * @param {string} id
  5001. * @param {BulkIdsDto} bulkIdsDto
  5002. * @param {string} [key]
  5003. * @param {*} [options] Override http request option.
  5004. * @throws {RequiredError}
  5005. */
  5006. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5007. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  5008. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5009. },
  5010. /**
  5011. *
  5012. * @param {string} id
  5013. * @param {AddUsersDto} addUsersDto
  5014. * @param {*} [options] Override http request option.
  5015. * @throws {RequiredError}
  5016. */
  5017. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5018. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5019. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5020. },
  5021. /**
  5022. *
  5023. * @param {CreateAlbumDto} createAlbumDto
  5024. * @param {*} [options] Override http request option.
  5025. * @throws {RequiredError}
  5026. */
  5027. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5028. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5029. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5030. },
  5031. /**
  5032. *
  5033. * @param {string} id
  5034. * @param {*} [options] Override http request option.
  5035. * @throws {RequiredError}
  5036. */
  5037. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5038. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5039. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5040. },
  5041. /**
  5042. *
  5043. * @param {*} [options] Override http request option.
  5044. * @throws {RequiredError}
  5045. */
  5046. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5047. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5048. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5049. },
  5050. /**
  5051. *
  5052. * @param {string} id
  5053. * @param {boolean} [withoutAssets]
  5054. * @param {string} [key]
  5055. * @param {*} [options] Override http request option.
  5056. * @throws {RequiredError}
  5057. */
  5058. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5059. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5060. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5061. },
  5062. /**
  5063. *
  5064. * @param {boolean} [shared]
  5065. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5066. * @param {*} [options] Override http request option.
  5067. * @throws {RequiredError}
  5068. */
  5069. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5070. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5071. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5072. },
  5073. /**
  5074. *
  5075. * @param {string} id
  5076. * @param {BulkIdsDto} bulkIdsDto
  5077. * @param {*} [options] Override http request option.
  5078. * @throws {RequiredError}
  5079. */
  5080. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5081. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5082. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5083. },
  5084. /**
  5085. *
  5086. * @param {string} id
  5087. * @param {string} userId
  5088. * @param {*} [options] Override http request option.
  5089. * @throws {RequiredError}
  5090. */
  5091. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5092. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5093. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5094. },
  5095. /**
  5096. *
  5097. * @param {string} id
  5098. * @param {UpdateAlbumDto} updateAlbumDto
  5099. * @param {*} [options] Override http request option.
  5100. * @throws {RequiredError}
  5101. */
  5102. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5103. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5104. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5105. },
  5106. }
  5107. };
  5108. /**
  5109. * AlbumApi - factory interface
  5110. * @export
  5111. */
  5112. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5113. const localVarFp = AlbumApiFp(configuration)
  5114. return {
  5115. /**
  5116. *
  5117. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5118. * @param {*} [options] Override http request option.
  5119. * @throws {RequiredError}
  5120. */
  5121. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5122. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5123. },
  5124. /**
  5125. *
  5126. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5127. * @param {*} [options] Override http request option.
  5128. * @throws {RequiredError}
  5129. */
  5130. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5131. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5132. },
  5133. /**
  5134. *
  5135. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5136. * @param {*} [options] Override http request option.
  5137. * @throws {RequiredError}
  5138. */
  5139. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5140. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5141. },
  5142. /**
  5143. *
  5144. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5145. * @param {*} [options] Override http request option.
  5146. * @throws {RequiredError}
  5147. */
  5148. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5149. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5150. },
  5151. /**
  5152. *
  5153. * @param {*} [options] Override http request option.
  5154. * @throws {RequiredError}
  5155. */
  5156. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5157. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5158. },
  5159. /**
  5160. *
  5161. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5162. * @param {*} [options] Override http request option.
  5163. * @throws {RequiredError}
  5164. */
  5165. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5166. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5167. },
  5168. /**
  5169. *
  5170. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5171. * @param {*} [options] Override http request option.
  5172. * @throws {RequiredError}
  5173. */
  5174. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5175. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5176. },
  5177. /**
  5178. *
  5179. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5180. * @param {*} [options] Override http request option.
  5181. * @throws {RequiredError}
  5182. */
  5183. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5184. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5185. },
  5186. /**
  5187. *
  5188. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5189. * @param {*} [options] Override http request option.
  5190. * @throws {RequiredError}
  5191. */
  5192. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5193. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5194. },
  5195. /**
  5196. *
  5197. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5198. * @param {*} [options] Override http request option.
  5199. * @throws {RequiredError}
  5200. */
  5201. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5202. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5203. },
  5204. };
  5205. };
  5206. /**
  5207. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5208. * @export
  5209. * @interface AlbumApiAddAssetsToAlbumRequest
  5210. */
  5211. export interface AlbumApiAddAssetsToAlbumRequest {
  5212. /**
  5213. *
  5214. * @type {string}
  5215. * @memberof AlbumApiAddAssetsToAlbum
  5216. */
  5217. readonly id: string
  5218. /**
  5219. *
  5220. * @type {BulkIdsDto}
  5221. * @memberof AlbumApiAddAssetsToAlbum
  5222. */
  5223. readonly bulkIdsDto: BulkIdsDto
  5224. /**
  5225. *
  5226. * @type {string}
  5227. * @memberof AlbumApiAddAssetsToAlbum
  5228. */
  5229. readonly key?: string
  5230. }
  5231. /**
  5232. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5233. * @export
  5234. * @interface AlbumApiAddUsersToAlbumRequest
  5235. */
  5236. export interface AlbumApiAddUsersToAlbumRequest {
  5237. /**
  5238. *
  5239. * @type {string}
  5240. * @memberof AlbumApiAddUsersToAlbum
  5241. */
  5242. readonly id: string
  5243. /**
  5244. *
  5245. * @type {AddUsersDto}
  5246. * @memberof AlbumApiAddUsersToAlbum
  5247. */
  5248. readonly addUsersDto: AddUsersDto
  5249. }
  5250. /**
  5251. * Request parameters for createAlbum operation in AlbumApi.
  5252. * @export
  5253. * @interface AlbumApiCreateAlbumRequest
  5254. */
  5255. export interface AlbumApiCreateAlbumRequest {
  5256. /**
  5257. *
  5258. * @type {CreateAlbumDto}
  5259. * @memberof AlbumApiCreateAlbum
  5260. */
  5261. readonly createAlbumDto: CreateAlbumDto
  5262. }
  5263. /**
  5264. * Request parameters for deleteAlbum operation in AlbumApi.
  5265. * @export
  5266. * @interface AlbumApiDeleteAlbumRequest
  5267. */
  5268. export interface AlbumApiDeleteAlbumRequest {
  5269. /**
  5270. *
  5271. * @type {string}
  5272. * @memberof AlbumApiDeleteAlbum
  5273. */
  5274. readonly id: string
  5275. }
  5276. /**
  5277. * Request parameters for getAlbumInfo operation in AlbumApi.
  5278. * @export
  5279. * @interface AlbumApiGetAlbumInfoRequest
  5280. */
  5281. export interface AlbumApiGetAlbumInfoRequest {
  5282. /**
  5283. *
  5284. * @type {string}
  5285. * @memberof AlbumApiGetAlbumInfo
  5286. */
  5287. readonly id: string
  5288. /**
  5289. *
  5290. * @type {boolean}
  5291. * @memberof AlbumApiGetAlbumInfo
  5292. */
  5293. readonly withoutAssets?: boolean
  5294. /**
  5295. *
  5296. * @type {string}
  5297. * @memberof AlbumApiGetAlbumInfo
  5298. */
  5299. readonly key?: string
  5300. }
  5301. /**
  5302. * Request parameters for getAllAlbums operation in AlbumApi.
  5303. * @export
  5304. * @interface AlbumApiGetAllAlbumsRequest
  5305. */
  5306. export interface AlbumApiGetAllAlbumsRequest {
  5307. /**
  5308. *
  5309. * @type {boolean}
  5310. * @memberof AlbumApiGetAllAlbums
  5311. */
  5312. readonly shared?: boolean
  5313. /**
  5314. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5315. * @type {string}
  5316. * @memberof AlbumApiGetAllAlbums
  5317. */
  5318. readonly assetId?: string
  5319. }
  5320. /**
  5321. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5322. * @export
  5323. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5324. */
  5325. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5326. /**
  5327. *
  5328. * @type {string}
  5329. * @memberof AlbumApiRemoveAssetFromAlbum
  5330. */
  5331. readonly id: string
  5332. /**
  5333. *
  5334. * @type {BulkIdsDto}
  5335. * @memberof AlbumApiRemoveAssetFromAlbum
  5336. */
  5337. readonly bulkIdsDto: BulkIdsDto
  5338. }
  5339. /**
  5340. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5341. * @export
  5342. * @interface AlbumApiRemoveUserFromAlbumRequest
  5343. */
  5344. export interface AlbumApiRemoveUserFromAlbumRequest {
  5345. /**
  5346. *
  5347. * @type {string}
  5348. * @memberof AlbumApiRemoveUserFromAlbum
  5349. */
  5350. readonly id: string
  5351. /**
  5352. *
  5353. * @type {string}
  5354. * @memberof AlbumApiRemoveUserFromAlbum
  5355. */
  5356. readonly userId: string
  5357. }
  5358. /**
  5359. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5360. * @export
  5361. * @interface AlbumApiUpdateAlbumInfoRequest
  5362. */
  5363. export interface AlbumApiUpdateAlbumInfoRequest {
  5364. /**
  5365. *
  5366. * @type {string}
  5367. * @memberof AlbumApiUpdateAlbumInfo
  5368. */
  5369. readonly id: string
  5370. /**
  5371. *
  5372. * @type {UpdateAlbumDto}
  5373. * @memberof AlbumApiUpdateAlbumInfo
  5374. */
  5375. readonly updateAlbumDto: UpdateAlbumDto
  5376. }
  5377. /**
  5378. * AlbumApi - object-oriented interface
  5379. * @export
  5380. * @class AlbumApi
  5381. * @extends {BaseAPI}
  5382. */
  5383. export class AlbumApi extends BaseAPI {
  5384. /**
  5385. *
  5386. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5387. * @param {*} [options] Override http request option.
  5388. * @throws {RequiredError}
  5389. * @memberof AlbumApi
  5390. */
  5391. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5392. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5393. }
  5394. /**
  5395. *
  5396. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5397. * @param {*} [options] Override http request option.
  5398. * @throws {RequiredError}
  5399. * @memberof AlbumApi
  5400. */
  5401. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5402. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5403. }
  5404. /**
  5405. *
  5406. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5407. * @param {*} [options] Override http request option.
  5408. * @throws {RequiredError}
  5409. * @memberof AlbumApi
  5410. */
  5411. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5412. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5413. }
  5414. /**
  5415. *
  5416. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5417. * @param {*} [options] Override http request option.
  5418. * @throws {RequiredError}
  5419. * @memberof AlbumApi
  5420. */
  5421. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  5422. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5423. }
  5424. /**
  5425. *
  5426. * @param {*} [options] Override http request option.
  5427. * @throws {RequiredError}
  5428. * @memberof AlbumApi
  5429. */
  5430. public getAlbumCount(options?: AxiosRequestConfig) {
  5431. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  5432. }
  5433. /**
  5434. *
  5435. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5436. * @param {*} [options] Override http request option.
  5437. * @throws {RequiredError}
  5438. * @memberof AlbumApi
  5439. */
  5440. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  5441. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5442. }
  5443. /**
  5444. *
  5445. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5446. * @param {*} [options] Override http request option.
  5447. * @throws {RequiredError}
  5448. * @memberof AlbumApi
  5449. */
  5450. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  5451. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5452. }
  5453. /**
  5454. *
  5455. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5456. * @param {*} [options] Override http request option.
  5457. * @throws {RequiredError}
  5458. * @memberof AlbumApi
  5459. */
  5460. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  5461. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  5462. }
  5463. /**
  5464. *
  5465. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5466. * @param {*} [options] Override http request option.
  5467. * @throws {RequiredError}
  5468. * @memberof AlbumApi
  5469. */
  5470. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  5471. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5472. }
  5473. /**
  5474. *
  5475. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5476. * @param {*} [options] Override http request option.
  5477. * @throws {RequiredError}
  5478. * @memberof AlbumApi
  5479. */
  5480. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  5481. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5482. }
  5483. }
  5484. /**
  5485. * AssetApi - axios parameter creator
  5486. * @export
  5487. */
  5488. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  5489. return {
  5490. /**
  5491. * Checks if assets exist by checksums
  5492. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  5493. * @param {*} [options] Override http request option.
  5494. * @throws {RequiredError}
  5495. */
  5496. bulkUploadCheck: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5497. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  5498. assertParamExists('bulkUploadCheck', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  5499. const localVarPath = `/asset/bulk-upload-check`;
  5500. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5501. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5502. let baseOptions;
  5503. if (configuration) {
  5504. baseOptions = configuration.baseOptions;
  5505. }
  5506. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5507. const localVarHeaderParameter = {} as any;
  5508. const localVarQueryParameter = {} as any;
  5509. // authentication cookie required
  5510. // authentication api_key required
  5511. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5512. // authentication bearer required
  5513. // http bearer authentication required
  5514. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5515. localVarHeaderParameter['Content-Type'] = 'application/json';
  5516. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5517. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5518. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5519. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  5520. return {
  5521. url: toPathString(localVarUrlObj),
  5522. options: localVarRequestOptions,
  5523. };
  5524. },
  5525. /**
  5526. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5527. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5528. * @param {*} [options] Override http request option.
  5529. * @throws {RequiredError}
  5530. */
  5531. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5532. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  5533. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  5534. const localVarPath = `/asset/exist`;
  5535. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5536. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5537. let baseOptions;
  5538. if (configuration) {
  5539. baseOptions = configuration.baseOptions;
  5540. }
  5541. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5542. const localVarHeaderParameter = {} as any;
  5543. const localVarQueryParameter = {} as any;
  5544. // authentication cookie required
  5545. // authentication api_key required
  5546. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5547. // authentication bearer required
  5548. // http bearer authentication required
  5549. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5550. localVarHeaderParameter['Content-Type'] = 'application/json';
  5551. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5552. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5553. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5554. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  5555. return {
  5556. url: toPathString(localVarUrlObj),
  5557. options: localVarRequestOptions,
  5558. };
  5559. },
  5560. /**
  5561. *
  5562. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  5563. * @param {*} [options] Override http request option.
  5564. * @throws {RequiredError}
  5565. */
  5566. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5567. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  5568. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  5569. const localVarPath = `/asset`;
  5570. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5571. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5572. let baseOptions;
  5573. if (configuration) {
  5574. baseOptions = configuration.baseOptions;
  5575. }
  5576. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5577. const localVarHeaderParameter = {} as any;
  5578. const localVarQueryParameter = {} as any;
  5579. // authentication cookie required
  5580. // authentication api_key required
  5581. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5582. // authentication bearer required
  5583. // http bearer authentication required
  5584. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5585. localVarHeaderParameter['Content-Type'] = 'application/json';
  5586. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5587. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5588. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5589. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  5590. return {
  5591. url: toPathString(localVarUrlObj),
  5592. options: localVarRequestOptions,
  5593. };
  5594. },
  5595. /**
  5596. *
  5597. * @param {AssetIdsDto} assetIdsDto
  5598. * @param {string} [key]
  5599. * @param {*} [options] Override http request option.
  5600. * @throws {RequiredError}
  5601. */
  5602. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5603. // verify required parameter 'assetIdsDto' is not null or undefined
  5604. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  5605. const localVarPath = `/asset/download/archive`;
  5606. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5607. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5608. let baseOptions;
  5609. if (configuration) {
  5610. baseOptions = configuration.baseOptions;
  5611. }
  5612. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5613. const localVarHeaderParameter = {} as any;
  5614. const localVarQueryParameter = {} as any;
  5615. // authentication cookie required
  5616. // authentication api_key required
  5617. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5618. // authentication bearer required
  5619. // http bearer authentication required
  5620. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5621. if (key !== undefined) {
  5622. localVarQueryParameter['key'] = key;
  5623. }
  5624. localVarHeaderParameter['Content-Type'] = 'application/json';
  5625. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5626. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5627. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5628. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  5629. return {
  5630. url: toPathString(localVarUrlObj),
  5631. options: localVarRequestOptions,
  5632. };
  5633. },
  5634. /**
  5635. *
  5636. * @param {string} id
  5637. * @param {string} [key]
  5638. * @param {*} [options] Override http request option.
  5639. * @throws {RequiredError}
  5640. */
  5641. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5642. // verify required parameter 'id' is not null or undefined
  5643. assertParamExists('downloadFile', 'id', id)
  5644. const localVarPath = `/asset/download/{id}`
  5645. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5646. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5647. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5648. let baseOptions;
  5649. if (configuration) {
  5650. baseOptions = configuration.baseOptions;
  5651. }
  5652. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5653. const localVarHeaderParameter = {} as any;
  5654. const localVarQueryParameter = {} as any;
  5655. // authentication cookie required
  5656. // authentication api_key required
  5657. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5658. // authentication bearer required
  5659. // http bearer authentication required
  5660. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5661. if (key !== undefined) {
  5662. localVarQueryParameter['key'] = key;
  5663. }
  5664. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5665. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5666. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5667. return {
  5668. url: toPathString(localVarUrlObj),
  5669. options: localVarRequestOptions,
  5670. };
  5671. },
  5672. /**
  5673. *
  5674. * @param {*} [options] Override http request option.
  5675. * @throws {RequiredError}
  5676. */
  5677. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5678. const localVarPath = `/asset/trash/empty`;
  5679. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5680. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5681. let baseOptions;
  5682. if (configuration) {
  5683. baseOptions = configuration.baseOptions;
  5684. }
  5685. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5686. const localVarHeaderParameter = {} as any;
  5687. const localVarQueryParameter = {} as any;
  5688. // authentication cookie required
  5689. // authentication api_key required
  5690. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5691. // authentication bearer required
  5692. // http bearer authentication required
  5693. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5694. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5695. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5696. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5697. return {
  5698. url: toPathString(localVarUrlObj),
  5699. options: localVarRequestOptions,
  5700. };
  5701. },
  5702. /**
  5703. * Get all AssetEntity belong to the user
  5704. * @param {string} [userId]
  5705. * @param {boolean} [isFavorite]
  5706. * @param {boolean} [isArchived]
  5707. * @param {number} [skip]
  5708. * @param {string} [updatedAfter]
  5709. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5710. * @param {*} [options] Override http request option.
  5711. * @throws {RequiredError}
  5712. */
  5713. getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5714. const localVarPath = `/asset`;
  5715. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5716. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5717. let baseOptions;
  5718. if (configuration) {
  5719. baseOptions = configuration.baseOptions;
  5720. }
  5721. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5722. const localVarHeaderParameter = {} as any;
  5723. const localVarQueryParameter = {} as any;
  5724. // authentication cookie required
  5725. // authentication api_key required
  5726. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5727. // authentication bearer required
  5728. // http bearer authentication required
  5729. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5730. if (userId !== undefined) {
  5731. localVarQueryParameter['userId'] = userId;
  5732. }
  5733. if (isFavorite !== undefined) {
  5734. localVarQueryParameter['isFavorite'] = isFavorite;
  5735. }
  5736. if (isArchived !== undefined) {
  5737. localVarQueryParameter['isArchived'] = isArchived;
  5738. }
  5739. if (skip !== undefined) {
  5740. localVarQueryParameter['skip'] = skip;
  5741. }
  5742. if (updatedAfter !== undefined) {
  5743. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  5744. (updatedAfter as any).toISOString() :
  5745. updatedAfter;
  5746. }
  5747. if (ifNoneMatch != null) {
  5748. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  5749. }
  5750. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5751. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5752. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5753. return {
  5754. url: toPathString(localVarUrlObj),
  5755. options: localVarRequestOptions,
  5756. };
  5757. },
  5758. /**
  5759. * Get a single asset\'s information
  5760. * @param {string} id
  5761. * @param {string} [key]
  5762. * @param {*} [options] Override http request option.
  5763. * @throws {RequiredError}
  5764. */
  5765. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5766. // verify required parameter 'id' is not null or undefined
  5767. assertParamExists('getAssetById', 'id', id)
  5768. const localVarPath = `/asset/assetById/{id}`
  5769. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5770. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5771. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5772. let baseOptions;
  5773. if (configuration) {
  5774. baseOptions = configuration.baseOptions;
  5775. }
  5776. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5777. const localVarHeaderParameter = {} as any;
  5778. const localVarQueryParameter = {} as any;
  5779. // authentication cookie required
  5780. // authentication api_key required
  5781. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5782. // authentication bearer required
  5783. // http bearer authentication required
  5784. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5785. if (key !== undefined) {
  5786. localVarQueryParameter['key'] = key;
  5787. }
  5788. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5789. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5790. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5791. return {
  5792. url: toPathString(localVarUrlObj),
  5793. options: localVarRequestOptions,
  5794. };
  5795. },
  5796. /**
  5797. *
  5798. * @param {*} [options] Override http request option.
  5799. * @throws {RequiredError}
  5800. */
  5801. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5802. const localVarPath = `/asset/search-terms`;
  5803. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5804. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5805. let baseOptions;
  5806. if (configuration) {
  5807. baseOptions = configuration.baseOptions;
  5808. }
  5809. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5810. const localVarHeaderParameter = {} as any;
  5811. const localVarQueryParameter = {} as any;
  5812. // authentication cookie required
  5813. // authentication api_key required
  5814. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5815. // authentication bearer required
  5816. // http bearer authentication required
  5817. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5818. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5819. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5820. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5821. return {
  5822. url: toPathString(localVarUrlObj),
  5823. options: localVarRequestOptions,
  5824. };
  5825. },
  5826. /**
  5827. *
  5828. * @param {boolean} [isArchived]
  5829. * @param {boolean} [isFavorite]
  5830. * @param {boolean} [isTrashed]
  5831. * @param {*} [options] Override http request option.
  5832. * @throws {RequiredError}
  5833. */
  5834. getAssetStats: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5835. const localVarPath = `/asset/statistics`;
  5836. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5837. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5838. let baseOptions;
  5839. if (configuration) {
  5840. baseOptions = configuration.baseOptions;
  5841. }
  5842. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5843. const localVarHeaderParameter = {} as any;
  5844. const localVarQueryParameter = {} as any;
  5845. // authentication cookie required
  5846. // authentication api_key required
  5847. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5848. // authentication bearer required
  5849. // http bearer authentication required
  5850. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5851. if (isArchived !== undefined) {
  5852. localVarQueryParameter['isArchived'] = isArchived;
  5853. }
  5854. if (isFavorite !== undefined) {
  5855. localVarQueryParameter['isFavorite'] = isFavorite;
  5856. }
  5857. if (isTrashed !== undefined) {
  5858. localVarQueryParameter['isTrashed'] = isTrashed;
  5859. }
  5860. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5861. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5862. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5863. return {
  5864. url: toPathString(localVarUrlObj),
  5865. options: localVarRequestOptions,
  5866. };
  5867. },
  5868. /**
  5869. *
  5870. * @param {string} id
  5871. * @param {ThumbnailFormat} [format]
  5872. * @param {string} [key]
  5873. * @param {*} [options] Override http request option.
  5874. * @throws {RequiredError}
  5875. */
  5876. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5877. // verify required parameter 'id' is not null or undefined
  5878. assertParamExists('getAssetThumbnail', 'id', id)
  5879. const localVarPath = `/asset/thumbnail/{id}`
  5880. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5881. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5882. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5883. let baseOptions;
  5884. if (configuration) {
  5885. baseOptions = configuration.baseOptions;
  5886. }
  5887. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5888. const localVarHeaderParameter = {} as any;
  5889. const localVarQueryParameter = {} as any;
  5890. // authentication cookie required
  5891. // authentication api_key required
  5892. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5893. // authentication bearer required
  5894. // http bearer authentication required
  5895. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5896. if (format !== undefined) {
  5897. localVarQueryParameter['format'] = format;
  5898. }
  5899. if (key !== undefined) {
  5900. localVarQueryParameter['key'] = key;
  5901. }
  5902. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5903. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5904. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5905. return {
  5906. url: toPathString(localVarUrlObj),
  5907. options: localVarRequestOptions,
  5908. };
  5909. },
  5910. /**
  5911. *
  5912. * @param {TimeBucketSize} size
  5913. * @param {string} timeBucket
  5914. * @param {string} [userId]
  5915. * @param {string} [albumId]
  5916. * @param {string} [personId]
  5917. * @param {boolean} [isArchived]
  5918. * @param {boolean} [isFavorite]
  5919. * @param {boolean} [isTrashed]
  5920. * @param {boolean} [withStacked]
  5921. * @param {string} [key]
  5922. * @param {*} [options] Override http request option.
  5923. * @throws {RequiredError}
  5924. */
  5925. 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> => {
  5926. // verify required parameter 'size' is not null or undefined
  5927. assertParamExists('getByTimeBucket', 'size', size)
  5928. // verify required parameter 'timeBucket' is not null or undefined
  5929. assertParamExists('getByTimeBucket', 'timeBucket', timeBucket)
  5930. const localVarPath = `/asset/time-bucket`;
  5931. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5932. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5933. let baseOptions;
  5934. if (configuration) {
  5935. baseOptions = configuration.baseOptions;
  5936. }
  5937. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5938. const localVarHeaderParameter = {} as any;
  5939. const localVarQueryParameter = {} as any;
  5940. // authentication cookie required
  5941. // authentication api_key required
  5942. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5943. // authentication bearer required
  5944. // http bearer authentication required
  5945. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5946. if (size !== undefined) {
  5947. localVarQueryParameter['size'] = size;
  5948. }
  5949. if (userId !== undefined) {
  5950. localVarQueryParameter['userId'] = userId;
  5951. }
  5952. if (albumId !== undefined) {
  5953. localVarQueryParameter['albumId'] = albumId;
  5954. }
  5955. if (personId !== undefined) {
  5956. localVarQueryParameter['personId'] = personId;
  5957. }
  5958. if (isArchived !== undefined) {
  5959. localVarQueryParameter['isArchived'] = isArchived;
  5960. }
  5961. if (isFavorite !== undefined) {
  5962. localVarQueryParameter['isFavorite'] = isFavorite;
  5963. }
  5964. if (isTrashed !== undefined) {
  5965. localVarQueryParameter['isTrashed'] = isTrashed;
  5966. }
  5967. if (withStacked !== undefined) {
  5968. localVarQueryParameter['withStacked'] = withStacked;
  5969. }
  5970. if (timeBucket !== undefined) {
  5971. localVarQueryParameter['timeBucket'] = timeBucket;
  5972. }
  5973. if (key !== undefined) {
  5974. localVarQueryParameter['key'] = key;
  5975. }
  5976. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5977. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5978. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5979. return {
  5980. url: toPathString(localVarUrlObj),
  5981. options: localVarRequestOptions,
  5982. };
  5983. },
  5984. /**
  5985. *
  5986. * @param {*} [options] Override http request option.
  5987. * @throws {RequiredError}
  5988. */
  5989. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5990. const localVarPath = `/asset/curated-locations`;
  5991. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5992. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5993. let baseOptions;
  5994. if (configuration) {
  5995. baseOptions = configuration.baseOptions;
  5996. }
  5997. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5998. const localVarHeaderParameter = {} as any;
  5999. const localVarQueryParameter = {} as any;
  6000. // authentication cookie required
  6001. // authentication api_key required
  6002. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6003. // authentication bearer required
  6004. // http bearer authentication required
  6005. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6006. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6007. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6008. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6009. return {
  6010. url: toPathString(localVarUrlObj),
  6011. options: localVarRequestOptions,
  6012. };
  6013. },
  6014. /**
  6015. *
  6016. * @param {*} [options] Override http request option.
  6017. * @throws {RequiredError}
  6018. */
  6019. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6020. const localVarPath = `/asset/curated-objects`;
  6021. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6022. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6023. let baseOptions;
  6024. if (configuration) {
  6025. baseOptions = configuration.baseOptions;
  6026. }
  6027. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6028. const localVarHeaderParameter = {} as any;
  6029. const localVarQueryParameter = {} as any;
  6030. // authentication cookie required
  6031. // authentication api_key required
  6032. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6033. // authentication bearer required
  6034. // http bearer authentication required
  6035. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6036. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6037. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6038. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6039. return {
  6040. url: toPathString(localVarUrlObj),
  6041. options: localVarRequestOptions,
  6042. };
  6043. },
  6044. /**
  6045. *
  6046. * @param {DownloadInfoDto} downloadInfoDto
  6047. * @param {string} [key]
  6048. * @param {*} [options] Override http request option.
  6049. * @throws {RequiredError}
  6050. */
  6051. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6052. // verify required parameter 'downloadInfoDto' is not null or undefined
  6053. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6054. const localVarPath = `/asset/download/info`;
  6055. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6056. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6057. let baseOptions;
  6058. if (configuration) {
  6059. baseOptions = configuration.baseOptions;
  6060. }
  6061. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6062. const localVarHeaderParameter = {} as any;
  6063. const localVarQueryParameter = {} as any;
  6064. // authentication cookie required
  6065. // authentication api_key required
  6066. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6067. // authentication bearer required
  6068. // http bearer authentication required
  6069. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6070. if (key !== undefined) {
  6071. localVarQueryParameter['key'] = key;
  6072. }
  6073. localVarHeaderParameter['Content-Type'] = 'application/json';
  6074. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6075. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6076. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6077. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6078. return {
  6079. url: toPathString(localVarUrlObj),
  6080. options: localVarRequestOptions,
  6081. };
  6082. },
  6083. /**
  6084. *
  6085. * @param {boolean} [isArchived]
  6086. * @param {boolean} [isFavorite]
  6087. * @param {string} [fileCreatedAfter]
  6088. * @param {string} [fileCreatedBefore]
  6089. * @param {*} [options] Override http request option.
  6090. * @throws {RequiredError}
  6091. */
  6092. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6093. const localVarPath = `/asset/map-marker`;
  6094. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6095. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6096. let baseOptions;
  6097. if (configuration) {
  6098. baseOptions = configuration.baseOptions;
  6099. }
  6100. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6101. const localVarHeaderParameter = {} as any;
  6102. const localVarQueryParameter = {} as any;
  6103. // authentication cookie required
  6104. // authentication api_key required
  6105. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6106. // authentication bearer required
  6107. // http bearer authentication required
  6108. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6109. if (isArchived !== undefined) {
  6110. localVarQueryParameter['isArchived'] = isArchived;
  6111. }
  6112. if (isFavorite !== undefined) {
  6113. localVarQueryParameter['isFavorite'] = isFavorite;
  6114. }
  6115. if (fileCreatedAfter !== undefined) {
  6116. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6117. (fileCreatedAfter as any).toISOString() :
  6118. fileCreatedAfter;
  6119. }
  6120. if (fileCreatedBefore !== undefined) {
  6121. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6122. (fileCreatedBefore as any).toISOString() :
  6123. fileCreatedBefore;
  6124. }
  6125. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6126. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6127. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6128. return {
  6129. url: toPathString(localVarUrlObj),
  6130. options: localVarRequestOptions,
  6131. };
  6132. },
  6133. /**
  6134. *
  6135. * @param {number} day
  6136. * @param {number} month
  6137. * @param {*} [options] Override http request option.
  6138. * @throws {RequiredError}
  6139. */
  6140. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6141. // verify required parameter 'day' is not null or undefined
  6142. assertParamExists('getMemoryLane', 'day', day)
  6143. // verify required parameter 'month' is not null or undefined
  6144. assertParamExists('getMemoryLane', 'month', month)
  6145. const localVarPath = `/asset/memory-lane`;
  6146. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6147. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6148. let baseOptions;
  6149. if (configuration) {
  6150. baseOptions = configuration.baseOptions;
  6151. }
  6152. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6153. const localVarHeaderParameter = {} as any;
  6154. const localVarQueryParameter = {} as any;
  6155. // authentication cookie required
  6156. // authentication api_key required
  6157. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6158. // authentication bearer required
  6159. // http bearer authentication required
  6160. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6161. if (day !== undefined) {
  6162. localVarQueryParameter['day'] = day;
  6163. }
  6164. if (month !== undefined) {
  6165. localVarQueryParameter['month'] = month;
  6166. }
  6167. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6168. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6169. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6170. return {
  6171. url: toPathString(localVarUrlObj),
  6172. options: localVarRequestOptions,
  6173. };
  6174. },
  6175. /**
  6176. *
  6177. * @param {number} [count]
  6178. * @param {*} [options] Override http request option.
  6179. * @throws {RequiredError}
  6180. */
  6181. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6182. const localVarPath = `/asset/random`;
  6183. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6184. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6185. let baseOptions;
  6186. if (configuration) {
  6187. baseOptions = configuration.baseOptions;
  6188. }
  6189. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6190. const localVarHeaderParameter = {} as any;
  6191. const localVarQueryParameter = {} as any;
  6192. // authentication cookie required
  6193. // authentication api_key required
  6194. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6195. // authentication bearer required
  6196. // http bearer authentication required
  6197. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6198. if (count !== undefined) {
  6199. localVarQueryParameter['count'] = count;
  6200. }
  6201. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6202. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6203. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6204. return {
  6205. url: toPathString(localVarUrlObj),
  6206. options: localVarRequestOptions,
  6207. };
  6208. },
  6209. /**
  6210. *
  6211. * @param {TimeBucketSize} size
  6212. * @param {string} [userId]
  6213. * @param {string} [albumId]
  6214. * @param {string} [personId]
  6215. * @param {boolean} [isArchived]
  6216. * @param {boolean} [isFavorite]
  6217. * @param {boolean} [isTrashed]
  6218. * @param {boolean} [withStacked]
  6219. * @param {string} [key]
  6220. * @param {*} [options] Override http request option.
  6221. * @throws {RequiredError}
  6222. */
  6223. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6224. // verify required parameter 'size' is not null or undefined
  6225. assertParamExists('getTimeBuckets', 'size', size)
  6226. const localVarPath = `/asset/time-buckets`;
  6227. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6228. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6229. let baseOptions;
  6230. if (configuration) {
  6231. baseOptions = configuration.baseOptions;
  6232. }
  6233. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6234. const localVarHeaderParameter = {} as any;
  6235. const localVarQueryParameter = {} as any;
  6236. // authentication cookie required
  6237. // authentication api_key required
  6238. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6239. // authentication bearer required
  6240. // http bearer authentication required
  6241. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6242. if (size !== undefined) {
  6243. localVarQueryParameter['size'] = size;
  6244. }
  6245. if (userId !== undefined) {
  6246. localVarQueryParameter['userId'] = userId;
  6247. }
  6248. if (albumId !== undefined) {
  6249. localVarQueryParameter['albumId'] = albumId;
  6250. }
  6251. if (personId !== undefined) {
  6252. localVarQueryParameter['personId'] = personId;
  6253. }
  6254. if (isArchived !== undefined) {
  6255. localVarQueryParameter['isArchived'] = isArchived;
  6256. }
  6257. if (isFavorite !== undefined) {
  6258. localVarQueryParameter['isFavorite'] = isFavorite;
  6259. }
  6260. if (isTrashed !== undefined) {
  6261. localVarQueryParameter['isTrashed'] = isTrashed;
  6262. }
  6263. if (withStacked !== undefined) {
  6264. localVarQueryParameter['withStacked'] = withStacked;
  6265. }
  6266. if (key !== undefined) {
  6267. localVarQueryParameter['key'] = key;
  6268. }
  6269. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6270. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6271. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6272. return {
  6273. url: toPathString(localVarUrlObj),
  6274. options: localVarRequestOptions,
  6275. };
  6276. },
  6277. /**
  6278. * Get all asset of a device that are in the database, ID only.
  6279. * @param {string} deviceId
  6280. * @param {*} [options] Override http request option.
  6281. * @throws {RequiredError}
  6282. */
  6283. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6284. // verify required parameter 'deviceId' is not null or undefined
  6285. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6286. const localVarPath = `/asset/{deviceId}`
  6287. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6288. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6289. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6290. let baseOptions;
  6291. if (configuration) {
  6292. baseOptions = configuration.baseOptions;
  6293. }
  6294. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6295. const localVarHeaderParameter = {} as any;
  6296. const localVarQueryParameter = {} as any;
  6297. // authentication cookie required
  6298. // authentication api_key required
  6299. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6300. // authentication bearer required
  6301. // http bearer authentication required
  6302. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6303. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6304. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6305. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6306. return {
  6307. url: toPathString(localVarUrlObj),
  6308. options: localVarRequestOptions,
  6309. };
  6310. },
  6311. /**
  6312. *
  6313. * @param {ImportAssetDto} importAssetDto
  6314. * @param {*} [options] Override http request option.
  6315. * @throws {RequiredError}
  6316. */
  6317. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6318. // verify required parameter 'importAssetDto' is not null or undefined
  6319. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  6320. const localVarPath = `/asset/import`;
  6321. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6322. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6323. let baseOptions;
  6324. if (configuration) {
  6325. baseOptions = configuration.baseOptions;
  6326. }
  6327. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6328. const localVarHeaderParameter = {} as any;
  6329. const localVarQueryParameter = {} as any;
  6330. // authentication cookie required
  6331. // authentication api_key required
  6332. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6333. // authentication bearer required
  6334. // http bearer authentication required
  6335. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6336. localVarHeaderParameter['Content-Type'] = 'application/json';
  6337. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6338. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6339. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6340. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  6341. return {
  6342. url: toPathString(localVarUrlObj),
  6343. options: localVarRequestOptions,
  6344. };
  6345. },
  6346. /**
  6347. *
  6348. * @param {BulkIdsDto} bulkIdsDto
  6349. * @param {*} [options] Override http request option.
  6350. * @throws {RequiredError}
  6351. */
  6352. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6353. // verify required parameter 'bulkIdsDto' is not null or undefined
  6354. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6355. const localVarPath = `/asset/restore`;
  6356. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6357. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6358. let baseOptions;
  6359. if (configuration) {
  6360. baseOptions = configuration.baseOptions;
  6361. }
  6362. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6363. const localVarHeaderParameter = {} as any;
  6364. const localVarQueryParameter = {} as any;
  6365. // authentication cookie required
  6366. // authentication api_key required
  6367. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6368. // authentication bearer required
  6369. // http bearer authentication required
  6370. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6371. localVarHeaderParameter['Content-Type'] = 'application/json';
  6372. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6373. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6374. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6375. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6376. return {
  6377. url: toPathString(localVarUrlObj),
  6378. options: localVarRequestOptions,
  6379. };
  6380. },
  6381. /**
  6382. *
  6383. * @param {*} [options] Override http request option.
  6384. * @throws {RequiredError}
  6385. */
  6386. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6387. const localVarPath = `/asset/trash/restore`;
  6388. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6389. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6390. let baseOptions;
  6391. if (configuration) {
  6392. baseOptions = configuration.baseOptions;
  6393. }
  6394. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6395. const localVarHeaderParameter = {} as any;
  6396. const localVarQueryParameter = {} as any;
  6397. // authentication cookie required
  6398. // authentication api_key required
  6399. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6400. // authentication bearer required
  6401. // http bearer authentication required
  6402. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6403. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6404. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6405. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6406. return {
  6407. url: toPathString(localVarUrlObj),
  6408. options: localVarRequestOptions,
  6409. };
  6410. },
  6411. /**
  6412. *
  6413. * @param {AssetJobsDto} assetJobsDto
  6414. * @param {*} [options] Override http request option.
  6415. * @throws {RequiredError}
  6416. */
  6417. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6418. // verify required parameter 'assetJobsDto' is not null or undefined
  6419. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  6420. const localVarPath = `/asset/jobs`;
  6421. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6422. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6423. let baseOptions;
  6424. if (configuration) {
  6425. baseOptions = configuration.baseOptions;
  6426. }
  6427. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6428. const localVarHeaderParameter = {} as any;
  6429. const localVarQueryParameter = {} as any;
  6430. // authentication cookie required
  6431. // authentication api_key required
  6432. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6433. // authentication bearer required
  6434. // http bearer authentication required
  6435. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6436. localVarHeaderParameter['Content-Type'] = 'application/json';
  6437. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6438. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6439. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6440. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  6441. return {
  6442. url: toPathString(localVarUrlObj),
  6443. options: localVarRequestOptions,
  6444. };
  6445. },
  6446. /**
  6447. *
  6448. * @param {SearchAssetDto} searchAssetDto
  6449. * @param {*} [options] Override http request option.
  6450. * @throws {RequiredError}
  6451. */
  6452. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6453. // verify required parameter 'searchAssetDto' is not null or undefined
  6454. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  6455. const localVarPath = `/asset/search`;
  6456. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6457. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6458. let baseOptions;
  6459. if (configuration) {
  6460. baseOptions = configuration.baseOptions;
  6461. }
  6462. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6463. const localVarHeaderParameter = {} as any;
  6464. const localVarQueryParameter = {} as any;
  6465. // authentication cookie required
  6466. // authentication api_key required
  6467. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6468. // authentication bearer required
  6469. // http bearer authentication required
  6470. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6471. localVarHeaderParameter['Content-Type'] = 'application/json';
  6472. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6473. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6474. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6475. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  6476. return {
  6477. url: toPathString(localVarUrlObj),
  6478. options: localVarRequestOptions,
  6479. };
  6480. },
  6481. /**
  6482. *
  6483. * @param {string} id
  6484. * @param {boolean} [isThumb]
  6485. * @param {boolean} [isWeb]
  6486. * @param {string} [key]
  6487. * @param {*} [options] Override http request option.
  6488. * @throws {RequiredError}
  6489. */
  6490. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6491. // verify required parameter 'id' is not null or undefined
  6492. assertParamExists('serveFile', 'id', id)
  6493. const localVarPath = `/asset/file/{id}`
  6494. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6495. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6496. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6497. let baseOptions;
  6498. if (configuration) {
  6499. baseOptions = configuration.baseOptions;
  6500. }
  6501. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6502. const localVarHeaderParameter = {} as any;
  6503. const localVarQueryParameter = {} as any;
  6504. // authentication cookie required
  6505. // authentication api_key required
  6506. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6507. // authentication bearer required
  6508. // http bearer authentication required
  6509. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6510. if (isThumb !== undefined) {
  6511. localVarQueryParameter['isThumb'] = isThumb;
  6512. }
  6513. if (isWeb !== undefined) {
  6514. localVarQueryParameter['isWeb'] = isWeb;
  6515. }
  6516. if (key !== undefined) {
  6517. localVarQueryParameter['key'] = key;
  6518. }
  6519. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6520. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6521. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6522. return {
  6523. url: toPathString(localVarUrlObj),
  6524. options: localVarRequestOptions,
  6525. };
  6526. },
  6527. /**
  6528. *
  6529. * @param {string} id
  6530. * @param {UpdateAssetDto} updateAssetDto
  6531. * @param {*} [options] Override http request option.
  6532. * @throws {RequiredError}
  6533. */
  6534. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6535. // verify required parameter 'id' is not null or undefined
  6536. assertParamExists('updateAsset', 'id', id)
  6537. // verify required parameter 'updateAssetDto' is not null or undefined
  6538. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  6539. const localVarPath = `/asset/{id}`
  6540. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6541. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6542. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6543. let baseOptions;
  6544. if (configuration) {
  6545. baseOptions = configuration.baseOptions;
  6546. }
  6547. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6548. const localVarHeaderParameter = {} as any;
  6549. const localVarQueryParameter = {} as any;
  6550. // authentication cookie required
  6551. // authentication api_key required
  6552. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6553. // authentication bearer required
  6554. // http bearer authentication required
  6555. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6556. localVarHeaderParameter['Content-Type'] = 'application/json';
  6557. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6558. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6559. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6560. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  6561. return {
  6562. url: toPathString(localVarUrlObj),
  6563. options: localVarRequestOptions,
  6564. };
  6565. },
  6566. /**
  6567. *
  6568. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  6569. * @param {*} [options] Override http request option.
  6570. * @throws {RequiredError}
  6571. */
  6572. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6573. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  6574. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  6575. const localVarPath = `/asset`;
  6576. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6577. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6578. let baseOptions;
  6579. if (configuration) {
  6580. baseOptions = configuration.baseOptions;
  6581. }
  6582. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6583. const localVarHeaderParameter = {} as any;
  6584. const localVarQueryParameter = {} as any;
  6585. // authentication cookie required
  6586. // authentication api_key required
  6587. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6588. // authentication bearer required
  6589. // http bearer authentication required
  6590. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6591. localVarHeaderParameter['Content-Type'] = 'application/json';
  6592. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6593. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6594. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6595. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  6596. return {
  6597. url: toPathString(localVarUrlObj),
  6598. options: localVarRequestOptions,
  6599. };
  6600. },
  6601. /**
  6602. *
  6603. * @param {UpdateStackParentDto} updateStackParentDto
  6604. * @param {*} [options] Override http request option.
  6605. * @throws {RequiredError}
  6606. */
  6607. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6608. // verify required parameter 'updateStackParentDto' is not null or undefined
  6609. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  6610. const localVarPath = `/asset/stack/parent`;
  6611. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6612. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6613. let baseOptions;
  6614. if (configuration) {
  6615. baseOptions = configuration.baseOptions;
  6616. }
  6617. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6618. const localVarHeaderParameter = {} as any;
  6619. const localVarQueryParameter = {} as any;
  6620. // authentication cookie required
  6621. // authentication api_key required
  6622. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6623. // authentication bearer required
  6624. // http bearer authentication required
  6625. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6626. localVarHeaderParameter['Content-Type'] = 'application/json';
  6627. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6628. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6629. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6630. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  6631. return {
  6632. url: toPathString(localVarUrlObj),
  6633. options: localVarRequestOptions,
  6634. };
  6635. },
  6636. /**
  6637. *
  6638. * @param {File} assetData
  6639. * @param {string} deviceAssetId
  6640. * @param {string} deviceId
  6641. * @param {string} fileCreatedAt
  6642. * @param {string} fileModifiedAt
  6643. * @param {boolean} isFavorite
  6644. * @param {string} [key]
  6645. * @param {string} [duration]
  6646. * @param {boolean} [isArchived]
  6647. * @param {boolean} [isExternal]
  6648. * @param {boolean} [isOffline]
  6649. * @param {boolean} [isReadOnly]
  6650. * @param {boolean} [isVisible]
  6651. * @param {string} [libraryId]
  6652. * @param {File} [livePhotoData]
  6653. * @param {File} [sidecarData]
  6654. * @param {*} [options] Override http request option.
  6655. * @throws {RequiredError}
  6656. */
  6657. 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> => {
  6658. // verify required parameter 'assetData' is not null or undefined
  6659. assertParamExists('uploadFile', 'assetData', assetData)
  6660. // verify required parameter 'deviceAssetId' is not null or undefined
  6661. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  6662. // verify required parameter 'deviceId' is not null or undefined
  6663. assertParamExists('uploadFile', 'deviceId', deviceId)
  6664. // verify required parameter 'fileCreatedAt' is not null or undefined
  6665. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  6666. // verify required parameter 'fileModifiedAt' is not null or undefined
  6667. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  6668. // verify required parameter 'isFavorite' is not null or undefined
  6669. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  6670. const localVarPath = `/asset/upload`;
  6671. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6672. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6673. let baseOptions;
  6674. if (configuration) {
  6675. baseOptions = configuration.baseOptions;
  6676. }
  6677. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6678. const localVarHeaderParameter = {} as any;
  6679. const localVarQueryParameter = {} as any;
  6680. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  6681. // authentication cookie required
  6682. // authentication api_key required
  6683. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6684. // authentication bearer required
  6685. // http bearer authentication required
  6686. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6687. if (key !== undefined) {
  6688. localVarQueryParameter['key'] = key;
  6689. }
  6690. if (assetData !== undefined) {
  6691. localVarFormParams.append('assetData', assetData as any);
  6692. }
  6693. if (deviceAssetId !== undefined) {
  6694. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  6695. }
  6696. if (deviceId !== undefined) {
  6697. localVarFormParams.append('deviceId', deviceId as any);
  6698. }
  6699. if (duration !== undefined) {
  6700. localVarFormParams.append('duration', duration as any);
  6701. }
  6702. if (fileCreatedAt !== undefined) {
  6703. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  6704. }
  6705. if (fileModifiedAt !== undefined) {
  6706. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  6707. }
  6708. if (isArchived !== undefined) {
  6709. localVarFormParams.append('isArchived', isArchived as any);
  6710. }
  6711. if (isExternal !== undefined) {
  6712. localVarFormParams.append('isExternal', isExternal as any);
  6713. }
  6714. if (isFavorite !== undefined) {
  6715. localVarFormParams.append('isFavorite', isFavorite as any);
  6716. }
  6717. if (isOffline !== undefined) {
  6718. localVarFormParams.append('isOffline', isOffline as any);
  6719. }
  6720. if (isReadOnly !== undefined) {
  6721. localVarFormParams.append('isReadOnly', isReadOnly as any);
  6722. }
  6723. if (isVisible !== undefined) {
  6724. localVarFormParams.append('isVisible', isVisible as any);
  6725. }
  6726. if (libraryId !== undefined) {
  6727. localVarFormParams.append('libraryId', libraryId as any);
  6728. }
  6729. if (livePhotoData !== undefined) {
  6730. localVarFormParams.append('livePhotoData', livePhotoData as any);
  6731. }
  6732. if (sidecarData !== undefined) {
  6733. localVarFormParams.append('sidecarData', sidecarData as any);
  6734. }
  6735. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  6736. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6737. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6738. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6739. localVarRequestOptions.data = localVarFormParams;
  6740. return {
  6741. url: toPathString(localVarUrlObj),
  6742. options: localVarRequestOptions,
  6743. };
  6744. },
  6745. }
  6746. };
  6747. /**
  6748. * AssetApi - functional programming interface
  6749. * @export
  6750. */
  6751. export const AssetApiFp = function(configuration?: Configuration) {
  6752. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  6753. return {
  6754. /**
  6755. * Checks if assets exist by checksums
  6756. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6757. * @param {*} [options] Override http request option.
  6758. * @throws {RequiredError}
  6759. */
  6760. async bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  6761. const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUploadCheck(assetBulkUploadCheckDto, options);
  6762. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6763. },
  6764. /**
  6765. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6766. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6767. * @param {*} [options] Override http request option.
  6768. * @throws {RequiredError}
  6769. */
  6770. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  6771. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  6772. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6773. },
  6774. /**
  6775. *
  6776. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6777. * @param {*} [options] Override http request option.
  6778. * @throws {RequiredError}
  6779. */
  6780. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6781. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  6782. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6783. },
  6784. /**
  6785. *
  6786. * @param {AssetIdsDto} assetIdsDto
  6787. * @param {string} [key]
  6788. * @param {*} [options] Override http request option.
  6789. * @throws {RequiredError}
  6790. */
  6791. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6792. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  6793. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6794. },
  6795. /**
  6796. *
  6797. * @param {string} id
  6798. * @param {string} [key]
  6799. * @param {*} [options] Override http request option.
  6800. * @throws {RequiredError}
  6801. */
  6802. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6803. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  6804. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6805. },
  6806. /**
  6807. *
  6808. * @param {*} [options] Override http request option.
  6809. * @throws {RequiredError}
  6810. */
  6811. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6812. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  6813. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6814. },
  6815. /**
  6816. * Get all AssetEntity belong to the user
  6817. * @param {string} [userId]
  6818. * @param {boolean} [isFavorite]
  6819. * @param {boolean} [isArchived]
  6820. * @param {number} [skip]
  6821. * @param {string} [updatedAfter]
  6822. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6823. * @param {*} [options] Override http request option.
  6824. * @throws {RequiredError}
  6825. */
  6826. async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6827. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
  6828. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6829. },
  6830. /**
  6831. * Get a single asset\'s information
  6832. * @param {string} id
  6833. * @param {string} [key]
  6834. * @param {*} [options] Override http request option.
  6835. * @throws {RequiredError}
  6836. */
  6837. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  6838. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  6839. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6840. },
  6841. /**
  6842. *
  6843. * @param {*} [options] Override http request option.
  6844. * @throws {RequiredError}
  6845. */
  6846. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6847. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  6848. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6849. },
  6850. /**
  6851. *
  6852. * @param {boolean} [isArchived]
  6853. * @param {boolean} [isFavorite]
  6854. * @param {boolean} [isTrashed]
  6855. * @param {*} [options] Override http request option.
  6856. * @throws {RequiredError}
  6857. */
  6858. async getAssetStats(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  6859. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStats(isArchived, isFavorite, isTrashed, options);
  6860. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6861. },
  6862. /**
  6863. *
  6864. * @param {string} id
  6865. * @param {ThumbnailFormat} [format]
  6866. * @param {string} [key]
  6867. * @param {*} [options] Override http request option.
  6868. * @throws {RequiredError}
  6869. */
  6870. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6871. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  6872. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6873. },
  6874. /**
  6875. *
  6876. * @param {TimeBucketSize} size
  6877. * @param {string} timeBucket
  6878. * @param {string} [userId]
  6879. * @param {string} [albumId]
  6880. * @param {string} [personId]
  6881. * @param {boolean} [isArchived]
  6882. * @param {boolean} [isFavorite]
  6883. * @param {boolean} [isTrashed]
  6884. * @param {boolean} [withStacked]
  6885. * @param {string} [key]
  6886. * @param {*} [options] Override http request option.
  6887. * @throws {RequiredError}
  6888. */
  6889. 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>>> {
  6890. const localVarAxiosArgs = await localVarAxiosParamCreator.getByTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, key, options);
  6891. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6892. },
  6893. /**
  6894. *
  6895. * @param {*} [options] Override http request option.
  6896. * @throws {RequiredError}
  6897. */
  6898. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  6899. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  6900. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6901. },
  6902. /**
  6903. *
  6904. * @param {*} [options] Override http request option.
  6905. * @throws {RequiredError}
  6906. */
  6907. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  6908. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  6909. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6910. },
  6911. /**
  6912. *
  6913. * @param {DownloadInfoDto} downloadInfoDto
  6914. * @param {string} [key]
  6915. * @param {*} [options] Override http request option.
  6916. * @throws {RequiredError}
  6917. */
  6918. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  6919. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  6920. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6921. },
  6922. /**
  6923. *
  6924. * @param {boolean} [isArchived]
  6925. * @param {boolean} [isFavorite]
  6926. * @param {string} [fileCreatedAfter]
  6927. * @param {string} [fileCreatedBefore]
  6928. * @param {*} [options] Override http request option.
  6929. * @throws {RequiredError}
  6930. */
  6931. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  6932. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  6933. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6934. },
  6935. /**
  6936. *
  6937. * @param {number} day
  6938. * @param {number} month
  6939. * @param {*} [options] Override http request option.
  6940. * @throws {RequiredError}
  6941. */
  6942. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  6943. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  6944. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6945. },
  6946. /**
  6947. *
  6948. * @param {number} [count]
  6949. * @param {*} [options] Override http request option.
  6950. * @throws {RequiredError}
  6951. */
  6952. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6953. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  6954. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6955. },
  6956. /**
  6957. *
  6958. * @param {TimeBucketSize} size
  6959. * @param {string} [userId]
  6960. * @param {string} [albumId]
  6961. * @param {string} [personId]
  6962. * @param {boolean} [isArchived]
  6963. * @param {boolean} [isFavorite]
  6964. * @param {boolean} [isTrashed]
  6965. * @param {boolean} [withStacked]
  6966. * @param {string} [key]
  6967. * @param {*} [options] Override http request option.
  6968. * @throws {RequiredError}
  6969. */
  6970. 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>>> {
  6971. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, key, options);
  6972. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6973. },
  6974. /**
  6975. * Get all asset of a device that are in the database, ID only.
  6976. * @param {string} deviceId
  6977. * @param {*} [options] Override http request option.
  6978. * @throws {RequiredError}
  6979. */
  6980. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6981. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  6982. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6983. },
  6984. /**
  6985. *
  6986. * @param {ImportAssetDto} importAssetDto
  6987. * @param {*} [options] Override http request option.
  6988. * @throws {RequiredError}
  6989. */
  6990. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  6991. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  6992. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6993. },
  6994. /**
  6995. *
  6996. * @param {BulkIdsDto} bulkIdsDto
  6997. * @param {*} [options] Override http request option.
  6998. * @throws {RequiredError}
  6999. */
  7000. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7001. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  7002. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7003. },
  7004. /**
  7005. *
  7006. * @param {*} [options] Override http request option.
  7007. * @throws {RequiredError}
  7008. */
  7009. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7010. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7011. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7012. },
  7013. /**
  7014. *
  7015. * @param {AssetJobsDto} assetJobsDto
  7016. * @param {*} [options] Override http request option.
  7017. * @throws {RequiredError}
  7018. */
  7019. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7020. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7021. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7022. },
  7023. /**
  7024. *
  7025. * @param {SearchAssetDto} searchAssetDto
  7026. * @param {*} [options] Override http request option.
  7027. * @throws {RequiredError}
  7028. */
  7029. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7030. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  7031. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7032. },
  7033. /**
  7034. *
  7035. * @param {string} id
  7036. * @param {boolean} [isThumb]
  7037. * @param {boolean} [isWeb]
  7038. * @param {string} [key]
  7039. * @param {*} [options] Override http request option.
  7040. * @throws {RequiredError}
  7041. */
  7042. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7043. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7044. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7045. },
  7046. /**
  7047. *
  7048. * @param {string} id
  7049. * @param {UpdateAssetDto} updateAssetDto
  7050. * @param {*} [options] Override http request option.
  7051. * @throws {RequiredError}
  7052. */
  7053. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7054. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7055. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7056. },
  7057. /**
  7058. *
  7059. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7060. * @param {*} [options] Override http request option.
  7061. * @throws {RequiredError}
  7062. */
  7063. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7064. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7065. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7066. },
  7067. /**
  7068. *
  7069. * @param {UpdateStackParentDto} updateStackParentDto
  7070. * @param {*} [options] Override http request option.
  7071. * @throws {RequiredError}
  7072. */
  7073. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7074. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7075. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7076. },
  7077. /**
  7078. *
  7079. * @param {File} assetData
  7080. * @param {string} deviceAssetId
  7081. * @param {string} deviceId
  7082. * @param {string} fileCreatedAt
  7083. * @param {string} fileModifiedAt
  7084. * @param {boolean} isFavorite
  7085. * @param {string} [key]
  7086. * @param {string} [duration]
  7087. * @param {boolean} [isArchived]
  7088. * @param {boolean} [isExternal]
  7089. * @param {boolean} [isOffline]
  7090. * @param {boolean} [isReadOnly]
  7091. * @param {boolean} [isVisible]
  7092. * @param {string} [libraryId]
  7093. * @param {File} [livePhotoData]
  7094. * @param {File} [sidecarData]
  7095. * @param {*} [options] Override http request option.
  7096. * @throws {RequiredError}
  7097. */
  7098. 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>> {
  7099. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isExternal, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7100. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7101. },
  7102. }
  7103. };
  7104. /**
  7105. * AssetApi - factory interface
  7106. * @export
  7107. */
  7108. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7109. const localVarFp = AssetApiFp(configuration)
  7110. return {
  7111. /**
  7112. * Checks if assets exist by checksums
  7113. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  7114. * @param {*} [options] Override http request option.
  7115. * @throws {RequiredError}
  7116. */
  7117. bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7118. return localVarFp.bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7119. },
  7120. /**
  7121. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7122. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7123. * @param {*} [options] Override http request option.
  7124. * @throws {RequiredError}
  7125. */
  7126. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7127. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7128. },
  7129. /**
  7130. *
  7131. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7132. * @param {*} [options] Override http request option.
  7133. * @throws {RequiredError}
  7134. */
  7135. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7136. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7137. },
  7138. /**
  7139. *
  7140. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7141. * @param {*} [options] Override http request option.
  7142. * @throws {RequiredError}
  7143. */
  7144. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7145. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7146. },
  7147. /**
  7148. *
  7149. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7150. * @param {*} [options] Override http request option.
  7151. * @throws {RequiredError}
  7152. */
  7153. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7154. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7155. },
  7156. /**
  7157. *
  7158. * @param {*} [options] Override http request option.
  7159. * @throws {RequiredError}
  7160. */
  7161. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7162. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7163. },
  7164. /**
  7165. * Get all AssetEntity belong to the user
  7166. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7167. * @param {*} [options] Override http request option.
  7168. * @throws {RequiredError}
  7169. */
  7170. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7171. return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7172. },
  7173. /**
  7174. * Get a single asset\'s information
  7175. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7176. * @param {*} [options] Override http request option.
  7177. * @throws {RequiredError}
  7178. */
  7179. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7180. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7181. },
  7182. /**
  7183. *
  7184. * @param {*} [options] Override http request option.
  7185. * @throws {RequiredError}
  7186. */
  7187. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7188. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7189. },
  7190. /**
  7191. *
  7192. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  7193. * @param {*} [options] Override http request option.
  7194. * @throws {RequiredError}
  7195. */
  7196. getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7197. return localVarFp.getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7198. },
  7199. /**
  7200. *
  7201. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7202. * @param {*} [options] Override http request option.
  7203. * @throws {RequiredError}
  7204. */
  7205. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7206. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7207. },
  7208. /**
  7209. *
  7210. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  7211. * @param {*} [options] Override http request option.
  7212. * @throws {RequiredError}
  7213. */
  7214. getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7215. 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));
  7216. },
  7217. /**
  7218. *
  7219. * @param {*} [options] Override http request option.
  7220. * @throws {RequiredError}
  7221. */
  7222. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7223. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7224. },
  7225. /**
  7226. *
  7227. * @param {*} [options] Override http request option.
  7228. * @throws {RequiredError}
  7229. */
  7230. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7231. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7232. },
  7233. /**
  7234. *
  7235. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7236. * @param {*} [options] Override http request option.
  7237. * @throws {RequiredError}
  7238. */
  7239. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7240. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7241. },
  7242. /**
  7243. *
  7244. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7245. * @param {*} [options] Override http request option.
  7246. * @throws {RequiredError}
  7247. */
  7248. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7249. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7250. },
  7251. /**
  7252. *
  7253. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7254. * @param {*} [options] Override http request option.
  7255. * @throws {RequiredError}
  7256. */
  7257. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7258. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7259. },
  7260. /**
  7261. *
  7262. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7263. * @param {*} [options] Override http request option.
  7264. * @throws {RequiredError}
  7265. */
  7266. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7267. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7268. },
  7269. /**
  7270. *
  7271. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7272. * @param {*} [options] Override http request option.
  7273. * @throws {RequiredError}
  7274. */
  7275. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7276. 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));
  7277. },
  7278. /**
  7279. * Get all asset of a device that are in the database, ID only.
  7280. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7281. * @param {*} [options] Override http request option.
  7282. * @throws {RequiredError}
  7283. */
  7284. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7285. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7286. },
  7287. /**
  7288. *
  7289. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7290. * @param {*} [options] Override http request option.
  7291. * @throws {RequiredError}
  7292. */
  7293. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7294. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7295. },
  7296. /**
  7297. *
  7298. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7299. * @param {*} [options] Override http request option.
  7300. * @throws {RequiredError}
  7301. */
  7302. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7303. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7304. },
  7305. /**
  7306. *
  7307. * @param {*} [options] Override http request option.
  7308. * @throws {RequiredError}
  7309. */
  7310. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7311. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  7312. },
  7313. /**
  7314. *
  7315. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  7316. * @param {*} [options] Override http request option.
  7317. * @throws {RequiredError}
  7318. */
  7319. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7320. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  7321. },
  7322. /**
  7323. *
  7324. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  7325. * @param {*} [options] Override http request option.
  7326. * @throws {RequiredError}
  7327. */
  7328. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7329. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  7330. },
  7331. /**
  7332. *
  7333. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  7334. * @param {*} [options] Override http request option.
  7335. * @throws {RequiredError}
  7336. */
  7337. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7338. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  7339. },
  7340. /**
  7341. *
  7342. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  7343. * @param {*} [options] Override http request option.
  7344. * @throws {RequiredError}
  7345. */
  7346. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7347. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  7348. },
  7349. /**
  7350. *
  7351. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  7352. * @param {*} [options] Override http request option.
  7353. * @throws {RequiredError}
  7354. */
  7355. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7356. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  7357. },
  7358. /**
  7359. *
  7360. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  7361. * @param {*} [options] Override http request option.
  7362. * @throws {RequiredError}
  7363. */
  7364. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7365. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  7366. },
  7367. /**
  7368. *
  7369. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  7370. * @param {*} [options] Override http request option.
  7371. * @throws {RequiredError}
  7372. */
  7373. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7374. 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));
  7375. },
  7376. };
  7377. };
  7378. /**
  7379. * Request parameters for bulkUploadCheck operation in AssetApi.
  7380. * @export
  7381. * @interface AssetApiBulkUploadCheckRequest
  7382. */
  7383. export interface AssetApiBulkUploadCheckRequest {
  7384. /**
  7385. *
  7386. * @type {AssetBulkUploadCheckDto}
  7387. * @memberof AssetApiBulkUploadCheck
  7388. */
  7389. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  7390. }
  7391. /**
  7392. * Request parameters for checkExistingAssets operation in AssetApi.
  7393. * @export
  7394. * @interface AssetApiCheckExistingAssetsRequest
  7395. */
  7396. export interface AssetApiCheckExistingAssetsRequest {
  7397. /**
  7398. *
  7399. * @type {CheckExistingAssetsDto}
  7400. * @memberof AssetApiCheckExistingAssets
  7401. */
  7402. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  7403. }
  7404. /**
  7405. * Request parameters for deleteAssets operation in AssetApi.
  7406. * @export
  7407. * @interface AssetApiDeleteAssetsRequest
  7408. */
  7409. export interface AssetApiDeleteAssetsRequest {
  7410. /**
  7411. *
  7412. * @type {AssetBulkDeleteDto}
  7413. * @memberof AssetApiDeleteAssets
  7414. */
  7415. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  7416. }
  7417. /**
  7418. * Request parameters for downloadArchive operation in AssetApi.
  7419. * @export
  7420. * @interface AssetApiDownloadArchiveRequest
  7421. */
  7422. export interface AssetApiDownloadArchiveRequest {
  7423. /**
  7424. *
  7425. * @type {AssetIdsDto}
  7426. * @memberof AssetApiDownloadArchive
  7427. */
  7428. readonly assetIdsDto: AssetIdsDto
  7429. /**
  7430. *
  7431. * @type {string}
  7432. * @memberof AssetApiDownloadArchive
  7433. */
  7434. readonly key?: string
  7435. }
  7436. /**
  7437. * Request parameters for downloadFile operation in AssetApi.
  7438. * @export
  7439. * @interface AssetApiDownloadFileRequest
  7440. */
  7441. export interface AssetApiDownloadFileRequest {
  7442. /**
  7443. *
  7444. * @type {string}
  7445. * @memberof AssetApiDownloadFile
  7446. */
  7447. readonly id: string
  7448. /**
  7449. *
  7450. * @type {string}
  7451. * @memberof AssetApiDownloadFile
  7452. */
  7453. readonly key?: string
  7454. }
  7455. /**
  7456. * Request parameters for getAllAssets operation in AssetApi.
  7457. * @export
  7458. * @interface AssetApiGetAllAssetsRequest
  7459. */
  7460. export interface AssetApiGetAllAssetsRequest {
  7461. /**
  7462. *
  7463. * @type {string}
  7464. * @memberof AssetApiGetAllAssets
  7465. */
  7466. readonly userId?: string
  7467. /**
  7468. *
  7469. * @type {boolean}
  7470. * @memberof AssetApiGetAllAssets
  7471. */
  7472. readonly isFavorite?: boolean
  7473. /**
  7474. *
  7475. * @type {boolean}
  7476. * @memberof AssetApiGetAllAssets
  7477. */
  7478. readonly isArchived?: boolean
  7479. /**
  7480. *
  7481. * @type {number}
  7482. * @memberof AssetApiGetAllAssets
  7483. */
  7484. readonly skip?: number
  7485. /**
  7486. *
  7487. * @type {string}
  7488. * @memberof AssetApiGetAllAssets
  7489. */
  7490. readonly updatedAfter?: string
  7491. /**
  7492. * ETag of data already cached on the client
  7493. * @type {string}
  7494. * @memberof AssetApiGetAllAssets
  7495. */
  7496. readonly ifNoneMatch?: string
  7497. }
  7498. /**
  7499. * Request parameters for getAssetById operation in AssetApi.
  7500. * @export
  7501. * @interface AssetApiGetAssetByIdRequest
  7502. */
  7503. export interface AssetApiGetAssetByIdRequest {
  7504. /**
  7505. *
  7506. * @type {string}
  7507. * @memberof AssetApiGetAssetById
  7508. */
  7509. readonly id: string
  7510. /**
  7511. *
  7512. * @type {string}
  7513. * @memberof AssetApiGetAssetById
  7514. */
  7515. readonly key?: string
  7516. }
  7517. /**
  7518. * Request parameters for getAssetStats operation in AssetApi.
  7519. * @export
  7520. * @interface AssetApiGetAssetStatsRequest
  7521. */
  7522. export interface AssetApiGetAssetStatsRequest {
  7523. /**
  7524. *
  7525. * @type {boolean}
  7526. * @memberof AssetApiGetAssetStats
  7527. */
  7528. readonly isArchived?: boolean
  7529. /**
  7530. *
  7531. * @type {boolean}
  7532. * @memberof AssetApiGetAssetStats
  7533. */
  7534. readonly isFavorite?: boolean
  7535. /**
  7536. *
  7537. * @type {boolean}
  7538. * @memberof AssetApiGetAssetStats
  7539. */
  7540. readonly isTrashed?: boolean
  7541. }
  7542. /**
  7543. * Request parameters for getAssetThumbnail operation in AssetApi.
  7544. * @export
  7545. * @interface AssetApiGetAssetThumbnailRequest
  7546. */
  7547. export interface AssetApiGetAssetThumbnailRequest {
  7548. /**
  7549. *
  7550. * @type {string}
  7551. * @memberof AssetApiGetAssetThumbnail
  7552. */
  7553. readonly id: string
  7554. /**
  7555. *
  7556. * @type {ThumbnailFormat}
  7557. * @memberof AssetApiGetAssetThumbnail
  7558. */
  7559. readonly format?: ThumbnailFormat
  7560. /**
  7561. *
  7562. * @type {string}
  7563. * @memberof AssetApiGetAssetThumbnail
  7564. */
  7565. readonly key?: string
  7566. }
  7567. /**
  7568. * Request parameters for getByTimeBucket operation in AssetApi.
  7569. * @export
  7570. * @interface AssetApiGetByTimeBucketRequest
  7571. */
  7572. export interface AssetApiGetByTimeBucketRequest {
  7573. /**
  7574. *
  7575. * @type {TimeBucketSize}
  7576. * @memberof AssetApiGetByTimeBucket
  7577. */
  7578. readonly size: TimeBucketSize
  7579. /**
  7580. *
  7581. * @type {string}
  7582. * @memberof AssetApiGetByTimeBucket
  7583. */
  7584. readonly timeBucket: string
  7585. /**
  7586. *
  7587. * @type {string}
  7588. * @memberof AssetApiGetByTimeBucket
  7589. */
  7590. readonly userId?: string
  7591. /**
  7592. *
  7593. * @type {string}
  7594. * @memberof AssetApiGetByTimeBucket
  7595. */
  7596. readonly albumId?: string
  7597. /**
  7598. *
  7599. * @type {string}
  7600. * @memberof AssetApiGetByTimeBucket
  7601. */
  7602. readonly personId?: string
  7603. /**
  7604. *
  7605. * @type {boolean}
  7606. * @memberof AssetApiGetByTimeBucket
  7607. */
  7608. readonly isArchived?: boolean
  7609. /**
  7610. *
  7611. * @type {boolean}
  7612. * @memberof AssetApiGetByTimeBucket
  7613. */
  7614. readonly isFavorite?: boolean
  7615. /**
  7616. *
  7617. * @type {boolean}
  7618. * @memberof AssetApiGetByTimeBucket
  7619. */
  7620. readonly isTrashed?: boolean
  7621. /**
  7622. *
  7623. * @type {boolean}
  7624. * @memberof AssetApiGetByTimeBucket
  7625. */
  7626. readonly withStacked?: boolean
  7627. /**
  7628. *
  7629. * @type {string}
  7630. * @memberof AssetApiGetByTimeBucket
  7631. */
  7632. readonly key?: string
  7633. }
  7634. /**
  7635. * Request parameters for getDownloadInfo operation in AssetApi.
  7636. * @export
  7637. * @interface AssetApiGetDownloadInfoRequest
  7638. */
  7639. export interface AssetApiGetDownloadInfoRequest {
  7640. /**
  7641. *
  7642. * @type {DownloadInfoDto}
  7643. * @memberof AssetApiGetDownloadInfo
  7644. */
  7645. readonly downloadInfoDto: DownloadInfoDto
  7646. /**
  7647. *
  7648. * @type {string}
  7649. * @memberof AssetApiGetDownloadInfo
  7650. */
  7651. readonly key?: string
  7652. }
  7653. /**
  7654. * Request parameters for getMapMarkers operation in AssetApi.
  7655. * @export
  7656. * @interface AssetApiGetMapMarkersRequest
  7657. */
  7658. export interface AssetApiGetMapMarkersRequest {
  7659. /**
  7660. *
  7661. * @type {boolean}
  7662. * @memberof AssetApiGetMapMarkers
  7663. */
  7664. readonly isArchived?: boolean
  7665. /**
  7666. *
  7667. * @type {boolean}
  7668. * @memberof AssetApiGetMapMarkers
  7669. */
  7670. readonly isFavorite?: boolean
  7671. /**
  7672. *
  7673. * @type {string}
  7674. * @memberof AssetApiGetMapMarkers
  7675. */
  7676. readonly fileCreatedAfter?: string
  7677. /**
  7678. *
  7679. * @type {string}
  7680. * @memberof AssetApiGetMapMarkers
  7681. */
  7682. readonly fileCreatedBefore?: string
  7683. }
  7684. /**
  7685. * Request parameters for getMemoryLane operation in AssetApi.
  7686. * @export
  7687. * @interface AssetApiGetMemoryLaneRequest
  7688. */
  7689. export interface AssetApiGetMemoryLaneRequest {
  7690. /**
  7691. *
  7692. * @type {number}
  7693. * @memberof AssetApiGetMemoryLane
  7694. */
  7695. readonly day: number
  7696. /**
  7697. *
  7698. * @type {number}
  7699. * @memberof AssetApiGetMemoryLane
  7700. */
  7701. readonly month: number
  7702. }
  7703. /**
  7704. * Request parameters for getRandom operation in AssetApi.
  7705. * @export
  7706. * @interface AssetApiGetRandomRequest
  7707. */
  7708. export interface AssetApiGetRandomRequest {
  7709. /**
  7710. *
  7711. * @type {number}
  7712. * @memberof AssetApiGetRandom
  7713. */
  7714. readonly count?: number
  7715. }
  7716. /**
  7717. * Request parameters for getTimeBuckets operation in AssetApi.
  7718. * @export
  7719. * @interface AssetApiGetTimeBucketsRequest
  7720. */
  7721. export interface AssetApiGetTimeBucketsRequest {
  7722. /**
  7723. *
  7724. * @type {TimeBucketSize}
  7725. * @memberof AssetApiGetTimeBuckets
  7726. */
  7727. readonly size: TimeBucketSize
  7728. /**
  7729. *
  7730. * @type {string}
  7731. * @memberof AssetApiGetTimeBuckets
  7732. */
  7733. readonly userId?: string
  7734. /**
  7735. *
  7736. * @type {string}
  7737. * @memberof AssetApiGetTimeBuckets
  7738. */
  7739. readonly albumId?: string
  7740. /**
  7741. *
  7742. * @type {string}
  7743. * @memberof AssetApiGetTimeBuckets
  7744. */
  7745. readonly personId?: string
  7746. /**
  7747. *
  7748. * @type {boolean}
  7749. * @memberof AssetApiGetTimeBuckets
  7750. */
  7751. readonly isArchived?: boolean
  7752. /**
  7753. *
  7754. * @type {boolean}
  7755. * @memberof AssetApiGetTimeBuckets
  7756. */
  7757. readonly isFavorite?: boolean
  7758. /**
  7759. *
  7760. * @type {boolean}
  7761. * @memberof AssetApiGetTimeBuckets
  7762. */
  7763. readonly isTrashed?: boolean
  7764. /**
  7765. *
  7766. * @type {boolean}
  7767. * @memberof AssetApiGetTimeBuckets
  7768. */
  7769. readonly withStacked?: boolean
  7770. /**
  7771. *
  7772. * @type {string}
  7773. * @memberof AssetApiGetTimeBuckets
  7774. */
  7775. readonly key?: string
  7776. }
  7777. /**
  7778. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  7779. * @export
  7780. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  7781. */
  7782. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  7783. /**
  7784. *
  7785. * @type {string}
  7786. * @memberof AssetApiGetUserAssetsByDeviceId
  7787. */
  7788. readonly deviceId: string
  7789. }
  7790. /**
  7791. * Request parameters for importFile operation in AssetApi.
  7792. * @export
  7793. * @interface AssetApiImportFileRequest
  7794. */
  7795. export interface AssetApiImportFileRequest {
  7796. /**
  7797. *
  7798. * @type {ImportAssetDto}
  7799. * @memberof AssetApiImportFile
  7800. */
  7801. readonly importAssetDto: ImportAssetDto
  7802. }
  7803. /**
  7804. * Request parameters for restoreAssets operation in AssetApi.
  7805. * @export
  7806. * @interface AssetApiRestoreAssetsRequest
  7807. */
  7808. export interface AssetApiRestoreAssetsRequest {
  7809. /**
  7810. *
  7811. * @type {BulkIdsDto}
  7812. * @memberof AssetApiRestoreAssets
  7813. */
  7814. readonly bulkIdsDto: BulkIdsDto
  7815. }
  7816. /**
  7817. * Request parameters for runAssetJobs operation in AssetApi.
  7818. * @export
  7819. * @interface AssetApiRunAssetJobsRequest
  7820. */
  7821. export interface AssetApiRunAssetJobsRequest {
  7822. /**
  7823. *
  7824. * @type {AssetJobsDto}
  7825. * @memberof AssetApiRunAssetJobs
  7826. */
  7827. readonly assetJobsDto: AssetJobsDto
  7828. }
  7829. /**
  7830. * Request parameters for searchAsset operation in AssetApi.
  7831. * @export
  7832. * @interface AssetApiSearchAssetRequest
  7833. */
  7834. export interface AssetApiSearchAssetRequest {
  7835. /**
  7836. *
  7837. * @type {SearchAssetDto}
  7838. * @memberof AssetApiSearchAsset
  7839. */
  7840. readonly searchAssetDto: SearchAssetDto
  7841. }
  7842. /**
  7843. * Request parameters for serveFile operation in AssetApi.
  7844. * @export
  7845. * @interface AssetApiServeFileRequest
  7846. */
  7847. export interface AssetApiServeFileRequest {
  7848. /**
  7849. *
  7850. * @type {string}
  7851. * @memberof AssetApiServeFile
  7852. */
  7853. readonly id: string
  7854. /**
  7855. *
  7856. * @type {boolean}
  7857. * @memberof AssetApiServeFile
  7858. */
  7859. readonly isThumb?: boolean
  7860. /**
  7861. *
  7862. * @type {boolean}
  7863. * @memberof AssetApiServeFile
  7864. */
  7865. readonly isWeb?: boolean
  7866. /**
  7867. *
  7868. * @type {string}
  7869. * @memberof AssetApiServeFile
  7870. */
  7871. readonly key?: string
  7872. }
  7873. /**
  7874. * Request parameters for updateAsset operation in AssetApi.
  7875. * @export
  7876. * @interface AssetApiUpdateAssetRequest
  7877. */
  7878. export interface AssetApiUpdateAssetRequest {
  7879. /**
  7880. *
  7881. * @type {string}
  7882. * @memberof AssetApiUpdateAsset
  7883. */
  7884. readonly id: string
  7885. /**
  7886. *
  7887. * @type {UpdateAssetDto}
  7888. * @memberof AssetApiUpdateAsset
  7889. */
  7890. readonly updateAssetDto: UpdateAssetDto
  7891. }
  7892. /**
  7893. * Request parameters for updateAssets operation in AssetApi.
  7894. * @export
  7895. * @interface AssetApiUpdateAssetsRequest
  7896. */
  7897. export interface AssetApiUpdateAssetsRequest {
  7898. /**
  7899. *
  7900. * @type {AssetBulkUpdateDto}
  7901. * @memberof AssetApiUpdateAssets
  7902. */
  7903. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  7904. }
  7905. /**
  7906. * Request parameters for updateStackParent operation in AssetApi.
  7907. * @export
  7908. * @interface AssetApiUpdateStackParentRequest
  7909. */
  7910. export interface AssetApiUpdateStackParentRequest {
  7911. /**
  7912. *
  7913. * @type {UpdateStackParentDto}
  7914. * @memberof AssetApiUpdateStackParent
  7915. */
  7916. readonly updateStackParentDto: UpdateStackParentDto
  7917. }
  7918. /**
  7919. * Request parameters for uploadFile operation in AssetApi.
  7920. * @export
  7921. * @interface AssetApiUploadFileRequest
  7922. */
  7923. export interface AssetApiUploadFileRequest {
  7924. /**
  7925. *
  7926. * @type {File}
  7927. * @memberof AssetApiUploadFile
  7928. */
  7929. readonly assetData: File
  7930. /**
  7931. *
  7932. * @type {string}
  7933. * @memberof AssetApiUploadFile
  7934. */
  7935. readonly deviceAssetId: string
  7936. /**
  7937. *
  7938. * @type {string}
  7939. * @memberof AssetApiUploadFile
  7940. */
  7941. readonly deviceId: string
  7942. /**
  7943. *
  7944. * @type {string}
  7945. * @memberof AssetApiUploadFile
  7946. */
  7947. readonly fileCreatedAt: string
  7948. /**
  7949. *
  7950. * @type {string}
  7951. * @memberof AssetApiUploadFile
  7952. */
  7953. readonly fileModifiedAt: string
  7954. /**
  7955. *
  7956. * @type {boolean}
  7957. * @memberof AssetApiUploadFile
  7958. */
  7959. readonly isFavorite: boolean
  7960. /**
  7961. *
  7962. * @type {string}
  7963. * @memberof AssetApiUploadFile
  7964. */
  7965. readonly key?: string
  7966. /**
  7967. *
  7968. * @type {string}
  7969. * @memberof AssetApiUploadFile
  7970. */
  7971. readonly duration?: string
  7972. /**
  7973. *
  7974. * @type {boolean}
  7975. * @memberof AssetApiUploadFile
  7976. */
  7977. readonly isArchived?: boolean
  7978. /**
  7979. *
  7980. * @type {boolean}
  7981. * @memberof AssetApiUploadFile
  7982. */
  7983. readonly isExternal?: boolean
  7984. /**
  7985. *
  7986. * @type {boolean}
  7987. * @memberof AssetApiUploadFile
  7988. */
  7989. readonly isOffline?: boolean
  7990. /**
  7991. *
  7992. * @type {boolean}
  7993. * @memberof AssetApiUploadFile
  7994. */
  7995. readonly isReadOnly?: boolean
  7996. /**
  7997. *
  7998. * @type {boolean}
  7999. * @memberof AssetApiUploadFile
  8000. */
  8001. readonly isVisible?: boolean
  8002. /**
  8003. *
  8004. * @type {string}
  8005. * @memberof AssetApiUploadFile
  8006. */
  8007. readonly libraryId?: string
  8008. /**
  8009. *
  8010. * @type {File}
  8011. * @memberof AssetApiUploadFile
  8012. */
  8013. readonly livePhotoData?: File
  8014. /**
  8015. *
  8016. * @type {File}
  8017. * @memberof AssetApiUploadFile
  8018. */
  8019. readonly sidecarData?: File
  8020. }
  8021. /**
  8022. * AssetApi - object-oriented interface
  8023. * @export
  8024. * @class AssetApi
  8025. * @extends {BaseAPI}
  8026. */
  8027. export class AssetApi extends BaseAPI {
  8028. /**
  8029. * Checks if assets exist by checksums
  8030. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  8031. * @param {*} [options] Override http request option.
  8032. * @throws {RequiredError}
  8033. * @memberof AssetApi
  8034. */
  8035. public bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig) {
  8036. return AssetApiFp(this.configuration).bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  8037. }
  8038. /**
  8039. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  8040. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  8041. * @param {*} [options] Override http request option.
  8042. * @throws {RequiredError}
  8043. * @memberof AssetApi
  8044. */
  8045. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  8046. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  8047. }
  8048. /**
  8049. *
  8050. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  8051. * @param {*} [options] Override http request option.
  8052. * @throws {RequiredError}
  8053. * @memberof AssetApi
  8054. */
  8055. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  8056. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  8057. }
  8058. /**
  8059. *
  8060. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  8061. * @param {*} [options] Override http request option.
  8062. * @throws {RequiredError}
  8063. * @memberof AssetApi
  8064. */
  8065. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  8066. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8067. }
  8068. /**
  8069. *
  8070. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  8071. * @param {*} [options] Override http request option.
  8072. * @throws {RequiredError}
  8073. * @memberof AssetApi
  8074. */
  8075. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  8076. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8077. }
  8078. /**
  8079. *
  8080. * @param {*} [options] Override http request option.
  8081. * @throws {RequiredError}
  8082. * @memberof AssetApi
  8083. */
  8084. public emptyTrash(options?: AxiosRequestConfig) {
  8085. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  8086. }
  8087. /**
  8088. * Get all AssetEntity belong to the user
  8089. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  8090. * @param {*} [options] Override http request option.
  8091. * @throws {RequiredError}
  8092. * @memberof AssetApi
  8093. */
  8094. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  8095. 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));
  8096. }
  8097. /**
  8098. * Get a single asset\'s information
  8099. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8100. * @param {*} [options] Override http request option.
  8101. * @throws {RequiredError}
  8102. * @memberof AssetApi
  8103. */
  8104. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  8105. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8106. }
  8107. /**
  8108. *
  8109. * @param {*} [options] Override http request option.
  8110. * @throws {RequiredError}
  8111. * @memberof AssetApi
  8112. */
  8113. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  8114. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  8115. }
  8116. /**
  8117. *
  8118. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  8119. * @param {*} [options] Override http request option.
  8120. * @throws {RequiredError}
  8121. * @memberof AssetApi
  8122. */
  8123. public getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig) {
  8124. return AssetApiFp(this.configuration).getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  8125. }
  8126. /**
  8127. *
  8128. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8129. * @param {*} [options] Override http request option.
  8130. * @throws {RequiredError}
  8131. * @memberof AssetApi
  8132. */
  8133. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  8134. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8135. }
  8136. /**
  8137. *
  8138. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  8139. * @param {*} [options] Override http request option.
  8140. * @throws {RequiredError}
  8141. * @memberof AssetApi
  8142. */
  8143. public getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig) {
  8144. 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));
  8145. }
  8146. /**
  8147. *
  8148. * @param {*} [options] Override http request option.
  8149. * @throws {RequiredError}
  8150. * @memberof AssetApi
  8151. */
  8152. public getCuratedLocations(options?: AxiosRequestConfig) {
  8153. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  8154. }
  8155. /**
  8156. *
  8157. * @param {*} [options] Override http request option.
  8158. * @throws {RequiredError}
  8159. * @memberof AssetApi
  8160. */
  8161. public getCuratedObjects(options?: AxiosRequestConfig) {
  8162. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  8163. }
  8164. /**
  8165. *
  8166. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8167. * @param {*} [options] Override http request option.
  8168. * @throws {RequiredError}
  8169. * @memberof AssetApi
  8170. */
  8171. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  8172. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8173. }
  8174. /**
  8175. *
  8176. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8177. * @param {*} [options] Override http request option.
  8178. * @throws {RequiredError}
  8179. * @memberof AssetApi
  8180. */
  8181. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  8182. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  8183. }
  8184. /**
  8185. *
  8186. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8187. * @param {*} [options] Override http request option.
  8188. * @throws {RequiredError}
  8189. * @memberof AssetApi
  8190. */
  8191. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  8192. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  8193. }
  8194. /**
  8195. *
  8196. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8197. * @param {*} [options] Override http request option.
  8198. * @throws {RequiredError}
  8199. * @memberof AssetApi
  8200. */
  8201. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  8202. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  8203. }
  8204. /**
  8205. *
  8206. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8207. * @param {*} [options] Override http request option.
  8208. * @throws {RequiredError}
  8209. * @memberof AssetApi
  8210. */
  8211. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  8212. 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));
  8213. }
  8214. /**
  8215. * Get all asset of a device that are in the database, ID only.
  8216. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8217. * @param {*} [options] Override http request option.
  8218. * @throws {RequiredError}
  8219. * @memberof AssetApi
  8220. */
  8221. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  8222. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  8223. }
  8224. /**
  8225. *
  8226. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  8227. * @param {*} [options] Override http request option.
  8228. * @throws {RequiredError}
  8229. * @memberof AssetApi
  8230. */
  8231. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  8232. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8233. }
  8234. /**
  8235. *
  8236. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8237. * @param {*} [options] Override http request option.
  8238. * @throws {RequiredError}
  8239. * @memberof AssetApi
  8240. */
  8241. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8242. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8243. }
  8244. /**
  8245. *
  8246. * @param {*} [options] Override http request option.
  8247. * @throws {RequiredError}
  8248. * @memberof AssetApi
  8249. */
  8250. public restoreTrash(options?: AxiosRequestConfig) {
  8251. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8252. }
  8253. /**
  8254. *
  8255. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8256. * @param {*} [options] Override http request option.
  8257. * @throws {RequiredError}
  8258. * @memberof AssetApi
  8259. */
  8260. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8261. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8262. }
  8263. /**
  8264. *
  8265. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8266. * @param {*} [options] Override http request option.
  8267. * @throws {RequiredError}
  8268. * @memberof AssetApi
  8269. */
  8270. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8271. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8272. }
  8273. /**
  8274. *
  8275. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8276. * @param {*} [options] Override http request option.
  8277. * @throws {RequiredError}
  8278. * @memberof AssetApi
  8279. */
  8280. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8281. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8282. }
  8283. /**
  8284. *
  8285. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8286. * @param {*} [options] Override http request option.
  8287. * @throws {RequiredError}
  8288. * @memberof AssetApi
  8289. */
  8290. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  8291. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  8292. }
  8293. /**
  8294. *
  8295. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8296. * @param {*} [options] Override http request option.
  8297. * @throws {RequiredError}
  8298. * @memberof AssetApi
  8299. */
  8300. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  8301. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8302. }
  8303. /**
  8304. *
  8305. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8306. * @param {*} [options] Override http request option.
  8307. * @throws {RequiredError}
  8308. * @memberof AssetApi
  8309. */
  8310. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  8311. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  8312. }
  8313. /**
  8314. *
  8315. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8316. * @param {*} [options] Override http request option.
  8317. * @throws {RequiredError}
  8318. * @memberof AssetApi
  8319. */
  8320. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  8321. 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));
  8322. }
  8323. }
  8324. /**
  8325. * AuditApi - axios parameter creator
  8326. * @export
  8327. */
  8328. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  8329. return {
  8330. /**
  8331. *
  8332. * @param {FileReportFixDto} fileReportFixDto
  8333. * @param {*} [options] Override http request option.
  8334. * @throws {RequiredError}
  8335. */
  8336. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8337. // verify required parameter 'fileReportFixDto' is not null or undefined
  8338. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  8339. const localVarPath = `/audit/file-report/fix`;
  8340. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8341. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8342. let baseOptions;
  8343. if (configuration) {
  8344. baseOptions = configuration.baseOptions;
  8345. }
  8346. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8347. const localVarHeaderParameter = {} as any;
  8348. const localVarQueryParameter = {} as any;
  8349. // authentication cookie required
  8350. // authentication api_key required
  8351. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8352. // authentication bearer required
  8353. // http bearer authentication required
  8354. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8355. localVarHeaderParameter['Content-Type'] = 'application/json';
  8356. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8357. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8358. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8359. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  8360. return {
  8361. url: toPathString(localVarUrlObj),
  8362. options: localVarRequestOptions,
  8363. };
  8364. },
  8365. /**
  8366. *
  8367. * @param {EntityType} entityType
  8368. * @param {string} after
  8369. * @param {string} [userId]
  8370. * @param {*} [options] Override http request option.
  8371. * @throws {RequiredError}
  8372. */
  8373. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8374. // verify required parameter 'entityType' is not null or undefined
  8375. assertParamExists('getAuditDeletes', 'entityType', entityType)
  8376. // verify required parameter 'after' is not null or undefined
  8377. assertParamExists('getAuditDeletes', 'after', after)
  8378. const localVarPath = `/audit/deletes`;
  8379. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8380. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8381. let baseOptions;
  8382. if (configuration) {
  8383. baseOptions = configuration.baseOptions;
  8384. }
  8385. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8386. const localVarHeaderParameter = {} as any;
  8387. const localVarQueryParameter = {} as any;
  8388. // authentication cookie required
  8389. // authentication api_key required
  8390. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8391. // authentication bearer required
  8392. // http bearer authentication required
  8393. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8394. if (entityType !== undefined) {
  8395. localVarQueryParameter['entityType'] = entityType;
  8396. }
  8397. if (userId !== undefined) {
  8398. localVarQueryParameter['userId'] = userId;
  8399. }
  8400. if (after !== undefined) {
  8401. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  8402. (after as any).toISOString() :
  8403. after;
  8404. }
  8405. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8406. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8407. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8408. return {
  8409. url: toPathString(localVarUrlObj),
  8410. options: localVarRequestOptions,
  8411. };
  8412. },
  8413. /**
  8414. *
  8415. * @param {*} [options] Override http request option.
  8416. * @throws {RequiredError}
  8417. */
  8418. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8419. const localVarPath = `/audit/file-report`;
  8420. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8421. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8422. let baseOptions;
  8423. if (configuration) {
  8424. baseOptions = configuration.baseOptions;
  8425. }
  8426. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8427. const localVarHeaderParameter = {} as any;
  8428. const localVarQueryParameter = {} as any;
  8429. // authentication cookie required
  8430. // authentication api_key required
  8431. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8432. // authentication bearer required
  8433. // http bearer authentication required
  8434. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8435. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8436. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8437. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8438. return {
  8439. url: toPathString(localVarUrlObj),
  8440. options: localVarRequestOptions,
  8441. };
  8442. },
  8443. /**
  8444. *
  8445. * @param {FileChecksumDto} fileChecksumDto
  8446. * @param {*} [options] Override http request option.
  8447. * @throws {RequiredError}
  8448. */
  8449. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8450. // verify required parameter 'fileChecksumDto' is not null or undefined
  8451. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  8452. const localVarPath = `/audit/file-report/checksum`;
  8453. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8454. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8455. let baseOptions;
  8456. if (configuration) {
  8457. baseOptions = configuration.baseOptions;
  8458. }
  8459. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8460. const localVarHeaderParameter = {} as any;
  8461. const localVarQueryParameter = {} as any;
  8462. // authentication cookie required
  8463. // authentication api_key required
  8464. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8465. // authentication bearer required
  8466. // http bearer authentication required
  8467. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8468. localVarHeaderParameter['Content-Type'] = 'application/json';
  8469. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8470. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8471. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8472. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  8473. return {
  8474. url: toPathString(localVarUrlObj),
  8475. options: localVarRequestOptions,
  8476. };
  8477. },
  8478. }
  8479. };
  8480. /**
  8481. * AuditApi - functional programming interface
  8482. * @export
  8483. */
  8484. export const AuditApiFp = function(configuration?: Configuration) {
  8485. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  8486. return {
  8487. /**
  8488. *
  8489. * @param {FileReportFixDto} fileReportFixDto
  8490. * @param {*} [options] Override http request option.
  8491. * @throws {RequiredError}
  8492. */
  8493. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8494. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  8495. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8496. },
  8497. /**
  8498. *
  8499. * @param {EntityType} entityType
  8500. * @param {string} after
  8501. * @param {string} [userId]
  8502. * @param {*} [options] Override http request option.
  8503. * @throws {RequiredError}
  8504. */
  8505. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  8506. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  8507. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8508. },
  8509. /**
  8510. *
  8511. * @param {*} [options] Override http request option.
  8512. * @throws {RequiredError}
  8513. */
  8514. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  8515. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  8516. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8517. },
  8518. /**
  8519. *
  8520. * @param {FileChecksumDto} fileChecksumDto
  8521. * @param {*} [options] Override http request option.
  8522. * @throws {RequiredError}
  8523. */
  8524. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  8525. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  8526. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8527. },
  8528. }
  8529. };
  8530. /**
  8531. * AuditApi - factory interface
  8532. * @export
  8533. */
  8534. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8535. const localVarFp = AuditApiFp(configuration)
  8536. return {
  8537. /**
  8538. *
  8539. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8540. * @param {*} [options] Override http request option.
  8541. * @throws {RequiredError}
  8542. */
  8543. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8544. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  8545. },
  8546. /**
  8547. *
  8548. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8549. * @param {*} [options] Override http request option.
  8550. * @throws {RequiredError}
  8551. */
  8552. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  8553. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  8554. },
  8555. /**
  8556. *
  8557. * @param {*} [options] Override http request option.
  8558. * @throws {RequiredError}
  8559. */
  8560. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  8561. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  8562. },
  8563. /**
  8564. *
  8565. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8566. * @param {*} [options] Override http request option.
  8567. * @throws {RequiredError}
  8568. */
  8569. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  8570. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  8571. },
  8572. };
  8573. };
  8574. /**
  8575. * Request parameters for fixAuditFiles operation in AuditApi.
  8576. * @export
  8577. * @interface AuditApiFixAuditFilesRequest
  8578. */
  8579. export interface AuditApiFixAuditFilesRequest {
  8580. /**
  8581. *
  8582. * @type {FileReportFixDto}
  8583. * @memberof AuditApiFixAuditFiles
  8584. */
  8585. readonly fileReportFixDto: FileReportFixDto
  8586. }
  8587. /**
  8588. * Request parameters for getAuditDeletes operation in AuditApi.
  8589. * @export
  8590. * @interface AuditApiGetAuditDeletesRequest
  8591. */
  8592. export interface AuditApiGetAuditDeletesRequest {
  8593. /**
  8594. *
  8595. * @type {EntityType}
  8596. * @memberof AuditApiGetAuditDeletes
  8597. */
  8598. readonly entityType: EntityType
  8599. /**
  8600. *
  8601. * @type {string}
  8602. * @memberof AuditApiGetAuditDeletes
  8603. */
  8604. readonly after: string
  8605. /**
  8606. *
  8607. * @type {string}
  8608. * @memberof AuditApiGetAuditDeletes
  8609. */
  8610. readonly userId?: string
  8611. }
  8612. /**
  8613. * Request parameters for getFileChecksums operation in AuditApi.
  8614. * @export
  8615. * @interface AuditApiGetFileChecksumsRequest
  8616. */
  8617. export interface AuditApiGetFileChecksumsRequest {
  8618. /**
  8619. *
  8620. * @type {FileChecksumDto}
  8621. * @memberof AuditApiGetFileChecksums
  8622. */
  8623. readonly fileChecksumDto: FileChecksumDto
  8624. }
  8625. /**
  8626. * AuditApi - object-oriented interface
  8627. * @export
  8628. * @class AuditApi
  8629. * @extends {BaseAPI}
  8630. */
  8631. export class AuditApi extends BaseAPI {
  8632. /**
  8633. *
  8634. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8635. * @param {*} [options] Override http request option.
  8636. * @throws {RequiredError}
  8637. * @memberof AuditApi
  8638. */
  8639. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  8640. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  8641. }
  8642. /**
  8643. *
  8644. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8645. * @param {*} [options] Override http request option.
  8646. * @throws {RequiredError}
  8647. * @memberof AuditApi
  8648. */
  8649. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  8650. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  8651. }
  8652. /**
  8653. *
  8654. * @param {*} [options] Override http request option.
  8655. * @throws {RequiredError}
  8656. * @memberof AuditApi
  8657. */
  8658. public getAuditFiles(options?: AxiosRequestConfig) {
  8659. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  8660. }
  8661. /**
  8662. *
  8663. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8664. * @param {*} [options] Override http request option.
  8665. * @throws {RequiredError}
  8666. * @memberof AuditApi
  8667. */
  8668. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  8669. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  8670. }
  8671. }
  8672. /**
  8673. * AuthenticationApi - axios parameter creator
  8674. * @export
  8675. */
  8676. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  8677. return {
  8678. /**
  8679. *
  8680. * @param {SignUpDto} signUpDto
  8681. * @param {*} [options] Override http request option.
  8682. * @throws {RequiredError}
  8683. */
  8684. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8685. // verify required parameter 'signUpDto' is not null or undefined
  8686. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  8687. const localVarPath = `/auth/admin-sign-up`;
  8688. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8689. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8690. let baseOptions;
  8691. if (configuration) {
  8692. baseOptions = configuration.baseOptions;
  8693. }
  8694. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8695. const localVarHeaderParameter = {} as any;
  8696. const localVarQueryParameter = {} as any;
  8697. localVarHeaderParameter['Content-Type'] = 'application/json';
  8698. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8699. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8700. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8701. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  8702. return {
  8703. url: toPathString(localVarUrlObj),
  8704. options: localVarRequestOptions,
  8705. };
  8706. },
  8707. /**
  8708. *
  8709. * @param {ChangePasswordDto} changePasswordDto
  8710. * @param {*} [options] Override http request option.
  8711. * @throws {RequiredError}
  8712. */
  8713. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8714. // verify required parameter 'changePasswordDto' is not null or undefined
  8715. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  8716. const localVarPath = `/auth/change-password`;
  8717. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8718. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8719. let baseOptions;
  8720. if (configuration) {
  8721. baseOptions = configuration.baseOptions;
  8722. }
  8723. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8724. const localVarHeaderParameter = {} as any;
  8725. const localVarQueryParameter = {} as any;
  8726. // authentication cookie required
  8727. // authentication api_key required
  8728. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8729. // authentication bearer required
  8730. // http bearer authentication required
  8731. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8732. localVarHeaderParameter['Content-Type'] = 'application/json';
  8733. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8734. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8735. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8736. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  8737. return {
  8738. url: toPathString(localVarUrlObj),
  8739. options: localVarRequestOptions,
  8740. };
  8741. },
  8742. /**
  8743. *
  8744. * @param {*} [options] Override http request option.
  8745. * @throws {RequiredError}
  8746. */
  8747. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8748. const localVarPath = `/auth/devices`;
  8749. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8750. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8751. let baseOptions;
  8752. if (configuration) {
  8753. baseOptions = configuration.baseOptions;
  8754. }
  8755. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8756. const localVarHeaderParameter = {} as any;
  8757. const localVarQueryParameter = {} as any;
  8758. // authentication cookie required
  8759. // authentication api_key required
  8760. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8761. // authentication bearer required
  8762. // http bearer authentication required
  8763. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8764. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8765. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8766. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8767. return {
  8768. url: toPathString(localVarUrlObj),
  8769. options: localVarRequestOptions,
  8770. };
  8771. },
  8772. /**
  8773. *
  8774. * @param {LoginCredentialDto} loginCredentialDto
  8775. * @param {*} [options] Override http request option.
  8776. * @throws {RequiredError}
  8777. */
  8778. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8779. // verify required parameter 'loginCredentialDto' is not null or undefined
  8780. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  8781. const localVarPath = `/auth/login`;
  8782. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8783. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8784. let baseOptions;
  8785. if (configuration) {
  8786. baseOptions = configuration.baseOptions;
  8787. }
  8788. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8789. const localVarHeaderParameter = {} as any;
  8790. const localVarQueryParameter = {} as any;
  8791. localVarHeaderParameter['Content-Type'] = 'application/json';
  8792. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8793. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8794. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8795. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  8796. return {
  8797. url: toPathString(localVarUrlObj),
  8798. options: localVarRequestOptions,
  8799. };
  8800. },
  8801. /**
  8802. *
  8803. * @param {*} [options] Override http request option.
  8804. * @throws {RequiredError}
  8805. */
  8806. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8807. const localVarPath = `/auth/logout`;
  8808. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8809. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8810. let baseOptions;
  8811. if (configuration) {
  8812. baseOptions = configuration.baseOptions;
  8813. }
  8814. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8815. const localVarHeaderParameter = {} as any;
  8816. const localVarQueryParameter = {} as any;
  8817. // authentication cookie required
  8818. // authentication api_key required
  8819. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8820. // authentication bearer required
  8821. // http bearer authentication required
  8822. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8823. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8824. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8825. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8826. return {
  8827. url: toPathString(localVarUrlObj),
  8828. options: localVarRequestOptions,
  8829. };
  8830. },
  8831. /**
  8832. *
  8833. * @param {string} id
  8834. * @param {*} [options] Override http request option.
  8835. * @throws {RequiredError}
  8836. */
  8837. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8838. // verify required parameter 'id' is not null or undefined
  8839. assertParamExists('logoutAuthDevice', 'id', id)
  8840. const localVarPath = `/auth/devices/{id}`
  8841. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8842. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8843. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8844. let baseOptions;
  8845. if (configuration) {
  8846. baseOptions = configuration.baseOptions;
  8847. }
  8848. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8849. const localVarHeaderParameter = {} as any;
  8850. const localVarQueryParameter = {} as any;
  8851. // authentication cookie required
  8852. // authentication api_key required
  8853. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8854. // authentication bearer required
  8855. // http bearer authentication required
  8856. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8857. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8858. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8859. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8860. return {
  8861. url: toPathString(localVarUrlObj),
  8862. options: localVarRequestOptions,
  8863. };
  8864. },
  8865. /**
  8866. *
  8867. * @param {*} [options] Override http request option.
  8868. * @throws {RequiredError}
  8869. */
  8870. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8871. const localVarPath = `/auth/devices`;
  8872. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8873. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8874. let baseOptions;
  8875. if (configuration) {
  8876. baseOptions = configuration.baseOptions;
  8877. }
  8878. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8879. const localVarHeaderParameter = {} as any;
  8880. const localVarQueryParameter = {} as any;
  8881. // authentication cookie required
  8882. // authentication api_key required
  8883. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8884. // authentication bearer required
  8885. // http bearer authentication required
  8886. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8887. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8888. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8889. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8890. return {
  8891. url: toPathString(localVarUrlObj),
  8892. options: localVarRequestOptions,
  8893. };
  8894. },
  8895. /**
  8896. *
  8897. * @param {*} [options] Override http request option.
  8898. * @throws {RequiredError}
  8899. */
  8900. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8901. const localVarPath = `/auth/validateToken`;
  8902. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8903. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8904. let baseOptions;
  8905. if (configuration) {
  8906. baseOptions = configuration.baseOptions;
  8907. }
  8908. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8909. const localVarHeaderParameter = {} as any;
  8910. const localVarQueryParameter = {} as any;
  8911. // authentication cookie required
  8912. // authentication api_key required
  8913. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8914. // authentication bearer required
  8915. // http bearer authentication required
  8916. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8917. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8918. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8919. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8920. return {
  8921. url: toPathString(localVarUrlObj),
  8922. options: localVarRequestOptions,
  8923. };
  8924. },
  8925. }
  8926. };
  8927. /**
  8928. * AuthenticationApi - functional programming interface
  8929. * @export
  8930. */
  8931. export const AuthenticationApiFp = function(configuration?: Configuration) {
  8932. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  8933. return {
  8934. /**
  8935. *
  8936. * @param {SignUpDto} signUpDto
  8937. * @param {*} [options] Override http request option.
  8938. * @throws {RequiredError}
  8939. */
  8940. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  8941. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  8942. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8943. },
  8944. /**
  8945. *
  8946. * @param {ChangePasswordDto} changePasswordDto
  8947. * @param {*} [options] Override http request option.
  8948. * @throws {RequiredError}
  8949. */
  8950. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8951. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  8952. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8953. },
  8954. /**
  8955. *
  8956. * @param {*} [options] Override http request option.
  8957. * @throws {RequiredError}
  8958. */
  8959. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  8960. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  8961. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8962. },
  8963. /**
  8964. *
  8965. * @param {LoginCredentialDto} loginCredentialDto
  8966. * @param {*} [options] Override http request option.
  8967. * @throws {RequiredError}
  8968. */
  8969. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  8970. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  8971. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8972. },
  8973. /**
  8974. *
  8975. * @param {*} [options] Override http request option.
  8976. * @throws {RequiredError}
  8977. */
  8978. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  8979. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  8980. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8981. },
  8982. /**
  8983. *
  8984. * @param {string} id
  8985. * @param {*} [options] Override http request option.
  8986. * @throws {RequiredError}
  8987. */
  8988. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8989. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  8990. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8991. },
  8992. /**
  8993. *
  8994. * @param {*} [options] Override http request option.
  8995. * @throws {RequiredError}
  8996. */
  8997. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8998. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  8999. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9000. },
  9001. /**
  9002. *
  9003. * @param {*} [options] Override http request option.
  9004. * @throws {RequiredError}
  9005. */
  9006. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  9007. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  9008. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9009. },
  9010. }
  9011. };
  9012. /**
  9013. * AuthenticationApi - factory interface
  9014. * @export
  9015. */
  9016. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9017. const localVarFp = AuthenticationApiFp(configuration)
  9018. return {
  9019. /**
  9020. *
  9021. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9022. * @param {*} [options] Override http request option.
  9023. * @throws {RequiredError}
  9024. */
  9025. adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
  9026. return localVarFp.adminSignUp(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  9027. },
  9028. /**
  9029. *
  9030. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9031. * @param {*} [options] Override http request option.
  9032. * @throws {RequiredError}
  9033. */
  9034. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9035. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  9036. },
  9037. /**
  9038. *
  9039. * @param {*} [options] Override http request option.
  9040. * @throws {RequiredError}
  9041. */
  9042. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  9043. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  9044. },
  9045. /**
  9046. *
  9047. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9048. * @param {*} [options] Override http request option.
  9049. * @throws {RequiredError}
  9050. */
  9051. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9052. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  9053. },
  9054. /**
  9055. *
  9056. * @param {*} [options] Override http request option.
  9057. * @throws {RequiredError}
  9058. */
  9059. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  9060. return localVarFp.logout(options).then((request) => request(axios, basePath));
  9061. },
  9062. /**
  9063. *
  9064. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9065. * @param {*} [options] Override http request option.
  9066. * @throws {RequiredError}
  9067. */
  9068. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9069. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  9070. },
  9071. /**
  9072. *
  9073. * @param {*} [options] Override http request option.
  9074. * @throws {RequiredError}
  9075. */
  9076. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  9077. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  9078. },
  9079. /**
  9080. *
  9081. * @param {*} [options] Override http request option.
  9082. * @throws {RequiredError}
  9083. */
  9084. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  9085. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  9086. },
  9087. };
  9088. };
  9089. /**
  9090. * Request parameters for adminSignUp operation in AuthenticationApi.
  9091. * @export
  9092. * @interface AuthenticationApiAdminSignUpRequest
  9093. */
  9094. export interface AuthenticationApiAdminSignUpRequest {
  9095. /**
  9096. *
  9097. * @type {SignUpDto}
  9098. * @memberof AuthenticationApiAdminSignUp
  9099. */
  9100. readonly signUpDto: SignUpDto
  9101. }
  9102. /**
  9103. * Request parameters for changePassword operation in AuthenticationApi.
  9104. * @export
  9105. * @interface AuthenticationApiChangePasswordRequest
  9106. */
  9107. export interface AuthenticationApiChangePasswordRequest {
  9108. /**
  9109. *
  9110. * @type {ChangePasswordDto}
  9111. * @memberof AuthenticationApiChangePassword
  9112. */
  9113. readonly changePasswordDto: ChangePasswordDto
  9114. }
  9115. /**
  9116. * Request parameters for login operation in AuthenticationApi.
  9117. * @export
  9118. * @interface AuthenticationApiLoginRequest
  9119. */
  9120. export interface AuthenticationApiLoginRequest {
  9121. /**
  9122. *
  9123. * @type {LoginCredentialDto}
  9124. * @memberof AuthenticationApiLogin
  9125. */
  9126. readonly loginCredentialDto: LoginCredentialDto
  9127. }
  9128. /**
  9129. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  9130. * @export
  9131. * @interface AuthenticationApiLogoutAuthDeviceRequest
  9132. */
  9133. export interface AuthenticationApiLogoutAuthDeviceRequest {
  9134. /**
  9135. *
  9136. * @type {string}
  9137. * @memberof AuthenticationApiLogoutAuthDevice
  9138. */
  9139. readonly id: string
  9140. }
  9141. /**
  9142. * AuthenticationApi - object-oriented interface
  9143. * @export
  9144. * @class AuthenticationApi
  9145. * @extends {BaseAPI}
  9146. */
  9147. export class AuthenticationApi extends BaseAPI {
  9148. /**
  9149. *
  9150. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9151. * @param {*} [options] Override http request option.
  9152. * @throws {RequiredError}
  9153. * @memberof AuthenticationApi
  9154. */
  9155. public adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig) {
  9156. return AuthenticationApiFp(this.configuration).adminSignUp(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  9157. }
  9158. /**
  9159. *
  9160. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9161. * @param {*} [options] Override http request option.
  9162. * @throws {RequiredError}
  9163. * @memberof AuthenticationApi
  9164. */
  9165. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  9166. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  9167. }
  9168. /**
  9169. *
  9170. * @param {*} [options] Override http request option.
  9171. * @throws {RequiredError}
  9172. * @memberof AuthenticationApi
  9173. */
  9174. public getAuthDevices(options?: AxiosRequestConfig) {
  9175. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9176. }
  9177. /**
  9178. *
  9179. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9180. * @param {*} [options] Override http request option.
  9181. * @throws {RequiredError}
  9182. * @memberof AuthenticationApi
  9183. */
  9184. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  9185. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  9186. }
  9187. /**
  9188. *
  9189. * @param {*} [options] Override http request option.
  9190. * @throws {RequiredError}
  9191. * @memberof AuthenticationApi
  9192. */
  9193. public logout(options?: AxiosRequestConfig) {
  9194. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  9195. }
  9196. /**
  9197. *
  9198. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9199. * @param {*} [options] Override http request option.
  9200. * @throws {RequiredError}
  9201. * @memberof AuthenticationApi
  9202. */
  9203. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  9204. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9205. }
  9206. /**
  9207. *
  9208. * @param {*} [options] Override http request option.
  9209. * @throws {RequiredError}
  9210. * @memberof AuthenticationApi
  9211. */
  9212. public logoutAuthDevices(options?: AxiosRequestConfig) {
  9213. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9214. }
  9215. /**
  9216. *
  9217. * @param {*} [options] Override http request option.
  9218. * @throws {RequiredError}
  9219. * @memberof AuthenticationApi
  9220. */
  9221. public validateAccessToken(options?: AxiosRequestConfig) {
  9222. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  9223. }
  9224. }
  9225. /**
  9226. * JobApi - axios parameter creator
  9227. * @export
  9228. */
  9229. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  9230. return {
  9231. /**
  9232. *
  9233. * @param {*} [options] Override http request option.
  9234. * @throws {RequiredError}
  9235. */
  9236. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9237. const localVarPath = `/jobs`;
  9238. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9239. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9240. let baseOptions;
  9241. if (configuration) {
  9242. baseOptions = configuration.baseOptions;
  9243. }
  9244. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9245. const localVarHeaderParameter = {} as any;
  9246. const localVarQueryParameter = {} as any;
  9247. // authentication cookie required
  9248. // authentication api_key required
  9249. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9250. // authentication bearer required
  9251. // http bearer authentication required
  9252. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9253. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9254. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9255. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9256. return {
  9257. url: toPathString(localVarUrlObj),
  9258. options: localVarRequestOptions,
  9259. };
  9260. },
  9261. /**
  9262. *
  9263. * @param {JobName} id
  9264. * @param {JobCommandDto} jobCommandDto
  9265. * @param {*} [options] Override http request option.
  9266. * @throws {RequiredError}
  9267. */
  9268. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9269. // verify required parameter 'id' is not null or undefined
  9270. assertParamExists('sendJobCommand', 'id', id)
  9271. // verify required parameter 'jobCommandDto' is not null or undefined
  9272. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  9273. const localVarPath = `/jobs/{id}`
  9274. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9275. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9276. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9277. let baseOptions;
  9278. if (configuration) {
  9279. baseOptions = configuration.baseOptions;
  9280. }
  9281. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9282. const localVarHeaderParameter = {} as any;
  9283. const localVarQueryParameter = {} as any;
  9284. // authentication cookie required
  9285. // authentication api_key required
  9286. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9287. // authentication bearer required
  9288. // http bearer authentication required
  9289. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9290. localVarHeaderParameter['Content-Type'] = 'application/json';
  9291. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9292. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9293. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9294. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  9295. return {
  9296. url: toPathString(localVarUrlObj),
  9297. options: localVarRequestOptions,
  9298. };
  9299. },
  9300. }
  9301. };
  9302. /**
  9303. * JobApi - functional programming interface
  9304. * @export
  9305. */
  9306. export const JobApiFp = function(configuration?: Configuration) {
  9307. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  9308. return {
  9309. /**
  9310. *
  9311. * @param {*} [options] Override http request option.
  9312. * @throws {RequiredError}
  9313. */
  9314. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  9315. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  9316. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9317. },
  9318. /**
  9319. *
  9320. * @param {JobName} id
  9321. * @param {JobCommandDto} jobCommandDto
  9322. * @param {*} [options] Override http request option.
  9323. * @throws {RequiredError}
  9324. */
  9325. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  9326. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  9327. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9328. },
  9329. }
  9330. };
  9331. /**
  9332. * JobApi - factory interface
  9333. * @export
  9334. */
  9335. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9336. const localVarFp = JobApiFp(configuration)
  9337. return {
  9338. /**
  9339. *
  9340. * @param {*} [options] Override http request option.
  9341. * @throws {RequiredError}
  9342. */
  9343. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  9344. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  9345. },
  9346. /**
  9347. *
  9348. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9349. * @param {*} [options] Override http request option.
  9350. * @throws {RequiredError}
  9351. */
  9352. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  9353. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  9354. },
  9355. };
  9356. };
  9357. /**
  9358. * Request parameters for sendJobCommand operation in JobApi.
  9359. * @export
  9360. * @interface JobApiSendJobCommandRequest
  9361. */
  9362. export interface JobApiSendJobCommandRequest {
  9363. /**
  9364. *
  9365. * @type {JobName}
  9366. * @memberof JobApiSendJobCommand
  9367. */
  9368. readonly id: JobName
  9369. /**
  9370. *
  9371. * @type {JobCommandDto}
  9372. * @memberof JobApiSendJobCommand
  9373. */
  9374. readonly jobCommandDto: JobCommandDto
  9375. }
  9376. /**
  9377. * JobApi - object-oriented interface
  9378. * @export
  9379. * @class JobApi
  9380. * @extends {BaseAPI}
  9381. */
  9382. export class JobApi extends BaseAPI {
  9383. /**
  9384. *
  9385. * @param {*} [options] Override http request option.
  9386. * @throws {RequiredError}
  9387. * @memberof JobApi
  9388. */
  9389. public getAllJobsStatus(options?: AxiosRequestConfig) {
  9390. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  9391. }
  9392. /**
  9393. *
  9394. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9395. * @param {*} [options] Override http request option.
  9396. * @throws {RequiredError}
  9397. * @memberof JobApi
  9398. */
  9399. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  9400. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  9401. }
  9402. }
  9403. /**
  9404. * LibraryApi - axios parameter creator
  9405. * @export
  9406. */
  9407. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  9408. return {
  9409. /**
  9410. *
  9411. * @param {CreateLibraryDto} createLibraryDto
  9412. * @param {*} [options] Override http request option.
  9413. * @throws {RequiredError}
  9414. */
  9415. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9416. // verify required parameter 'createLibraryDto' is not null or undefined
  9417. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  9418. const localVarPath = `/library`;
  9419. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9420. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9421. let baseOptions;
  9422. if (configuration) {
  9423. baseOptions = configuration.baseOptions;
  9424. }
  9425. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9426. const localVarHeaderParameter = {} as any;
  9427. const localVarQueryParameter = {} as any;
  9428. // authentication cookie required
  9429. // authentication api_key required
  9430. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9431. // authentication bearer required
  9432. // http bearer authentication required
  9433. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9434. localVarHeaderParameter['Content-Type'] = 'application/json';
  9435. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9436. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9437. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9438. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  9439. return {
  9440. url: toPathString(localVarUrlObj),
  9441. options: localVarRequestOptions,
  9442. };
  9443. },
  9444. /**
  9445. *
  9446. * @param {string} id
  9447. * @param {*} [options] Override http request option.
  9448. * @throws {RequiredError}
  9449. */
  9450. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9451. // verify required parameter 'id' is not null or undefined
  9452. assertParamExists('deleteLibrary', 'id', id)
  9453. const localVarPath = `/library/{id}`
  9454. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9455. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9456. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9457. let baseOptions;
  9458. if (configuration) {
  9459. baseOptions = configuration.baseOptions;
  9460. }
  9461. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9462. const localVarHeaderParameter = {} as any;
  9463. const localVarQueryParameter = {} as any;
  9464. // authentication cookie required
  9465. // authentication api_key required
  9466. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9467. // authentication bearer required
  9468. // http bearer authentication required
  9469. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9470. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9471. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9472. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9473. return {
  9474. url: toPathString(localVarUrlObj),
  9475. options: localVarRequestOptions,
  9476. };
  9477. },
  9478. /**
  9479. *
  9480. * @param {*} [options] Override http request option.
  9481. * @throws {RequiredError}
  9482. */
  9483. getAllForUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9484. const localVarPath = `/library`;
  9485. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9486. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9487. let baseOptions;
  9488. if (configuration) {
  9489. baseOptions = configuration.baseOptions;
  9490. }
  9491. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9492. const localVarHeaderParameter = {} as any;
  9493. const localVarQueryParameter = {} as any;
  9494. // authentication cookie required
  9495. // authentication api_key required
  9496. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9497. // authentication bearer required
  9498. // http bearer authentication required
  9499. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9500. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9501. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9502. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9503. return {
  9504. url: toPathString(localVarUrlObj),
  9505. options: localVarRequestOptions,
  9506. };
  9507. },
  9508. /**
  9509. *
  9510. * @param {string} id
  9511. * @param {*} [options] Override http request option.
  9512. * @throws {RequiredError}
  9513. */
  9514. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9515. // verify required parameter 'id' is not null or undefined
  9516. assertParamExists('getLibraryInfo', 'id', id)
  9517. const localVarPath = `/library/{id}`
  9518. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9519. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9520. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9521. let baseOptions;
  9522. if (configuration) {
  9523. baseOptions = configuration.baseOptions;
  9524. }
  9525. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9526. const localVarHeaderParameter = {} as any;
  9527. const localVarQueryParameter = {} as any;
  9528. // authentication cookie required
  9529. // authentication api_key required
  9530. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9531. // authentication bearer required
  9532. // http bearer authentication required
  9533. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9534. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9535. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9536. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9537. return {
  9538. url: toPathString(localVarUrlObj),
  9539. options: localVarRequestOptions,
  9540. };
  9541. },
  9542. /**
  9543. *
  9544. * @param {string} id
  9545. * @param {*} [options] Override http request option.
  9546. * @throws {RequiredError}
  9547. */
  9548. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9549. // verify required parameter 'id' is not null or undefined
  9550. assertParamExists('getLibraryStatistics', 'id', id)
  9551. const localVarPath = `/library/{id}/statistics`
  9552. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9553. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9554. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9555. let baseOptions;
  9556. if (configuration) {
  9557. baseOptions = configuration.baseOptions;
  9558. }
  9559. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9560. const localVarHeaderParameter = {} as any;
  9561. const localVarQueryParameter = {} as any;
  9562. // authentication cookie required
  9563. // authentication api_key required
  9564. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9565. // authentication bearer required
  9566. // http bearer authentication required
  9567. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9568. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9569. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9570. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9571. return {
  9572. url: toPathString(localVarUrlObj),
  9573. options: localVarRequestOptions,
  9574. };
  9575. },
  9576. /**
  9577. *
  9578. * @param {string} id
  9579. * @param {*} [options] Override http request option.
  9580. * @throws {RequiredError}
  9581. */
  9582. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9583. // verify required parameter 'id' is not null or undefined
  9584. assertParamExists('removeOfflineFiles', 'id', id)
  9585. const localVarPath = `/library/{id}/removeOffline`
  9586. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9587. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9588. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9589. let baseOptions;
  9590. if (configuration) {
  9591. baseOptions = configuration.baseOptions;
  9592. }
  9593. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9594. const localVarHeaderParameter = {} as any;
  9595. const localVarQueryParameter = {} as any;
  9596. // authentication cookie required
  9597. // authentication api_key required
  9598. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9599. // authentication bearer required
  9600. // http bearer authentication required
  9601. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9602. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9603. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9604. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9605. return {
  9606. url: toPathString(localVarUrlObj),
  9607. options: localVarRequestOptions,
  9608. };
  9609. },
  9610. /**
  9611. *
  9612. * @param {string} id
  9613. * @param {ScanLibraryDto} scanLibraryDto
  9614. * @param {*} [options] Override http request option.
  9615. * @throws {RequiredError}
  9616. */
  9617. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9618. // verify required parameter 'id' is not null or undefined
  9619. assertParamExists('scanLibrary', 'id', id)
  9620. // verify required parameter 'scanLibraryDto' is not null or undefined
  9621. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  9622. const localVarPath = `/library/{id}/scan`
  9623. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9624. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9625. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9626. let baseOptions;
  9627. if (configuration) {
  9628. baseOptions = configuration.baseOptions;
  9629. }
  9630. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9631. const localVarHeaderParameter = {} as any;
  9632. const localVarQueryParameter = {} as any;
  9633. // authentication cookie required
  9634. // authentication api_key required
  9635. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9636. // authentication bearer required
  9637. // http bearer authentication required
  9638. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9639. localVarHeaderParameter['Content-Type'] = 'application/json';
  9640. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9641. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9642. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9643. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  9644. return {
  9645. url: toPathString(localVarUrlObj),
  9646. options: localVarRequestOptions,
  9647. };
  9648. },
  9649. /**
  9650. *
  9651. * @param {string} id
  9652. * @param {UpdateLibraryDto} updateLibraryDto
  9653. * @param {*} [options] Override http request option.
  9654. * @throws {RequiredError}
  9655. */
  9656. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9657. // verify required parameter 'id' is not null or undefined
  9658. assertParamExists('updateLibrary', 'id', id)
  9659. // verify required parameter 'updateLibraryDto' is not null or undefined
  9660. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  9661. const localVarPath = `/library/{id}`
  9662. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9663. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9664. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9665. let baseOptions;
  9666. if (configuration) {
  9667. baseOptions = configuration.baseOptions;
  9668. }
  9669. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9670. const localVarHeaderParameter = {} as any;
  9671. const localVarQueryParameter = {} as any;
  9672. // authentication cookie required
  9673. // authentication api_key required
  9674. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9675. // authentication bearer required
  9676. // http bearer authentication required
  9677. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9678. localVarHeaderParameter['Content-Type'] = 'application/json';
  9679. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9680. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9681. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9682. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  9683. return {
  9684. url: toPathString(localVarUrlObj),
  9685. options: localVarRequestOptions,
  9686. };
  9687. },
  9688. }
  9689. };
  9690. /**
  9691. * LibraryApi - functional programming interface
  9692. * @export
  9693. */
  9694. export const LibraryApiFp = function(configuration?: Configuration) {
  9695. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  9696. return {
  9697. /**
  9698. *
  9699. * @param {CreateLibraryDto} createLibraryDto
  9700. * @param {*} [options] Override http request option.
  9701. * @throws {RequiredError}
  9702. */
  9703. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9704. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  9705. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9706. },
  9707. /**
  9708. *
  9709. * @param {string} id
  9710. * @param {*} [options] Override http request option.
  9711. * @throws {RequiredError}
  9712. */
  9713. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9714. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  9715. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9716. },
  9717. /**
  9718. *
  9719. * @param {*} [options] Override http request option.
  9720. * @throws {RequiredError}
  9721. */
  9722. async getAllForUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  9723. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllForUser(options);
  9724. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9725. },
  9726. /**
  9727. *
  9728. * @param {string} id
  9729. * @param {*} [options] Override http request option.
  9730. * @throws {RequiredError}
  9731. */
  9732. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9733. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  9734. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9735. },
  9736. /**
  9737. *
  9738. * @param {string} id
  9739. * @param {*} [options] Override http request option.
  9740. * @throws {RequiredError}
  9741. */
  9742. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  9743. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  9744. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9745. },
  9746. /**
  9747. *
  9748. * @param {string} id
  9749. * @param {*} [options] Override http request option.
  9750. * @throws {RequiredError}
  9751. */
  9752. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9753. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  9754. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9755. },
  9756. /**
  9757. *
  9758. * @param {string} id
  9759. * @param {ScanLibraryDto} scanLibraryDto
  9760. * @param {*} [options] Override http request option.
  9761. * @throws {RequiredError}
  9762. */
  9763. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9764. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  9765. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9766. },
  9767. /**
  9768. *
  9769. * @param {string} id
  9770. * @param {UpdateLibraryDto} updateLibraryDto
  9771. * @param {*} [options] Override http request option.
  9772. * @throws {RequiredError}
  9773. */
  9774. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9775. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  9776. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9777. },
  9778. }
  9779. };
  9780. /**
  9781. * LibraryApi - factory interface
  9782. * @export
  9783. */
  9784. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9785. const localVarFp = LibraryApiFp(configuration)
  9786. return {
  9787. /**
  9788. *
  9789. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9790. * @param {*} [options] Override http request option.
  9791. * @throws {RequiredError}
  9792. */
  9793. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9794. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  9795. },
  9796. /**
  9797. *
  9798. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9799. * @param {*} [options] Override http request option.
  9800. * @throws {RequiredError}
  9801. */
  9802. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9803. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  9804. },
  9805. /**
  9806. *
  9807. * @param {*} [options] Override http request option.
  9808. * @throws {RequiredError}
  9809. */
  9810. getAllForUser(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  9811. return localVarFp.getAllForUser(options).then((request) => request(axios, basePath));
  9812. },
  9813. /**
  9814. *
  9815. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  9816. * @param {*} [options] Override http request option.
  9817. * @throws {RequiredError}
  9818. */
  9819. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9820. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  9821. },
  9822. /**
  9823. *
  9824. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  9825. * @param {*} [options] Override http request option.
  9826. * @throws {RequiredError}
  9827. */
  9828. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  9829. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  9830. },
  9831. /**
  9832. *
  9833. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  9834. * @param {*} [options] Override http request option.
  9835. * @throws {RequiredError}
  9836. */
  9837. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9838. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  9839. },
  9840. /**
  9841. *
  9842. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  9843. * @param {*} [options] Override http request option.
  9844. * @throws {RequiredError}
  9845. */
  9846. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9847. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  9848. },
  9849. /**
  9850. *
  9851. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  9852. * @param {*} [options] Override http request option.
  9853. * @throws {RequiredError}
  9854. */
  9855. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9856. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  9857. },
  9858. };
  9859. };
  9860. /**
  9861. * Request parameters for createLibrary operation in LibraryApi.
  9862. * @export
  9863. * @interface LibraryApiCreateLibraryRequest
  9864. */
  9865. export interface LibraryApiCreateLibraryRequest {
  9866. /**
  9867. *
  9868. * @type {CreateLibraryDto}
  9869. * @memberof LibraryApiCreateLibrary
  9870. */
  9871. readonly createLibraryDto: CreateLibraryDto
  9872. }
  9873. /**
  9874. * Request parameters for deleteLibrary operation in LibraryApi.
  9875. * @export
  9876. * @interface LibraryApiDeleteLibraryRequest
  9877. */
  9878. export interface LibraryApiDeleteLibraryRequest {
  9879. /**
  9880. *
  9881. * @type {string}
  9882. * @memberof LibraryApiDeleteLibrary
  9883. */
  9884. readonly id: string
  9885. }
  9886. /**
  9887. * Request parameters for getLibraryInfo operation in LibraryApi.
  9888. * @export
  9889. * @interface LibraryApiGetLibraryInfoRequest
  9890. */
  9891. export interface LibraryApiGetLibraryInfoRequest {
  9892. /**
  9893. *
  9894. * @type {string}
  9895. * @memberof LibraryApiGetLibraryInfo
  9896. */
  9897. readonly id: string
  9898. }
  9899. /**
  9900. * Request parameters for getLibraryStatistics operation in LibraryApi.
  9901. * @export
  9902. * @interface LibraryApiGetLibraryStatisticsRequest
  9903. */
  9904. export interface LibraryApiGetLibraryStatisticsRequest {
  9905. /**
  9906. *
  9907. * @type {string}
  9908. * @memberof LibraryApiGetLibraryStatistics
  9909. */
  9910. readonly id: string
  9911. }
  9912. /**
  9913. * Request parameters for removeOfflineFiles operation in LibraryApi.
  9914. * @export
  9915. * @interface LibraryApiRemoveOfflineFilesRequest
  9916. */
  9917. export interface LibraryApiRemoveOfflineFilesRequest {
  9918. /**
  9919. *
  9920. * @type {string}
  9921. * @memberof LibraryApiRemoveOfflineFiles
  9922. */
  9923. readonly id: string
  9924. }
  9925. /**
  9926. * Request parameters for scanLibrary operation in LibraryApi.
  9927. * @export
  9928. * @interface LibraryApiScanLibraryRequest
  9929. */
  9930. export interface LibraryApiScanLibraryRequest {
  9931. /**
  9932. *
  9933. * @type {string}
  9934. * @memberof LibraryApiScanLibrary
  9935. */
  9936. readonly id: string
  9937. /**
  9938. *
  9939. * @type {ScanLibraryDto}
  9940. * @memberof LibraryApiScanLibrary
  9941. */
  9942. readonly scanLibraryDto: ScanLibraryDto
  9943. }
  9944. /**
  9945. * Request parameters for updateLibrary operation in LibraryApi.
  9946. * @export
  9947. * @interface LibraryApiUpdateLibraryRequest
  9948. */
  9949. export interface LibraryApiUpdateLibraryRequest {
  9950. /**
  9951. *
  9952. * @type {string}
  9953. * @memberof LibraryApiUpdateLibrary
  9954. */
  9955. readonly id: string
  9956. /**
  9957. *
  9958. * @type {UpdateLibraryDto}
  9959. * @memberof LibraryApiUpdateLibrary
  9960. */
  9961. readonly updateLibraryDto: UpdateLibraryDto
  9962. }
  9963. /**
  9964. * LibraryApi - object-oriented interface
  9965. * @export
  9966. * @class LibraryApi
  9967. * @extends {BaseAPI}
  9968. */
  9969. export class LibraryApi extends BaseAPI {
  9970. /**
  9971. *
  9972. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9973. * @param {*} [options] Override http request option.
  9974. * @throws {RequiredError}
  9975. * @memberof LibraryApi
  9976. */
  9977. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  9978. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  9979. }
  9980. /**
  9981. *
  9982. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9983. * @param {*} [options] Override http request option.
  9984. * @throws {RequiredError}
  9985. * @memberof LibraryApi
  9986. */
  9987. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  9988. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9989. }
  9990. /**
  9991. *
  9992. * @param {*} [options] Override http request option.
  9993. * @throws {RequiredError}
  9994. * @memberof LibraryApi
  9995. */
  9996. public getAllForUser(options?: AxiosRequestConfig) {
  9997. return LibraryApiFp(this.configuration).getAllForUser(options).then((request) => request(this.axios, this.basePath));
  9998. }
  9999. /**
  10000. *
  10001. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10002. * @param {*} [options] Override http request option.
  10003. * @throws {RequiredError}
  10004. * @memberof LibraryApi
  10005. */
  10006. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  10007. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10008. }
  10009. /**
  10010. *
  10011. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10012. * @param {*} [options] Override http request option.
  10013. * @throws {RequiredError}
  10014. * @memberof LibraryApi
  10015. */
  10016. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  10017. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10018. }
  10019. /**
  10020. *
  10021. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10022. * @param {*} [options] Override http request option.
  10023. * @throws {RequiredError}
  10024. * @memberof LibraryApi
  10025. */
  10026. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  10027. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10028. }
  10029. /**
  10030. *
  10031. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10032. * @param {*} [options] Override http request option.
  10033. * @throws {RequiredError}
  10034. * @memberof LibraryApi
  10035. */
  10036. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  10037. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10038. }
  10039. /**
  10040. *
  10041. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10042. * @param {*} [options] Override http request option.
  10043. * @throws {RequiredError}
  10044. * @memberof LibraryApi
  10045. */
  10046. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  10047. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10048. }
  10049. }
  10050. /**
  10051. * OAuthApi - axios parameter creator
  10052. * @export
  10053. */
  10054. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  10055. return {
  10056. /**
  10057. *
  10058. * @param {OAuthConfigDto} oAuthConfigDto
  10059. * @param {*} [options] Override http request option.
  10060. * @throws {RequiredError}
  10061. */
  10062. authorizeOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10063. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10064. assertParamExists('authorizeOAuth', 'oAuthConfigDto', oAuthConfigDto)
  10065. const localVarPath = `/oauth/authorize`;
  10066. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10067. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10068. let baseOptions;
  10069. if (configuration) {
  10070. baseOptions = configuration.baseOptions;
  10071. }
  10072. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10073. const localVarHeaderParameter = {} as any;
  10074. const localVarQueryParameter = {} as any;
  10075. localVarHeaderParameter['Content-Type'] = 'application/json';
  10076. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10077. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10078. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10079. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10080. return {
  10081. url: toPathString(localVarUrlObj),
  10082. options: localVarRequestOptions,
  10083. };
  10084. },
  10085. /**
  10086. *
  10087. * @param {OAuthCallbackDto} oAuthCallbackDto
  10088. * @param {*} [options] Override http request option.
  10089. * @throws {RequiredError}
  10090. */
  10091. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10092. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10093. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  10094. const localVarPath = `/oauth/callback`;
  10095. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10096. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10097. let baseOptions;
  10098. if (configuration) {
  10099. baseOptions = configuration.baseOptions;
  10100. }
  10101. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10102. const localVarHeaderParameter = {} as any;
  10103. const localVarQueryParameter = {} as any;
  10104. localVarHeaderParameter['Content-Type'] = 'application/json';
  10105. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10106. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10107. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10108. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10109. return {
  10110. url: toPathString(localVarUrlObj),
  10111. options: localVarRequestOptions,
  10112. };
  10113. },
  10114. /**
  10115. * @deprecated use feature flags and /oauth/authorize
  10116. * @param {OAuthConfigDto} oAuthConfigDto
  10117. * @param {*} [options] Override http request option.
  10118. * @deprecated
  10119. * @throws {RequiredError}
  10120. */
  10121. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10122. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10123. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  10124. const localVarPath = `/oauth/config`;
  10125. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10126. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10127. let baseOptions;
  10128. if (configuration) {
  10129. baseOptions = configuration.baseOptions;
  10130. }
  10131. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10132. const localVarHeaderParameter = {} as any;
  10133. const localVarQueryParameter = {} as any;
  10134. localVarHeaderParameter['Content-Type'] = 'application/json';
  10135. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10136. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10137. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10138. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10139. return {
  10140. url: toPathString(localVarUrlObj),
  10141. options: localVarRequestOptions,
  10142. };
  10143. },
  10144. /**
  10145. *
  10146. * @param {OAuthCallbackDto} oAuthCallbackDto
  10147. * @param {*} [options] Override http request option.
  10148. * @throws {RequiredError}
  10149. */
  10150. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10151. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10152. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  10153. const localVarPath = `/oauth/link`;
  10154. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10155. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10156. let baseOptions;
  10157. if (configuration) {
  10158. baseOptions = configuration.baseOptions;
  10159. }
  10160. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10161. const localVarHeaderParameter = {} as any;
  10162. const localVarQueryParameter = {} as any;
  10163. // authentication cookie required
  10164. // authentication api_key required
  10165. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10166. // authentication bearer required
  10167. // http bearer authentication required
  10168. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10169. localVarHeaderParameter['Content-Type'] = 'application/json';
  10170. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10171. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10172. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10173. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10174. return {
  10175. url: toPathString(localVarUrlObj),
  10176. options: localVarRequestOptions,
  10177. };
  10178. },
  10179. /**
  10180. *
  10181. * @param {*} [options] Override http request option.
  10182. * @throws {RequiredError}
  10183. */
  10184. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10185. const localVarPath = `/oauth/mobile-redirect`;
  10186. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10187. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10188. let baseOptions;
  10189. if (configuration) {
  10190. baseOptions = configuration.baseOptions;
  10191. }
  10192. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10193. const localVarHeaderParameter = {} as any;
  10194. const localVarQueryParameter = {} as any;
  10195. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10196. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10197. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10198. return {
  10199. url: toPathString(localVarUrlObj),
  10200. options: localVarRequestOptions,
  10201. };
  10202. },
  10203. /**
  10204. *
  10205. * @param {*} [options] Override http request option.
  10206. * @throws {RequiredError}
  10207. */
  10208. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10209. const localVarPath = `/oauth/unlink`;
  10210. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10211. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10212. let baseOptions;
  10213. if (configuration) {
  10214. baseOptions = configuration.baseOptions;
  10215. }
  10216. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10217. const localVarHeaderParameter = {} as any;
  10218. const localVarQueryParameter = {} as any;
  10219. // authentication cookie required
  10220. // authentication api_key required
  10221. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10222. // authentication bearer required
  10223. // http bearer authentication required
  10224. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10225. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10226. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10227. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10228. return {
  10229. url: toPathString(localVarUrlObj),
  10230. options: localVarRequestOptions,
  10231. };
  10232. },
  10233. }
  10234. };
  10235. /**
  10236. * OAuthApi - functional programming interface
  10237. * @export
  10238. */
  10239. export const OAuthApiFp = function(configuration?: Configuration) {
  10240. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  10241. return {
  10242. /**
  10243. *
  10244. * @param {OAuthConfigDto} oAuthConfigDto
  10245. * @param {*} [options] Override http request option.
  10246. * @throws {RequiredError}
  10247. */
  10248. async authorizeOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  10249. const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeOAuth(oAuthConfigDto, options);
  10250. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10251. },
  10252. /**
  10253. *
  10254. * @param {OAuthCallbackDto} oAuthCallbackDto
  10255. * @param {*} [options] Override http request option.
  10256. * @throws {RequiredError}
  10257. */
  10258. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10259. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  10260. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10261. },
  10262. /**
  10263. * @deprecated use feature flags and /oauth/authorize
  10264. * @param {OAuthConfigDto} oAuthConfigDto
  10265. * @param {*} [options] Override http request option.
  10266. * @deprecated
  10267. * @throws {RequiredError}
  10268. */
  10269. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  10270. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  10271. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10272. },
  10273. /**
  10274. *
  10275. * @param {OAuthCallbackDto} oAuthCallbackDto
  10276. * @param {*} [options] Override http request option.
  10277. * @throws {RequiredError}
  10278. */
  10279. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10280. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  10281. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10282. },
  10283. /**
  10284. *
  10285. * @param {*} [options] Override http request option.
  10286. * @throws {RequiredError}
  10287. */
  10288. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10289. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  10290. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10291. },
  10292. /**
  10293. *
  10294. * @param {*} [options] Override http request option.
  10295. * @throws {RequiredError}
  10296. */
  10297. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10298. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  10299. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10300. },
  10301. }
  10302. };
  10303. /**
  10304. * OAuthApi - factory interface
  10305. * @export
  10306. */
  10307. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10308. const localVarFp = OAuthApiFp(configuration)
  10309. return {
  10310. /**
  10311. *
  10312. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10313. * @param {*} [options] Override http request option.
  10314. * @throws {RequiredError}
  10315. */
  10316. authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  10317. return localVarFp.authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10318. },
  10319. /**
  10320. *
  10321. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10322. * @param {*} [options] Override http request option.
  10323. * @throws {RequiredError}
  10324. */
  10325. callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10326. return localVarFp.callback(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10327. },
  10328. /**
  10329. * @deprecated use feature flags and /oauth/authorize
  10330. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10331. * @param {*} [options] Override http request option.
  10332. * @deprecated
  10333. * @throws {RequiredError}
  10334. */
  10335. generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  10336. return localVarFp.generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10337. },
  10338. /**
  10339. *
  10340. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10341. * @param {*} [options] Override http request option.
  10342. * @throws {RequiredError}
  10343. */
  10344. link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10345. return localVarFp.link(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10346. },
  10347. /**
  10348. *
  10349. * @param {*} [options] Override http request option.
  10350. * @throws {RequiredError}
  10351. */
  10352. mobileRedirect(options?: AxiosRequestConfig): AxiosPromise<void> {
  10353. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  10354. },
  10355. /**
  10356. *
  10357. * @param {*} [options] Override http request option.
  10358. * @throws {RequiredError}
  10359. */
  10360. unlink(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10361. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  10362. },
  10363. };
  10364. };
  10365. /**
  10366. * Request parameters for authorizeOAuth operation in OAuthApi.
  10367. * @export
  10368. * @interface OAuthApiAuthorizeOAuthRequest
  10369. */
  10370. export interface OAuthApiAuthorizeOAuthRequest {
  10371. /**
  10372. *
  10373. * @type {OAuthConfigDto}
  10374. * @memberof OAuthApiAuthorizeOAuth
  10375. */
  10376. readonly oAuthConfigDto: OAuthConfigDto
  10377. }
  10378. /**
  10379. * Request parameters for callback operation in OAuthApi.
  10380. * @export
  10381. * @interface OAuthApiCallbackRequest
  10382. */
  10383. export interface OAuthApiCallbackRequest {
  10384. /**
  10385. *
  10386. * @type {OAuthCallbackDto}
  10387. * @memberof OAuthApiCallback
  10388. */
  10389. readonly oAuthCallbackDto: OAuthCallbackDto
  10390. }
  10391. /**
  10392. * Request parameters for generateConfig operation in OAuthApi.
  10393. * @export
  10394. * @interface OAuthApiGenerateConfigRequest
  10395. */
  10396. export interface OAuthApiGenerateConfigRequest {
  10397. /**
  10398. *
  10399. * @type {OAuthConfigDto}
  10400. * @memberof OAuthApiGenerateConfig
  10401. */
  10402. readonly oAuthConfigDto: OAuthConfigDto
  10403. }
  10404. /**
  10405. * Request parameters for link operation in OAuthApi.
  10406. * @export
  10407. * @interface OAuthApiLinkRequest
  10408. */
  10409. export interface OAuthApiLinkRequest {
  10410. /**
  10411. *
  10412. * @type {OAuthCallbackDto}
  10413. * @memberof OAuthApiLink
  10414. */
  10415. readonly oAuthCallbackDto: OAuthCallbackDto
  10416. }
  10417. /**
  10418. * OAuthApi - object-oriented interface
  10419. * @export
  10420. * @class OAuthApi
  10421. * @extends {BaseAPI}
  10422. */
  10423. export class OAuthApi extends BaseAPI {
  10424. /**
  10425. *
  10426. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10427. * @param {*} [options] Override http request option.
  10428. * @throws {RequiredError}
  10429. * @memberof OAuthApi
  10430. */
  10431. public authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig) {
  10432. return OAuthApiFp(this.configuration).authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10433. }
  10434. /**
  10435. *
  10436. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10437. * @param {*} [options] Override http request option.
  10438. * @throws {RequiredError}
  10439. * @memberof OAuthApi
  10440. */
  10441. public callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig) {
  10442. return OAuthApiFp(this.configuration).callback(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10443. }
  10444. /**
  10445. * @deprecated use feature flags and /oauth/authorize
  10446. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10447. * @param {*} [options] Override http request option.
  10448. * @deprecated
  10449. * @throws {RequiredError}
  10450. * @memberof OAuthApi
  10451. */
  10452. public generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig) {
  10453. return OAuthApiFp(this.configuration).generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10454. }
  10455. /**
  10456. *
  10457. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10458. * @param {*} [options] Override http request option.
  10459. * @throws {RequiredError}
  10460. * @memberof OAuthApi
  10461. */
  10462. public link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig) {
  10463. return OAuthApiFp(this.configuration).link(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10464. }
  10465. /**
  10466. *
  10467. * @param {*} [options] Override http request option.
  10468. * @throws {RequiredError}
  10469. * @memberof OAuthApi
  10470. */
  10471. public mobileRedirect(options?: AxiosRequestConfig) {
  10472. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  10473. }
  10474. /**
  10475. *
  10476. * @param {*} [options] Override http request option.
  10477. * @throws {RequiredError}
  10478. * @memberof OAuthApi
  10479. */
  10480. public unlink(options?: AxiosRequestConfig) {
  10481. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  10482. }
  10483. }
  10484. /**
  10485. * PartnerApi - axios parameter creator
  10486. * @export
  10487. */
  10488. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  10489. return {
  10490. /**
  10491. *
  10492. * @param {string} id
  10493. * @param {*} [options] Override http request option.
  10494. * @throws {RequiredError}
  10495. */
  10496. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10497. // verify required parameter 'id' is not null or undefined
  10498. assertParamExists('createPartner', 'id', id)
  10499. const localVarPath = `/partner/{id}`
  10500. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10501. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10502. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10503. let baseOptions;
  10504. if (configuration) {
  10505. baseOptions = configuration.baseOptions;
  10506. }
  10507. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10508. const localVarHeaderParameter = {} as any;
  10509. const localVarQueryParameter = {} as any;
  10510. // authentication cookie required
  10511. // authentication api_key required
  10512. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10513. // authentication bearer required
  10514. // http bearer authentication required
  10515. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10516. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10517. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10518. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10519. return {
  10520. url: toPathString(localVarUrlObj),
  10521. options: localVarRequestOptions,
  10522. };
  10523. },
  10524. /**
  10525. *
  10526. * @param {'shared-by' | 'shared-with'} direction
  10527. * @param {*} [options] Override http request option.
  10528. * @throws {RequiredError}
  10529. */
  10530. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10531. // verify required parameter 'direction' is not null or undefined
  10532. assertParamExists('getPartners', 'direction', direction)
  10533. const localVarPath = `/partner`;
  10534. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10535. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10536. let baseOptions;
  10537. if (configuration) {
  10538. baseOptions = configuration.baseOptions;
  10539. }
  10540. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10541. const localVarHeaderParameter = {} as any;
  10542. const localVarQueryParameter = {} as any;
  10543. // authentication cookie required
  10544. // authentication api_key required
  10545. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10546. // authentication bearer required
  10547. // http bearer authentication required
  10548. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10549. if (direction !== undefined) {
  10550. localVarQueryParameter['direction'] = direction;
  10551. }
  10552. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10553. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10554. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10555. return {
  10556. url: toPathString(localVarUrlObj),
  10557. options: localVarRequestOptions,
  10558. };
  10559. },
  10560. /**
  10561. *
  10562. * @param {string} id
  10563. * @param {*} [options] Override http request option.
  10564. * @throws {RequiredError}
  10565. */
  10566. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10567. // verify required parameter 'id' is not null or undefined
  10568. assertParamExists('removePartner', 'id', id)
  10569. const localVarPath = `/partner/{id}`
  10570. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10571. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10572. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10573. let baseOptions;
  10574. if (configuration) {
  10575. baseOptions = configuration.baseOptions;
  10576. }
  10577. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10578. const localVarHeaderParameter = {} as any;
  10579. const localVarQueryParameter = {} as any;
  10580. // authentication cookie required
  10581. // authentication api_key required
  10582. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10583. // authentication bearer required
  10584. // http bearer authentication required
  10585. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10586. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10587. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10588. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10589. return {
  10590. url: toPathString(localVarUrlObj),
  10591. options: localVarRequestOptions,
  10592. };
  10593. },
  10594. }
  10595. };
  10596. /**
  10597. * PartnerApi - functional programming interface
  10598. * @export
  10599. */
  10600. export const PartnerApiFp = function(configuration?: Configuration) {
  10601. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  10602. return {
  10603. /**
  10604. *
  10605. * @param {string} id
  10606. * @param {*} [options] Override http request option.
  10607. * @throws {RequiredError}
  10608. */
  10609. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10610. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  10611. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10612. },
  10613. /**
  10614. *
  10615. * @param {'shared-by' | 'shared-with'} direction
  10616. * @param {*} [options] Override http request option.
  10617. * @throws {RequiredError}
  10618. */
  10619. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  10620. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  10621. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10622. },
  10623. /**
  10624. *
  10625. * @param {string} id
  10626. * @param {*} [options] Override http request option.
  10627. * @throws {RequiredError}
  10628. */
  10629. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10630. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  10631. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10632. },
  10633. }
  10634. };
  10635. /**
  10636. * PartnerApi - factory interface
  10637. * @export
  10638. */
  10639. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10640. const localVarFp = PartnerApiFp(configuration)
  10641. return {
  10642. /**
  10643. *
  10644. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10645. * @param {*} [options] Override http request option.
  10646. * @throws {RequiredError}
  10647. */
  10648. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10649. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10650. },
  10651. /**
  10652. *
  10653. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10654. * @param {*} [options] Override http request option.
  10655. * @throws {RequiredError}
  10656. */
  10657. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  10658. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  10659. },
  10660. /**
  10661. *
  10662. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10663. * @param {*} [options] Override http request option.
  10664. * @throws {RequiredError}
  10665. */
  10666. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10667. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10668. },
  10669. };
  10670. };
  10671. /**
  10672. * Request parameters for createPartner operation in PartnerApi.
  10673. * @export
  10674. * @interface PartnerApiCreatePartnerRequest
  10675. */
  10676. export interface PartnerApiCreatePartnerRequest {
  10677. /**
  10678. *
  10679. * @type {string}
  10680. * @memberof PartnerApiCreatePartner
  10681. */
  10682. readonly id: string
  10683. }
  10684. /**
  10685. * Request parameters for getPartners operation in PartnerApi.
  10686. * @export
  10687. * @interface PartnerApiGetPartnersRequest
  10688. */
  10689. export interface PartnerApiGetPartnersRequest {
  10690. /**
  10691. *
  10692. * @type {'shared-by' | 'shared-with'}
  10693. * @memberof PartnerApiGetPartners
  10694. */
  10695. readonly direction: 'shared-by' | 'shared-with'
  10696. }
  10697. /**
  10698. * Request parameters for removePartner operation in PartnerApi.
  10699. * @export
  10700. * @interface PartnerApiRemovePartnerRequest
  10701. */
  10702. export interface PartnerApiRemovePartnerRequest {
  10703. /**
  10704. *
  10705. * @type {string}
  10706. * @memberof PartnerApiRemovePartner
  10707. */
  10708. readonly id: string
  10709. }
  10710. /**
  10711. * PartnerApi - object-oriented interface
  10712. * @export
  10713. * @class PartnerApi
  10714. * @extends {BaseAPI}
  10715. */
  10716. export class PartnerApi extends BaseAPI {
  10717. /**
  10718. *
  10719. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10720. * @param {*} [options] Override http request option.
  10721. * @throws {RequiredError}
  10722. * @memberof PartnerApi
  10723. */
  10724. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  10725. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10726. }
  10727. /**
  10728. *
  10729. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10730. * @param {*} [options] Override http request option.
  10731. * @throws {RequiredError}
  10732. * @memberof PartnerApi
  10733. */
  10734. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  10735. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  10736. }
  10737. /**
  10738. *
  10739. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10740. * @param {*} [options] Override http request option.
  10741. * @throws {RequiredError}
  10742. * @memberof PartnerApi
  10743. */
  10744. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  10745. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10746. }
  10747. }
  10748. /**
  10749. * PersonApi - axios parameter creator
  10750. * @export
  10751. */
  10752. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  10753. return {
  10754. /**
  10755. *
  10756. * @param {boolean} [withHidden]
  10757. * @param {*} [options] Override http request option.
  10758. * @throws {RequiredError}
  10759. */
  10760. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10761. const localVarPath = `/person`;
  10762. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10763. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10764. let baseOptions;
  10765. if (configuration) {
  10766. baseOptions = configuration.baseOptions;
  10767. }
  10768. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10769. const localVarHeaderParameter = {} as any;
  10770. const localVarQueryParameter = {} as any;
  10771. // authentication cookie required
  10772. // authentication api_key required
  10773. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10774. // authentication bearer required
  10775. // http bearer authentication required
  10776. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10777. if (withHidden !== undefined) {
  10778. localVarQueryParameter['withHidden'] = withHidden;
  10779. }
  10780. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10781. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10782. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10783. return {
  10784. url: toPathString(localVarUrlObj),
  10785. options: localVarRequestOptions,
  10786. };
  10787. },
  10788. /**
  10789. *
  10790. * @param {string} id
  10791. * @param {*} [options] Override http request option.
  10792. * @throws {RequiredError}
  10793. */
  10794. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10795. // verify required parameter 'id' is not null or undefined
  10796. assertParamExists('getPerson', 'id', id)
  10797. const localVarPath = `/person/{id}`
  10798. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10799. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10800. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10801. let baseOptions;
  10802. if (configuration) {
  10803. baseOptions = configuration.baseOptions;
  10804. }
  10805. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10806. const localVarHeaderParameter = {} as any;
  10807. const localVarQueryParameter = {} as any;
  10808. // authentication cookie required
  10809. // authentication api_key required
  10810. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10811. // authentication bearer required
  10812. // http bearer authentication required
  10813. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10814. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10815. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10816. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10817. return {
  10818. url: toPathString(localVarUrlObj),
  10819. options: localVarRequestOptions,
  10820. };
  10821. },
  10822. /**
  10823. *
  10824. * @param {string} id
  10825. * @param {*} [options] Override http request option.
  10826. * @throws {RequiredError}
  10827. */
  10828. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10829. // verify required parameter 'id' is not null or undefined
  10830. assertParamExists('getPersonAssets', 'id', id)
  10831. const localVarPath = `/person/{id}/assets`
  10832. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10833. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10834. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10835. let baseOptions;
  10836. if (configuration) {
  10837. baseOptions = configuration.baseOptions;
  10838. }
  10839. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10840. const localVarHeaderParameter = {} as any;
  10841. const localVarQueryParameter = {} as any;
  10842. // authentication cookie required
  10843. // authentication api_key required
  10844. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10845. // authentication bearer required
  10846. // http bearer authentication required
  10847. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10848. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10849. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10850. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10851. return {
  10852. url: toPathString(localVarUrlObj),
  10853. options: localVarRequestOptions,
  10854. };
  10855. },
  10856. /**
  10857. *
  10858. * @param {string} id
  10859. * @param {*} [options] Override http request option.
  10860. * @throws {RequiredError}
  10861. */
  10862. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10863. // verify required parameter 'id' is not null or undefined
  10864. assertParamExists('getPersonStatistics', 'id', id)
  10865. const localVarPath = `/person/{id}/statistics`
  10866. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10867. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10868. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10869. let baseOptions;
  10870. if (configuration) {
  10871. baseOptions = configuration.baseOptions;
  10872. }
  10873. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10874. const localVarHeaderParameter = {} as any;
  10875. const localVarQueryParameter = {} as any;
  10876. // authentication cookie required
  10877. // authentication api_key required
  10878. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10879. // authentication bearer required
  10880. // http bearer authentication required
  10881. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10882. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10883. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10884. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10885. return {
  10886. url: toPathString(localVarUrlObj),
  10887. options: localVarRequestOptions,
  10888. };
  10889. },
  10890. /**
  10891. *
  10892. * @param {string} id
  10893. * @param {*} [options] Override http request option.
  10894. * @throws {RequiredError}
  10895. */
  10896. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10897. // verify required parameter 'id' is not null or undefined
  10898. assertParamExists('getPersonThumbnail', 'id', id)
  10899. const localVarPath = `/person/{id}/thumbnail`
  10900. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10901. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10902. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10903. let baseOptions;
  10904. if (configuration) {
  10905. baseOptions = configuration.baseOptions;
  10906. }
  10907. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10908. const localVarHeaderParameter = {} as any;
  10909. const localVarQueryParameter = {} as any;
  10910. // authentication cookie required
  10911. // authentication api_key required
  10912. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10913. // authentication bearer required
  10914. // http bearer authentication required
  10915. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10916. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10917. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10918. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10919. return {
  10920. url: toPathString(localVarUrlObj),
  10921. options: localVarRequestOptions,
  10922. };
  10923. },
  10924. /**
  10925. *
  10926. * @param {string} id
  10927. * @param {MergePersonDto} mergePersonDto
  10928. * @param {*} [options] Override http request option.
  10929. * @throws {RequiredError}
  10930. */
  10931. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10932. // verify required parameter 'id' is not null or undefined
  10933. assertParamExists('mergePerson', 'id', id)
  10934. // verify required parameter 'mergePersonDto' is not null or undefined
  10935. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  10936. const localVarPath = `/person/{id}/merge`
  10937. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10938. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10939. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10940. let baseOptions;
  10941. if (configuration) {
  10942. baseOptions = configuration.baseOptions;
  10943. }
  10944. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10945. const localVarHeaderParameter = {} as any;
  10946. const localVarQueryParameter = {} as any;
  10947. // authentication cookie required
  10948. // authentication api_key required
  10949. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10950. // authentication bearer required
  10951. // http bearer authentication required
  10952. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10953. localVarHeaderParameter['Content-Type'] = 'application/json';
  10954. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10955. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10956. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10957. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  10958. return {
  10959. url: toPathString(localVarUrlObj),
  10960. options: localVarRequestOptions,
  10961. };
  10962. },
  10963. /**
  10964. *
  10965. * @param {PeopleUpdateDto} peopleUpdateDto
  10966. * @param {*} [options] Override http request option.
  10967. * @throws {RequiredError}
  10968. */
  10969. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10970. // verify required parameter 'peopleUpdateDto' is not null or undefined
  10971. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  10972. const localVarPath = `/person`;
  10973. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10974. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10975. let baseOptions;
  10976. if (configuration) {
  10977. baseOptions = configuration.baseOptions;
  10978. }
  10979. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10980. const localVarHeaderParameter = {} as any;
  10981. const localVarQueryParameter = {} as any;
  10982. // authentication cookie required
  10983. // authentication api_key required
  10984. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10985. // authentication bearer required
  10986. // http bearer authentication required
  10987. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10988. localVarHeaderParameter['Content-Type'] = 'application/json';
  10989. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10990. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10991. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10992. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  10993. return {
  10994. url: toPathString(localVarUrlObj),
  10995. options: localVarRequestOptions,
  10996. };
  10997. },
  10998. /**
  10999. *
  11000. * @param {string} id
  11001. * @param {PersonUpdateDto} personUpdateDto
  11002. * @param {*} [options] Override http request option.
  11003. * @throws {RequiredError}
  11004. */
  11005. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11006. // verify required parameter 'id' is not null or undefined
  11007. assertParamExists('updatePerson', 'id', id)
  11008. // verify required parameter 'personUpdateDto' is not null or undefined
  11009. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  11010. const localVarPath = `/person/{id}`
  11011. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11012. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11013. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11014. let baseOptions;
  11015. if (configuration) {
  11016. baseOptions = configuration.baseOptions;
  11017. }
  11018. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11019. const localVarHeaderParameter = {} as any;
  11020. const localVarQueryParameter = {} as any;
  11021. // authentication cookie required
  11022. // authentication api_key required
  11023. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11024. // authentication bearer required
  11025. // http bearer authentication required
  11026. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11027. localVarHeaderParameter['Content-Type'] = 'application/json';
  11028. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11029. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11030. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11031. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  11032. return {
  11033. url: toPathString(localVarUrlObj),
  11034. options: localVarRequestOptions,
  11035. };
  11036. },
  11037. }
  11038. };
  11039. /**
  11040. * PersonApi - functional programming interface
  11041. * @export
  11042. */
  11043. export const PersonApiFp = function(configuration?: Configuration) {
  11044. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  11045. return {
  11046. /**
  11047. *
  11048. * @param {boolean} [withHidden]
  11049. * @param {*} [options] Override http request option.
  11050. * @throws {RequiredError}
  11051. */
  11052. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  11053. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  11054. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11055. },
  11056. /**
  11057. *
  11058. * @param {string} id
  11059. * @param {*} [options] Override http request option.
  11060. * @throws {RequiredError}
  11061. */
  11062. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11063. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  11064. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11065. },
  11066. /**
  11067. *
  11068. * @param {string} id
  11069. * @param {*} [options] Override http request option.
  11070. * @throws {RequiredError}
  11071. */
  11072. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  11073. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  11074. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11075. },
  11076. /**
  11077. *
  11078. * @param {string} id
  11079. * @param {*} [options] Override http request option.
  11080. * @throws {RequiredError}
  11081. */
  11082. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  11083. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  11084. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11085. },
  11086. /**
  11087. *
  11088. * @param {string} id
  11089. * @param {*} [options] Override http request option.
  11090. * @throws {RequiredError}
  11091. */
  11092. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  11093. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  11094. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11095. },
  11096. /**
  11097. *
  11098. * @param {string} id
  11099. * @param {MergePersonDto} mergePersonDto
  11100. * @param {*} [options] Override http request option.
  11101. * @throws {RequiredError}
  11102. */
  11103. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11104. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  11105. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11106. },
  11107. /**
  11108. *
  11109. * @param {PeopleUpdateDto} peopleUpdateDto
  11110. * @param {*} [options] Override http request option.
  11111. * @throws {RequiredError}
  11112. */
  11113. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11114. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  11115. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11116. },
  11117. /**
  11118. *
  11119. * @param {string} id
  11120. * @param {PersonUpdateDto} personUpdateDto
  11121. * @param {*} [options] Override http request option.
  11122. * @throws {RequiredError}
  11123. */
  11124. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11125. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  11126. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11127. },
  11128. }
  11129. };
  11130. /**
  11131. * PersonApi - factory interface
  11132. * @export
  11133. */
  11134. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11135. const localVarFp = PersonApiFp(configuration)
  11136. return {
  11137. /**
  11138. *
  11139. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11140. * @param {*} [options] Override http request option.
  11141. * @throws {RequiredError}
  11142. */
  11143. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  11144. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11145. },
  11146. /**
  11147. *
  11148. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11149. * @param {*} [options] Override http request option.
  11150. * @throws {RequiredError}
  11151. */
  11152. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11153. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  11154. },
  11155. /**
  11156. *
  11157. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11158. * @param {*} [options] Override http request option.
  11159. * @throws {RequiredError}
  11160. */
  11161. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  11162. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  11163. },
  11164. /**
  11165. *
  11166. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11167. * @param {*} [options] Override http request option.
  11168. * @throws {RequiredError}
  11169. */
  11170. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  11171. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  11172. },
  11173. /**
  11174. *
  11175. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11176. * @param {*} [options] Override http request option.
  11177. * @throws {RequiredError}
  11178. */
  11179. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  11180. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  11181. },
  11182. /**
  11183. *
  11184. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11185. * @param {*} [options] Override http request option.
  11186. * @throws {RequiredError}
  11187. */
  11188. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11189. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  11190. },
  11191. /**
  11192. *
  11193. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11194. * @param {*} [options] Override http request option.
  11195. * @throws {RequiredError}
  11196. */
  11197. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11198. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  11199. },
  11200. /**
  11201. *
  11202. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11203. * @param {*} [options] Override http request option.
  11204. * @throws {RequiredError}
  11205. */
  11206. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11207. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  11208. },
  11209. };
  11210. };
  11211. /**
  11212. * Request parameters for getAllPeople operation in PersonApi.
  11213. * @export
  11214. * @interface PersonApiGetAllPeopleRequest
  11215. */
  11216. export interface PersonApiGetAllPeopleRequest {
  11217. /**
  11218. *
  11219. * @type {boolean}
  11220. * @memberof PersonApiGetAllPeople
  11221. */
  11222. readonly withHidden?: boolean
  11223. }
  11224. /**
  11225. * Request parameters for getPerson operation in PersonApi.
  11226. * @export
  11227. * @interface PersonApiGetPersonRequest
  11228. */
  11229. export interface PersonApiGetPersonRequest {
  11230. /**
  11231. *
  11232. * @type {string}
  11233. * @memberof PersonApiGetPerson
  11234. */
  11235. readonly id: string
  11236. }
  11237. /**
  11238. * Request parameters for getPersonAssets operation in PersonApi.
  11239. * @export
  11240. * @interface PersonApiGetPersonAssetsRequest
  11241. */
  11242. export interface PersonApiGetPersonAssetsRequest {
  11243. /**
  11244. *
  11245. * @type {string}
  11246. * @memberof PersonApiGetPersonAssets
  11247. */
  11248. readonly id: string
  11249. }
  11250. /**
  11251. * Request parameters for getPersonStatistics operation in PersonApi.
  11252. * @export
  11253. * @interface PersonApiGetPersonStatisticsRequest
  11254. */
  11255. export interface PersonApiGetPersonStatisticsRequest {
  11256. /**
  11257. *
  11258. * @type {string}
  11259. * @memberof PersonApiGetPersonStatistics
  11260. */
  11261. readonly id: string
  11262. }
  11263. /**
  11264. * Request parameters for getPersonThumbnail operation in PersonApi.
  11265. * @export
  11266. * @interface PersonApiGetPersonThumbnailRequest
  11267. */
  11268. export interface PersonApiGetPersonThumbnailRequest {
  11269. /**
  11270. *
  11271. * @type {string}
  11272. * @memberof PersonApiGetPersonThumbnail
  11273. */
  11274. readonly id: string
  11275. }
  11276. /**
  11277. * Request parameters for mergePerson operation in PersonApi.
  11278. * @export
  11279. * @interface PersonApiMergePersonRequest
  11280. */
  11281. export interface PersonApiMergePersonRequest {
  11282. /**
  11283. *
  11284. * @type {string}
  11285. * @memberof PersonApiMergePerson
  11286. */
  11287. readonly id: string
  11288. /**
  11289. *
  11290. * @type {MergePersonDto}
  11291. * @memberof PersonApiMergePerson
  11292. */
  11293. readonly mergePersonDto: MergePersonDto
  11294. }
  11295. /**
  11296. * Request parameters for updatePeople operation in PersonApi.
  11297. * @export
  11298. * @interface PersonApiUpdatePeopleRequest
  11299. */
  11300. export interface PersonApiUpdatePeopleRequest {
  11301. /**
  11302. *
  11303. * @type {PeopleUpdateDto}
  11304. * @memberof PersonApiUpdatePeople
  11305. */
  11306. readonly peopleUpdateDto: PeopleUpdateDto
  11307. }
  11308. /**
  11309. * Request parameters for updatePerson operation in PersonApi.
  11310. * @export
  11311. * @interface PersonApiUpdatePersonRequest
  11312. */
  11313. export interface PersonApiUpdatePersonRequest {
  11314. /**
  11315. *
  11316. * @type {string}
  11317. * @memberof PersonApiUpdatePerson
  11318. */
  11319. readonly id: string
  11320. /**
  11321. *
  11322. * @type {PersonUpdateDto}
  11323. * @memberof PersonApiUpdatePerson
  11324. */
  11325. readonly personUpdateDto: PersonUpdateDto
  11326. }
  11327. /**
  11328. * PersonApi - object-oriented interface
  11329. * @export
  11330. * @class PersonApi
  11331. * @extends {BaseAPI}
  11332. */
  11333. export class PersonApi extends BaseAPI {
  11334. /**
  11335. *
  11336. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11337. * @param {*} [options] Override http request option.
  11338. * @throws {RequiredError}
  11339. * @memberof PersonApi
  11340. */
  11341. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  11342. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11343. }
  11344. /**
  11345. *
  11346. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11347. * @param {*} [options] Override http request option.
  11348. * @throws {RequiredError}
  11349. * @memberof PersonApi
  11350. */
  11351. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  11352. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11353. }
  11354. /**
  11355. *
  11356. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11357. * @param {*} [options] Override http request option.
  11358. * @throws {RequiredError}
  11359. * @memberof PersonApi
  11360. */
  11361. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  11362. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11363. }
  11364. /**
  11365. *
  11366. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11367. * @param {*} [options] Override http request option.
  11368. * @throws {RequiredError}
  11369. * @memberof PersonApi
  11370. */
  11371. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  11372. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11373. }
  11374. /**
  11375. *
  11376. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11377. * @param {*} [options] Override http request option.
  11378. * @throws {RequiredError}
  11379. * @memberof PersonApi
  11380. */
  11381. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  11382. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11383. }
  11384. /**
  11385. *
  11386. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11387. * @param {*} [options] Override http request option.
  11388. * @throws {RequiredError}
  11389. * @memberof PersonApi
  11390. */
  11391. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  11392. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  11393. }
  11394. /**
  11395. *
  11396. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11397. * @param {*} [options] Override http request option.
  11398. * @throws {RequiredError}
  11399. * @memberof PersonApi
  11400. */
  11401. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  11402. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11403. }
  11404. /**
  11405. *
  11406. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11407. * @param {*} [options] Override http request option.
  11408. * @throws {RequiredError}
  11409. * @memberof PersonApi
  11410. */
  11411. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  11412. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11413. }
  11414. }
  11415. /**
  11416. * SearchApi - axios parameter creator
  11417. * @export
  11418. */
  11419. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  11420. return {
  11421. /**
  11422. *
  11423. * @param {*} [options] Override http request option.
  11424. * @throws {RequiredError}
  11425. */
  11426. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11427. const localVarPath = `/search/explore`;
  11428. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11429. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11430. let baseOptions;
  11431. if (configuration) {
  11432. baseOptions = configuration.baseOptions;
  11433. }
  11434. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11435. const localVarHeaderParameter = {} as any;
  11436. const localVarQueryParameter = {} as any;
  11437. // authentication cookie required
  11438. // authentication api_key required
  11439. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11440. // authentication bearer required
  11441. // http bearer authentication required
  11442. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11443. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11444. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11445. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11446. return {
  11447. url: toPathString(localVarUrlObj),
  11448. options: localVarRequestOptions,
  11449. };
  11450. },
  11451. /**
  11452. *
  11453. * @param {string} [q]
  11454. * @param {string} [query]
  11455. * @param {boolean} [clip]
  11456. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11457. * @param {boolean} [isFavorite]
  11458. * @param {boolean} [isArchived]
  11459. * @param {string} [exifInfoCity]
  11460. * @param {string} [exifInfoState]
  11461. * @param {string} [exifInfoCountry]
  11462. * @param {string} [exifInfoMake]
  11463. * @param {string} [exifInfoModel]
  11464. * @param {string} [exifInfoProjectionType]
  11465. * @param {Array<string>} [smartInfoObjects]
  11466. * @param {Array<string>} [smartInfoTags]
  11467. * @param {boolean} [recent]
  11468. * @param {boolean} [motion]
  11469. * @param {*} [options] Override http request option.
  11470. * @throws {RequiredError}
  11471. */
  11472. 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> => {
  11473. const localVarPath = `/search`;
  11474. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11475. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11476. let baseOptions;
  11477. if (configuration) {
  11478. baseOptions = configuration.baseOptions;
  11479. }
  11480. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11481. const localVarHeaderParameter = {} as any;
  11482. const localVarQueryParameter = {} as any;
  11483. // authentication cookie required
  11484. // authentication api_key required
  11485. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11486. // authentication bearer required
  11487. // http bearer authentication required
  11488. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11489. if (q !== undefined) {
  11490. localVarQueryParameter['q'] = q;
  11491. }
  11492. if (query !== undefined) {
  11493. localVarQueryParameter['query'] = query;
  11494. }
  11495. if (clip !== undefined) {
  11496. localVarQueryParameter['clip'] = clip;
  11497. }
  11498. if (type !== undefined) {
  11499. localVarQueryParameter['type'] = type;
  11500. }
  11501. if (isFavorite !== undefined) {
  11502. localVarQueryParameter['isFavorite'] = isFavorite;
  11503. }
  11504. if (isArchived !== undefined) {
  11505. localVarQueryParameter['isArchived'] = isArchived;
  11506. }
  11507. if (exifInfoCity !== undefined) {
  11508. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  11509. }
  11510. if (exifInfoState !== undefined) {
  11511. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  11512. }
  11513. if (exifInfoCountry !== undefined) {
  11514. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  11515. }
  11516. if (exifInfoMake !== undefined) {
  11517. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  11518. }
  11519. if (exifInfoModel !== undefined) {
  11520. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  11521. }
  11522. if (exifInfoProjectionType !== undefined) {
  11523. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  11524. }
  11525. if (smartInfoObjects) {
  11526. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  11527. }
  11528. if (smartInfoTags) {
  11529. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  11530. }
  11531. if (recent !== undefined) {
  11532. localVarQueryParameter['recent'] = recent;
  11533. }
  11534. if (motion !== undefined) {
  11535. localVarQueryParameter['motion'] = motion;
  11536. }
  11537. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11538. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11539. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11540. return {
  11541. url: toPathString(localVarUrlObj),
  11542. options: localVarRequestOptions,
  11543. };
  11544. },
  11545. /**
  11546. *
  11547. * @param {string} name
  11548. * @param {boolean} [withHidden]
  11549. * @param {*} [options] Override http request option.
  11550. * @throws {RequiredError}
  11551. */
  11552. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11553. // verify required parameter 'name' is not null or undefined
  11554. assertParamExists('searchPerson', 'name', name)
  11555. const localVarPath = `/search/person`;
  11556. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11557. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11558. let baseOptions;
  11559. if (configuration) {
  11560. baseOptions = configuration.baseOptions;
  11561. }
  11562. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11563. const localVarHeaderParameter = {} as any;
  11564. const localVarQueryParameter = {} as any;
  11565. // authentication cookie required
  11566. // authentication api_key required
  11567. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11568. // authentication bearer required
  11569. // http bearer authentication required
  11570. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11571. if (name !== undefined) {
  11572. localVarQueryParameter['name'] = name;
  11573. }
  11574. if (withHidden !== undefined) {
  11575. localVarQueryParameter['withHidden'] = withHidden;
  11576. }
  11577. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11578. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11579. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11580. return {
  11581. url: toPathString(localVarUrlObj),
  11582. options: localVarRequestOptions,
  11583. };
  11584. },
  11585. }
  11586. };
  11587. /**
  11588. * SearchApi - functional programming interface
  11589. * @export
  11590. */
  11591. export const SearchApiFp = function(configuration?: Configuration) {
  11592. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  11593. return {
  11594. /**
  11595. *
  11596. * @param {*} [options] Override http request option.
  11597. * @throws {RequiredError}
  11598. */
  11599. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  11600. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  11601. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11602. },
  11603. /**
  11604. *
  11605. * @param {string} [q]
  11606. * @param {string} [query]
  11607. * @param {boolean} [clip]
  11608. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11609. * @param {boolean} [isFavorite]
  11610. * @param {boolean} [isArchived]
  11611. * @param {string} [exifInfoCity]
  11612. * @param {string} [exifInfoState]
  11613. * @param {string} [exifInfoCountry]
  11614. * @param {string} [exifInfoMake]
  11615. * @param {string} [exifInfoModel]
  11616. * @param {string} [exifInfoProjectionType]
  11617. * @param {Array<string>} [smartInfoObjects]
  11618. * @param {Array<string>} [smartInfoTags]
  11619. * @param {boolean} [recent]
  11620. * @param {boolean} [motion]
  11621. * @param {*} [options] Override http request option.
  11622. * @throws {RequiredError}
  11623. */
  11624. 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>> {
  11625. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  11626. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11627. },
  11628. /**
  11629. *
  11630. * @param {string} name
  11631. * @param {boolean} [withHidden]
  11632. * @param {*} [options] Override http request option.
  11633. * @throws {RequiredError}
  11634. */
  11635. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  11636. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  11637. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11638. },
  11639. }
  11640. };
  11641. /**
  11642. * SearchApi - factory interface
  11643. * @export
  11644. */
  11645. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11646. const localVarFp = SearchApiFp(configuration)
  11647. return {
  11648. /**
  11649. *
  11650. * @param {*} [options] Override http request option.
  11651. * @throws {RequiredError}
  11652. */
  11653. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  11654. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  11655. },
  11656. /**
  11657. *
  11658. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11659. * @param {*} [options] Override http request option.
  11660. * @throws {RequiredError}
  11661. */
  11662. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  11663. 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));
  11664. },
  11665. /**
  11666. *
  11667. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11668. * @param {*} [options] Override http request option.
  11669. * @throws {RequiredError}
  11670. */
  11671. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  11672. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11673. },
  11674. };
  11675. };
  11676. /**
  11677. * Request parameters for search operation in SearchApi.
  11678. * @export
  11679. * @interface SearchApiSearchRequest
  11680. */
  11681. export interface SearchApiSearchRequest {
  11682. /**
  11683. *
  11684. * @type {string}
  11685. * @memberof SearchApiSearch
  11686. */
  11687. readonly q?: string
  11688. /**
  11689. *
  11690. * @type {string}
  11691. * @memberof SearchApiSearch
  11692. */
  11693. readonly query?: string
  11694. /**
  11695. *
  11696. * @type {boolean}
  11697. * @memberof SearchApiSearch
  11698. */
  11699. readonly clip?: boolean
  11700. /**
  11701. *
  11702. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  11703. * @memberof SearchApiSearch
  11704. */
  11705. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  11706. /**
  11707. *
  11708. * @type {boolean}
  11709. * @memberof SearchApiSearch
  11710. */
  11711. readonly isFavorite?: boolean
  11712. /**
  11713. *
  11714. * @type {boolean}
  11715. * @memberof SearchApiSearch
  11716. */
  11717. readonly isArchived?: boolean
  11718. /**
  11719. *
  11720. * @type {string}
  11721. * @memberof SearchApiSearch
  11722. */
  11723. readonly exifInfoCity?: string
  11724. /**
  11725. *
  11726. * @type {string}
  11727. * @memberof SearchApiSearch
  11728. */
  11729. readonly exifInfoState?: string
  11730. /**
  11731. *
  11732. * @type {string}
  11733. * @memberof SearchApiSearch
  11734. */
  11735. readonly exifInfoCountry?: string
  11736. /**
  11737. *
  11738. * @type {string}
  11739. * @memberof SearchApiSearch
  11740. */
  11741. readonly exifInfoMake?: string
  11742. /**
  11743. *
  11744. * @type {string}
  11745. * @memberof SearchApiSearch
  11746. */
  11747. readonly exifInfoModel?: string
  11748. /**
  11749. *
  11750. * @type {string}
  11751. * @memberof SearchApiSearch
  11752. */
  11753. readonly exifInfoProjectionType?: string
  11754. /**
  11755. *
  11756. * @type {Array<string>}
  11757. * @memberof SearchApiSearch
  11758. */
  11759. readonly smartInfoObjects?: Array<string>
  11760. /**
  11761. *
  11762. * @type {Array<string>}
  11763. * @memberof SearchApiSearch
  11764. */
  11765. readonly smartInfoTags?: Array<string>
  11766. /**
  11767. *
  11768. * @type {boolean}
  11769. * @memberof SearchApiSearch
  11770. */
  11771. readonly recent?: boolean
  11772. /**
  11773. *
  11774. * @type {boolean}
  11775. * @memberof SearchApiSearch
  11776. */
  11777. readonly motion?: boolean
  11778. }
  11779. /**
  11780. * Request parameters for searchPerson operation in SearchApi.
  11781. * @export
  11782. * @interface SearchApiSearchPersonRequest
  11783. */
  11784. export interface SearchApiSearchPersonRequest {
  11785. /**
  11786. *
  11787. * @type {string}
  11788. * @memberof SearchApiSearchPerson
  11789. */
  11790. readonly name: string
  11791. /**
  11792. *
  11793. * @type {boolean}
  11794. * @memberof SearchApiSearchPerson
  11795. */
  11796. readonly withHidden?: boolean
  11797. }
  11798. /**
  11799. * SearchApi - object-oriented interface
  11800. * @export
  11801. * @class SearchApi
  11802. * @extends {BaseAPI}
  11803. */
  11804. export class SearchApi extends BaseAPI {
  11805. /**
  11806. *
  11807. * @param {*} [options] Override http request option.
  11808. * @throws {RequiredError}
  11809. * @memberof SearchApi
  11810. */
  11811. public getExploreData(options?: AxiosRequestConfig) {
  11812. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  11813. }
  11814. /**
  11815. *
  11816. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11817. * @param {*} [options] Override http request option.
  11818. * @throws {RequiredError}
  11819. * @memberof SearchApi
  11820. */
  11821. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  11822. 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));
  11823. }
  11824. /**
  11825. *
  11826. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11827. * @param {*} [options] Override http request option.
  11828. * @throws {RequiredError}
  11829. * @memberof SearchApi
  11830. */
  11831. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  11832. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11833. }
  11834. }
  11835. /**
  11836. * ServerInfoApi - axios parameter creator
  11837. * @export
  11838. */
  11839. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  11840. return {
  11841. /**
  11842. *
  11843. * @param {*} [options] Override http request option.
  11844. * @throws {RequiredError}
  11845. */
  11846. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11847. const localVarPath = `/server-info/config`;
  11848. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11849. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11850. let baseOptions;
  11851. if (configuration) {
  11852. baseOptions = configuration.baseOptions;
  11853. }
  11854. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11855. const localVarHeaderParameter = {} as any;
  11856. const localVarQueryParameter = {} as any;
  11857. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11858. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11859. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11860. return {
  11861. url: toPathString(localVarUrlObj),
  11862. options: localVarRequestOptions,
  11863. };
  11864. },
  11865. /**
  11866. *
  11867. * @param {*} [options] Override http request option.
  11868. * @throws {RequiredError}
  11869. */
  11870. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11871. const localVarPath = `/server-info/features`;
  11872. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11873. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11874. let baseOptions;
  11875. if (configuration) {
  11876. baseOptions = configuration.baseOptions;
  11877. }
  11878. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11879. const localVarHeaderParameter = {} as any;
  11880. const localVarQueryParameter = {} as any;
  11881. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11882. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11883. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11884. return {
  11885. url: toPathString(localVarUrlObj),
  11886. options: localVarRequestOptions,
  11887. };
  11888. },
  11889. /**
  11890. *
  11891. * @param {*} [options] Override http request option.
  11892. * @throws {RequiredError}
  11893. */
  11894. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11895. const localVarPath = `/server-info`;
  11896. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11897. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11898. let baseOptions;
  11899. if (configuration) {
  11900. baseOptions = configuration.baseOptions;
  11901. }
  11902. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11903. const localVarHeaderParameter = {} as any;
  11904. const localVarQueryParameter = {} as any;
  11905. // authentication cookie required
  11906. // authentication api_key required
  11907. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11908. // authentication bearer required
  11909. // http bearer authentication required
  11910. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11911. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11912. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11913. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11914. return {
  11915. url: toPathString(localVarUrlObj),
  11916. options: localVarRequestOptions,
  11917. };
  11918. },
  11919. /**
  11920. *
  11921. * @param {*} [options] Override http request option.
  11922. * @throws {RequiredError}
  11923. */
  11924. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11925. const localVarPath = `/server-info/version`;
  11926. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11927. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11928. let baseOptions;
  11929. if (configuration) {
  11930. baseOptions = configuration.baseOptions;
  11931. }
  11932. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11933. const localVarHeaderParameter = {} as any;
  11934. const localVarQueryParameter = {} as any;
  11935. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11936. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11937. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11938. return {
  11939. url: toPathString(localVarUrlObj),
  11940. options: localVarRequestOptions,
  11941. };
  11942. },
  11943. /**
  11944. *
  11945. * @param {*} [options] Override http request option.
  11946. * @throws {RequiredError}
  11947. */
  11948. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11949. const localVarPath = `/server-info/stats`;
  11950. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11951. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11952. let baseOptions;
  11953. if (configuration) {
  11954. baseOptions = configuration.baseOptions;
  11955. }
  11956. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11957. const localVarHeaderParameter = {} as any;
  11958. const localVarQueryParameter = {} as any;
  11959. // authentication cookie required
  11960. // authentication api_key required
  11961. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11962. // authentication bearer required
  11963. // http bearer authentication required
  11964. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11965. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11966. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11967. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11968. return {
  11969. url: toPathString(localVarUrlObj),
  11970. options: localVarRequestOptions,
  11971. };
  11972. },
  11973. /**
  11974. *
  11975. * @param {*} [options] Override http request option.
  11976. * @throws {RequiredError}
  11977. */
  11978. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11979. const localVarPath = `/server-info/media-types`;
  11980. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11981. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11982. let baseOptions;
  11983. if (configuration) {
  11984. baseOptions = configuration.baseOptions;
  11985. }
  11986. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11987. const localVarHeaderParameter = {} as any;
  11988. const localVarQueryParameter = {} as any;
  11989. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11990. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11991. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11992. return {
  11993. url: toPathString(localVarUrlObj),
  11994. options: localVarRequestOptions,
  11995. };
  11996. },
  11997. /**
  11998. *
  11999. * @param {*} [options] Override http request option.
  12000. * @throws {RequiredError}
  12001. */
  12002. getTheme: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12003. const localVarPath = `/server-info/theme`;
  12004. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12005. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12006. let baseOptions;
  12007. if (configuration) {
  12008. baseOptions = configuration.baseOptions;
  12009. }
  12010. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12011. const localVarHeaderParameter = {} as any;
  12012. const localVarQueryParameter = {} as any;
  12013. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12014. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12015. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12016. return {
  12017. url: toPathString(localVarUrlObj),
  12018. options: localVarRequestOptions,
  12019. };
  12020. },
  12021. /**
  12022. *
  12023. * @param {*} [options] Override http request option.
  12024. * @throws {RequiredError}
  12025. */
  12026. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12027. const localVarPath = `/server-info/ping`;
  12028. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12029. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12030. let baseOptions;
  12031. if (configuration) {
  12032. baseOptions = configuration.baseOptions;
  12033. }
  12034. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12035. const localVarHeaderParameter = {} as any;
  12036. const localVarQueryParameter = {} as any;
  12037. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12038. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12039. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12040. return {
  12041. url: toPathString(localVarUrlObj),
  12042. options: localVarRequestOptions,
  12043. };
  12044. },
  12045. }
  12046. };
  12047. /**
  12048. * ServerInfoApi - functional programming interface
  12049. * @export
  12050. */
  12051. export const ServerInfoApiFp = function(configuration?: Configuration) {
  12052. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  12053. return {
  12054. /**
  12055. *
  12056. * @param {*} [options] Override http request option.
  12057. * @throws {RequiredError}
  12058. */
  12059. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  12060. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  12061. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12062. },
  12063. /**
  12064. *
  12065. * @param {*} [options] Override http request option.
  12066. * @throws {RequiredError}
  12067. */
  12068. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  12069. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  12070. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12071. },
  12072. /**
  12073. *
  12074. * @param {*} [options] Override http request option.
  12075. * @throws {RequiredError}
  12076. */
  12077. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  12078. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  12079. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12080. },
  12081. /**
  12082. *
  12083. * @param {*} [options] Override http request option.
  12084. * @throws {RequiredError}
  12085. */
  12086. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  12087. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  12088. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12089. },
  12090. /**
  12091. *
  12092. * @param {*} [options] Override http request option.
  12093. * @throws {RequiredError}
  12094. */
  12095. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  12096. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  12097. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12098. },
  12099. /**
  12100. *
  12101. * @param {*} [options] Override http request option.
  12102. * @throws {RequiredError}
  12103. */
  12104. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  12105. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  12106. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12107. },
  12108. /**
  12109. *
  12110. * @param {*} [options] Override http request option.
  12111. * @throws {RequiredError}
  12112. */
  12113. async getTheme(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerThemeDto>> {
  12114. const localVarAxiosArgs = await localVarAxiosParamCreator.getTheme(options);
  12115. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12116. },
  12117. /**
  12118. *
  12119. * @param {*} [options] Override http request option.
  12120. * @throws {RequiredError}
  12121. */
  12122. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  12123. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  12124. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12125. },
  12126. }
  12127. };
  12128. /**
  12129. * ServerInfoApi - factory interface
  12130. * @export
  12131. */
  12132. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12133. const localVarFp = ServerInfoApiFp(configuration)
  12134. return {
  12135. /**
  12136. *
  12137. * @param {*} [options] Override http request option.
  12138. * @throws {RequiredError}
  12139. */
  12140. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  12141. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  12142. },
  12143. /**
  12144. *
  12145. * @param {*} [options] Override http request option.
  12146. * @throws {RequiredError}
  12147. */
  12148. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  12149. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  12150. },
  12151. /**
  12152. *
  12153. * @param {*} [options] Override http request option.
  12154. * @throws {RequiredError}
  12155. */
  12156. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  12157. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  12158. },
  12159. /**
  12160. *
  12161. * @param {*} [options] Override http request option.
  12162. * @throws {RequiredError}
  12163. */
  12164. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  12165. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  12166. },
  12167. /**
  12168. *
  12169. * @param {*} [options] Override http request option.
  12170. * @throws {RequiredError}
  12171. */
  12172. getStats(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  12173. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  12174. },
  12175. /**
  12176. *
  12177. * @param {*} [options] Override http request option.
  12178. * @throws {RequiredError}
  12179. */
  12180. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  12181. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  12182. },
  12183. /**
  12184. *
  12185. * @param {*} [options] Override http request option.
  12186. * @throws {RequiredError}
  12187. */
  12188. getTheme(options?: AxiosRequestConfig): AxiosPromise<ServerThemeDto> {
  12189. return localVarFp.getTheme(options).then((request) => request(axios, basePath));
  12190. },
  12191. /**
  12192. *
  12193. * @param {*} [options] Override http request option.
  12194. * @throws {RequiredError}
  12195. */
  12196. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  12197. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  12198. },
  12199. };
  12200. };
  12201. /**
  12202. * ServerInfoApi - object-oriented interface
  12203. * @export
  12204. * @class ServerInfoApi
  12205. * @extends {BaseAPI}
  12206. */
  12207. export class ServerInfoApi extends BaseAPI {
  12208. /**
  12209. *
  12210. * @param {*} [options] Override http request option.
  12211. * @throws {RequiredError}
  12212. * @memberof ServerInfoApi
  12213. */
  12214. public getServerConfig(options?: AxiosRequestConfig) {
  12215. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  12216. }
  12217. /**
  12218. *
  12219. * @param {*} [options] Override http request option.
  12220. * @throws {RequiredError}
  12221. * @memberof ServerInfoApi
  12222. */
  12223. public getServerFeatures(options?: AxiosRequestConfig) {
  12224. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  12225. }
  12226. /**
  12227. *
  12228. * @param {*} [options] Override http request option.
  12229. * @throws {RequiredError}
  12230. * @memberof ServerInfoApi
  12231. */
  12232. public getServerInfo(options?: AxiosRequestConfig) {
  12233. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  12234. }
  12235. /**
  12236. *
  12237. * @param {*} [options] Override http request option.
  12238. * @throws {RequiredError}
  12239. * @memberof ServerInfoApi
  12240. */
  12241. public getServerVersion(options?: AxiosRequestConfig) {
  12242. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  12243. }
  12244. /**
  12245. *
  12246. * @param {*} [options] Override http request option.
  12247. * @throws {RequiredError}
  12248. * @memberof ServerInfoApi
  12249. */
  12250. public getStats(options?: AxiosRequestConfig) {
  12251. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  12252. }
  12253. /**
  12254. *
  12255. * @param {*} [options] Override http request option.
  12256. * @throws {RequiredError}
  12257. * @memberof ServerInfoApi
  12258. */
  12259. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  12260. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  12261. }
  12262. /**
  12263. *
  12264. * @param {*} [options] Override http request option.
  12265. * @throws {RequiredError}
  12266. * @memberof ServerInfoApi
  12267. */
  12268. public getTheme(options?: AxiosRequestConfig) {
  12269. return ServerInfoApiFp(this.configuration).getTheme(options).then((request) => request(this.axios, this.basePath));
  12270. }
  12271. /**
  12272. *
  12273. * @param {*} [options] Override http request option.
  12274. * @throws {RequiredError}
  12275. * @memberof ServerInfoApi
  12276. */
  12277. public pingServer(options?: AxiosRequestConfig) {
  12278. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  12279. }
  12280. }
  12281. /**
  12282. * SharedLinkApi - axios parameter creator
  12283. * @export
  12284. */
  12285. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  12286. return {
  12287. /**
  12288. *
  12289. * @param {string} id
  12290. * @param {AssetIdsDto} assetIdsDto
  12291. * @param {string} [key]
  12292. * @param {*} [options] Override http request option.
  12293. * @throws {RequiredError}
  12294. */
  12295. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12296. // verify required parameter 'id' is not null or undefined
  12297. assertParamExists('addSharedLinkAssets', 'id', id)
  12298. // verify required parameter 'assetIdsDto' is not null or undefined
  12299. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12300. const localVarPath = `/shared-link/{id}/assets`
  12301. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12302. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12303. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12304. let baseOptions;
  12305. if (configuration) {
  12306. baseOptions = configuration.baseOptions;
  12307. }
  12308. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12309. const localVarHeaderParameter = {} as any;
  12310. const localVarQueryParameter = {} as any;
  12311. // authentication cookie required
  12312. // authentication api_key required
  12313. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12314. // authentication bearer required
  12315. // http bearer authentication required
  12316. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12317. if (key !== undefined) {
  12318. localVarQueryParameter['key'] = key;
  12319. }
  12320. localVarHeaderParameter['Content-Type'] = 'application/json';
  12321. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12322. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12323. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12324. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12325. return {
  12326. url: toPathString(localVarUrlObj),
  12327. options: localVarRequestOptions,
  12328. };
  12329. },
  12330. /**
  12331. *
  12332. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12333. * @param {*} [options] Override http request option.
  12334. * @throws {RequiredError}
  12335. */
  12336. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12337. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  12338. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  12339. const localVarPath = `/shared-link`;
  12340. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12341. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12342. let baseOptions;
  12343. if (configuration) {
  12344. baseOptions = configuration.baseOptions;
  12345. }
  12346. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12347. const localVarHeaderParameter = {} as any;
  12348. const localVarQueryParameter = {} as any;
  12349. // authentication cookie required
  12350. // authentication api_key required
  12351. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12352. // authentication bearer required
  12353. // http bearer authentication required
  12354. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12355. localVarHeaderParameter['Content-Type'] = 'application/json';
  12356. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12357. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12358. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12359. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  12360. return {
  12361. url: toPathString(localVarUrlObj),
  12362. options: localVarRequestOptions,
  12363. };
  12364. },
  12365. /**
  12366. *
  12367. * @param {*} [options] Override http request option.
  12368. * @throws {RequiredError}
  12369. */
  12370. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12371. const localVarPath = `/shared-link`;
  12372. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12373. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12374. let baseOptions;
  12375. if (configuration) {
  12376. baseOptions = configuration.baseOptions;
  12377. }
  12378. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12379. const localVarHeaderParameter = {} as any;
  12380. const localVarQueryParameter = {} as any;
  12381. // authentication cookie required
  12382. // authentication api_key required
  12383. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12384. // authentication bearer required
  12385. // http bearer authentication required
  12386. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12387. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12388. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12389. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12390. return {
  12391. url: toPathString(localVarUrlObj),
  12392. options: localVarRequestOptions,
  12393. };
  12394. },
  12395. /**
  12396. *
  12397. * @param {string} [password]
  12398. * @param {string} [token]
  12399. * @param {string} [key]
  12400. * @param {*} [options] Override http request option.
  12401. * @throws {RequiredError}
  12402. */
  12403. getMySharedLink: async (password?: string, token?: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12404. const localVarPath = `/shared-link/me`;
  12405. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12406. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12407. let baseOptions;
  12408. if (configuration) {
  12409. baseOptions = configuration.baseOptions;
  12410. }
  12411. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12412. const localVarHeaderParameter = {} as any;
  12413. const localVarQueryParameter = {} as any;
  12414. // authentication cookie required
  12415. // authentication api_key required
  12416. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12417. // authentication bearer required
  12418. // http bearer authentication required
  12419. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12420. if (password !== undefined) {
  12421. localVarQueryParameter['password'] = password;
  12422. }
  12423. if (token !== undefined) {
  12424. localVarQueryParameter['token'] = token;
  12425. }
  12426. if (key !== undefined) {
  12427. localVarQueryParameter['key'] = key;
  12428. }
  12429. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12430. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12431. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12432. return {
  12433. url: toPathString(localVarUrlObj),
  12434. options: localVarRequestOptions,
  12435. };
  12436. },
  12437. /**
  12438. *
  12439. * @param {string} id
  12440. * @param {*} [options] Override http request option.
  12441. * @throws {RequiredError}
  12442. */
  12443. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12444. // verify required parameter 'id' is not null or undefined
  12445. assertParamExists('getSharedLinkById', 'id', id)
  12446. const localVarPath = `/shared-link/{id}`
  12447. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12448. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12449. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12450. let baseOptions;
  12451. if (configuration) {
  12452. baseOptions = configuration.baseOptions;
  12453. }
  12454. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12455. const localVarHeaderParameter = {} as any;
  12456. const localVarQueryParameter = {} as any;
  12457. // authentication cookie required
  12458. // authentication api_key required
  12459. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12460. // authentication bearer required
  12461. // http bearer authentication required
  12462. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12463. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12464. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12465. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12466. return {
  12467. url: toPathString(localVarUrlObj),
  12468. options: localVarRequestOptions,
  12469. };
  12470. },
  12471. /**
  12472. *
  12473. * @param {string} id
  12474. * @param {*} [options] Override http request option.
  12475. * @throws {RequiredError}
  12476. */
  12477. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12478. // verify required parameter 'id' is not null or undefined
  12479. assertParamExists('removeSharedLink', 'id', id)
  12480. const localVarPath = `/shared-link/{id}`
  12481. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12482. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12483. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12484. let baseOptions;
  12485. if (configuration) {
  12486. baseOptions = configuration.baseOptions;
  12487. }
  12488. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12489. const localVarHeaderParameter = {} as any;
  12490. const localVarQueryParameter = {} as any;
  12491. // authentication cookie required
  12492. // authentication api_key required
  12493. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12494. // authentication bearer required
  12495. // http bearer authentication required
  12496. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12497. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12498. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12499. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12500. return {
  12501. url: toPathString(localVarUrlObj),
  12502. options: localVarRequestOptions,
  12503. };
  12504. },
  12505. /**
  12506. *
  12507. * @param {string} id
  12508. * @param {AssetIdsDto} assetIdsDto
  12509. * @param {string} [key]
  12510. * @param {*} [options] Override http request option.
  12511. * @throws {RequiredError}
  12512. */
  12513. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12514. // verify required parameter 'id' is not null or undefined
  12515. assertParamExists('removeSharedLinkAssets', 'id', id)
  12516. // verify required parameter 'assetIdsDto' is not null or undefined
  12517. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12518. const localVarPath = `/shared-link/{id}/assets`
  12519. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12520. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12521. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12522. let baseOptions;
  12523. if (configuration) {
  12524. baseOptions = configuration.baseOptions;
  12525. }
  12526. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12527. const localVarHeaderParameter = {} as any;
  12528. const localVarQueryParameter = {} as any;
  12529. // authentication cookie required
  12530. // authentication api_key required
  12531. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12532. // authentication bearer required
  12533. // http bearer authentication required
  12534. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12535. if (key !== undefined) {
  12536. localVarQueryParameter['key'] = key;
  12537. }
  12538. localVarHeaderParameter['Content-Type'] = 'application/json';
  12539. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12540. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12541. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12542. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12543. return {
  12544. url: toPathString(localVarUrlObj),
  12545. options: localVarRequestOptions,
  12546. };
  12547. },
  12548. /**
  12549. *
  12550. * @param {string} id
  12551. * @param {SharedLinkEditDto} sharedLinkEditDto
  12552. * @param {*} [options] Override http request option.
  12553. * @throws {RequiredError}
  12554. */
  12555. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12556. // verify required parameter 'id' is not null or undefined
  12557. assertParamExists('updateSharedLink', 'id', id)
  12558. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  12559. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  12560. const localVarPath = `/shared-link/{id}`
  12561. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12562. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12563. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12564. let baseOptions;
  12565. if (configuration) {
  12566. baseOptions = configuration.baseOptions;
  12567. }
  12568. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  12569. const localVarHeaderParameter = {} as any;
  12570. const localVarQueryParameter = {} as any;
  12571. // authentication cookie required
  12572. // authentication api_key required
  12573. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12574. // authentication bearer required
  12575. // http bearer authentication required
  12576. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12577. localVarHeaderParameter['Content-Type'] = 'application/json';
  12578. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12579. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12580. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12581. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  12582. return {
  12583. url: toPathString(localVarUrlObj),
  12584. options: localVarRequestOptions,
  12585. };
  12586. },
  12587. }
  12588. };
  12589. /**
  12590. * SharedLinkApi - functional programming interface
  12591. * @export
  12592. */
  12593. export const SharedLinkApiFp = function(configuration?: Configuration) {
  12594. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  12595. return {
  12596. /**
  12597. *
  12598. * @param {string} id
  12599. * @param {AssetIdsDto} assetIdsDto
  12600. * @param {string} [key]
  12601. * @param {*} [options] Override http request option.
  12602. * @throws {RequiredError}
  12603. */
  12604. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12605. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  12606. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12607. },
  12608. /**
  12609. *
  12610. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12611. * @param {*} [options] Override http request option.
  12612. * @throws {RequiredError}
  12613. */
  12614. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12615. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  12616. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12617. },
  12618. /**
  12619. *
  12620. * @param {*} [options] Override http request option.
  12621. * @throws {RequiredError}
  12622. */
  12623. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  12624. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  12625. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12626. },
  12627. /**
  12628. *
  12629. * @param {string} [password]
  12630. * @param {string} [token]
  12631. * @param {string} [key]
  12632. * @param {*} [options] Override http request option.
  12633. * @throws {RequiredError}
  12634. */
  12635. async getMySharedLink(password?: string, token?: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12636. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(password, token, key, options);
  12637. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12638. },
  12639. /**
  12640. *
  12641. * @param {string} id
  12642. * @param {*} [options] Override http request option.
  12643. * @throws {RequiredError}
  12644. */
  12645. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12646. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  12647. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12648. },
  12649. /**
  12650. *
  12651. * @param {string} id
  12652. * @param {*} [options] Override http request option.
  12653. * @throws {RequiredError}
  12654. */
  12655. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  12656. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  12657. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12658. },
  12659. /**
  12660. *
  12661. * @param {string} id
  12662. * @param {AssetIdsDto} assetIdsDto
  12663. * @param {string} [key]
  12664. * @param {*} [options] Override http request option.
  12665. * @throws {RequiredError}
  12666. */
  12667. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12668. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  12669. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12670. },
  12671. /**
  12672. *
  12673. * @param {string} id
  12674. * @param {SharedLinkEditDto} sharedLinkEditDto
  12675. * @param {*} [options] Override http request option.
  12676. * @throws {RequiredError}
  12677. */
  12678. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12679. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  12680. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12681. },
  12682. }
  12683. };
  12684. /**
  12685. * SharedLinkApi - factory interface
  12686. * @export
  12687. */
  12688. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12689. const localVarFp = SharedLinkApiFp(configuration)
  12690. return {
  12691. /**
  12692. *
  12693. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12694. * @param {*} [options] Override http request option.
  12695. * @throws {RequiredError}
  12696. */
  12697. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12698. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12699. },
  12700. /**
  12701. *
  12702. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12703. * @param {*} [options] Override http request option.
  12704. * @throws {RequiredError}
  12705. */
  12706. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12707. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  12708. },
  12709. /**
  12710. *
  12711. * @param {*} [options] Override http request option.
  12712. * @throws {RequiredError}
  12713. */
  12714. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  12715. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  12716. },
  12717. /**
  12718. *
  12719. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12720. * @param {*} [options] Override http request option.
  12721. * @throws {RequiredError}
  12722. */
  12723. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12724. return localVarFp.getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(axios, basePath));
  12725. },
  12726. /**
  12727. *
  12728. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12729. * @param {*} [options] Override http request option.
  12730. * @throws {RequiredError}
  12731. */
  12732. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12733. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  12734. },
  12735. /**
  12736. *
  12737. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12738. * @param {*} [options] Override http request option.
  12739. * @throws {RequiredError}
  12740. */
  12741. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  12742. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  12743. },
  12744. /**
  12745. *
  12746. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12747. * @param {*} [options] Override http request option.
  12748. * @throws {RequiredError}
  12749. */
  12750. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12751. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12752. },
  12753. /**
  12754. *
  12755. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12756. * @param {*} [options] Override http request option.
  12757. * @throws {RequiredError}
  12758. */
  12759. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12760. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  12761. },
  12762. };
  12763. };
  12764. /**
  12765. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  12766. * @export
  12767. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  12768. */
  12769. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  12770. /**
  12771. *
  12772. * @type {string}
  12773. * @memberof SharedLinkApiAddSharedLinkAssets
  12774. */
  12775. readonly id: string
  12776. /**
  12777. *
  12778. * @type {AssetIdsDto}
  12779. * @memberof SharedLinkApiAddSharedLinkAssets
  12780. */
  12781. readonly assetIdsDto: AssetIdsDto
  12782. /**
  12783. *
  12784. * @type {string}
  12785. * @memberof SharedLinkApiAddSharedLinkAssets
  12786. */
  12787. readonly key?: string
  12788. }
  12789. /**
  12790. * Request parameters for createSharedLink operation in SharedLinkApi.
  12791. * @export
  12792. * @interface SharedLinkApiCreateSharedLinkRequest
  12793. */
  12794. export interface SharedLinkApiCreateSharedLinkRequest {
  12795. /**
  12796. *
  12797. * @type {SharedLinkCreateDto}
  12798. * @memberof SharedLinkApiCreateSharedLink
  12799. */
  12800. readonly sharedLinkCreateDto: SharedLinkCreateDto
  12801. }
  12802. /**
  12803. * Request parameters for getMySharedLink operation in SharedLinkApi.
  12804. * @export
  12805. * @interface SharedLinkApiGetMySharedLinkRequest
  12806. */
  12807. export interface SharedLinkApiGetMySharedLinkRequest {
  12808. /**
  12809. *
  12810. * @type {string}
  12811. * @memberof SharedLinkApiGetMySharedLink
  12812. */
  12813. readonly password?: string
  12814. /**
  12815. *
  12816. * @type {string}
  12817. * @memberof SharedLinkApiGetMySharedLink
  12818. */
  12819. readonly token?: string
  12820. /**
  12821. *
  12822. * @type {string}
  12823. * @memberof SharedLinkApiGetMySharedLink
  12824. */
  12825. readonly key?: string
  12826. }
  12827. /**
  12828. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  12829. * @export
  12830. * @interface SharedLinkApiGetSharedLinkByIdRequest
  12831. */
  12832. export interface SharedLinkApiGetSharedLinkByIdRequest {
  12833. /**
  12834. *
  12835. * @type {string}
  12836. * @memberof SharedLinkApiGetSharedLinkById
  12837. */
  12838. readonly id: string
  12839. }
  12840. /**
  12841. * Request parameters for removeSharedLink operation in SharedLinkApi.
  12842. * @export
  12843. * @interface SharedLinkApiRemoveSharedLinkRequest
  12844. */
  12845. export interface SharedLinkApiRemoveSharedLinkRequest {
  12846. /**
  12847. *
  12848. * @type {string}
  12849. * @memberof SharedLinkApiRemoveSharedLink
  12850. */
  12851. readonly id: string
  12852. }
  12853. /**
  12854. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  12855. * @export
  12856. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  12857. */
  12858. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  12859. /**
  12860. *
  12861. * @type {string}
  12862. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12863. */
  12864. readonly id: string
  12865. /**
  12866. *
  12867. * @type {AssetIdsDto}
  12868. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12869. */
  12870. readonly assetIdsDto: AssetIdsDto
  12871. /**
  12872. *
  12873. * @type {string}
  12874. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12875. */
  12876. readonly key?: string
  12877. }
  12878. /**
  12879. * Request parameters for updateSharedLink operation in SharedLinkApi.
  12880. * @export
  12881. * @interface SharedLinkApiUpdateSharedLinkRequest
  12882. */
  12883. export interface SharedLinkApiUpdateSharedLinkRequest {
  12884. /**
  12885. *
  12886. * @type {string}
  12887. * @memberof SharedLinkApiUpdateSharedLink
  12888. */
  12889. readonly id: string
  12890. /**
  12891. *
  12892. * @type {SharedLinkEditDto}
  12893. * @memberof SharedLinkApiUpdateSharedLink
  12894. */
  12895. readonly sharedLinkEditDto: SharedLinkEditDto
  12896. }
  12897. /**
  12898. * SharedLinkApi - object-oriented interface
  12899. * @export
  12900. * @class SharedLinkApi
  12901. * @extends {BaseAPI}
  12902. */
  12903. export class SharedLinkApi extends BaseAPI {
  12904. /**
  12905. *
  12906. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12907. * @param {*} [options] Override http request option.
  12908. * @throws {RequiredError}
  12909. * @memberof SharedLinkApi
  12910. */
  12911. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12912. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12913. }
  12914. /**
  12915. *
  12916. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12917. * @param {*} [options] Override http request option.
  12918. * @throws {RequiredError}
  12919. * @memberof SharedLinkApi
  12920. */
  12921. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  12922. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  12923. }
  12924. /**
  12925. *
  12926. * @param {*} [options] Override http request option.
  12927. * @throws {RequiredError}
  12928. * @memberof SharedLinkApi
  12929. */
  12930. public getAllSharedLinks(options?: AxiosRequestConfig) {
  12931. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  12932. }
  12933. /**
  12934. *
  12935. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12936. * @param {*} [options] Override http request option.
  12937. * @throws {RequiredError}
  12938. * @memberof SharedLinkApi
  12939. */
  12940. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  12941. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12942. }
  12943. /**
  12944. *
  12945. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12946. * @param {*} [options] Override http request option.
  12947. * @throws {RequiredError}
  12948. * @memberof SharedLinkApi
  12949. */
  12950. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  12951. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12952. }
  12953. /**
  12954. *
  12955. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12956. * @param {*} [options] Override http request option.
  12957. * @throws {RequiredError}
  12958. * @memberof SharedLinkApi
  12959. */
  12960. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  12961. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12962. }
  12963. /**
  12964. *
  12965. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12966. * @param {*} [options] Override http request option.
  12967. * @throws {RequiredError}
  12968. * @memberof SharedLinkApi
  12969. */
  12970. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12971. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12972. }
  12973. /**
  12974. *
  12975. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12976. * @param {*} [options] Override http request option.
  12977. * @throws {RequiredError}
  12978. * @memberof SharedLinkApi
  12979. */
  12980. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  12981. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  12982. }
  12983. }
  12984. /**
  12985. * SystemConfigApi - axios parameter creator
  12986. * @export
  12987. */
  12988. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  12989. return {
  12990. /**
  12991. *
  12992. * @param {*} [options] Override http request option.
  12993. * @throws {RequiredError}
  12994. */
  12995. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12996. const localVarPath = `/system-config`;
  12997. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12998. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12999. let baseOptions;
  13000. if (configuration) {
  13001. baseOptions = configuration.baseOptions;
  13002. }
  13003. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13004. const localVarHeaderParameter = {} as any;
  13005. const localVarQueryParameter = {} as any;
  13006. // authentication cookie required
  13007. // authentication api_key required
  13008. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13009. // authentication bearer required
  13010. // http bearer authentication required
  13011. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13012. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13013. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13014. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13015. return {
  13016. url: toPathString(localVarUrlObj),
  13017. options: localVarRequestOptions,
  13018. };
  13019. },
  13020. /**
  13021. *
  13022. * @param {*} [options] Override http request option.
  13023. * @throws {RequiredError}
  13024. */
  13025. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13026. const localVarPath = `/system-config/defaults`;
  13027. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13028. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13029. let baseOptions;
  13030. if (configuration) {
  13031. baseOptions = configuration.baseOptions;
  13032. }
  13033. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13034. const localVarHeaderParameter = {} as any;
  13035. const localVarQueryParameter = {} as any;
  13036. // authentication cookie required
  13037. // authentication api_key required
  13038. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13039. // authentication bearer required
  13040. // http bearer authentication required
  13041. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13042. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13043. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13044. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13045. return {
  13046. url: toPathString(localVarUrlObj),
  13047. options: localVarRequestOptions,
  13048. };
  13049. },
  13050. /**
  13051. *
  13052. * @param {*} [options] Override http request option.
  13053. * @throws {RequiredError}
  13054. */
  13055. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13056. const localVarPath = `/system-config/storage-template-options`;
  13057. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13058. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13059. let baseOptions;
  13060. if (configuration) {
  13061. baseOptions = configuration.baseOptions;
  13062. }
  13063. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13064. const localVarHeaderParameter = {} as any;
  13065. const localVarQueryParameter = {} as any;
  13066. // authentication cookie required
  13067. // authentication api_key required
  13068. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13069. // authentication bearer required
  13070. // http bearer authentication required
  13071. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13072. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13073. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13074. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13075. return {
  13076. url: toPathString(localVarUrlObj),
  13077. options: localVarRequestOptions,
  13078. };
  13079. },
  13080. /**
  13081. *
  13082. * @param {SystemConfigDto} systemConfigDto
  13083. * @param {*} [options] Override http request option.
  13084. * @throws {RequiredError}
  13085. */
  13086. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13087. // verify required parameter 'systemConfigDto' is not null or undefined
  13088. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  13089. const localVarPath = `/system-config`;
  13090. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13091. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13092. let baseOptions;
  13093. if (configuration) {
  13094. baseOptions = configuration.baseOptions;
  13095. }
  13096. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13097. const localVarHeaderParameter = {} as any;
  13098. const localVarQueryParameter = {} as any;
  13099. // authentication cookie required
  13100. // authentication api_key required
  13101. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13102. // authentication bearer required
  13103. // http bearer authentication required
  13104. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13105. localVarHeaderParameter['Content-Type'] = 'application/json';
  13106. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13107. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13108. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13109. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  13110. return {
  13111. url: toPathString(localVarUrlObj),
  13112. options: localVarRequestOptions,
  13113. };
  13114. },
  13115. }
  13116. };
  13117. /**
  13118. * SystemConfigApi - functional programming interface
  13119. * @export
  13120. */
  13121. export const SystemConfigApiFp = function(configuration?: Configuration) {
  13122. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  13123. return {
  13124. /**
  13125. *
  13126. * @param {*} [options] Override http request option.
  13127. * @throws {RequiredError}
  13128. */
  13129. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13130. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  13131. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13132. },
  13133. /**
  13134. *
  13135. * @param {*} [options] Override http request option.
  13136. * @throws {RequiredError}
  13137. */
  13138. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13139. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  13140. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13141. },
  13142. /**
  13143. *
  13144. * @param {*} [options] Override http request option.
  13145. * @throws {RequiredError}
  13146. */
  13147. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  13148. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  13149. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13150. },
  13151. /**
  13152. *
  13153. * @param {SystemConfigDto} systemConfigDto
  13154. * @param {*} [options] Override http request option.
  13155. * @throws {RequiredError}
  13156. */
  13157. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13158. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  13159. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13160. },
  13161. }
  13162. };
  13163. /**
  13164. * SystemConfigApi - factory interface
  13165. * @export
  13166. */
  13167. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13168. const localVarFp = SystemConfigApiFp(configuration)
  13169. return {
  13170. /**
  13171. *
  13172. * @param {*} [options] Override http request option.
  13173. * @throws {RequiredError}
  13174. */
  13175. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13176. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  13177. },
  13178. /**
  13179. *
  13180. * @param {*} [options] Override http request option.
  13181. * @throws {RequiredError}
  13182. */
  13183. getDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13184. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  13185. },
  13186. /**
  13187. *
  13188. * @param {*} [options] Override http request option.
  13189. * @throws {RequiredError}
  13190. */
  13191. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  13192. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  13193. },
  13194. /**
  13195. *
  13196. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13197. * @param {*} [options] Override http request option.
  13198. * @throws {RequiredError}
  13199. */
  13200. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13201. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  13202. },
  13203. };
  13204. };
  13205. /**
  13206. * Request parameters for updateConfig operation in SystemConfigApi.
  13207. * @export
  13208. * @interface SystemConfigApiUpdateConfigRequest
  13209. */
  13210. export interface SystemConfigApiUpdateConfigRequest {
  13211. /**
  13212. *
  13213. * @type {SystemConfigDto}
  13214. * @memberof SystemConfigApiUpdateConfig
  13215. */
  13216. readonly systemConfigDto: SystemConfigDto
  13217. }
  13218. /**
  13219. * SystemConfigApi - object-oriented interface
  13220. * @export
  13221. * @class SystemConfigApi
  13222. * @extends {BaseAPI}
  13223. */
  13224. export class SystemConfigApi extends BaseAPI {
  13225. /**
  13226. *
  13227. * @param {*} [options] Override http request option.
  13228. * @throws {RequiredError}
  13229. * @memberof SystemConfigApi
  13230. */
  13231. public getConfig(options?: AxiosRequestConfig) {
  13232. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  13233. }
  13234. /**
  13235. *
  13236. * @param {*} [options] Override http request option.
  13237. * @throws {RequiredError}
  13238. * @memberof SystemConfigApi
  13239. */
  13240. public getDefaults(options?: AxiosRequestConfig) {
  13241. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  13242. }
  13243. /**
  13244. *
  13245. * @param {*} [options] Override http request option.
  13246. * @throws {RequiredError}
  13247. * @memberof SystemConfigApi
  13248. */
  13249. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  13250. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  13251. }
  13252. /**
  13253. *
  13254. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13255. * @param {*} [options] Override http request option.
  13256. * @throws {RequiredError}
  13257. * @memberof SystemConfigApi
  13258. */
  13259. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  13260. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  13261. }
  13262. }
  13263. /**
  13264. * TagApi - axios parameter creator
  13265. * @export
  13266. */
  13267. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  13268. return {
  13269. /**
  13270. *
  13271. * @param {CreateTagDto} createTagDto
  13272. * @param {*} [options] Override http request option.
  13273. * @throws {RequiredError}
  13274. */
  13275. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13276. // verify required parameter 'createTagDto' is not null or undefined
  13277. assertParamExists('createTag', 'createTagDto', createTagDto)
  13278. const localVarPath = `/tag`;
  13279. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13280. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13281. let baseOptions;
  13282. if (configuration) {
  13283. baseOptions = configuration.baseOptions;
  13284. }
  13285. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13286. const localVarHeaderParameter = {} as any;
  13287. const localVarQueryParameter = {} as any;
  13288. // authentication cookie required
  13289. // authentication api_key required
  13290. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13291. // authentication bearer required
  13292. // http bearer authentication required
  13293. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13294. localVarHeaderParameter['Content-Type'] = 'application/json';
  13295. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13296. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13297. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13298. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  13299. return {
  13300. url: toPathString(localVarUrlObj),
  13301. options: localVarRequestOptions,
  13302. };
  13303. },
  13304. /**
  13305. *
  13306. * @param {string} id
  13307. * @param {*} [options] Override http request option.
  13308. * @throws {RequiredError}
  13309. */
  13310. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13311. // verify required parameter 'id' is not null or undefined
  13312. assertParamExists('deleteTag', 'id', id)
  13313. const localVarPath = `/tag/{id}`
  13314. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13315. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13316. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13317. let baseOptions;
  13318. if (configuration) {
  13319. baseOptions = configuration.baseOptions;
  13320. }
  13321. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13322. const localVarHeaderParameter = {} as any;
  13323. const localVarQueryParameter = {} as any;
  13324. // authentication cookie required
  13325. // authentication api_key required
  13326. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13327. // authentication bearer required
  13328. // http bearer authentication required
  13329. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13330. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13331. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13332. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13333. return {
  13334. url: toPathString(localVarUrlObj),
  13335. options: localVarRequestOptions,
  13336. };
  13337. },
  13338. /**
  13339. *
  13340. * @param {*} [options] Override http request option.
  13341. * @throws {RequiredError}
  13342. */
  13343. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13344. const localVarPath = `/tag`;
  13345. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13346. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13347. let baseOptions;
  13348. if (configuration) {
  13349. baseOptions = configuration.baseOptions;
  13350. }
  13351. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13352. const localVarHeaderParameter = {} as any;
  13353. const localVarQueryParameter = {} as any;
  13354. // authentication cookie required
  13355. // authentication api_key required
  13356. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13357. // authentication bearer required
  13358. // http bearer authentication required
  13359. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13360. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13361. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13362. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13363. return {
  13364. url: toPathString(localVarUrlObj),
  13365. options: localVarRequestOptions,
  13366. };
  13367. },
  13368. /**
  13369. *
  13370. * @param {string} id
  13371. * @param {*} [options] Override http request option.
  13372. * @throws {RequiredError}
  13373. */
  13374. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13375. // verify required parameter 'id' is not null or undefined
  13376. assertParamExists('getTagAssets', 'id', id)
  13377. const localVarPath = `/tag/{id}/assets`
  13378. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13379. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13380. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13381. let baseOptions;
  13382. if (configuration) {
  13383. baseOptions = configuration.baseOptions;
  13384. }
  13385. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13386. const localVarHeaderParameter = {} as any;
  13387. const localVarQueryParameter = {} as any;
  13388. // authentication cookie required
  13389. // authentication api_key required
  13390. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13391. // authentication bearer required
  13392. // http bearer authentication required
  13393. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13394. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13395. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13396. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13397. return {
  13398. url: toPathString(localVarUrlObj),
  13399. options: localVarRequestOptions,
  13400. };
  13401. },
  13402. /**
  13403. *
  13404. * @param {string} id
  13405. * @param {*} [options] Override http request option.
  13406. * @throws {RequiredError}
  13407. */
  13408. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13409. // verify required parameter 'id' is not null or undefined
  13410. assertParamExists('getTagById', 'id', id)
  13411. const localVarPath = `/tag/{id}`
  13412. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13413. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13414. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13415. let baseOptions;
  13416. if (configuration) {
  13417. baseOptions = configuration.baseOptions;
  13418. }
  13419. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13420. const localVarHeaderParameter = {} as any;
  13421. const localVarQueryParameter = {} as any;
  13422. // authentication cookie required
  13423. // authentication api_key required
  13424. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13425. // authentication bearer required
  13426. // http bearer authentication required
  13427. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13428. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13429. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13430. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13431. return {
  13432. url: toPathString(localVarUrlObj),
  13433. options: localVarRequestOptions,
  13434. };
  13435. },
  13436. /**
  13437. *
  13438. * @param {string} id
  13439. * @param {AssetIdsDto} assetIdsDto
  13440. * @param {*} [options] Override http request option.
  13441. * @throws {RequiredError}
  13442. */
  13443. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13444. // verify required parameter 'id' is not null or undefined
  13445. assertParamExists('tagAssets', 'id', id)
  13446. // verify required parameter 'assetIdsDto' is not null or undefined
  13447. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  13448. const localVarPath = `/tag/{id}/assets`
  13449. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13450. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13451. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13452. let baseOptions;
  13453. if (configuration) {
  13454. baseOptions = configuration.baseOptions;
  13455. }
  13456. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13457. const localVarHeaderParameter = {} as any;
  13458. const localVarQueryParameter = {} as any;
  13459. // authentication cookie required
  13460. // authentication api_key required
  13461. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13462. // authentication bearer required
  13463. // http bearer authentication required
  13464. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13465. localVarHeaderParameter['Content-Type'] = 'application/json';
  13466. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13467. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13468. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13469. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13470. return {
  13471. url: toPathString(localVarUrlObj),
  13472. options: localVarRequestOptions,
  13473. };
  13474. },
  13475. /**
  13476. *
  13477. * @param {string} id
  13478. * @param {AssetIdsDto} assetIdsDto
  13479. * @param {*} [options] Override http request option.
  13480. * @throws {RequiredError}
  13481. */
  13482. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13483. // verify required parameter 'id' is not null or undefined
  13484. assertParamExists('untagAssets', 'id', id)
  13485. // verify required parameter 'assetIdsDto' is not null or undefined
  13486. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  13487. const localVarPath = `/tag/{id}/assets`
  13488. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13489. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13490. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13491. let baseOptions;
  13492. if (configuration) {
  13493. baseOptions = configuration.baseOptions;
  13494. }
  13495. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13496. const localVarHeaderParameter = {} as any;
  13497. const localVarQueryParameter = {} as any;
  13498. // authentication cookie required
  13499. // authentication api_key required
  13500. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13501. // authentication bearer required
  13502. // http bearer authentication required
  13503. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13504. localVarHeaderParameter['Content-Type'] = 'application/json';
  13505. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13506. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13507. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13508. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13509. return {
  13510. url: toPathString(localVarUrlObj),
  13511. options: localVarRequestOptions,
  13512. };
  13513. },
  13514. /**
  13515. *
  13516. * @param {string} id
  13517. * @param {UpdateTagDto} updateTagDto
  13518. * @param {*} [options] Override http request option.
  13519. * @throws {RequiredError}
  13520. */
  13521. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13522. // verify required parameter 'id' is not null or undefined
  13523. assertParamExists('updateTag', 'id', id)
  13524. // verify required parameter 'updateTagDto' is not null or undefined
  13525. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  13526. const localVarPath = `/tag/{id}`
  13527. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13528. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13529. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13530. let baseOptions;
  13531. if (configuration) {
  13532. baseOptions = configuration.baseOptions;
  13533. }
  13534. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13535. const localVarHeaderParameter = {} as any;
  13536. const localVarQueryParameter = {} as any;
  13537. // authentication cookie required
  13538. // authentication api_key required
  13539. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13540. // authentication bearer required
  13541. // http bearer authentication required
  13542. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13543. localVarHeaderParameter['Content-Type'] = 'application/json';
  13544. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13545. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13546. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13547. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  13548. return {
  13549. url: toPathString(localVarUrlObj),
  13550. options: localVarRequestOptions,
  13551. };
  13552. },
  13553. }
  13554. };
  13555. /**
  13556. * TagApi - functional programming interface
  13557. * @export
  13558. */
  13559. export const TagApiFp = function(configuration?: Configuration) {
  13560. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  13561. return {
  13562. /**
  13563. *
  13564. * @param {CreateTagDto} createTagDto
  13565. * @param {*} [options] Override http request option.
  13566. * @throws {RequiredError}
  13567. */
  13568. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13569. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  13570. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13571. },
  13572. /**
  13573. *
  13574. * @param {string} id
  13575. * @param {*} [options] Override http request option.
  13576. * @throws {RequiredError}
  13577. */
  13578. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13579. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  13580. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13581. },
  13582. /**
  13583. *
  13584. * @param {*} [options] Override http request option.
  13585. * @throws {RequiredError}
  13586. */
  13587. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  13588. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  13589. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13590. },
  13591. /**
  13592. *
  13593. * @param {string} id
  13594. * @param {*} [options] Override http request option.
  13595. * @throws {RequiredError}
  13596. */
  13597. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  13598. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  13599. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13600. },
  13601. /**
  13602. *
  13603. * @param {string} id
  13604. * @param {*} [options] Override http request option.
  13605. * @throws {RequiredError}
  13606. */
  13607. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13608. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  13609. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13610. },
  13611. /**
  13612. *
  13613. * @param {string} id
  13614. * @param {AssetIdsDto} assetIdsDto
  13615. * @param {*} [options] Override http request option.
  13616. * @throws {RequiredError}
  13617. */
  13618. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13619. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  13620. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13621. },
  13622. /**
  13623. *
  13624. * @param {string} id
  13625. * @param {AssetIdsDto} assetIdsDto
  13626. * @param {*} [options] Override http request option.
  13627. * @throws {RequiredError}
  13628. */
  13629. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13630. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  13631. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13632. },
  13633. /**
  13634. *
  13635. * @param {string} id
  13636. * @param {UpdateTagDto} updateTagDto
  13637. * @param {*} [options] Override http request option.
  13638. * @throws {RequiredError}
  13639. */
  13640. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13641. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  13642. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13643. },
  13644. }
  13645. };
  13646. /**
  13647. * TagApi - factory interface
  13648. * @export
  13649. */
  13650. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13651. const localVarFp = TagApiFp(configuration)
  13652. return {
  13653. /**
  13654. *
  13655. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13656. * @param {*} [options] Override http request option.
  13657. * @throws {RequiredError}
  13658. */
  13659. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13660. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  13661. },
  13662. /**
  13663. *
  13664. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13665. * @param {*} [options] Override http request option.
  13666. * @throws {RequiredError}
  13667. */
  13668. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13669. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  13670. },
  13671. /**
  13672. *
  13673. * @param {*} [options] Override http request option.
  13674. * @throws {RequiredError}
  13675. */
  13676. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  13677. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  13678. },
  13679. /**
  13680. *
  13681. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13682. * @param {*} [options] Override http request option.
  13683. * @throws {RequiredError}
  13684. */
  13685. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  13686. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  13687. },
  13688. /**
  13689. *
  13690. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13691. * @param {*} [options] Override http request option.
  13692. * @throws {RequiredError}
  13693. */
  13694. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13695. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  13696. },
  13697. /**
  13698. *
  13699. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13700. * @param {*} [options] Override http request option.
  13701. * @throws {RequiredError}
  13702. */
  13703. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13704. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13705. },
  13706. /**
  13707. *
  13708. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13709. * @param {*} [options] Override http request option.
  13710. * @throws {RequiredError}
  13711. */
  13712. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13713. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13714. },
  13715. /**
  13716. *
  13717. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13718. * @param {*} [options] Override http request option.
  13719. * @throws {RequiredError}
  13720. */
  13721. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13722. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  13723. },
  13724. };
  13725. };
  13726. /**
  13727. * Request parameters for createTag operation in TagApi.
  13728. * @export
  13729. * @interface TagApiCreateTagRequest
  13730. */
  13731. export interface TagApiCreateTagRequest {
  13732. /**
  13733. *
  13734. * @type {CreateTagDto}
  13735. * @memberof TagApiCreateTag
  13736. */
  13737. readonly createTagDto: CreateTagDto
  13738. }
  13739. /**
  13740. * Request parameters for deleteTag operation in TagApi.
  13741. * @export
  13742. * @interface TagApiDeleteTagRequest
  13743. */
  13744. export interface TagApiDeleteTagRequest {
  13745. /**
  13746. *
  13747. * @type {string}
  13748. * @memberof TagApiDeleteTag
  13749. */
  13750. readonly id: string
  13751. }
  13752. /**
  13753. * Request parameters for getTagAssets operation in TagApi.
  13754. * @export
  13755. * @interface TagApiGetTagAssetsRequest
  13756. */
  13757. export interface TagApiGetTagAssetsRequest {
  13758. /**
  13759. *
  13760. * @type {string}
  13761. * @memberof TagApiGetTagAssets
  13762. */
  13763. readonly id: string
  13764. }
  13765. /**
  13766. * Request parameters for getTagById operation in TagApi.
  13767. * @export
  13768. * @interface TagApiGetTagByIdRequest
  13769. */
  13770. export interface TagApiGetTagByIdRequest {
  13771. /**
  13772. *
  13773. * @type {string}
  13774. * @memberof TagApiGetTagById
  13775. */
  13776. readonly id: string
  13777. }
  13778. /**
  13779. * Request parameters for tagAssets operation in TagApi.
  13780. * @export
  13781. * @interface TagApiTagAssetsRequest
  13782. */
  13783. export interface TagApiTagAssetsRequest {
  13784. /**
  13785. *
  13786. * @type {string}
  13787. * @memberof TagApiTagAssets
  13788. */
  13789. readonly id: string
  13790. /**
  13791. *
  13792. * @type {AssetIdsDto}
  13793. * @memberof TagApiTagAssets
  13794. */
  13795. readonly assetIdsDto: AssetIdsDto
  13796. }
  13797. /**
  13798. * Request parameters for untagAssets operation in TagApi.
  13799. * @export
  13800. * @interface TagApiUntagAssetsRequest
  13801. */
  13802. export interface TagApiUntagAssetsRequest {
  13803. /**
  13804. *
  13805. * @type {string}
  13806. * @memberof TagApiUntagAssets
  13807. */
  13808. readonly id: string
  13809. /**
  13810. *
  13811. * @type {AssetIdsDto}
  13812. * @memberof TagApiUntagAssets
  13813. */
  13814. readonly assetIdsDto: AssetIdsDto
  13815. }
  13816. /**
  13817. * Request parameters for updateTag operation in TagApi.
  13818. * @export
  13819. * @interface TagApiUpdateTagRequest
  13820. */
  13821. export interface TagApiUpdateTagRequest {
  13822. /**
  13823. *
  13824. * @type {string}
  13825. * @memberof TagApiUpdateTag
  13826. */
  13827. readonly id: string
  13828. /**
  13829. *
  13830. * @type {UpdateTagDto}
  13831. * @memberof TagApiUpdateTag
  13832. */
  13833. readonly updateTagDto: UpdateTagDto
  13834. }
  13835. /**
  13836. * TagApi - object-oriented interface
  13837. * @export
  13838. * @class TagApi
  13839. * @extends {BaseAPI}
  13840. */
  13841. export class TagApi extends BaseAPI {
  13842. /**
  13843. *
  13844. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13845. * @param {*} [options] Override http request option.
  13846. * @throws {RequiredError}
  13847. * @memberof TagApi
  13848. */
  13849. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  13850. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  13851. }
  13852. /**
  13853. *
  13854. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13855. * @param {*} [options] Override http request option.
  13856. * @throws {RequiredError}
  13857. * @memberof TagApi
  13858. */
  13859. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  13860. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13861. }
  13862. /**
  13863. *
  13864. * @param {*} [options] Override http request option.
  13865. * @throws {RequiredError}
  13866. * @memberof TagApi
  13867. */
  13868. public getAllTags(options?: AxiosRequestConfig) {
  13869. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  13870. }
  13871. /**
  13872. *
  13873. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13874. * @param {*} [options] Override http request option.
  13875. * @throws {RequiredError}
  13876. * @memberof TagApi
  13877. */
  13878. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  13879. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13880. }
  13881. /**
  13882. *
  13883. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13884. * @param {*} [options] Override http request option.
  13885. * @throws {RequiredError}
  13886. * @memberof TagApi
  13887. */
  13888. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  13889. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13890. }
  13891. /**
  13892. *
  13893. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13894. * @param {*} [options] Override http request option.
  13895. * @throws {RequiredError}
  13896. * @memberof TagApi
  13897. */
  13898. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  13899. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13900. }
  13901. /**
  13902. *
  13903. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13904. * @param {*} [options] Override http request option.
  13905. * @throws {RequiredError}
  13906. * @memberof TagApi
  13907. */
  13908. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  13909. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13910. }
  13911. /**
  13912. *
  13913. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13914. * @param {*} [options] Override http request option.
  13915. * @throws {RequiredError}
  13916. * @memberof TagApi
  13917. */
  13918. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  13919. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  13920. }
  13921. }
  13922. /**
  13923. * UserApi - axios parameter creator
  13924. * @export
  13925. */
  13926. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  13927. return {
  13928. /**
  13929. *
  13930. * @param {File} file
  13931. * @param {*} [options] Override http request option.
  13932. * @throws {RequiredError}
  13933. */
  13934. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13935. // verify required parameter 'file' is not null or undefined
  13936. assertParamExists('createProfileImage', 'file', file)
  13937. const localVarPath = `/user/profile-image`;
  13938. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13939. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13940. let baseOptions;
  13941. if (configuration) {
  13942. baseOptions = configuration.baseOptions;
  13943. }
  13944. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13945. const localVarHeaderParameter = {} as any;
  13946. const localVarQueryParameter = {} as any;
  13947. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  13948. // authentication cookie required
  13949. // authentication api_key required
  13950. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13951. // authentication bearer required
  13952. // http bearer authentication required
  13953. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13954. if (file !== undefined) {
  13955. localVarFormParams.append('file', file as any);
  13956. }
  13957. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  13958. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13959. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13960. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13961. localVarRequestOptions.data = localVarFormParams;
  13962. return {
  13963. url: toPathString(localVarUrlObj),
  13964. options: localVarRequestOptions,
  13965. };
  13966. },
  13967. /**
  13968. *
  13969. * @param {CreateUserDto} createUserDto
  13970. * @param {*} [options] Override http request option.
  13971. * @throws {RequiredError}
  13972. */
  13973. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13974. // verify required parameter 'createUserDto' is not null or undefined
  13975. assertParamExists('createUser', 'createUserDto', createUserDto)
  13976. const localVarPath = `/user`;
  13977. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13978. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13979. let baseOptions;
  13980. if (configuration) {
  13981. baseOptions = configuration.baseOptions;
  13982. }
  13983. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13984. const localVarHeaderParameter = {} as any;
  13985. const localVarQueryParameter = {} as any;
  13986. // authentication cookie required
  13987. // authentication api_key required
  13988. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13989. // authentication bearer required
  13990. // http bearer authentication required
  13991. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13992. localVarHeaderParameter['Content-Type'] = 'application/json';
  13993. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13994. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13995. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13996. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  13997. return {
  13998. url: toPathString(localVarUrlObj),
  13999. options: localVarRequestOptions,
  14000. };
  14001. },
  14002. /**
  14003. *
  14004. * @param {string} id
  14005. * @param {*} [options] Override http request option.
  14006. * @throws {RequiredError}
  14007. */
  14008. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14009. // verify required parameter 'id' is not null or undefined
  14010. assertParamExists('deleteUser', 'id', id)
  14011. const localVarPath = `/user/{id}`
  14012. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14013. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14014. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14015. let baseOptions;
  14016. if (configuration) {
  14017. baseOptions = configuration.baseOptions;
  14018. }
  14019. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14020. const localVarHeaderParameter = {} as any;
  14021. const localVarQueryParameter = {} as any;
  14022. // authentication cookie required
  14023. // authentication api_key required
  14024. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14025. // authentication bearer required
  14026. // http bearer authentication required
  14027. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14028. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14029. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14030. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14031. return {
  14032. url: toPathString(localVarUrlObj),
  14033. options: localVarRequestOptions,
  14034. };
  14035. },
  14036. /**
  14037. *
  14038. * @param {boolean} isAll
  14039. * @param {*} [options] Override http request option.
  14040. * @throws {RequiredError}
  14041. */
  14042. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14043. // verify required parameter 'isAll' is not null or undefined
  14044. assertParamExists('getAllUsers', 'isAll', isAll)
  14045. const localVarPath = `/user`;
  14046. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14047. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14048. let baseOptions;
  14049. if (configuration) {
  14050. baseOptions = configuration.baseOptions;
  14051. }
  14052. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14053. const localVarHeaderParameter = {} as any;
  14054. const localVarQueryParameter = {} as any;
  14055. // authentication cookie required
  14056. // authentication api_key required
  14057. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14058. // authentication bearer required
  14059. // http bearer authentication required
  14060. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14061. if (isAll !== undefined) {
  14062. localVarQueryParameter['isAll'] = isAll;
  14063. }
  14064. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14065. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14066. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14067. return {
  14068. url: toPathString(localVarUrlObj),
  14069. options: localVarRequestOptions,
  14070. };
  14071. },
  14072. /**
  14073. *
  14074. * @param {*} [options] Override http request option.
  14075. * @throws {RequiredError}
  14076. */
  14077. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14078. const localVarPath = `/user/me`;
  14079. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14080. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14081. let baseOptions;
  14082. if (configuration) {
  14083. baseOptions = configuration.baseOptions;
  14084. }
  14085. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14086. const localVarHeaderParameter = {} as any;
  14087. const localVarQueryParameter = {} as any;
  14088. // authentication cookie required
  14089. // authentication api_key required
  14090. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14091. // authentication bearer required
  14092. // http bearer authentication required
  14093. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14094. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14095. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14096. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14097. return {
  14098. url: toPathString(localVarUrlObj),
  14099. options: localVarRequestOptions,
  14100. };
  14101. },
  14102. /**
  14103. *
  14104. * @param {string} id
  14105. * @param {*} [options] Override http request option.
  14106. * @throws {RequiredError}
  14107. */
  14108. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14109. // verify required parameter 'id' is not null or undefined
  14110. assertParamExists('getProfileImage', 'id', id)
  14111. const localVarPath = `/user/profile-image/{id}`
  14112. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14113. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14114. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14115. let baseOptions;
  14116. if (configuration) {
  14117. baseOptions = configuration.baseOptions;
  14118. }
  14119. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14120. const localVarHeaderParameter = {} as any;
  14121. const localVarQueryParameter = {} as any;
  14122. // authentication cookie required
  14123. // authentication api_key required
  14124. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14125. // authentication bearer required
  14126. // http bearer authentication required
  14127. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14128. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14129. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14130. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14131. return {
  14132. url: toPathString(localVarUrlObj),
  14133. options: localVarRequestOptions,
  14134. };
  14135. },
  14136. /**
  14137. *
  14138. * @param {string} id
  14139. * @param {*} [options] Override http request option.
  14140. * @throws {RequiredError}
  14141. */
  14142. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14143. // verify required parameter 'id' is not null or undefined
  14144. assertParamExists('getUserById', 'id', id)
  14145. const localVarPath = `/user/info/{id}`
  14146. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14147. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14148. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14149. let baseOptions;
  14150. if (configuration) {
  14151. baseOptions = configuration.baseOptions;
  14152. }
  14153. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14154. const localVarHeaderParameter = {} as any;
  14155. const localVarQueryParameter = {} as any;
  14156. // authentication cookie required
  14157. // authentication api_key required
  14158. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14159. // authentication bearer required
  14160. // http bearer authentication required
  14161. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14162. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14163. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14164. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14165. return {
  14166. url: toPathString(localVarUrlObj),
  14167. options: localVarRequestOptions,
  14168. };
  14169. },
  14170. /**
  14171. *
  14172. * @param {string} id
  14173. * @param {*} [options] Override http request option.
  14174. * @throws {RequiredError}
  14175. */
  14176. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14177. // verify required parameter 'id' is not null or undefined
  14178. assertParamExists('restoreUser', 'id', id)
  14179. const localVarPath = `/user/{id}/restore`
  14180. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14181. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14182. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14183. let baseOptions;
  14184. if (configuration) {
  14185. baseOptions = configuration.baseOptions;
  14186. }
  14187. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14188. const localVarHeaderParameter = {} as any;
  14189. const localVarQueryParameter = {} as any;
  14190. // authentication cookie required
  14191. // authentication api_key required
  14192. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14193. // authentication bearer required
  14194. // http bearer authentication required
  14195. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14196. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14197. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14198. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14199. return {
  14200. url: toPathString(localVarUrlObj),
  14201. options: localVarRequestOptions,
  14202. };
  14203. },
  14204. /**
  14205. *
  14206. * @param {UpdateUserDto} updateUserDto
  14207. * @param {*} [options] Override http request option.
  14208. * @throws {RequiredError}
  14209. */
  14210. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14211. // verify required parameter 'updateUserDto' is not null or undefined
  14212. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  14213. const localVarPath = `/user`;
  14214. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14215. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14216. let baseOptions;
  14217. if (configuration) {
  14218. baseOptions = configuration.baseOptions;
  14219. }
  14220. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14221. const localVarHeaderParameter = {} as any;
  14222. const localVarQueryParameter = {} as any;
  14223. // authentication cookie required
  14224. // authentication api_key required
  14225. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14226. // authentication bearer required
  14227. // http bearer authentication required
  14228. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14229. localVarHeaderParameter['Content-Type'] = 'application/json';
  14230. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14231. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14232. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14233. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  14234. return {
  14235. url: toPathString(localVarUrlObj),
  14236. options: localVarRequestOptions,
  14237. };
  14238. },
  14239. }
  14240. };
  14241. /**
  14242. * UserApi - functional programming interface
  14243. * @export
  14244. */
  14245. export const UserApiFp = function(configuration?: Configuration) {
  14246. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  14247. return {
  14248. /**
  14249. *
  14250. * @param {File} file
  14251. * @param {*} [options] Override http request option.
  14252. * @throws {RequiredError}
  14253. */
  14254. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  14255. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  14256. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14257. },
  14258. /**
  14259. *
  14260. * @param {CreateUserDto} createUserDto
  14261. * @param {*} [options] Override http request option.
  14262. * @throws {RequiredError}
  14263. */
  14264. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14265. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  14266. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14267. },
  14268. /**
  14269. *
  14270. * @param {string} id
  14271. * @param {*} [options] Override http request option.
  14272. * @throws {RequiredError}
  14273. */
  14274. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14275. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  14276. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14277. },
  14278. /**
  14279. *
  14280. * @param {boolean} isAll
  14281. * @param {*} [options] Override http request option.
  14282. * @throws {RequiredError}
  14283. */
  14284. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  14285. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  14286. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14287. },
  14288. /**
  14289. *
  14290. * @param {*} [options] Override http request option.
  14291. * @throws {RequiredError}
  14292. */
  14293. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14294. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  14295. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14296. },
  14297. /**
  14298. *
  14299. * @param {string} id
  14300. * @param {*} [options] Override http request option.
  14301. * @throws {RequiredError}
  14302. */
  14303. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14304. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  14305. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14306. },
  14307. /**
  14308. *
  14309. * @param {string} id
  14310. * @param {*} [options] Override http request option.
  14311. * @throws {RequiredError}
  14312. */
  14313. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14314. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  14315. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14316. },
  14317. /**
  14318. *
  14319. * @param {string} id
  14320. * @param {*} [options] Override http request option.
  14321. * @throws {RequiredError}
  14322. */
  14323. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14324. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  14325. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14326. },
  14327. /**
  14328. *
  14329. * @param {UpdateUserDto} updateUserDto
  14330. * @param {*} [options] Override http request option.
  14331. * @throws {RequiredError}
  14332. */
  14333. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14334. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  14335. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14336. },
  14337. }
  14338. };
  14339. /**
  14340. * UserApi - factory interface
  14341. * @export
  14342. */
  14343. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14344. const localVarFp = UserApiFp(configuration)
  14345. return {
  14346. /**
  14347. *
  14348. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14349. * @param {*} [options] Override http request option.
  14350. * @throws {RequiredError}
  14351. */
  14352. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  14353. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  14354. },
  14355. /**
  14356. *
  14357. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14358. * @param {*} [options] Override http request option.
  14359. * @throws {RequiredError}
  14360. */
  14361. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14362. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  14363. },
  14364. /**
  14365. *
  14366. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14367. * @param {*} [options] Override http request option.
  14368. * @throws {RequiredError}
  14369. */
  14370. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14371. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14372. },
  14373. /**
  14374. *
  14375. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14376. * @param {*} [options] Override http request option.
  14377. * @throws {RequiredError}
  14378. */
  14379. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  14380. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  14381. },
  14382. /**
  14383. *
  14384. * @param {*} [options] Override http request option.
  14385. * @throws {RequiredError}
  14386. */
  14387. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14388. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  14389. },
  14390. /**
  14391. *
  14392. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14393. * @param {*} [options] Override http request option.
  14394. * @throws {RequiredError}
  14395. */
  14396. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14397. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  14398. },
  14399. /**
  14400. *
  14401. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14402. * @param {*} [options] Override http request option.
  14403. * @throws {RequiredError}
  14404. */
  14405. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14406. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  14407. },
  14408. /**
  14409. *
  14410. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14411. * @param {*} [options] Override http request option.
  14412. * @throws {RequiredError}
  14413. */
  14414. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14415. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14416. },
  14417. /**
  14418. *
  14419. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14420. * @param {*} [options] Override http request option.
  14421. * @throws {RequiredError}
  14422. */
  14423. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14424. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  14425. },
  14426. };
  14427. };
  14428. /**
  14429. * Request parameters for createProfileImage operation in UserApi.
  14430. * @export
  14431. * @interface UserApiCreateProfileImageRequest
  14432. */
  14433. export interface UserApiCreateProfileImageRequest {
  14434. /**
  14435. *
  14436. * @type {File}
  14437. * @memberof UserApiCreateProfileImage
  14438. */
  14439. readonly file: File
  14440. }
  14441. /**
  14442. * Request parameters for createUser operation in UserApi.
  14443. * @export
  14444. * @interface UserApiCreateUserRequest
  14445. */
  14446. export interface UserApiCreateUserRequest {
  14447. /**
  14448. *
  14449. * @type {CreateUserDto}
  14450. * @memberof UserApiCreateUser
  14451. */
  14452. readonly createUserDto: CreateUserDto
  14453. }
  14454. /**
  14455. * Request parameters for deleteUser operation in UserApi.
  14456. * @export
  14457. * @interface UserApiDeleteUserRequest
  14458. */
  14459. export interface UserApiDeleteUserRequest {
  14460. /**
  14461. *
  14462. * @type {string}
  14463. * @memberof UserApiDeleteUser
  14464. */
  14465. readonly id: string
  14466. }
  14467. /**
  14468. * Request parameters for getAllUsers operation in UserApi.
  14469. * @export
  14470. * @interface UserApiGetAllUsersRequest
  14471. */
  14472. export interface UserApiGetAllUsersRequest {
  14473. /**
  14474. *
  14475. * @type {boolean}
  14476. * @memberof UserApiGetAllUsers
  14477. */
  14478. readonly isAll: boolean
  14479. }
  14480. /**
  14481. * Request parameters for getProfileImage operation in UserApi.
  14482. * @export
  14483. * @interface UserApiGetProfileImageRequest
  14484. */
  14485. export interface UserApiGetProfileImageRequest {
  14486. /**
  14487. *
  14488. * @type {string}
  14489. * @memberof UserApiGetProfileImage
  14490. */
  14491. readonly id: string
  14492. }
  14493. /**
  14494. * Request parameters for getUserById operation in UserApi.
  14495. * @export
  14496. * @interface UserApiGetUserByIdRequest
  14497. */
  14498. export interface UserApiGetUserByIdRequest {
  14499. /**
  14500. *
  14501. * @type {string}
  14502. * @memberof UserApiGetUserById
  14503. */
  14504. readonly id: string
  14505. }
  14506. /**
  14507. * Request parameters for restoreUser operation in UserApi.
  14508. * @export
  14509. * @interface UserApiRestoreUserRequest
  14510. */
  14511. export interface UserApiRestoreUserRequest {
  14512. /**
  14513. *
  14514. * @type {string}
  14515. * @memberof UserApiRestoreUser
  14516. */
  14517. readonly id: string
  14518. }
  14519. /**
  14520. * Request parameters for updateUser operation in UserApi.
  14521. * @export
  14522. * @interface UserApiUpdateUserRequest
  14523. */
  14524. export interface UserApiUpdateUserRequest {
  14525. /**
  14526. *
  14527. * @type {UpdateUserDto}
  14528. * @memberof UserApiUpdateUser
  14529. */
  14530. readonly updateUserDto: UpdateUserDto
  14531. }
  14532. /**
  14533. * UserApi - object-oriented interface
  14534. * @export
  14535. * @class UserApi
  14536. * @extends {BaseAPI}
  14537. */
  14538. export class UserApi extends BaseAPI {
  14539. /**
  14540. *
  14541. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14542. * @param {*} [options] Override http request option.
  14543. * @throws {RequiredError}
  14544. * @memberof UserApi
  14545. */
  14546. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  14547. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  14548. }
  14549. /**
  14550. *
  14551. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14552. * @param {*} [options] Override http request option.
  14553. * @throws {RequiredError}
  14554. * @memberof UserApi
  14555. */
  14556. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  14557. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  14558. }
  14559. /**
  14560. *
  14561. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14562. * @param {*} [options] Override http request option.
  14563. * @throws {RequiredError}
  14564. * @memberof UserApi
  14565. */
  14566. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  14567. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14568. }
  14569. /**
  14570. *
  14571. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14572. * @param {*} [options] Override http request option.
  14573. * @throws {RequiredError}
  14574. * @memberof UserApi
  14575. */
  14576. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  14577. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  14578. }
  14579. /**
  14580. *
  14581. * @param {*} [options] Override http request option.
  14582. * @throws {RequiredError}
  14583. * @memberof UserApi
  14584. */
  14585. public getMyUserInfo(options?: AxiosRequestConfig) {
  14586. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  14587. }
  14588. /**
  14589. *
  14590. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14591. * @param {*} [options] Override http request option.
  14592. * @throws {RequiredError}
  14593. * @memberof UserApi
  14594. */
  14595. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  14596. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14597. }
  14598. /**
  14599. *
  14600. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14601. * @param {*} [options] Override http request option.
  14602. * @throws {RequiredError}
  14603. * @memberof UserApi
  14604. */
  14605. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  14606. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14607. }
  14608. /**
  14609. *
  14610. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14611. * @param {*} [options] Override http request option.
  14612. * @throws {RequiredError}
  14613. * @memberof UserApi
  14614. */
  14615. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  14616. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14617. }
  14618. /**
  14619. *
  14620. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14621. * @param {*} [options] Override http request option.
  14622. * @throws {RequiredError}
  14623. * @memberof UserApi
  14624. */
  14625. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  14626. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  14627. }
  14628. }