api.ts 578 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.85.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 ActivityCreateDto
  103. */
  104. export interface ActivityCreateDto {
  105. /**
  106. *
  107. * @type {string}
  108. * @memberof ActivityCreateDto
  109. */
  110. 'albumId': string;
  111. /**
  112. *
  113. * @type {string}
  114. * @memberof ActivityCreateDto
  115. */
  116. 'assetId'?: string;
  117. /**
  118. *
  119. * @type {string}
  120. * @memberof ActivityCreateDto
  121. */
  122. 'comment'?: string;
  123. /**
  124. *
  125. * @type {ReactionType}
  126. * @memberof ActivityCreateDto
  127. */
  128. 'type': ReactionType;
  129. }
  130. /**
  131. *
  132. * @export
  133. * @interface ActivityResponseDto
  134. */
  135. export interface ActivityResponseDto {
  136. /**
  137. *
  138. * @type {string}
  139. * @memberof ActivityResponseDto
  140. */
  141. 'assetId': string | null;
  142. /**
  143. *
  144. * @type {string}
  145. * @memberof ActivityResponseDto
  146. */
  147. 'comment'?: string | null;
  148. /**
  149. *
  150. * @type {string}
  151. * @memberof ActivityResponseDto
  152. */
  153. 'createdAt': string;
  154. /**
  155. *
  156. * @type {string}
  157. * @memberof ActivityResponseDto
  158. */
  159. 'id': string;
  160. /**
  161. *
  162. * @type {string}
  163. * @memberof ActivityResponseDto
  164. */
  165. 'type': ActivityResponseDtoTypeEnum;
  166. /**
  167. *
  168. * @type {UserDto}
  169. * @memberof ActivityResponseDto
  170. */
  171. 'user': UserDto;
  172. }
  173. export const ActivityResponseDtoTypeEnum = {
  174. Comment: 'comment',
  175. Like: 'like'
  176. } as const;
  177. export type ActivityResponseDtoTypeEnum = typeof ActivityResponseDtoTypeEnum[keyof typeof ActivityResponseDtoTypeEnum];
  178. /**
  179. *
  180. * @export
  181. * @interface ActivityStatisticsResponseDto
  182. */
  183. export interface ActivityStatisticsResponseDto {
  184. /**
  185. *
  186. * @type {number}
  187. * @memberof ActivityStatisticsResponseDto
  188. */
  189. 'comments': number;
  190. }
  191. /**
  192. *
  193. * @export
  194. * @interface AddUsersDto
  195. */
  196. export interface AddUsersDto {
  197. /**
  198. *
  199. * @type {Array<string>}
  200. * @memberof AddUsersDto
  201. */
  202. 'sharedUserIds': Array<string>;
  203. }
  204. /**
  205. *
  206. * @export
  207. * @interface AlbumCountResponseDto
  208. */
  209. export interface AlbumCountResponseDto {
  210. /**
  211. *
  212. * @type {number}
  213. * @memberof AlbumCountResponseDto
  214. */
  215. 'notShared': number;
  216. /**
  217. *
  218. * @type {number}
  219. * @memberof AlbumCountResponseDto
  220. */
  221. 'owned': number;
  222. /**
  223. *
  224. * @type {number}
  225. * @memberof AlbumCountResponseDto
  226. */
  227. 'shared': number;
  228. }
  229. /**
  230. *
  231. * @export
  232. * @interface AlbumResponseDto
  233. */
  234. export interface AlbumResponseDto {
  235. /**
  236. *
  237. * @type {string}
  238. * @memberof AlbumResponseDto
  239. */
  240. 'albumName': string;
  241. /**
  242. *
  243. * @type {string}
  244. * @memberof AlbumResponseDto
  245. */
  246. 'albumThumbnailAssetId': string | null;
  247. /**
  248. *
  249. * @type {number}
  250. * @memberof AlbumResponseDto
  251. */
  252. 'assetCount': number;
  253. /**
  254. *
  255. * @type {Array<AssetResponseDto>}
  256. * @memberof AlbumResponseDto
  257. */
  258. 'assets': Array<AssetResponseDto>;
  259. /**
  260. *
  261. * @type {string}
  262. * @memberof AlbumResponseDto
  263. */
  264. 'createdAt': string;
  265. /**
  266. *
  267. * @type {string}
  268. * @memberof AlbumResponseDto
  269. */
  270. 'description': string;
  271. /**
  272. *
  273. * @type {string}
  274. * @memberof AlbumResponseDto
  275. */
  276. 'endDate'?: string;
  277. /**
  278. *
  279. * @type {boolean}
  280. * @memberof AlbumResponseDto
  281. */
  282. 'hasSharedLink': boolean;
  283. /**
  284. *
  285. * @type {string}
  286. * @memberof AlbumResponseDto
  287. */
  288. 'id': string;
  289. /**
  290. *
  291. * @type {boolean}
  292. * @memberof AlbumResponseDto
  293. */
  294. 'isActivityEnabled': boolean;
  295. /**
  296. *
  297. * @type {string}
  298. * @memberof AlbumResponseDto
  299. */
  300. 'lastModifiedAssetTimestamp'?: string;
  301. /**
  302. *
  303. * @type {UserResponseDto}
  304. * @memberof AlbumResponseDto
  305. */
  306. 'owner': UserResponseDto;
  307. /**
  308. *
  309. * @type {string}
  310. * @memberof AlbumResponseDto
  311. */
  312. 'ownerId': string;
  313. /**
  314. *
  315. * @type {boolean}
  316. * @memberof AlbumResponseDto
  317. */
  318. 'shared': boolean;
  319. /**
  320. *
  321. * @type {Array<UserResponseDto>}
  322. * @memberof AlbumResponseDto
  323. */
  324. 'sharedUsers': Array<UserResponseDto>;
  325. /**
  326. *
  327. * @type {string}
  328. * @memberof AlbumResponseDto
  329. */
  330. 'startDate'?: string;
  331. /**
  332. *
  333. * @type {string}
  334. * @memberof AlbumResponseDto
  335. */
  336. 'updatedAt': string;
  337. }
  338. /**
  339. *
  340. * @export
  341. * @interface AllJobStatusResponseDto
  342. */
  343. export interface AllJobStatusResponseDto {
  344. /**
  345. *
  346. * @type {JobStatusDto}
  347. * @memberof AllJobStatusResponseDto
  348. */
  349. 'backgroundTask': JobStatusDto;
  350. /**
  351. *
  352. * @type {JobStatusDto}
  353. * @memberof AllJobStatusResponseDto
  354. */
  355. 'clipEncoding': JobStatusDto;
  356. /**
  357. *
  358. * @type {JobStatusDto}
  359. * @memberof AllJobStatusResponseDto
  360. */
  361. 'library': JobStatusDto;
  362. /**
  363. *
  364. * @type {JobStatusDto}
  365. * @memberof AllJobStatusResponseDto
  366. */
  367. 'metadataExtraction': JobStatusDto;
  368. /**
  369. *
  370. * @type {JobStatusDto}
  371. * @memberof AllJobStatusResponseDto
  372. */
  373. 'migration': JobStatusDto;
  374. /**
  375. *
  376. * @type {JobStatusDto}
  377. * @memberof AllJobStatusResponseDto
  378. */
  379. 'objectTagging': JobStatusDto;
  380. /**
  381. *
  382. * @type {JobStatusDto}
  383. * @memberof AllJobStatusResponseDto
  384. */
  385. 'recognizeFaces': JobStatusDto;
  386. /**
  387. *
  388. * @type {JobStatusDto}
  389. * @memberof AllJobStatusResponseDto
  390. */
  391. 'search': JobStatusDto;
  392. /**
  393. *
  394. * @type {JobStatusDto}
  395. * @memberof AllJobStatusResponseDto
  396. */
  397. 'sidecar': JobStatusDto;
  398. /**
  399. *
  400. * @type {JobStatusDto}
  401. * @memberof AllJobStatusResponseDto
  402. */
  403. 'storageTemplateMigration': JobStatusDto;
  404. /**
  405. *
  406. * @type {JobStatusDto}
  407. * @memberof AllJobStatusResponseDto
  408. */
  409. 'thumbnailGeneration': JobStatusDto;
  410. /**
  411. *
  412. * @type {JobStatusDto}
  413. * @memberof AllJobStatusResponseDto
  414. */
  415. 'videoConversion': JobStatusDto;
  416. }
  417. /**
  418. *
  419. * @export
  420. * @interface AssetBulkDeleteDto
  421. */
  422. export interface AssetBulkDeleteDto {
  423. /**
  424. *
  425. * @type {boolean}
  426. * @memberof AssetBulkDeleteDto
  427. */
  428. 'force'?: boolean;
  429. /**
  430. *
  431. * @type {Array<string>}
  432. * @memberof AssetBulkDeleteDto
  433. */
  434. 'ids': Array<string>;
  435. }
  436. /**
  437. *
  438. * @export
  439. * @interface AssetBulkUpdateDto
  440. */
  441. export interface AssetBulkUpdateDto {
  442. /**
  443. *
  444. * @type {Array<string>}
  445. * @memberof AssetBulkUpdateDto
  446. */
  447. 'ids': Array<string>;
  448. /**
  449. *
  450. * @type {boolean}
  451. * @memberof AssetBulkUpdateDto
  452. */
  453. 'isArchived'?: boolean;
  454. /**
  455. *
  456. * @type {boolean}
  457. * @memberof AssetBulkUpdateDto
  458. */
  459. 'isFavorite'?: boolean;
  460. /**
  461. *
  462. * @type {boolean}
  463. * @memberof AssetBulkUpdateDto
  464. */
  465. 'removeParent'?: boolean;
  466. /**
  467. *
  468. * @type {string}
  469. * @memberof AssetBulkUpdateDto
  470. */
  471. 'stackParentId'?: string;
  472. }
  473. /**
  474. *
  475. * @export
  476. * @interface AssetBulkUploadCheckDto
  477. */
  478. export interface AssetBulkUploadCheckDto {
  479. /**
  480. *
  481. * @type {Array<AssetBulkUploadCheckItem>}
  482. * @memberof AssetBulkUploadCheckDto
  483. */
  484. 'assets': Array<AssetBulkUploadCheckItem>;
  485. }
  486. /**
  487. *
  488. * @export
  489. * @interface AssetBulkUploadCheckItem
  490. */
  491. export interface AssetBulkUploadCheckItem {
  492. /**
  493. * base64 or hex encoded sha1 hash
  494. * @type {string}
  495. * @memberof AssetBulkUploadCheckItem
  496. */
  497. 'checksum': string;
  498. /**
  499. *
  500. * @type {string}
  501. * @memberof AssetBulkUploadCheckItem
  502. */
  503. 'id': string;
  504. }
  505. /**
  506. *
  507. * @export
  508. * @interface AssetBulkUploadCheckResponseDto
  509. */
  510. export interface AssetBulkUploadCheckResponseDto {
  511. /**
  512. *
  513. * @type {Array<AssetBulkUploadCheckResult>}
  514. * @memberof AssetBulkUploadCheckResponseDto
  515. */
  516. 'results': Array<AssetBulkUploadCheckResult>;
  517. }
  518. /**
  519. *
  520. * @export
  521. * @interface AssetBulkUploadCheckResult
  522. */
  523. export interface AssetBulkUploadCheckResult {
  524. /**
  525. *
  526. * @type {string}
  527. * @memberof AssetBulkUploadCheckResult
  528. */
  529. 'action': AssetBulkUploadCheckResultActionEnum;
  530. /**
  531. *
  532. * @type {string}
  533. * @memberof AssetBulkUploadCheckResult
  534. */
  535. 'assetId'?: string;
  536. /**
  537. *
  538. * @type {string}
  539. * @memberof AssetBulkUploadCheckResult
  540. */
  541. 'id': string;
  542. /**
  543. *
  544. * @type {string}
  545. * @memberof AssetBulkUploadCheckResult
  546. */
  547. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  548. }
  549. export const AssetBulkUploadCheckResultActionEnum = {
  550. Accept: 'accept',
  551. Reject: 'reject'
  552. } as const;
  553. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  554. export const AssetBulkUploadCheckResultReasonEnum = {
  555. Duplicate: 'duplicate',
  556. UnsupportedFormat: 'unsupported-format'
  557. } as const;
  558. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  559. /**
  560. *
  561. * @export
  562. * @interface AssetFileUploadResponseDto
  563. */
  564. export interface AssetFileUploadResponseDto {
  565. /**
  566. *
  567. * @type {boolean}
  568. * @memberof AssetFileUploadResponseDto
  569. */
  570. 'duplicate': boolean;
  571. /**
  572. *
  573. * @type {string}
  574. * @memberof AssetFileUploadResponseDto
  575. */
  576. 'id': string;
  577. }
  578. /**
  579. *
  580. * @export
  581. * @interface AssetIdsDto
  582. */
  583. export interface AssetIdsDto {
  584. /**
  585. *
  586. * @type {Array<string>}
  587. * @memberof AssetIdsDto
  588. */
  589. 'assetIds': Array<string>;
  590. }
  591. /**
  592. *
  593. * @export
  594. * @interface AssetIdsResponseDto
  595. */
  596. export interface AssetIdsResponseDto {
  597. /**
  598. *
  599. * @type {string}
  600. * @memberof AssetIdsResponseDto
  601. */
  602. 'assetId': string;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof AssetIdsResponseDto
  607. */
  608. 'error'?: AssetIdsResponseDtoErrorEnum;
  609. /**
  610. *
  611. * @type {boolean}
  612. * @memberof AssetIdsResponseDto
  613. */
  614. 'success': boolean;
  615. }
  616. export const AssetIdsResponseDtoErrorEnum = {
  617. Duplicate: 'duplicate',
  618. NoPermission: 'no_permission',
  619. NotFound: 'not_found'
  620. } as const;
  621. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  622. /**
  623. *
  624. * @export
  625. * @enum {string}
  626. */
  627. export const AssetJobName = {
  628. RegenerateThumbnail: 'regenerate-thumbnail',
  629. RefreshMetadata: 'refresh-metadata',
  630. TranscodeVideo: 'transcode-video'
  631. } as const;
  632. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  633. /**
  634. *
  635. * @export
  636. * @interface AssetJobsDto
  637. */
  638. export interface AssetJobsDto {
  639. /**
  640. *
  641. * @type {Array<string>}
  642. * @memberof AssetJobsDto
  643. */
  644. 'assetIds': Array<string>;
  645. /**
  646. *
  647. * @type {AssetJobName}
  648. * @memberof AssetJobsDto
  649. */
  650. 'name': AssetJobName;
  651. }
  652. /**
  653. *
  654. * @export
  655. * @interface AssetResponseDto
  656. */
  657. export interface AssetResponseDto {
  658. /**
  659. * base64 encoded sha1 hash
  660. * @type {string}
  661. * @memberof AssetResponseDto
  662. */
  663. 'checksum': string;
  664. /**
  665. *
  666. * @type {string}
  667. * @memberof AssetResponseDto
  668. */
  669. 'deviceAssetId': string;
  670. /**
  671. *
  672. * @type {string}
  673. * @memberof AssetResponseDto
  674. */
  675. 'deviceId': string;
  676. /**
  677. *
  678. * @type {string}
  679. * @memberof AssetResponseDto
  680. */
  681. 'duration': string;
  682. /**
  683. *
  684. * @type {ExifResponseDto}
  685. * @memberof AssetResponseDto
  686. */
  687. 'exifInfo'?: ExifResponseDto;
  688. /**
  689. *
  690. * @type {string}
  691. * @memberof AssetResponseDto
  692. */
  693. 'fileCreatedAt': string;
  694. /**
  695. *
  696. * @type {string}
  697. * @memberof AssetResponseDto
  698. */
  699. 'fileModifiedAt': string;
  700. /**
  701. *
  702. * @type {boolean}
  703. * @memberof AssetResponseDto
  704. */
  705. 'hasMetadata': boolean;
  706. /**
  707. *
  708. * @type {string}
  709. * @memberof AssetResponseDto
  710. */
  711. 'id': string;
  712. /**
  713. *
  714. * @type {boolean}
  715. * @memberof AssetResponseDto
  716. */
  717. 'isArchived': boolean;
  718. /**
  719. *
  720. * @type {boolean}
  721. * @memberof AssetResponseDto
  722. */
  723. 'isExternal': boolean;
  724. /**
  725. *
  726. * @type {boolean}
  727. * @memberof AssetResponseDto
  728. */
  729. 'isFavorite': boolean;
  730. /**
  731. *
  732. * @type {boolean}
  733. * @memberof AssetResponseDto
  734. */
  735. 'isOffline': boolean;
  736. /**
  737. *
  738. * @type {boolean}
  739. * @memberof AssetResponseDto
  740. */
  741. 'isReadOnly': boolean;
  742. /**
  743. *
  744. * @type {boolean}
  745. * @memberof AssetResponseDto
  746. */
  747. 'isTrashed': boolean;
  748. /**
  749. *
  750. * @type {string}
  751. * @memberof AssetResponseDto
  752. */
  753. 'libraryId': string;
  754. /**
  755. *
  756. * @type {string}
  757. * @memberof AssetResponseDto
  758. */
  759. 'livePhotoVideoId'?: string | null;
  760. /**
  761. *
  762. * @type {string}
  763. * @memberof AssetResponseDto
  764. */
  765. 'localDateTime': string;
  766. /**
  767. *
  768. * @type {string}
  769. * @memberof AssetResponseDto
  770. */
  771. 'originalFileName': string;
  772. /**
  773. *
  774. * @type {string}
  775. * @memberof AssetResponseDto
  776. */
  777. 'originalPath': string;
  778. /**
  779. *
  780. * @type {UserResponseDto}
  781. * @memberof AssetResponseDto
  782. */
  783. 'owner'?: UserResponseDto;
  784. /**
  785. *
  786. * @type {string}
  787. * @memberof AssetResponseDto
  788. */
  789. 'ownerId': string;
  790. /**
  791. *
  792. * @type {Array<PersonResponseDto>}
  793. * @memberof AssetResponseDto
  794. */
  795. 'people'?: Array<PersonResponseDto>;
  796. /**
  797. *
  798. * @type {boolean}
  799. * @memberof AssetResponseDto
  800. */
  801. 'resized': boolean;
  802. /**
  803. *
  804. * @type {SmartInfoResponseDto}
  805. * @memberof AssetResponseDto
  806. */
  807. 'smartInfo'?: SmartInfoResponseDto;
  808. /**
  809. *
  810. * @type {Array<AssetResponseDto>}
  811. * @memberof AssetResponseDto
  812. */
  813. 'stack'?: Array<AssetResponseDto>;
  814. /**
  815. *
  816. * @type {number}
  817. * @memberof AssetResponseDto
  818. */
  819. 'stackCount': number | null;
  820. /**
  821. *
  822. * @type {string}
  823. * @memberof AssetResponseDto
  824. */
  825. 'stackParentId'?: string | null;
  826. /**
  827. *
  828. * @type {Array<TagResponseDto>}
  829. * @memberof AssetResponseDto
  830. */
  831. 'tags'?: Array<TagResponseDto>;
  832. /**
  833. *
  834. * @type {string}
  835. * @memberof AssetResponseDto
  836. */
  837. 'thumbhash': string | null;
  838. /**
  839. *
  840. * @type {AssetTypeEnum}
  841. * @memberof AssetResponseDto
  842. */
  843. 'type': AssetTypeEnum;
  844. /**
  845. *
  846. * @type {string}
  847. * @memberof AssetResponseDto
  848. */
  849. 'updatedAt': string;
  850. }
  851. /**
  852. *
  853. * @export
  854. * @interface AssetStatsResponseDto
  855. */
  856. export interface AssetStatsResponseDto {
  857. /**
  858. *
  859. * @type {number}
  860. * @memberof AssetStatsResponseDto
  861. */
  862. 'images': number;
  863. /**
  864. *
  865. * @type {number}
  866. * @memberof AssetStatsResponseDto
  867. */
  868. 'total': number;
  869. /**
  870. *
  871. * @type {number}
  872. * @memberof AssetStatsResponseDto
  873. */
  874. 'videos': number;
  875. }
  876. /**
  877. *
  878. * @export
  879. * @enum {string}
  880. */
  881. export const AssetTypeEnum = {
  882. Image: 'IMAGE',
  883. Video: 'VIDEO',
  884. Audio: 'AUDIO',
  885. Other: 'OTHER'
  886. } as const;
  887. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  888. /**
  889. *
  890. * @export
  891. * @enum {string}
  892. */
  893. export const AudioCodec = {
  894. Mp3: 'mp3',
  895. Aac: 'aac',
  896. Libopus: 'libopus'
  897. } as const;
  898. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  899. /**
  900. *
  901. * @export
  902. * @interface AuditDeletesResponseDto
  903. */
  904. export interface AuditDeletesResponseDto {
  905. /**
  906. *
  907. * @type {Array<string>}
  908. * @memberof AuditDeletesResponseDto
  909. */
  910. 'ids': Array<string>;
  911. /**
  912. *
  913. * @type {boolean}
  914. * @memberof AuditDeletesResponseDto
  915. */
  916. 'needsFullSync': boolean;
  917. }
  918. /**
  919. *
  920. * @export
  921. * @interface AuthDeviceResponseDto
  922. */
  923. export interface AuthDeviceResponseDto {
  924. /**
  925. *
  926. * @type {string}
  927. * @memberof AuthDeviceResponseDto
  928. */
  929. 'createdAt': string;
  930. /**
  931. *
  932. * @type {boolean}
  933. * @memberof AuthDeviceResponseDto
  934. */
  935. 'current': boolean;
  936. /**
  937. *
  938. * @type {string}
  939. * @memberof AuthDeviceResponseDto
  940. */
  941. 'deviceOS': string;
  942. /**
  943. *
  944. * @type {string}
  945. * @memberof AuthDeviceResponseDto
  946. */
  947. 'deviceType': string;
  948. /**
  949. *
  950. * @type {string}
  951. * @memberof AuthDeviceResponseDto
  952. */
  953. 'id': string;
  954. /**
  955. *
  956. * @type {string}
  957. * @memberof AuthDeviceResponseDto
  958. */
  959. 'updatedAt': string;
  960. }
  961. /**
  962. *
  963. * @export
  964. * @interface BulkIdResponseDto
  965. */
  966. export interface BulkIdResponseDto {
  967. /**
  968. *
  969. * @type {string}
  970. * @memberof BulkIdResponseDto
  971. */
  972. 'error'?: BulkIdResponseDtoErrorEnum;
  973. /**
  974. *
  975. * @type {string}
  976. * @memberof BulkIdResponseDto
  977. */
  978. 'id': string;
  979. /**
  980. *
  981. * @type {boolean}
  982. * @memberof BulkIdResponseDto
  983. */
  984. 'success': boolean;
  985. }
  986. export const BulkIdResponseDtoErrorEnum = {
  987. Duplicate: 'duplicate',
  988. NoPermission: 'no_permission',
  989. NotFound: 'not_found',
  990. Unknown: 'unknown'
  991. } as const;
  992. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  993. /**
  994. *
  995. * @export
  996. * @interface BulkIdsDto
  997. */
  998. export interface BulkIdsDto {
  999. /**
  1000. *
  1001. * @type {Array<string>}
  1002. * @memberof BulkIdsDto
  1003. */
  1004. 'ids': Array<string>;
  1005. }
  1006. /**
  1007. *
  1008. * @export
  1009. * @interface CLIPConfig
  1010. */
  1011. export interface CLIPConfig {
  1012. /**
  1013. *
  1014. * @type {boolean}
  1015. * @memberof CLIPConfig
  1016. */
  1017. 'enabled': boolean;
  1018. /**
  1019. *
  1020. * @type {CLIPMode}
  1021. * @memberof CLIPConfig
  1022. */
  1023. 'mode'?: CLIPMode;
  1024. /**
  1025. *
  1026. * @type {string}
  1027. * @memberof CLIPConfig
  1028. */
  1029. 'modelName': string;
  1030. /**
  1031. *
  1032. * @type {ModelType}
  1033. * @memberof CLIPConfig
  1034. */
  1035. 'modelType'?: ModelType;
  1036. }
  1037. /**
  1038. *
  1039. * @export
  1040. * @enum {string}
  1041. */
  1042. export const CLIPMode = {
  1043. Vision: 'vision',
  1044. Text: 'text'
  1045. } as const;
  1046. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  1047. /**
  1048. *
  1049. * @export
  1050. * @enum {string}
  1051. */
  1052. export const CQMode = {
  1053. Auto: 'auto',
  1054. Cqp: 'cqp',
  1055. Icq: 'icq'
  1056. } as const;
  1057. export type CQMode = typeof CQMode[keyof typeof CQMode];
  1058. /**
  1059. *
  1060. * @export
  1061. * @interface ChangePasswordDto
  1062. */
  1063. export interface ChangePasswordDto {
  1064. /**
  1065. *
  1066. * @type {string}
  1067. * @memberof ChangePasswordDto
  1068. */
  1069. 'newPassword': string;
  1070. /**
  1071. *
  1072. * @type {string}
  1073. * @memberof ChangePasswordDto
  1074. */
  1075. 'password': string;
  1076. }
  1077. /**
  1078. *
  1079. * @export
  1080. * @interface CheckExistingAssetsDto
  1081. */
  1082. export interface CheckExistingAssetsDto {
  1083. /**
  1084. *
  1085. * @type {Array<string>}
  1086. * @memberof CheckExistingAssetsDto
  1087. */
  1088. 'deviceAssetIds': Array<string>;
  1089. /**
  1090. *
  1091. * @type {string}
  1092. * @memberof CheckExistingAssetsDto
  1093. */
  1094. 'deviceId': string;
  1095. }
  1096. /**
  1097. *
  1098. * @export
  1099. * @interface CheckExistingAssetsResponseDto
  1100. */
  1101. export interface CheckExistingAssetsResponseDto {
  1102. /**
  1103. *
  1104. * @type {Array<string>}
  1105. * @memberof CheckExistingAssetsResponseDto
  1106. */
  1107. 'existingIds': Array<string>;
  1108. }
  1109. /**
  1110. *
  1111. * @export
  1112. * @enum {string}
  1113. */
  1114. export const CitiesFile = {
  1115. Cities15000: 'cities15000',
  1116. Cities5000: 'cities5000',
  1117. Cities1000: 'cities1000',
  1118. Cities500: 'cities500'
  1119. } as const;
  1120. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1121. /**
  1122. *
  1123. * @export
  1124. * @interface ClassificationConfig
  1125. */
  1126. export interface ClassificationConfig {
  1127. /**
  1128. *
  1129. * @type {boolean}
  1130. * @memberof ClassificationConfig
  1131. */
  1132. 'enabled': boolean;
  1133. /**
  1134. *
  1135. * @type {number}
  1136. * @memberof ClassificationConfig
  1137. */
  1138. 'minScore': number;
  1139. /**
  1140. *
  1141. * @type {string}
  1142. * @memberof ClassificationConfig
  1143. */
  1144. 'modelName': string;
  1145. /**
  1146. *
  1147. * @type {ModelType}
  1148. * @memberof ClassificationConfig
  1149. */
  1150. 'modelType'?: ModelType;
  1151. }
  1152. /**
  1153. *
  1154. * @export
  1155. * @enum {string}
  1156. */
  1157. export const Colorspace = {
  1158. Srgb: 'srgb',
  1159. P3: 'p3'
  1160. } as const;
  1161. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1162. /**
  1163. *
  1164. * @export
  1165. * @interface CreateAlbumDto
  1166. */
  1167. export interface CreateAlbumDto {
  1168. /**
  1169. *
  1170. * @type {string}
  1171. * @memberof CreateAlbumDto
  1172. */
  1173. 'albumName': string;
  1174. /**
  1175. *
  1176. * @type {Array<string>}
  1177. * @memberof CreateAlbumDto
  1178. */
  1179. 'assetIds'?: Array<string>;
  1180. /**
  1181. *
  1182. * @type {string}
  1183. * @memberof CreateAlbumDto
  1184. */
  1185. 'description'?: string;
  1186. /**
  1187. *
  1188. * @type {Array<string>}
  1189. * @memberof CreateAlbumDto
  1190. */
  1191. 'sharedWithUserIds'?: Array<string>;
  1192. }
  1193. /**
  1194. *
  1195. * @export
  1196. * @interface CreateLibraryDto
  1197. */
  1198. export interface CreateLibraryDto {
  1199. /**
  1200. *
  1201. * @type {Array<string>}
  1202. * @memberof CreateLibraryDto
  1203. */
  1204. 'exclusionPatterns'?: Array<string>;
  1205. /**
  1206. *
  1207. * @type {Array<string>}
  1208. * @memberof CreateLibraryDto
  1209. */
  1210. 'importPaths'?: Array<string>;
  1211. /**
  1212. *
  1213. * @type {boolean}
  1214. * @memberof CreateLibraryDto
  1215. */
  1216. 'isVisible'?: boolean;
  1217. /**
  1218. *
  1219. * @type {string}
  1220. * @memberof CreateLibraryDto
  1221. */
  1222. 'name'?: string;
  1223. /**
  1224. *
  1225. * @type {LibraryType}
  1226. * @memberof CreateLibraryDto
  1227. */
  1228. 'type': LibraryType;
  1229. }
  1230. /**
  1231. *
  1232. * @export
  1233. * @interface CreateProfileImageResponseDto
  1234. */
  1235. export interface CreateProfileImageResponseDto {
  1236. /**
  1237. *
  1238. * @type {string}
  1239. * @memberof CreateProfileImageResponseDto
  1240. */
  1241. 'profileImagePath': string;
  1242. /**
  1243. *
  1244. * @type {string}
  1245. * @memberof CreateProfileImageResponseDto
  1246. */
  1247. 'userId': string;
  1248. }
  1249. /**
  1250. *
  1251. * @export
  1252. * @interface CreateTagDto
  1253. */
  1254. export interface CreateTagDto {
  1255. /**
  1256. *
  1257. * @type {string}
  1258. * @memberof CreateTagDto
  1259. */
  1260. 'name': string;
  1261. /**
  1262. *
  1263. * @type {TagTypeEnum}
  1264. * @memberof CreateTagDto
  1265. */
  1266. 'type': TagTypeEnum;
  1267. }
  1268. /**
  1269. *
  1270. * @export
  1271. * @interface CreateUserDto
  1272. */
  1273. export interface CreateUserDto {
  1274. /**
  1275. *
  1276. * @type {string}
  1277. * @memberof CreateUserDto
  1278. */
  1279. 'email': string;
  1280. /**
  1281. *
  1282. * @type {string}
  1283. * @memberof CreateUserDto
  1284. */
  1285. 'externalPath'?: string | null;
  1286. /**
  1287. *
  1288. * @type {string}
  1289. * @memberof CreateUserDto
  1290. */
  1291. 'firstName': string;
  1292. /**
  1293. *
  1294. * @type {string}
  1295. * @memberof CreateUserDto
  1296. */
  1297. 'lastName': string;
  1298. /**
  1299. *
  1300. * @type {boolean}
  1301. * @memberof CreateUserDto
  1302. */
  1303. 'memoriesEnabled'?: boolean;
  1304. /**
  1305. *
  1306. * @type {string}
  1307. * @memberof CreateUserDto
  1308. */
  1309. 'password': string;
  1310. /**
  1311. *
  1312. * @type {string}
  1313. * @memberof CreateUserDto
  1314. */
  1315. 'storageLabel'?: string | null;
  1316. }
  1317. /**
  1318. *
  1319. * @export
  1320. * @interface CuratedLocationsResponseDto
  1321. */
  1322. export interface CuratedLocationsResponseDto {
  1323. /**
  1324. *
  1325. * @type {string}
  1326. * @memberof CuratedLocationsResponseDto
  1327. */
  1328. 'city': string;
  1329. /**
  1330. *
  1331. * @type {string}
  1332. * @memberof CuratedLocationsResponseDto
  1333. */
  1334. 'deviceAssetId': string;
  1335. /**
  1336. *
  1337. * @type {string}
  1338. * @memberof CuratedLocationsResponseDto
  1339. */
  1340. 'deviceId': string;
  1341. /**
  1342. *
  1343. * @type {string}
  1344. * @memberof CuratedLocationsResponseDto
  1345. */
  1346. 'id': string;
  1347. /**
  1348. *
  1349. * @type {string}
  1350. * @memberof CuratedLocationsResponseDto
  1351. */
  1352. 'resizePath': string;
  1353. }
  1354. /**
  1355. *
  1356. * @export
  1357. * @interface CuratedObjectsResponseDto
  1358. */
  1359. export interface CuratedObjectsResponseDto {
  1360. /**
  1361. *
  1362. * @type {string}
  1363. * @memberof CuratedObjectsResponseDto
  1364. */
  1365. 'deviceAssetId': string;
  1366. /**
  1367. *
  1368. * @type {string}
  1369. * @memberof CuratedObjectsResponseDto
  1370. */
  1371. 'deviceId': string;
  1372. /**
  1373. *
  1374. * @type {string}
  1375. * @memberof CuratedObjectsResponseDto
  1376. */
  1377. 'id': string;
  1378. /**
  1379. *
  1380. * @type {string}
  1381. * @memberof CuratedObjectsResponseDto
  1382. */
  1383. 'object': string;
  1384. /**
  1385. *
  1386. * @type {string}
  1387. * @memberof CuratedObjectsResponseDto
  1388. */
  1389. 'resizePath': string;
  1390. }
  1391. /**
  1392. *
  1393. * @export
  1394. * @interface DownloadArchiveInfo
  1395. */
  1396. export interface DownloadArchiveInfo {
  1397. /**
  1398. *
  1399. * @type {Array<string>}
  1400. * @memberof DownloadArchiveInfo
  1401. */
  1402. 'assetIds': Array<string>;
  1403. /**
  1404. *
  1405. * @type {number}
  1406. * @memberof DownloadArchiveInfo
  1407. */
  1408. 'size': number;
  1409. }
  1410. /**
  1411. *
  1412. * @export
  1413. * @interface DownloadInfoDto
  1414. */
  1415. export interface DownloadInfoDto {
  1416. /**
  1417. *
  1418. * @type {string}
  1419. * @memberof DownloadInfoDto
  1420. */
  1421. 'albumId'?: string;
  1422. /**
  1423. *
  1424. * @type {number}
  1425. * @memberof DownloadInfoDto
  1426. */
  1427. 'archiveSize'?: number;
  1428. /**
  1429. *
  1430. * @type {Array<string>}
  1431. * @memberof DownloadInfoDto
  1432. */
  1433. 'assetIds'?: Array<string>;
  1434. /**
  1435. *
  1436. * @type {string}
  1437. * @memberof DownloadInfoDto
  1438. */
  1439. 'userId'?: string;
  1440. }
  1441. /**
  1442. *
  1443. * @export
  1444. * @interface DownloadResponseDto
  1445. */
  1446. export interface DownloadResponseDto {
  1447. /**
  1448. *
  1449. * @type {Array<DownloadArchiveInfo>}
  1450. * @memberof DownloadResponseDto
  1451. */
  1452. 'archives': Array<DownloadArchiveInfo>;
  1453. /**
  1454. *
  1455. * @type {number}
  1456. * @memberof DownloadResponseDto
  1457. */
  1458. 'totalSize': number;
  1459. }
  1460. /**
  1461. *
  1462. * @export
  1463. * @enum {string}
  1464. */
  1465. export const EntityType = {
  1466. Asset: 'ASSET',
  1467. Album: 'ALBUM'
  1468. } as const;
  1469. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1470. /**
  1471. *
  1472. * @export
  1473. * @interface ExifResponseDto
  1474. */
  1475. export interface ExifResponseDto {
  1476. /**
  1477. *
  1478. * @type {string}
  1479. * @memberof ExifResponseDto
  1480. */
  1481. 'city'?: string | null;
  1482. /**
  1483. *
  1484. * @type {string}
  1485. * @memberof ExifResponseDto
  1486. */
  1487. 'country'?: string | null;
  1488. /**
  1489. *
  1490. * @type {string}
  1491. * @memberof ExifResponseDto
  1492. */
  1493. 'dateTimeOriginal'?: string | null;
  1494. /**
  1495. *
  1496. * @type {string}
  1497. * @memberof ExifResponseDto
  1498. */
  1499. 'description'?: string | null;
  1500. /**
  1501. *
  1502. * @type {number}
  1503. * @memberof ExifResponseDto
  1504. */
  1505. 'exifImageHeight'?: number | null;
  1506. /**
  1507. *
  1508. * @type {number}
  1509. * @memberof ExifResponseDto
  1510. */
  1511. 'exifImageWidth'?: number | null;
  1512. /**
  1513. *
  1514. * @type {string}
  1515. * @memberof ExifResponseDto
  1516. */
  1517. 'exposureTime'?: string | null;
  1518. /**
  1519. *
  1520. * @type {number}
  1521. * @memberof ExifResponseDto
  1522. */
  1523. 'fNumber'?: number | null;
  1524. /**
  1525. *
  1526. * @type {number}
  1527. * @memberof ExifResponseDto
  1528. */
  1529. 'fileSizeInByte'?: number | null;
  1530. /**
  1531. *
  1532. * @type {number}
  1533. * @memberof ExifResponseDto
  1534. */
  1535. 'focalLength'?: number | null;
  1536. /**
  1537. *
  1538. * @type {number}
  1539. * @memberof ExifResponseDto
  1540. */
  1541. 'iso'?: number | null;
  1542. /**
  1543. *
  1544. * @type {number}
  1545. * @memberof ExifResponseDto
  1546. */
  1547. 'latitude'?: number | null;
  1548. /**
  1549. *
  1550. * @type {string}
  1551. * @memberof ExifResponseDto
  1552. */
  1553. 'lensModel'?: string | null;
  1554. /**
  1555. *
  1556. * @type {number}
  1557. * @memberof ExifResponseDto
  1558. */
  1559. 'longitude'?: number | null;
  1560. /**
  1561. *
  1562. * @type {string}
  1563. * @memberof ExifResponseDto
  1564. */
  1565. 'make'?: string | null;
  1566. /**
  1567. *
  1568. * @type {string}
  1569. * @memberof ExifResponseDto
  1570. */
  1571. 'model'?: string | null;
  1572. /**
  1573. *
  1574. * @type {string}
  1575. * @memberof ExifResponseDto
  1576. */
  1577. 'modifyDate'?: string | null;
  1578. /**
  1579. *
  1580. * @type {string}
  1581. * @memberof ExifResponseDto
  1582. */
  1583. 'orientation'?: string | null;
  1584. /**
  1585. *
  1586. * @type {string}
  1587. * @memberof ExifResponseDto
  1588. */
  1589. 'projectionType'?: string | null;
  1590. /**
  1591. *
  1592. * @type {string}
  1593. * @memberof ExifResponseDto
  1594. */
  1595. 'state'?: string | null;
  1596. /**
  1597. *
  1598. * @type {string}
  1599. * @memberof ExifResponseDto
  1600. */
  1601. 'timeZone'?: string | null;
  1602. }
  1603. /**
  1604. *
  1605. * @export
  1606. * @interface FileChecksumDto
  1607. */
  1608. export interface FileChecksumDto {
  1609. /**
  1610. *
  1611. * @type {Array<string>}
  1612. * @memberof FileChecksumDto
  1613. */
  1614. 'filenames': Array<string>;
  1615. }
  1616. /**
  1617. *
  1618. * @export
  1619. * @interface FileChecksumResponseDto
  1620. */
  1621. export interface FileChecksumResponseDto {
  1622. /**
  1623. *
  1624. * @type {string}
  1625. * @memberof FileChecksumResponseDto
  1626. */
  1627. 'checksum': string;
  1628. /**
  1629. *
  1630. * @type {string}
  1631. * @memberof FileChecksumResponseDto
  1632. */
  1633. 'filename': string;
  1634. }
  1635. /**
  1636. *
  1637. * @export
  1638. * @interface FileReportDto
  1639. */
  1640. export interface FileReportDto {
  1641. /**
  1642. *
  1643. * @type {Array<string>}
  1644. * @memberof FileReportDto
  1645. */
  1646. 'extras': Array<string>;
  1647. /**
  1648. *
  1649. * @type {Array<FileReportItemDto>}
  1650. * @memberof FileReportDto
  1651. */
  1652. 'orphans': Array<FileReportItemDto>;
  1653. }
  1654. /**
  1655. *
  1656. * @export
  1657. * @interface FileReportFixDto
  1658. */
  1659. export interface FileReportFixDto {
  1660. /**
  1661. *
  1662. * @type {Array<FileReportItemDto>}
  1663. * @memberof FileReportFixDto
  1664. */
  1665. 'items': Array<FileReportItemDto>;
  1666. }
  1667. /**
  1668. *
  1669. * @export
  1670. * @interface FileReportItemDto
  1671. */
  1672. export interface FileReportItemDto {
  1673. /**
  1674. *
  1675. * @type {string}
  1676. * @memberof FileReportItemDto
  1677. */
  1678. 'checksum'?: string;
  1679. /**
  1680. *
  1681. * @type {string}
  1682. * @memberof FileReportItemDto
  1683. */
  1684. 'entityId': string;
  1685. /**
  1686. *
  1687. * @type {PathEntityType}
  1688. * @memberof FileReportItemDto
  1689. */
  1690. 'entityType': PathEntityType;
  1691. /**
  1692. *
  1693. * @type {PathType}
  1694. * @memberof FileReportItemDto
  1695. */
  1696. 'pathType': PathType;
  1697. /**
  1698. *
  1699. * @type {string}
  1700. * @memberof FileReportItemDto
  1701. */
  1702. 'pathValue': string;
  1703. }
  1704. /**
  1705. *
  1706. * @export
  1707. * @interface ImportAssetDto
  1708. */
  1709. export interface ImportAssetDto {
  1710. /**
  1711. *
  1712. * @type {string}
  1713. * @memberof ImportAssetDto
  1714. */
  1715. 'assetPath': string;
  1716. /**
  1717. *
  1718. * @type {string}
  1719. * @memberof ImportAssetDto
  1720. */
  1721. 'deviceAssetId': string;
  1722. /**
  1723. *
  1724. * @type {string}
  1725. * @memberof ImportAssetDto
  1726. */
  1727. 'deviceId': string;
  1728. /**
  1729. *
  1730. * @type {string}
  1731. * @memberof ImportAssetDto
  1732. */
  1733. 'duration'?: string;
  1734. /**
  1735. *
  1736. * @type {string}
  1737. * @memberof ImportAssetDto
  1738. */
  1739. 'fileCreatedAt': string;
  1740. /**
  1741. *
  1742. * @type {string}
  1743. * @memberof ImportAssetDto
  1744. */
  1745. 'fileModifiedAt': string;
  1746. /**
  1747. *
  1748. * @type {boolean}
  1749. * @memberof ImportAssetDto
  1750. */
  1751. 'isArchived'?: boolean;
  1752. /**
  1753. *
  1754. * @type {boolean}
  1755. * @memberof ImportAssetDto
  1756. */
  1757. 'isExternal'?: boolean;
  1758. /**
  1759. *
  1760. * @type {boolean}
  1761. * @memberof ImportAssetDto
  1762. */
  1763. 'isFavorite'?: boolean;
  1764. /**
  1765. *
  1766. * @type {boolean}
  1767. * @memberof ImportAssetDto
  1768. */
  1769. 'isOffline'?: boolean;
  1770. /**
  1771. *
  1772. * @type {boolean}
  1773. * @memberof ImportAssetDto
  1774. */
  1775. 'isReadOnly'?: boolean;
  1776. /**
  1777. *
  1778. * @type {boolean}
  1779. * @memberof ImportAssetDto
  1780. */
  1781. 'isVisible'?: boolean;
  1782. /**
  1783. *
  1784. * @type {string}
  1785. * @memberof ImportAssetDto
  1786. */
  1787. 'libraryId'?: string;
  1788. /**
  1789. *
  1790. * @type {string}
  1791. * @memberof ImportAssetDto
  1792. */
  1793. 'sidecarPath'?: string;
  1794. }
  1795. /**
  1796. *
  1797. * @export
  1798. * @enum {string}
  1799. */
  1800. export const JobCommand = {
  1801. Start: 'start',
  1802. Pause: 'pause',
  1803. Resume: 'resume',
  1804. Empty: 'empty'
  1805. } as const;
  1806. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1807. /**
  1808. *
  1809. * @export
  1810. * @interface JobCommandDto
  1811. */
  1812. export interface JobCommandDto {
  1813. /**
  1814. *
  1815. * @type {JobCommand}
  1816. * @memberof JobCommandDto
  1817. */
  1818. 'command': JobCommand;
  1819. /**
  1820. *
  1821. * @type {boolean}
  1822. * @memberof JobCommandDto
  1823. */
  1824. 'force': boolean;
  1825. }
  1826. /**
  1827. *
  1828. * @export
  1829. * @interface JobCountsDto
  1830. */
  1831. export interface JobCountsDto {
  1832. /**
  1833. *
  1834. * @type {number}
  1835. * @memberof JobCountsDto
  1836. */
  1837. 'active': number;
  1838. /**
  1839. *
  1840. * @type {number}
  1841. * @memberof JobCountsDto
  1842. */
  1843. 'completed': number;
  1844. /**
  1845. *
  1846. * @type {number}
  1847. * @memberof JobCountsDto
  1848. */
  1849. 'delayed': number;
  1850. /**
  1851. *
  1852. * @type {number}
  1853. * @memberof JobCountsDto
  1854. */
  1855. 'failed': number;
  1856. /**
  1857. *
  1858. * @type {number}
  1859. * @memberof JobCountsDto
  1860. */
  1861. 'paused': number;
  1862. /**
  1863. *
  1864. * @type {number}
  1865. * @memberof JobCountsDto
  1866. */
  1867. 'waiting': number;
  1868. }
  1869. /**
  1870. *
  1871. * @export
  1872. * @enum {string}
  1873. */
  1874. export const JobName = {
  1875. ThumbnailGeneration: 'thumbnailGeneration',
  1876. MetadataExtraction: 'metadataExtraction',
  1877. VideoConversion: 'videoConversion',
  1878. ObjectTagging: 'objectTagging',
  1879. RecognizeFaces: 'recognizeFaces',
  1880. ClipEncoding: 'clipEncoding',
  1881. BackgroundTask: 'backgroundTask',
  1882. StorageTemplateMigration: 'storageTemplateMigration',
  1883. Migration: 'migration',
  1884. Search: 'search',
  1885. Sidecar: 'sidecar',
  1886. Library: 'library'
  1887. } as const;
  1888. export type JobName = typeof JobName[keyof typeof JobName];
  1889. /**
  1890. *
  1891. * @export
  1892. * @interface JobSettingsDto
  1893. */
  1894. export interface JobSettingsDto {
  1895. /**
  1896. *
  1897. * @type {number}
  1898. * @memberof JobSettingsDto
  1899. */
  1900. 'concurrency': number;
  1901. }
  1902. /**
  1903. *
  1904. * @export
  1905. * @interface JobStatusDto
  1906. */
  1907. export interface JobStatusDto {
  1908. /**
  1909. *
  1910. * @type {JobCountsDto}
  1911. * @memberof JobStatusDto
  1912. */
  1913. 'jobCounts': JobCountsDto;
  1914. /**
  1915. *
  1916. * @type {QueueStatusDto}
  1917. * @memberof JobStatusDto
  1918. */
  1919. 'queueStatus': QueueStatusDto;
  1920. }
  1921. /**
  1922. *
  1923. * @export
  1924. * @interface LibraryResponseDto
  1925. */
  1926. export interface LibraryResponseDto {
  1927. /**
  1928. *
  1929. * @type {number}
  1930. * @memberof LibraryResponseDto
  1931. */
  1932. 'assetCount': number;
  1933. /**
  1934. *
  1935. * @type {string}
  1936. * @memberof LibraryResponseDto
  1937. */
  1938. 'createdAt': string;
  1939. /**
  1940. *
  1941. * @type {Array<string>}
  1942. * @memberof LibraryResponseDto
  1943. */
  1944. 'exclusionPatterns': Array<string>;
  1945. /**
  1946. *
  1947. * @type {string}
  1948. * @memberof LibraryResponseDto
  1949. */
  1950. 'id': string;
  1951. /**
  1952. *
  1953. * @type {Array<string>}
  1954. * @memberof LibraryResponseDto
  1955. */
  1956. 'importPaths': Array<string>;
  1957. /**
  1958. *
  1959. * @type {string}
  1960. * @memberof LibraryResponseDto
  1961. */
  1962. 'name': string;
  1963. /**
  1964. *
  1965. * @type {string}
  1966. * @memberof LibraryResponseDto
  1967. */
  1968. 'ownerId': string;
  1969. /**
  1970. *
  1971. * @type {string}
  1972. * @memberof LibraryResponseDto
  1973. */
  1974. 'refreshedAt': string | null;
  1975. /**
  1976. *
  1977. * @type {LibraryType}
  1978. * @memberof LibraryResponseDto
  1979. */
  1980. 'type': LibraryType;
  1981. /**
  1982. *
  1983. * @type {string}
  1984. * @memberof LibraryResponseDto
  1985. */
  1986. 'updatedAt': string;
  1987. }
  1988. /**
  1989. *
  1990. * @export
  1991. * @interface LibraryStatsResponseDto
  1992. */
  1993. export interface LibraryStatsResponseDto {
  1994. /**
  1995. *
  1996. * @type {number}
  1997. * @memberof LibraryStatsResponseDto
  1998. */
  1999. 'photos': number;
  2000. /**
  2001. *
  2002. * @type {number}
  2003. * @memberof LibraryStatsResponseDto
  2004. */
  2005. 'total': number;
  2006. /**
  2007. *
  2008. * @type {number}
  2009. * @memberof LibraryStatsResponseDto
  2010. */
  2011. 'usage': number;
  2012. /**
  2013. *
  2014. * @type {number}
  2015. * @memberof LibraryStatsResponseDto
  2016. */
  2017. 'videos': number;
  2018. }
  2019. /**
  2020. *
  2021. * @export
  2022. * @enum {string}
  2023. */
  2024. export const LibraryType = {
  2025. Upload: 'UPLOAD',
  2026. External: 'EXTERNAL'
  2027. } as const;
  2028. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  2029. /**
  2030. *
  2031. * @export
  2032. * @interface LoginCredentialDto
  2033. */
  2034. export interface LoginCredentialDto {
  2035. /**
  2036. *
  2037. * @type {string}
  2038. * @memberof LoginCredentialDto
  2039. */
  2040. 'email': string;
  2041. /**
  2042. *
  2043. * @type {string}
  2044. * @memberof LoginCredentialDto
  2045. */
  2046. 'password': string;
  2047. }
  2048. /**
  2049. *
  2050. * @export
  2051. * @interface LoginResponseDto
  2052. */
  2053. export interface LoginResponseDto {
  2054. /**
  2055. *
  2056. * @type {string}
  2057. * @memberof LoginResponseDto
  2058. */
  2059. 'accessToken': string;
  2060. /**
  2061. *
  2062. * @type {string}
  2063. * @memberof LoginResponseDto
  2064. */
  2065. 'firstName': string;
  2066. /**
  2067. *
  2068. * @type {boolean}
  2069. * @memberof LoginResponseDto
  2070. */
  2071. 'isAdmin': boolean;
  2072. /**
  2073. *
  2074. * @type {string}
  2075. * @memberof LoginResponseDto
  2076. */
  2077. 'lastName': string;
  2078. /**
  2079. *
  2080. * @type {string}
  2081. * @memberof LoginResponseDto
  2082. */
  2083. 'profileImagePath': string;
  2084. /**
  2085. *
  2086. * @type {boolean}
  2087. * @memberof LoginResponseDto
  2088. */
  2089. 'shouldChangePassword': boolean;
  2090. /**
  2091. *
  2092. * @type {string}
  2093. * @memberof LoginResponseDto
  2094. */
  2095. 'userEmail': string;
  2096. /**
  2097. *
  2098. * @type {string}
  2099. * @memberof LoginResponseDto
  2100. */
  2101. 'userId': string;
  2102. }
  2103. /**
  2104. *
  2105. * @export
  2106. * @interface LogoutResponseDto
  2107. */
  2108. export interface LogoutResponseDto {
  2109. /**
  2110. *
  2111. * @type {string}
  2112. * @memberof LogoutResponseDto
  2113. */
  2114. 'redirectUri': string;
  2115. /**
  2116. *
  2117. * @type {boolean}
  2118. * @memberof LogoutResponseDto
  2119. */
  2120. 'successful': boolean;
  2121. }
  2122. /**
  2123. *
  2124. * @export
  2125. * @interface MapMarkerResponseDto
  2126. */
  2127. export interface MapMarkerResponseDto {
  2128. /**
  2129. *
  2130. * @type {string}
  2131. * @memberof MapMarkerResponseDto
  2132. */
  2133. 'id': string;
  2134. /**
  2135. *
  2136. * @type {number}
  2137. * @memberof MapMarkerResponseDto
  2138. */
  2139. 'lat': number;
  2140. /**
  2141. *
  2142. * @type {number}
  2143. * @memberof MapMarkerResponseDto
  2144. */
  2145. 'lon': number;
  2146. }
  2147. /**
  2148. *
  2149. * @export
  2150. * @interface MemoryLaneResponseDto
  2151. */
  2152. export interface MemoryLaneResponseDto {
  2153. /**
  2154. *
  2155. * @type {Array<AssetResponseDto>}
  2156. * @memberof MemoryLaneResponseDto
  2157. */
  2158. 'assets': Array<AssetResponseDto>;
  2159. /**
  2160. *
  2161. * @type {string}
  2162. * @memberof MemoryLaneResponseDto
  2163. */
  2164. 'title': string;
  2165. }
  2166. /**
  2167. *
  2168. * @export
  2169. * @interface MergePersonDto
  2170. */
  2171. export interface MergePersonDto {
  2172. /**
  2173. *
  2174. * @type {Array<string>}
  2175. * @memberof MergePersonDto
  2176. */
  2177. 'ids': Array<string>;
  2178. }
  2179. /**
  2180. *
  2181. * @export
  2182. * @enum {string}
  2183. */
  2184. export const ModelType = {
  2185. ImageClassification: 'image-classification',
  2186. FacialRecognition: 'facial-recognition',
  2187. Clip: 'clip'
  2188. } as const;
  2189. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2190. /**
  2191. *
  2192. * @export
  2193. * @interface OAuthAuthorizeResponseDto
  2194. */
  2195. export interface OAuthAuthorizeResponseDto {
  2196. /**
  2197. *
  2198. * @type {string}
  2199. * @memberof OAuthAuthorizeResponseDto
  2200. */
  2201. 'url': string;
  2202. }
  2203. /**
  2204. *
  2205. * @export
  2206. * @interface OAuthCallbackDto
  2207. */
  2208. export interface OAuthCallbackDto {
  2209. /**
  2210. *
  2211. * @type {string}
  2212. * @memberof OAuthCallbackDto
  2213. */
  2214. 'url': string;
  2215. }
  2216. /**
  2217. *
  2218. * @export
  2219. * @interface OAuthConfigDto
  2220. */
  2221. export interface OAuthConfigDto {
  2222. /**
  2223. *
  2224. * @type {string}
  2225. * @memberof OAuthConfigDto
  2226. */
  2227. 'redirectUri': string;
  2228. }
  2229. /**
  2230. *
  2231. * @export
  2232. * @interface OAuthConfigResponseDto
  2233. */
  2234. export interface OAuthConfigResponseDto {
  2235. /**
  2236. *
  2237. * @type {boolean}
  2238. * @memberof OAuthConfigResponseDto
  2239. */
  2240. 'autoLaunch'?: boolean;
  2241. /**
  2242. *
  2243. * @type {string}
  2244. * @memberof OAuthConfigResponseDto
  2245. */
  2246. 'buttonText'?: string;
  2247. /**
  2248. *
  2249. * @type {boolean}
  2250. * @memberof OAuthConfigResponseDto
  2251. */
  2252. 'enabled': boolean;
  2253. /**
  2254. *
  2255. * @type {boolean}
  2256. * @memberof OAuthConfigResponseDto
  2257. */
  2258. 'passwordLoginEnabled': boolean;
  2259. /**
  2260. *
  2261. * @type {string}
  2262. * @memberof OAuthConfigResponseDto
  2263. */
  2264. 'url'?: string;
  2265. }
  2266. /**
  2267. *
  2268. * @export
  2269. * @enum {string}
  2270. */
  2271. export const PathEntityType = {
  2272. Asset: 'asset',
  2273. Person: 'person',
  2274. User: 'user'
  2275. } as const;
  2276. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2277. /**
  2278. *
  2279. * @export
  2280. * @enum {string}
  2281. */
  2282. export const PathType = {
  2283. Original: 'original',
  2284. JpegThumbnail: 'jpeg_thumbnail',
  2285. WebpThumbnail: 'webp_thumbnail',
  2286. EncodedVideo: 'encoded_video',
  2287. Sidecar: 'sidecar',
  2288. Face: 'face',
  2289. Profile: 'profile'
  2290. } as const;
  2291. export type PathType = typeof PathType[keyof typeof PathType];
  2292. /**
  2293. *
  2294. * @export
  2295. * @interface PeopleResponseDto
  2296. */
  2297. export interface PeopleResponseDto {
  2298. /**
  2299. *
  2300. * @type {Array<PersonResponseDto>}
  2301. * @memberof PeopleResponseDto
  2302. */
  2303. 'people': Array<PersonResponseDto>;
  2304. /**
  2305. *
  2306. * @type {number}
  2307. * @memberof PeopleResponseDto
  2308. */
  2309. 'total': number;
  2310. /**
  2311. *
  2312. * @type {number}
  2313. * @memberof PeopleResponseDto
  2314. */
  2315. 'visible': number;
  2316. }
  2317. /**
  2318. *
  2319. * @export
  2320. * @interface PeopleUpdateDto
  2321. */
  2322. export interface PeopleUpdateDto {
  2323. /**
  2324. *
  2325. * @type {Array<PeopleUpdateItem>}
  2326. * @memberof PeopleUpdateDto
  2327. */
  2328. 'people': Array<PeopleUpdateItem>;
  2329. }
  2330. /**
  2331. *
  2332. * @export
  2333. * @interface PeopleUpdateItem
  2334. */
  2335. export interface PeopleUpdateItem {
  2336. /**
  2337. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2338. * @type {string}
  2339. * @memberof PeopleUpdateItem
  2340. */
  2341. 'birthDate'?: string | null;
  2342. /**
  2343. * Asset is used to get the feature face thumbnail.
  2344. * @type {string}
  2345. * @memberof PeopleUpdateItem
  2346. */
  2347. 'featureFaceAssetId'?: string;
  2348. /**
  2349. * Person id.
  2350. * @type {string}
  2351. * @memberof PeopleUpdateItem
  2352. */
  2353. 'id': string;
  2354. /**
  2355. * Person visibility
  2356. * @type {boolean}
  2357. * @memberof PeopleUpdateItem
  2358. */
  2359. 'isHidden'?: boolean;
  2360. /**
  2361. * Person name.
  2362. * @type {string}
  2363. * @memberof PeopleUpdateItem
  2364. */
  2365. 'name'?: string;
  2366. }
  2367. /**
  2368. *
  2369. * @export
  2370. * @interface PersonResponseDto
  2371. */
  2372. export interface PersonResponseDto {
  2373. /**
  2374. *
  2375. * @type {string}
  2376. * @memberof PersonResponseDto
  2377. */
  2378. 'birthDate': string | null;
  2379. /**
  2380. *
  2381. * @type {string}
  2382. * @memberof PersonResponseDto
  2383. */
  2384. 'id': string;
  2385. /**
  2386. *
  2387. * @type {boolean}
  2388. * @memberof PersonResponseDto
  2389. */
  2390. 'isHidden': boolean;
  2391. /**
  2392. *
  2393. * @type {string}
  2394. * @memberof PersonResponseDto
  2395. */
  2396. 'name': string;
  2397. /**
  2398. *
  2399. * @type {string}
  2400. * @memberof PersonResponseDto
  2401. */
  2402. 'thumbnailPath': string;
  2403. }
  2404. /**
  2405. *
  2406. * @export
  2407. * @interface PersonStatisticsResponseDto
  2408. */
  2409. export interface PersonStatisticsResponseDto {
  2410. /**
  2411. *
  2412. * @type {number}
  2413. * @memberof PersonStatisticsResponseDto
  2414. */
  2415. 'assets': number;
  2416. }
  2417. /**
  2418. *
  2419. * @export
  2420. * @interface PersonUpdateDto
  2421. */
  2422. export interface PersonUpdateDto {
  2423. /**
  2424. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2425. * @type {string}
  2426. * @memberof PersonUpdateDto
  2427. */
  2428. 'birthDate'?: string | null;
  2429. /**
  2430. * Asset is used to get the feature face thumbnail.
  2431. * @type {string}
  2432. * @memberof PersonUpdateDto
  2433. */
  2434. 'featureFaceAssetId'?: string;
  2435. /**
  2436. * Person visibility
  2437. * @type {boolean}
  2438. * @memberof PersonUpdateDto
  2439. */
  2440. 'isHidden'?: boolean;
  2441. /**
  2442. * Person name.
  2443. * @type {string}
  2444. * @memberof PersonUpdateDto
  2445. */
  2446. 'name'?: string;
  2447. }
  2448. /**
  2449. *
  2450. * @export
  2451. * @interface QueueStatusDto
  2452. */
  2453. export interface QueueStatusDto {
  2454. /**
  2455. *
  2456. * @type {boolean}
  2457. * @memberof QueueStatusDto
  2458. */
  2459. 'isActive': boolean;
  2460. /**
  2461. *
  2462. * @type {boolean}
  2463. * @memberof QueueStatusDto
  2464. */
  2465. 'isPaused': boolean;
  2466. }
  2467. /**
  2468. *
  2469. * @export
  2470. * @enum {string}
  2471. */
  2472. export const ReactionType = {
  2473. Comment: 'comment',
  2474. Like: 'like'
  2475. } as const;
  2476. export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
  2477. /**
  2478. *
  2479. * @export
  2480. * @interface RecognitionConfig
  2481. */
  2482. export interface RecognitionConfig {
  2483. /**
  2484. *
  2485. * @type {boolean}
  2486. * @memberof RecognitionConfig
  2487. */
  2488. 'enabled': boolean;
  2489. /**
  2490. *
  2491. * @type {number}
  2492. * @memberof RecognitionConfig
  2493. */
  2494. 'maxDistance': number;
  2495. /**
  2496. *
  2497. * @type {number}
  2498. * @memberof RecognitionConfig
  2499. */
  2500. 'minFaces': number;
  2501. /**
  2502. *
  2503. * @type {number}
  2504. * @memberof RecognitionConfig
  2505. */
  2506. 'minScore': number;
  2507. /**
  2508. *
  2509. * @type {string}
  2510. * @memberof RecognitionConfig
  2511. */
  2512. 'modelName': string;
  2513. /**
  2514. *
  2515. * @type {ModelType}
  2516. * @memberof RecognitionConfig
  2517. */
  2518. 'modelType'?: ModelType;
  2519. }
  2520. /**
  2521. *
  2522. * @export
  2523. * @interface ScanLibraryDto
  2524. */
  2525. export interface ScanLibraryDto {
  2526. /**
  2527. *
  2528. * @type {boolean}
  2529. * @memberof ScanLibraryDto
  2530. */
  2531. 'refreshAllFiles'?: boolean;
  2532. /**
  2533. *
  2534. * @type {boolean}
  2535. * @memberof ScanLibraryDto
  2536. */
  2537. 'refreshModifiedFiles'?: boolean;
  2538. }
  2539. /**
  2540. *
  2541. * @export
  2542. * @interface SearchAlbumResponseDto
  2543. */
  2544. export interface SearchAlbumResponseDto {
  2545. /**
  2546. *
  2547. * @type {number}
  2548. * @memberof SearchAlbumResponseDto
  2549. */
  2550. 'count': number;
  2551. /**
  2552. *
  2553. * @type {Array<SearchFacetResponseDto>}
  2554. * @memberof SearchAlbumResponseDto
  2555. */
  2556. 'facets': Array<SearchFacetResponseDto>;
  2557. /**
  2558. *
  2559. * @type {Array<AlbumResponseDto>}
  2560. * @memberof SearchAlbumResponseDto
  2561. */
  2562. 'items': Array<AlbumResponseDto>;
  2563. /**
  2564. *
  2565. * @type {number}
  2566. * @memberof SearchAlbumResponseDto
  2567. */
  2568. 'total': number;
  2569. }
  2570. /**
  2571. *
  2572. * @export
  2573. * @interface SearchAssetDto
  2574. */
  2575. export interface SearchAssetDto {
  2576. /**
  2577. *
  2578. * @type {string}
  2579. * @memberof SearchAssetDto
  2580. */
  2581. 'searchTerm': string;
  2582. }
  2583. /**
  2584. *
  2585. * @export
  2586. * @interface SearchAssetResponseDto
  2587. */
  2588. export interface SearchAssetResponseDto {
  2589. /**
  2590. *
  2591. * @type {number}
  2592. * @memberof SearchAssetResponseDto
  2593. */
  2594. 'count': number;
  2595. /**
  2596. *
  2597. * @type {Array<SearchFacetResponseDto>}
  2598. * @memberof SearchAssetResponseDto
  2599. */
  2600. 'facets': Array<SearchFacetResponseDto>;
  2601. /**
  2602. *
  2603. * @type {Array<AssetResponseDto>}
  2604. * @memberof SearchAssetResponseDto
  2605. */
  2606. 'items': Array<AssetResponseDto>;
  2607. /**
  2608. *
  2609. * @type {number}
  2610. * @memberof SearchAssetResponseDto
  2611. */
  2612. 'total': number;
  2613. }
  2614. /**
  2615. *
  2616. * @export
  2617. * @interface SearchExploreItem
  2618. */
  2619. export interface SearchExploreItem {
  2620. /**
  2621. *
  2622. * @type {AssetResponseDto}
  2623. * @memberof SearchExploreItem
  2624. */
  2625. 'data': AssetResponseDto;
  2626. /**
  2627. *
  2628. * @type {string}
  2629. * @memberof SearchExploreItem
  2630. */
  2631. 'value': string;
  2632. }
  2633. /**
  2634. *
  2635. * @export
  2636. * @interface SearchExploreResponseDto
  2637. */
  2638. export interface SearchExploreResponseDto {
  2639. /**
  2640. *
  2641. * @type {string}
  2642. * @memberof SearchExploreResponseDto
  2643. */
  2644. 'fieldName': string;
  2645. /**
  2646. *
  2647. * @type {Array<SearchExploreItem>}
  2648. * @memberof SearchExploreResponseDto
  2649. */
  2650. 'items': Array<SearchExploreItem>;
  2651. }
  2652. /**
  2653. *
  2654. * @export
  2655. * @interface SearchFacetCountResponseDto
  2656. */
  2657. export interface SearchFacetCountResponseDto {
  2658. /**
  2659. *
  2660. * @type {number}
  2661. * @memberof SearchFacetCountResponseDto
  2662. */
  2663. 'count': number;
  2664. /**
  2665. *
  2666. * @type {string}
  2667. * @memberof SearchFacetCountResponseDto
  2668. */
  2669. 'value': string;
  2670. }
  2671. /**
  2672. *
  2673. * @export
  2674. * @interface SearchFacetResponseDto
  2675. */
  2676. export interface SearchFacetResponseDto {
  2677. /**
  2678. *
  2679. * @type {Array<SearchFacetCountResponseDto>}
  2680. * @memberof SearchFacetResponseDto
  2681. */
  2682. 'counts': Array<SearchFacetCountResponseDto>;
  2683. /**
  2684. *
  2685. * @type {string}
  2686. * @memberof SearchFacetResponseDto
  2687. */
  2688. 'fieldName': string;
  2689. }
  2690. /**
  2691. *
  2692. * @export
  2693. * @interface SearchResponseDto
  2694. */
  2695. export interface SearchResponseDto {
  2696. /**
  2697. *
  2698. * @type {SearchAlbumResponseDto}
  2699. * @memberof SearchResponseDto
  2700. */
  2701. 'albums': SearchAlbumResponseDto;
  2702. /**
  2703. *
  2704. * @type {SearchAssetResponseDto}
  2705. * @memberof SearchResponseDto
  2706. */
  2707. 'assets': SearchAssetResponseDto;
  2708. }
  2709. /**
  2710. *
  2711. * @export
  2712. * @interface ServerConfigDto
  2713. */
  2714. export interface ServerConfigDto {
  2715. /**
  2716. *
  2717. * @type {boolean}
  2718. * @memberof ServerConfigDto
  2719. */
  2720. 'isInitialized': boolean;
  2721. /**
  2722. *
  2723. * @type {string}
  2724. * @memberof ServerConfigDto
  2725. */
  2726. 'loginPageMessage': string;
  2727. /**
  2728. *
  2729. * @type {string}
  2730. * @memberof ServerConfigDto
  2731. */
  2732. 'mapTileUrl': string;
  2733. /**
  2734. *
  2735. * @type {string}
  2736. * @memberof ServerConfigDto
  2737. */
  2738. 'oauthButtonText': string;
  2739. /**
  2740. *
  2741. * @type {number}
  2742. * @memberof ServerConfigDto
  2743. */
  2744. 'trashDays': number;
  2745. }
  2746. /**
  2747. *
  2748. * @export
  2749. * @interface ServerFeaturesDto
  2750. */
  2751. export interface ServerFeaturesDto {
  2752. /**
  2753. *
  2754. * @type {boolean}
  2755. * @memberof ServerFeaturesDto
  2756. */
  2757. 'clipEncode': boolean;
  2758. /**
  2759. *
  2760. * @type {boolean}
  2761. * @memberof ServerFeaturesDto
  2762. */
  2763. 'configFile': boolean;
  2764. /**
  2765. *
  2766. * @type {boolean}
  2767. * @memberof ServerFeaturesDto
  2768. */
  2769. 'facialRecognition': boolean;
  2770. /**
  2771. *
  2772. * @type {boolean}
  2773. * @memberof ServerFeaturesDto
  2774. */
  2775. 'map': boolean;
  2776. /**
  2777. *
  2778. * @type {boolean}
  2779. * @memberof ServerFeaturesDto
  2780. */
  2781. 'oauth': boolean;
  2782. /**
  2783. *
  2784. * @type {boolean}
  2785. * @memberof ServerFeaturesDto
  2786. */
  2787. 'oauthAutoLaunch': boolean;
  2788. /**
  2789. *
  2790. * @type {boolean}
  2791. * @memberof ServerFeaturesDto
  2792. */
  2793. 'passwordLogin': boolean;
  2794. /**
  2795. *
  2796. * @type {boolean}
  2797. * @memberof ServerFeaturesDto
  2798. */
  2799. 'reverseGeocoding': boolean;
  2800. /**
  2801. *
  2802. * @type {boolean}
  2803. * @memberof ServerFeaturesDto
  2804. */
  2805. 'search': boolean;
  2806. /**
  2807. *
  2808. * @type {boolean}
  2809. * @memberof ServerFeaturesDto
  2810. */
  2811. 'sidecar': boolean;
  2812. /**
  2813. *
  2814. * @type {boolean}
  2815. * @memberof ServerFeaturesDto
  2816. */
  2817. 'tagImage': boolean;
  2818. /**
  2819. *
  2820. * @type {boolean}
  2821. * @memberof ServerFeaturesDto
  2822. */
  2823. 'trash': boolean;
  2824. }
  2825. /**
  2826. *
  2827. * @export
  2828. * @interface ServerInfoResponseDto
  2829. */
  2830. export interface ServerInfoResponseDto {
  2831. /**
  2832. *
  2833. * @type {string}
  2834. * @memberof ServerInfoResponseDto
  2835. */
  2836. 'diskAvailable': string;
  2837. /**
  2838. *
  2839. * @type {number}
  2840. * @memberof ServerInfoResponseDto
  2841. */
  2842. 'diskAvailableRaw': number;
  2843. /**
  2844. *
  2845. * @type {string}
  2846. * @memberof ServerInfoResponseDto
  2847. */
  2848. 'diskSize': string;
  2849. /**
  2850. *
  2851. * @type {number}
  2852. * @memberof ServerInfoResponseDto
  2853. */
  2854. 'diskSizeRaw': number;
  2855. /**
  2856. *
  2857. * @type {number}
  2858. * @memberof ServerInfoResponseDto
  2859. */
  2860. 'diskUsagePercentage': number;
  2861. /**
  2862. *
  2863. * @type {string}
  2864. * @memberof ServerInfoResponseDto
  2865. */
  2866. 'diskUse': string;
  2867. /**
  2868. *
  2869. * @type {number}
  2870. * @memberof ServerInfoResponseDto
  2871. */
  2872. 'diskUseRaw': number;
  2873. }
  2874. /**
  2875. *
  2876. * @export
  2877. * @interface ServerMediaTypesResponseDto
  2878. */
  2879. export interface ServerMediaTypesResponseDto {
  2880. /**
  2881. *
  2882. * @type {Array<string>}
  2883. * @memberof ServerMediaTypesResponseDto
  2884. */
  2885. 'image': Array<string>;
  2886. /**
  2887. *
  2888. * @type {Array<string>}
  2889. * @memberof ServerMediaTypesResponseDto
  2890. */
  2891. 'sidecar': Array<string>;
  2892. /**
  2893. *
  2894. * @type {Array<string>}
  2895. * @memberof ServerMediaTypesResponseDto
  2896. */
  2897. 'video': Array<string>;
  2898. }
  2899. /**
  2900. *
  2901. * @export
  2902. * @interface ServerPingResponse
  2903. */
  2904. export interface ServerPingResponse {
  2905. /**
  2906. *
  2907. * @type {string}
  2908. * @memberof ServerPingResponse
  2909. */
  2910. 'res': string;
  2911. }
  2912. /**
  2913. *
  2914. * @export
  2915. * @interface ServerStatsResponseDto
  2916. */
  2917. export interface ServerStatsResponseDto {
  2918. /**
  2919. *
  2920. * @type {number}
  2921. * @memberof ServerStatsResponseDto
  2922. */
  2923. 'photos': number;
  2924. /**
  2925. *
  2926. * @type {number}
  2927. * @memberof ServerStatsResponseDto
  2928. */
  2929. 'usage': number;
  2930. /**
  2931. *
  2932. * @type {Array<UsageByUserDto>}
  2933. * @memberof ServerStatsResponseDto
  2934. */
  2935. 'usageByUser': Array<UsageByUserDto>;
  2936. /**
  2937. *
  2938. * @type {number}
  2939. * @memberof ServerStatsResponseDto
  2940. */
  2941. 'videos': number;
  2942. }
  2943. /**
  2944. *
  2945. * @export
  2946. * @interface ServerThemeDto
  2947. */
  2948. export interface ServerThemeDto {
  2949. /**
  2950. *
  2951. * @type {string}
  2952. * @memberof ServerThemeDto
  2953. */
  2954. 'customCss': string;
  2955. }
  2956. /**
  2957. *
  2958. * @export
  2959. * @interface ServerVersionResponseDto
  2960. */
  2961. export interface ServerVersionResponseDto {
  2962. /**
  2963. *
  2964. * @type {number}
  2965. * @memberof ServerVersionResponseDto
  2966. */
  2967. 'major': number;
  2968. /**
  2969. *
  2970. * @type {number}
  2971. * @memberof ServerVersionResponseDto
  2972. */
  2973. 'minor': number;
  2974. /**
  2975. *
  2976. * @type {number}
  2977. * @memberof ServerVersionResponseDto
  2978. */
  2979. 'patch': number;
  2980. }
  2981. /**
  2982. *
  2983. * @export
  2984. * @interface SharedLinkCreateDto
  2985. */
  2986. export interface SharedLinkCreateDto {
  2987. /**
  2988. *
  2989. * @type {string}
  2990. * @memberof SharedLinkCreateDto
  2991. */
  2992. 'albumId'?: string;
  2993. /**
  2994. *
  2995. * @type {boolean}
  2996. * @memberof SharedLinkCreateDto
  2997. */
  2998. 'allowDownload'?: boolean;
  2999. /**
  3000. *
  3001. * @type {boolean}
  3002. * @memberof SharedLinkCreateDto
  3003. */
  3004. 'allowUpload'?: boolean;
  3005. /**
  3006. *
  3007. * @type {Array<string>}
  3008. * @memberof SharedLinkCreateDto
  3009. */
  3010. 'assetIds'?: Array<string>;
  3011. /**
  3012. *
  3013. * @type {string}
  3014. * @memberof SharedLinkCreateDto
  3015. */
  3016. 'description'?: string;
  3017. /**
  3018. *
  3019. * @type {string}
  3020. * @memberof SharedLinkCreateDto
  3021. */
  3022. 'expiresAt'?: string | null;
  3023. /**
  3024. *
  3025. * @type {string}
  3026. * @memberof SharedLinkCreateDto
  3027. */
  3028. 'password'?: string;
  3029. /**
  3030. *
  3031. * @type {boolean}
  3032. * @memberof SharedLinkCreateDto
  3033. */
  3034. 'showMetadata'?: boolean;
  3035. /**
  3036. *
  3037. * @type {SharedLinkType}
  3038. * @memberof SharedLinkCreateDto
  3039. */
  3040. 'type': SharedLinkType;
  3041. }
  3042. /**
  3043. *
  3044. * @export
  3045. * @interface SharedLinkEditDto
  3046. */
  3047. export interface SharedLinkEditDto {
  3048. /**
  3049. *
  3050. * @type {boolean}
  3051. * @memberof SharedLinkEditDto
  3052. */
  3053. 'allowDownload'?: boolean;
  3054. /**
  3055. *
  3056. * @type {boolean}
  3057. * @memberof SharedLinkEditDto
  3058. */
  3059. 'allowUpload'?: boolean;
  3060. /**
  3061. * 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.
  3062. * @type {boolean}
  3063. * @memberof SharedLinkEditDto
  3064. */
  3065. 'changeExpiryTime'?: boolean;
  3066. /**
  3067. *
  3068. * @type {string}
  3069. * @memberof SharedLinkEditDto
  3070. */
  3071. 'description'?: string;
  3072. /**
  3073. *
  3074. * @type {string}
  3075. * @memberof SharedLinkEditDto
  3076. */
  3077. 'expiresAt'?: string | null;
  3078. /**
  3079. *
  3080. * @type {string}
  3081. * @memberof SharedLinkEditDto
  3082. */
  3083. 'password'?: string;
  3084. /**
  3085. *
  3086. * @type {boolean}
  3087. * @memberof SharedLinkEditDto
  3088. */
  3089. 'showMetadata'?: boolean;
  3090. }
  3091. /**
  3092. *
  3093. * @export
  3094. * @interface SharedLinkResponseDto
  3095. */
  3096. export interface SharedLinkResponseDto {
  3097. /**
  3098. *
  3099. * @type {AlbumResponseDto}
  3100. * @memberof SharedLinkResponseDto
  3101. */
  3102. 'album'?: AlbumResponseDto;
  3103. /**
  3104. *
  3105. * @type {boolean}
  3106. * @memberof SharedLinkResponseDto
  3107. */
  3108. 'allowDownload': boolean;
  3109. /**
  3110. *
  3111. * @type {boolean}
  3112. * @memberof SharedLinkResponseDto
  3113. */
  3114. 'allowUpload': boolean;
  3115. /**
  3116. *
  3117. * @type {Array<AssetResponseDto>}
  3118. * @memberof SharedLinkResponseDto
  3119. */
  3120. 'assets': Array<AssetResponseDto>;
  3121. /**
  3122. *
  3123. * @type {string}
  3124. * @memberof SharedLinkResponseDto
  3125. */
  3126. 'createdAt': string;
  3127. /**
  3128. *
  3129. * @type {string}
  3130. * @memberof SharedLinkResponseDto
  3131. */
  3132. 'description': string | null;
  3133. /**
  3134. *
  3135. * @type {string}
  3136. * @memberof SharedLinkResponseDto
  3137. */
  3138. 'expiresAt': string | null;
  3139. /**
  3140. *
  3141. * @type {string}
  3142. * @memberof SharedLinkResponseDto
  3143. */
  3144. 'id': string;
  3145. /**
  3146. *
  3147. * @type {string}
  3148. * @memberof SharedLinkResponseDto
  3149. */
  3150. 'key': string;
  3151. /**
  3152. *
  3153. * @type {string}
  3154. * @memberof SharedLinkResponseDto
  3155. */
  3156. 'password': string | null;
  3157. /**
  3158. *
  3159. * @type {boolean}
  3160. * @memberof SharedLinkResponseDto
  3161. */
  3162. 'showMetadata': boolean;
  3163. /**
  3164. *
  3165. * @type {string}
  3166. * @memberof SharedLinkResponseDto
  3167. */
  3168. 'token'?: string | null;
  3169. /**
  3170. *
  3171. * @type {SharedLinkType}
  3172. * @memberof SharedLinkResponseDto
  3173. */
  3174. 'type': SharedLinkType;
  3175. /**
  3176. *
  3177. * @type {string}
  3178. * @memberof SharedLinkResponseDto
  3179. */
  3180. 'userId': string;
  3181. }
  3182. /**
  3183. *
  3184. * @export
  3185. * @enum {string}
  3186. */
  3187. export const SharedLinkType = {
  3188. Album: 'ALBUM',
  3189. Individual: 'INDIVIDUAL'
  3190. } as const;
  3191. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3192. /**
  3193. *
  3194. * @export
  3195. * @interface SignUpDto
  3196. */
  3197. export interface SignUpDto {
  3198. /**
  3199. *
  3200. * @type {string}
  3201. * @memberof SignUpDto
  3202. */
  3203. 'email': string;
  3204. /**
  3205. *
  3206. * @type {string}
  3207. * @memberof SignUpDto
  3208. */
  3209. 'firstName': string;
  3210. /**
  3211. *
  3212. * @type {string}
  3213. * @memberof SignUpDto
  3214. */
  3215. 'lastName': string;
  3216. /**
  3217. *
  3218. * @type {string}
  3219. * @memberof SignUpDto
  3220. */
  3221. 'password': string;
  3222. }
  3223. /**
  3224. *
  3225. * @export
  3226. * @interface SmartInfoResponseDto
  3227. */
  3228. export interface SmartInfoResponseDto {
  3229. /**
  3230. *
  3231. * @type {Array<string>}
  3232. * @memberof SmartInfoResponseDto
  3233. */
  3234. 'objects'?: Array<string> | null;
  3235. /**
  3236. *
  3237. * @type {Array<string>}
  3238. * @memberof SmartInfoResponseDto
  3239. */
  3240. 'tags'?: Array<string> | null;
  3241. }
  3242. /**
  3243. *
  3244. * @export
  3245. * @interface SystemConfigDto
  3246. */
  3247. export interface SystemConfigDto {
  3248. /**
  3249. *
  3250. * @type {SystemConfigFFmpegDto}
  3251. * @memberof SystemConfigDto
  3252. */
  3253. 'ffmpeg': SystemConfigFFmpegDto;
  3254. /**
  3255. *
  3256. * @type {SystemConfigJobDto}
  3257. * @memberof SystemConfigDto
  3258. */
  3259. 'job': SystemConfigJobDto;
  3260. /**
  3261. *
  3262. * @type {SystemConfigLibraryDto}
  3263. * @memberof SystemConfigDto
  3264. */
  3265. 'library': SystemConfigLibraryDto;
  3266. /**
  3267. *
  3268. * @type {SystemConfigMachineLearningDto}
  3269. * @memberof SystemConfigDto
  3270. */
  3271. 'machineLearning': SystemConfigMachineLearningDto;
  3272. /**
  3273. *
  3274. * @type {SystemConfigMapDto}
  3275. * @memberof SystemConfigDto
  3276. */
  3277. 'map': SystemConfigMapDto;
  3278. /**
  3279. *
  3280. * @type {SystemConfigNewVersionCheckDto}
  3281. * @memberof SystemConfigDto
  3282. */
  3283. 'newVersionCheck': SystemConfigNewVersionCheckDto;
  3284. /**
  3285. *
  3286. * @type {SystemConfigOAuthDto}
  3287. * @memberof SystemConfigDto
  3288. */
  3289. 'oauth': SystemConfigOAuthDto;
  3290. /**
  3291. *
  3292. * @type {SystemConfigPasswordLoginDto}
  3293. * @memberof SystemConfigDto
  3294. */
  3295. 'passwordLogin': SystemConfigPasswordLoginDto;
  3296. /**
  3297. *
  3298. * @type {SystemConfigReverseGeocodingDto}
  3299. * @memberof SystemConfigDto
  3300. */
  3301. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3302. /**
  3303. *
  3304. * @type {SystemConfigStorageTemplateDto}
  3305. * @memberof SystemConfigDto
  3306. */
  3307. 'storageTemplate': SystemConfigStorageTemplateDto;
  3308. /**
  3309. *
  3310. * @type {SystemConfigThemeDto}
  3311. * @memberof SystemConfigDto
  3312. */
  3313. 'theme': SystemConfigThemeDto;
  3314. /**
  3315. *
  3316. * @type {SystemConfigThumbnailDto}
  3317. * @memberof SystemConfigDto
  3318. */
  3319. 'thumbnail': SystemConfigThumbnailDto;
  3320. /**
  3321. *
  3322. * @type {SystemConfigTrashDto}
  3323. * @memberof SystemConfigDto
  3324. */
  3325. 'trash': SystemConfigTrashDto;
  3326. }
  3327. /**
  3328. *
  3329. * @export
  3330. * @interface SystemConfigFFmpegDto
  3331. */
  3332. export interface SystemConfigFFmpegDto {
  3333. /**
  3334. *
  3335. * @type {TranscodeHWAccel}
  3336. * @memberof SystemConfigFFmpegDto
  3337. */
  3338. 'accel': TranscodeHWAccel;
  3339. /**
  3340. *
  3341. * @type {number}
  3342. * @memberof SystemConfigFFmpegDto
  3343. */
  3344. 'bframes': number;
  3345. /**
  3346. *
  3347. * @type {CQMode}
  3348. * @memberof SystemConfigFFmpegDto
  3349. */
  3350. 'cqMode': CQMode;
  3351. /**
  3352. *
  3353. * @type {number}
  3354. * @memberof SystemConfigFFmpegDto
  3355. */
  3356. 'crf': number;
  3357. /**
  3358. *
  3359. * @type {number}
  3360. * @memberof SystemConfigFFmpegDto
  3361. */
  3362. 'gopSize': number;
  3363. /**
  3364. *
  3365. * @type {string}
  3366. * @memberof SystemConfigFFmpegDto
  3367. */
  3368. 'maxBitrate': string;
  3369. /**
  3370. *
  3371. * @type {number}
  3372. * @memberof SystemConfigFFmpegDto
  3373. */
  3374. 'npl': number;
  3375. /**
  3376. *
  3377. * @type {string}
  3378. * @memberof SystemConfigFFmpegDto
  3379. */
  3380. 'preset': string;
  3381. /**
  3382. *
  3383. * @type {number}
  3384. * @memberof SystemConfigFFmpegDto
  3385. */
  3386. 'refs': number;
  3387. /**
  3388. *
  3389. * @type {AudioCodec}
  3390. * @memberof SystemConfigFFmpegDto
  3391. */
  3392. 'targetAudioCodec': AudioCodec;
  3393. /**
  3394. *
  3395. * @type {string}
  3396. * @memberof SystemConfigFFmpegDto
  3397. */
  3398. 'targetResolution': string;
  3399. /**
  3400. *
  3401. * @type {VideoCodec}
  3402. * @memberof SystemConfigFFmpegDto
  3403. */
  3404. 'targetVideoCodec': VideoCodec;
  3405. /**
  3406. *
  3407. * @type {boolean}
  3408. * @memberof SystemConfigFFmpegDto
  3409. */
  3410. 'temporalAQ': boolean;
  3411. /**
  3412. *
  3413. * @type {number}
  3414. * @memberof SystemConfigFFmpegDto
  3415. */
  3416. 'threads': number;
  3417. /**
  3418. *
  3419. * @type {ToneMapping}
  3420. * @memberof SystemConfigFFmpegDto
  3421. */
  3422. 'tonemap': ToneMapping;
  3423. /**
  3424. *
  3425. * @type {TranscodePolicy}
  3426. * @memberof SystemConfigFFmpegDto
  3427. */
  3428. 'transcode': TranscodePolicy;
  3429. /**
  3430. *
  3431. * @type {boolean}
  3432. * @memberof SystemConfigFFmpegDto
  3433. */
  3434. 'twoPass': boolean;
  3435. }
  3436. /**
  3437. *
  3438. * @export
  3439. * @interface SystemConfigJobDto
  3440. */
  3441. export interface SystemConfigJobDto {
  3442. /**
  3443. *
  3444. * @type {JobSettingsDto}
  3445. * @memberof SystemConfigJobDto
  3446. */
  3447. 'backgroundTask': JobSettingsDto;
  3448. /**
  3449. *
  3450. * @type {JobSettingsDto}
  3451. * @memberof SystemConfigJobDto
  3452. */
  3453. 'clipEncoding': JobSettingsDto;
  3454. /**
  3455. *
  3456. * @type {JobSettingsDto}
  3457. * @memberof SystemConfigJobDto
  3458. */
  3459. 'library': JobSettingsDto;
  3460. /**
  3461. *
  3462. * @type {JobSettingsDto}
  3463. * @memberof SystemConfigJobDto
  3464. */
  3465. 'metadataExtraction': JobSettingsDto;
  3466. /**
  3467. *
  3468. * @type {JobSettingsDto}
  3469. * @memberof SystemConfigJobDto
  3470. */
  3471. 'migration': JobSettingsDto;
  3472. /**
  3473. *
  3474. * @type {JobSettingsDto}
  3475. * @memberof SystemConfigJobDto
  3476. */
  3477. 'objectTagging': JobSettingsDto;
  3478. /**
  3479. *
  3480. * @type {JobSettingsDto}
  3481. * @memberof SystemConfigJobDto
  3482. */
  3483. 'recognizeFaces': JobSettingsDto;
  3484. /**
  3485. *
  3486. * @type {JobSettingsDto}
  3487. * @memberof SystemConfigJobDto
  3488. */
  3489. 'search': JobSettingsDto;
  3490. /**
  3491. *
  3492. * @type {JobSettingsDto}
  3493. * @memberof SystemConfigJobDto
  3494. */
  3495. 'sidecar': JobSettingsDto;
  3496. /**
  3497. *
  3498. * @type {JobSettingsDto}
  3499. * @memberof SystemConfigJobDto
  3500. */
  3501. 'storageTemplateMigration': JobSettingsDto;
  3502. /**
  3503. *
  3504. * @type {JobSettingsDto}
  3505. * @memberof SystemConfigJobDto
  3506. */
  3507. 'thumbnailGeneration': JobSettingsDto;
  3508. /**
  3509. *
  3510. * @type {JobSettingsDto}
  3511. * @memberof SystemConfigJobDto
  3512. */
  3513. 'videoConversion': JobSettingsDto;
  3514. }
  3515. /**
  3516. *
  3517. * @export
  3518. * @interface SystemConfigLibraryDto
  3519. */
  3520. export interface SystemConfigLibraryDto {
  3521. /**
  3522. *
  3523. * @type {SystemConfigLibraryScanDto}
  3524. * @memberof SystemConfigLibraryDto
  3525. */
  3526. 'scan': SystemConfigLibraryScanDto;
  3527. }
  3528. /**
  3529. *
  3530. * @export
  3531. * @interface SystemConfigLibraryScanDto
  3532. */
  3533. export interface SystemConfigLibraryScanDto {
  3534. /**
  3535. *
  3536. * @type {string}
  3537. * @memberof SystemConfigLibraryScanDto
  3538. */
  3539. 'cronExpression': string;
  3540. /**
  3541. *
  3542. * @type {boolean}
  3543. * @memberof SystemConfigLibraryScanDto
  3544. */
  3545. 'enabled': boolean;
  3546. }
  3547. /**
  3548. *
  3549. * @export
  3550. * @interface SystemConfigMachineLearningDto
  3551. */
  3552. export interface SystemConfigMachineLearningDto {
  3553. /**
  3554. *
  3555. * @type {ClassificationConfig}
  3556. * @memberof SystemConfigMachineLearningDto
  3557. */
  3558. 'classification': ClassificationConfig;
  3559. /**
  3560. *
  3561. * @type {CLIPConfig}
  3562. * @memberof SystemConfigMachineLearningDto
  3563. */
  3564. 'clip': CLIPConfig;
  3565. /**
  3566. *
  3567. * @type {boolean}
  3568. * @memberof SystemConfigMachineLearningDto
  3569. */
  3570. 'enabled': boolean;
  3571. /**
  3572. *
  3573. * @type {RecognitionConfig}
  3574. * @memberof SystemConfigMachineLearningDto
  3575. */
  3576. 'facialRecognition': RecognitionConfig;
  3577. /**
  3578. *
  3579. * @type {string}
  3580. * @memberof SystemConfigMachineLearningDto
  3581. */
  3582. 'url': string;
  3583. }
  3584. /**
  3585. *
  3586. * @export
  3587. * @interface SystemConfigMapDto
  3588. */
  3589. export interface SystemConfigMapDto {
  3590. /**
  3591. *
  3592. * @type {boolean}
  3593. * @memberof SystemConfigMapDto
  3594. */
  3595. 'enabled': boolean;
  3596. /**
  3597. *
  3598. * @type {string}
  3599. * @memberof SystemConfigMapDto
  3600. */
  3601. 'tileUrl': string;
  3602. }
  3603. /**
  3604. *
  3605. * @export
  3606. * @interface SystemConfigNewVersionCheckDto
  3607. */
  3608. export interface SystemConfigNewVersionCheckDto {
  3609. /**
  3610. *
  3611. * @type {boolean}
  3612. * @memberof SystemConfigNewVersionCheckDto
  3613. */
  3614. 'enabled': boolean;
  3615. }
  3616. /**
  3617. *
  3618. * @export
  3619. * @interface SystemConfigOAuthDto
  3620. */
  3621. export interface SystemConfigOAuthDto {
  3622. /**
  3623. *
  3624. * @type {boolean}
  3625. * @memberof SystemConfigOAuthDto
  3626. */
  3627. 'autoLaunch': boolean;
  3628. /**
  3629. *
  3630. * @type {boolean}
  3631. * @memberof SystemConfigOAuthDto
  3632. */
  3633. 'autoRegister': boolean;
  3634. /**
  3635. *
  3636. * @type {string}
  3637. * @memberof SystemConfigOAuthDto
  3638. */
  3639. 'buttonText': string;
  3640. /**
  3641. *
  3642. * @type {string}
  3643. * @memberof SystemConfigOAuthDto
  3644. */
  3645. 'clientId': string;
  3646. /**
  3647. *
  3648. * @type {string}
  3649. * @memberof SystemConfigOAuthDto
  3650. */
  3651. 'clientSecret': string;
  3652. /**
  3653. *
  3654. * @type {boolean}
  3655. * @memberof SystemConfigOAuthDto
  3656. */
  3657. 'enabled': boolean;
  3658. /**
  3659. *
  3660. * @type {string}
  3661. * @memberof SystemConfigOAuthDto
  3662. */
  3663. 'issuerUrl': string;
  3664. /**
  3665. *
  3666. * @type {boolean}
  3667. * @memberof SystemConfigOAuthDto
  3668. */
  3669. 'mobileOverrideEnabled': boolean;
  3670. /**
  3671. *
  3672. * @type {string}
  3673. * @memberof SystemConfigOAuthDto
  3674. */
  3675. 'mobileRedirectUri': string;
  3676. /**
  3677. *
  3678. * @type {string}
  3679. * @memberof SystemConfigOAuthDto
  3680. */
  3681. 'scope': string;
  3682. /**
  3683. *
  3684. * @type {string}
  3685. * @memberof SystemConfigOAuthDto
  3686. */
  3687. 'storageLabelClaim': string;
  3688. }
  3689. /**
  3690. *
  3691. * @export
  3692. * @interface SystemConfigPasswordLoginDto
  3693. */
  3694. export interface SystemConfigPasswordLoginDto {
  3695. /**
  3696. *
  3697. * @type {boolean}
  3698. * @memberof SystemConfigPasswordLoginDto
  3699. */
  3700. 'enabled': boolean;
  3701. }
  3702. /**
  3703. *
  3704. * @export
  3705. * @interface SystemConfigReverseGeocodingDto
  3706. */
  3707. export interface SystemConfigReverseGeocodingDto {
  3708. /**
  3709. *
  3710. * @type {CitiesFile}
  3711. * @memberof SystemConfigReverseGeocodingDto
  3712. */
  3713. 'citiesFileOverride': CitiesFile;
  3714. /**
  3715. *
  3716. * @type {boolean}
  3717. * @memberof SystemConfigReverseGeocodingDto
  3718. */
  3719. 'enabled': boolean;
  3720. }
  3721. /**
  3722. *
  3723. * @export
  3724. * @interface SystemConfigStorageTemplateDto
  3725. */
  3726. export interface SystemConfigStorageTemplateDto {
  3727. /**
  3728. *
  3729. * @type {string}
  3730. * @memberof SystemConfigStorageTemplateDto
  3731. */
  3732. 'template': string;
  3733. }
  3734. /**
  3735. *
  3736. * @export
  3737. * @interface SystemConfigTemplateStorageOptionDto
  3738. */
  3739. export interface SystemConfigTemplateStorageOptionDto {
  3740. /**
  3741. *
  3742. * @type {Array<string>}
  3743. * @memberof SystemConfigTemplateStorageOptionDto
  3744. */
  3745. 'dayOptions': Array<string>;
  3746. /**
  3747. *
  3748. * @type {Array<string>}
  3749. * @memberof SystemConfigTemplateStorageOptionDto
  3750. */
  3751. 'hourOptions': Array<string>;
  3752. /**
  3753. *
  3754. * @type {Array<string>}
  3755. * @memberof SystemConfigTemplateStorageOptionDto
  3756. */
  3757. 'minuteOptions': Array<string>;
  3758. /**
  3759. *
  3760. * @type {Array<string>}
  3761. * @memberof SystemConfigTemplateStorageOptionDto
  3762. */
  3763. 'monthOptions': Array<string>;
  3764. /**
  3765. *
  3766. * @type {Array<string>}
  3767. * @memberof SystemConfigTemplateStorageOptionDto
  3768. */
  3769. 'presetOptions': Array<string>;
  3770. /**
  3771. *
  3772. * @type {Array<string>}
  3773. * @memberof SystemConfigTemplateStorageOptionDto
  3774. */
  3775. 'secondOptions': Array<string>;
  3776. /**
  3777. *
  3778. * @type {Array<string>}
  3779. * @memberof SystemConfigTemplateStorageOptionDto
  3780. */
  3781. 'weekOptions': Array<string>;
  3782. /**
  3783. *
  3784. * @type {Array<string>}
  3785. * @memberof SystemConfigTemplateStorageOptionDto
  3786. */
  3787. 'yearOptions': Array<string>;
  3788. }
  3789. /**
  3790. *
  3791. * @export
  3792. * @interface SystemConfigThemeDto
  3793. */
  3794. export interface SystemConfigThemeDto {
  3795. /**
  3796. *
  3797. * @type {string}
  3798. * @memberof SystemConfigThemeDto
  3799. */
  3800. 'customCss': string;
  3801. }
  3802. /**
  3803. *
  3804. * @export
  3805. * @interface SystemConfigThumbnailDto
  3806. */
  3807. export interface SystemConfigThumbnailDto {
  3808. /**
  3809. *
  3810. * @type {Colorspace}
  3811. * @memberof SystemConfigThumbnailDto
  3812. */
  3813. 'colorspace': Colorspace;
  3814. /**
  3815. *
  3816. * @type {number}
  3817. * @memberof SystemConfigThumbnailDto
  3818. */
  3819. 'jpegSize': number;
  3820. /**
  3821. *
  3822. * @type {number}
  3823. * @memberof SystemConfigThumbnailDto
  3824. */
  3825. 'quality': number;
  3826. /**
  3827. *
  3828. * @type {number}
  3829. * @memberof SystemConfigThumbnailDto
  3830. */
  3831. 'webpSize': number;
  3832. }
  3833. /**
  3834. *
  3835. * @export
  3836. * @interface SystemConfigTrashDto
  3837. */
  3838. export interface SystemConfigTrashDto {
  3839. /**
  3840. *
  3841. * @type {number}
  3842. * @memberof SystemConfigTrashDto
  3843. */
  3844. 'days': number;
  3845. /**
  3846. *
  3847. * @type {boolean}
  3848. * @memberof SystemConfigTrashDto
  3849. */
  3850. 'enabled': boolean;
  3851. }
  3852. /**
  3853. *
  3854. * @export
  3855. * @interface TagResponseDto
  3856. */
  3857. export interface TagResponseDto {
  3858. /**
  3859. *
  3860. * @type {string}
  3861. * @memberof TagResponseDto
  3862. */
  3863. 'id': string;
  3864. /**
  3865. *
  3866. * @type {string}
  3867. * @memberof TagResponseDto
  3868. */
  3869. 'name': string;
  3870. /**
  3871. *
  3872. * @type {TagTypeEnum}
  3873. * @memberof TagResponseDto
  3874. */
  3875. 'type': TagTypeEnum;
  3876. /**
  3877. *
  3878. * @type {string}
  3879. * @memberof TagResponseDto
  3880. */
  3881. 'userId': string;
  3882. }
  3883. /**
  3884. *
  3885. * @export
  3886. * @enum {string}
  3887. */
  3888. export const TagTypeEnum = {
  3889. Object: 'OBJECT',
  3890. Face: 'FACE',
  3891. Custom: 'CUSTOM'
  3892. } as const;
  3893. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3894. /**
  3895. *
  3896. * @export
  3897. * @enum {string}
  3898. */
  3899. export const ThumbnailFormat = {
  3900. Jpeg: 'JPEG',
  3901. Webp: 'WEBP'
  3902. } as const;
  3903. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3904. /**
  3905. *
  3906. * @export
  3907. * @interface TimeBucketResponseDto
  3908. */
  3909. export interface TimeBucketResponseDto {
  3910. /**
  3911. *
  3912. * @type {number}
  3913. * @memberof TimeBucketResponseDto
  3914. */
  3915. 'count': number;
  3916. /**
  3917. *
  3918. * @type {string}
  3919. * @memberof TimeBucketResponseDto
  3920. */
  3921. 'timeBucket': string;
  3922. }
  3923. /**
  3924. *
  3925. * @export
  3926. * @enum {string}
  3927. */
  3928. export const TimeBucketSize = {
  3929. Day: 'DAY',
  3930. Month: 'MONTH'
  3931. } as const;
  3932. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3933. /**
  3934. *
  3935. * @export
  3936. * @enum {string}
  3937. */
  3938. export const ToneMapping = {
  3939. Hable: 'hable',
  3940. Mobius: 'mobius',
  3941. Reinhard: 'reinhard',
  3942. Disabled: 'disabled'
  3943. } as const;
  3944. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3945. /**
  3946. *
  3947. * @export
  3948. * @enum {string}
  3949. */
  3950. export const TranscodeHWAccel = {
  3951. Nvenc: 'nvenc',
  3952. Qsv: 'qsv',
  3953. Vaapi: 'vaapi',
  3954. Rkmpp: 'rkmpp',
  3955. Disabled: 'disabled'
  3956. } as const;
  3957. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3958. /**
  3959. *
  3960. * @export
  3961. * @enum {string}
  3962. */
  3963. export const TranscodePolicy = {
  3964. All: 'all',
  3965. Optimal: 'optimal',
  3966. Required: 'required',
  3967. Disabled: 'disabled'
  3968. } as const;
  3969. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3970. /**
  3971. *
  3972. * @export
  3973. * @interface UpdateAlbumDto
  3974. */
  3975. export interface UpdateAlbumDto {
  3976. /**
  3977. *
  3978. * @type {string}
  3979. * @memberof UpdateAlbumDto
  3980. */
  3981. 'albumName'?: string;
  3982. /**
  3983. *
  3984. * @type {string}
  3985. * @memberof UpdateAlbumDto
  3986. */
  3987. 'albumThumbnailAssetId'?: string;
  3988. /**
  3989. *
  3990. * @type {string}
  3991. * @memberof UpdateAlbumDto
  3992. */
  3993. 'description'?: string;
  3994. /**
  3995. *
  3996. * @type {boolean}
  3997. * @memberof UpdateAlbumDto
  3998. */
  3999. 'isActivityEnabled'?: boolean;
  4000. }
  4001. /**
  4002. *
  4003. * @export
  4004. * @interface UpdateAssetDto
  4005. */
  4006. export interface UpdateAssetDto {
  4007. /**
  4008. *
  4009. * @type {string}
  4010. * @memberof UpdateAssetDto
  4011. */
  4012. 'description'?: string;
  4013. /**
  4014. *
  4015. * @type {boolean}
  4016. * @memberof UpdateAssetDto
  4017. */
  4018. 'isArchived'?: boolean;
  4019. /**
  4020. *
  4021. * @type {boolean}
  4022. * @memberof UpdateAssetDto
  4023. */
  4024. 'isFavorite'?: boolean;
  4025. }
  4026. /**
  4027. *
  4028. * @export
  4029. * @interface UpdateLibraryDto
  4030. */
  4031. export interface UpdateLibraryDto {
  4032. /**
  4033. *
  4034. * @type {Array<string>}
  4035. * @memberof UpdateLibraryDto
  4036. */
  4037. 'exclusionPatterns'?: Array<string>;
  4038. /**
  4039. *
  4040. * @type {Array<string>}
  4041. * @memberof UpdateLibraryDto
  4042. */
  4043. 'importPaths'?: Array<string>;
  4044. /**
  4045. *
  4046. * @type {boolean}
  4047. * @memberof UpdateLibraryDto
  4048. */
  4049. 'isVisible'?: boolean;
  4050. /**
  4051. *
  4052. * @type {string}
  4053. * @memberof UpdateLibraryDto
  4054. */
  4055. 'name'?: string;
  4056. }
  4057. /**
  4058. *
  4059. * @export
  4060. * @interface UpdateStackParentDto
  4061. */
  4062. export interface UpdateStackParentDto {
  4063. /**
  4064. *
  4065. * @type {string}
  4066. * @memberof UpdateStackParentDto
  4067. */
  4068. 'newParentId': string;
  4069. /**
  4070. *
  4071. * @type {string}
  4072. * @memberof UpdateStackParentDto
  4073. */
  4074. 'oldParentId': string;
  4075. }
  4076. /**
  4077. *
  4078. * @export
  4079. * @interface UpdateTagDto
  4080. */
  4081. export interface UpdateTagDto {
  4082. /**
  4083. *
  4084. * @type {string}
  4085. * @memberof UpdateTagDto
  4086. */
  4087. 'name'?: string;
  4088. }
  4089. /**
  4090. *
  4091. * @export
  4092. * @interface UpdateUserDto
  4093. */
  4094. export interface UpdateUserDto {
  4095. /**
  4096. *
  4097. * @type {string}
  4098. * @memberof UpdateUserDto
  4099. */
  4100. 'email'?: string;
  4101. /**
  4102. *
  4103. * @type {string}
  4104. * @memberof UpdateUserDto
  4105. */
  4106. 'externalPath'?: string;
  4107. /**
  4108. *
  4109. * @type {string}
  4110. * @memberof UpdateUserDto
  4111. */
  4112. 'firstName'?: string;
  4113. /**
  4114. *
  4115. * @type {string}
  4116. * @memberof UpdateUserDto
  4117. */
  4118. 'id': string;
  4119. /**
  4120. *
  4121. * @type {boolean}
  4122. * @memberof UpdateUserDto
  4123. */
  4124. 'isAdmin'?: boolean;
  4125. /**
  4126. *
  4127. * @type {string}
  4128. * @memberof UpdateUserDto
  4129. */
  4130. 'lastName'?: string;
  4131. /**
  4132. *
  4133. * @type {boolean}
  4134. * @memberof UpdateUserDto
  4135. */
  4136. 'memoriesEnabled'?: boolean;
  4137. /**
  4138. *
  4139. * @type {string}
  4140. * @memberof UpdateUserDto
  4141. */
  4142. 'password'?: string;
  4143. /**
  4144. *
  4145. * @type {boolean}
  4146. * @memberof UpdateUserDto
  4147. */
  4148. 'shouldChangePassword'?: boolean;
  4149. /**
  4150. *
  4151. * @type {string}
  4152. * @memberof UpdateUserDto
  4153. */
  4154. 'storageLabel'?: string;
  4155. }
  4156. /**
  4157. *
  4158. * @export
  4159. * @interface UsageByUserDto
  4160. */
  4161. export interface UsageByUserDto {
  4162. /**
  4163. *
  4164. * @type {number}
  4165. * @memberof UsageByUserDto
  4166. */
  4167. 'photos': number;
  4168. /**
  4169. *
  4170. * @type {number}
  4171. * @memberof UsageByUserDto
  4172. */
  4173. 'usage': number;
  4174. /**
  4175. *
  4176. * @type {string}
  4177. * @memberof UsageByUserDto
  4178. */
  4179. 'userFirstName': string;
  4180. /**
  4181. *
  4182. * @type {string}
  4183. * @memberof UsageByUserDto
  4184. */
  4185. 'userId': string;
  4186. /**
  4187. *
  4188. * @type {string}
  4189. * @memberof UsageByUserDto
  4190. */
  4191. 'userLastName': string;
  4192. /**
  4193. *
  4194. * @type {number}
  4195. * @memberof UsageByUserDto
  4196. */
  4197. 'videos': number;
  4198. }
  4199. /**
  4200. *
  4201. * @export
  4202. * @interface UserDto
  4203. */
  4204. export interface UserDto {
  4205. /**
  4206. *
  4207. * @type {string}
  4208. * @memberof UserDto
  4209. */
  4210. 'email': string;
  4211. /**
  4212. *
  4213. * @type {string}
  4214. * @memberof UserDto
  4215. */
  4216. 'firstName': string;
  4217. /**
  4218. *
  4219. * @type {string}
  4220. * @memberof UserDto
  4221. */
  4222. 'id': string;
  4223. /**
  4224. *
  4225. * @type {string}
  4226. * @memberof UserDto
  4227. */
  4228. 'lastName': string;
  4229. /**
  4230. *
  4231. * @type {string}
  4232. * @memberof UserDto
  4233. */
  4234. 'profileImagePath': string;
  4235. }
  4236. /**
  4237. *
  4238. * @export
  4239. * @interface UserResponseDto
  4240. */
  4241. export interface UserResponseDto {
  4242. /**
  4243. *
  4244. * @type {string}
  4245. * @memberof UserResponseDto
  4246. */
  4247. 'createdAt': string;
  4248. /**
  4249. *
  4250. * @type {string}
  4251. * @memberof UserResponseDto
  4252. */
  4253. 'deletedAt': string | null;
  4254. /**
  4255. *
  4256. * @type {string}
  4257. * @memberof UserResponseDto
  4258. */
  4259. 'email': string;
  4260. /**
  4261. *
  4262. * @type {string}
  4263. * @memberof UserResponseDto
  4264. */
  4265. 'externalPath': string | null;
  4266. /**
  4267. *
  4268. * @type {string}
  4269. * @memberof UserResponseDto
  4270. */
  4271. 'firstName': string;
  4272. /**
  4273. *
  4274. * @type {string}
  4275. * @memberof UserResponseDto
  4276. */
  4277. 'id': string;
  4278. /**
  4279. *
  4280. * @type {boolean}
  4281. * @memberof UserResponseDto
  4282. */
  4283. 'isAdmin': boolean;
  4284. /**
  4285. *
  4286. * @type {string}
  4287. * @memberof UserResponseDto
  4288. */
  4289. 'lastName': string;
  4290. /**
  4291. *
  4292. * @type {boolean}
  4293. * @memberof UserResponseDto
  4294. */
  4295. 'memoriesEnabled'?: boolean;
  4296. /**
  4297. *
  4298. * @type {string}
  4299. * @memberof UserResponseDto
  4300. */
  4301. 'oauthId': string;
  4302. /**
  4303. *
  4304. * @type {string}
  4305. * @memberof UserResponseDto
  4306. */
  4307. 'profileImagePath': string;
  4308. /**
  4309. *
  4310. * @type {boolean}
  4311. * @memberof UserResponseDto
  4312. */
  4313. 'shouldChangePassword': boolean;
  4314. /**
  4315. *
  4316. * @type {string}
  4317. * @memberof UserResponseDto
  4318. */
  4319. 'storageLabel': string | null;
  4320. /**
  4321. *
  4322. * @type {string}
  4323. * @memberof UserResponseDto
  4324. */
  4325. 'updatedAt': string;
  4326. }
  4327. /**
  4328. *
  4329. * @export
  4330. * @interface ValidateAccessTokenResponseDto
  4331. */
  4332. export interface ValidateAccessTokenResponseDto {
  4333. /**
  4334. *
  4335. * @type {boolean}
  4336. * @memberof ValidateAccessTokenResponseDto
  4337. */
  4338. 'authStatus': boolean;
  4339. }
  4340. /**
  4341. *
  4342. * @export
  4343. * @enum {string}
  4344. */
  4345. export const VideoCodec = {
  4346. H264: 'h264',
  4347. Hevc: 'hevc',
  4348. Vp9: 'vp9'
  4349. } as const;
  4350. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4351. /**
  4352. * APIKeyApi - axios parameter creator
  4353. * @export
  4354. */
  4355. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4356. return {
  4357. /**
  4358. *
  4359. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4360. * @param {*} [options] Override http request option.
  4361. * @throws {RequiredError}
  4362. */
  4363. createApiKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4364. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4365. assertParamExists('createApiKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4366. const localVarPath = `/api-key`;
  4367. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4368. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4369. let baseOptions;
  4370. if (configuration) {
  4371. baseOptions = configuration.baseOptions;
  4372. }
  4373. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4374. const localVarHeaderParameter = {} as any;
  4375. const localVarQueryParameter = {} as any;
  4376. // authentication cookie required
  4377. // authentication api_key required
  4378. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4379. // authentication bearer required
  4380. // http bearer authentication required
  4381. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4382. localVarHeaderParameter['Content-Type'] = 'application/json';
  4383. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4384. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4385. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4386. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4387. return {
  4388. url: toPathString(localVarUrlObj),
  4389. options: localVarRequestOptions,
  4390. };
  4391. },
  4392. /**
  4393. *
  4394. * @param {string} id
  4395. * @param {*} [options] Override http request option.
  4396. * @throws {RequiredError}
  4397. */
  4398. deleteApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4399. // verify required parameter 'id' is not null or undefined
  4400. assertParamExists('deleteApiKey', 'id', id)
  4401. const localVarPath = `/api-key/{id}`
  4402. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4403. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4404. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4405. let baseOptions;
  4406. if (configuration) {
  4407. baseOptions = configuration.baseOptions;
  4408. }
  4409. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4410. const localVarHeaderParameter = {} as any;
  4411. const localVarQueryParameter = {} as any;
  4412. // authentication cookie required
  4413. // authentication api_key required
  4414. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4415. // authentication bearer required
  4416. // http bearer authentication required
  4417. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4418. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4419. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4420. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4421. return {
  4422. url: toPathString(localVarUrlObj),
  4423. options: localVarRequestOptions,
  4424. };
  4425. },
  4426. /**
  4427. *
  4428. * @param {string} id
  4429. * @param {*} [options] Override http request option.
  4430. * @throws {RequiredError}
  4431. */
  4432. getApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4433. // verify required parameter 'id' is not null or undefined
  4434. assertParamExists('getApiKey', 'id', id)
  4435. const localVarPath = `/api-key/{id}`
  4436. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4437. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4438. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4439. let baseOptions;
  4440. if (configuration) {
  4441. baseOptions = configuration.baseOptions;
  4442. }
  4443. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4444. const localVarHeaderParameter = {} as any;
  4445. const localVarQueryParameter = {} as any;
  4446. // authentication cookie required
  4447. // authentication api_key required
  4448. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4449. // authentication bearer required
  4450. // http bearer authentication required
  4451. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4452. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4453. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4454. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4455. return {
  4456. url: toPathString(localVarUrlObj),
  4457. options: localVarRequestOptions,
  4458. };
  4459. },
  4460. /**
  4461. *
  4462. * @param {*} [options] Override http request option.
  4463. * @throws {RequiredError}
  4464. */
  4465. getApiKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4466. const localVarPath = `/api-key`;
  4467. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4468. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4469. let baseOptions;
  4470. if (configuration) {
  4471. baseOptions = configuration.baseOptions;
  4472. }
  4473. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4474. const localVarHeaderParameter = {} as any;
  4475. const localVarQueryParameter = {} as any;
  4476. // authentication cookie required
  4477. // authentication api_key required
  4478. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4479. // authentication bearer required
  4480. // http bearer authentication required
  4481. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4482. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4483. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4484. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4485. return {
  4486. url: toPathString(localVarUrlObj),
  4487. options: localVarRequestOptions,
  4488. };
  4489. },
  4490. /**
  4491. *
  4492. * @param {string} id
  4493. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4494. * @param {*} [options] Override http request option.
  4495. * @throws {RequiredError}
  4496. */
  4497. updateApiKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4498. // verify required parameter 'id' is not null or undefined
  4499. assertParamExists('updateApiKey', 'id', id)
  4500. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4501. assertParamExists('updateApiKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4502. const localVarPath = `/api-key/{id}`
  4503. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4504. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4505. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4506. let baseOptions;
  4507. if (configuration) {
  4508. baseOptions = configuration.baseOptions;
  4509. }
  4510. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4511. const localVarHeaderParameter = {} as any;
  4512. const localVarQueryParameter = {} as any;
  4513. // authentication cookie required
  4514. // authentication api_key required
  4515. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4516. // authentication bearer required
  4517. // http bearer authentication required
  4518. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4519. localVarHeaderParameter['Content-Type'] = 'application/json';
  4520. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4521. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4522. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4523. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4524. return {
  4525. url: toPathString(localVarUrlObj),
  4526. options: localVarRequestOptions,
  4527. };
  4528. },
  4529. }
  4530. };
  4531. /**
  4532. * APIKeyApi - functional programming interface
  4533. * @export
  4534. */
  4535. export const APIKeyApiFp = function(configuration?: Configuration) {
  4536. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4537. return {
  4538. /**
  4539. *
  4540. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4541. * @param {*} [options] Override http request option.
  4542. * @throws {RequiredError}
  4543. */
  4544. async createApiKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4545. const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(aPIKeyCreateDto, options);
  4546. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4547. },
  4548. /**
  4549. *
  4550. * @param {string} id
  4551. * @param {*} [options] Override http request option.
  4552. * @throws {RequiredError}
  4553. */
  4554. async deleteApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4555. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(id, options);
  4556. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4557. },
  4558. /**
  4559. *
  4560. * @param {string} id
  4561. * @param {*} [options] Override http request option.
  4562. * @throws {RequiredError}
  4563. */
  4564. async getApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4565. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(id, options);
  4566. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4567. },
  4568. /**
  4569. *
  4570. * @param {*} [options] Override http request option.
  4571. * @throws {RequiredError}
  4572. */
  4573. async getApiKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4574. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKeys(options);
  4575. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4576. },
  4577. /**
  4578. *
  4579. * @param {string} id
  4580. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4581. * @param {*} [options] Override http request option.
  4582. * @throws {RequiredError}
  4583. */
  4584. async updateApiKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4585. const localVarAxiosArgs = await localVarAxiosParamCreator.updateApiKey(id, aPIKeyUpdateDto, options);
  4586. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4587. },
  4588. }
  4589. };
  4590. /**
  4591. * APIKeyApi - factory interface
  4592. * @export
  4593. */
  4594. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4595. const localVarFp = APIKeyApiFp(configuration)
  4596. return {
  4597. /**
  4598. *
  4599. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4600. * @param {*} [options] Override http request option.
  4601. * @throws {RequiredError}
  4602. */
  4603. createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4604. return localVarFp.createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4605. },
  4606. /**
  4607. *
  4608. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4609. * @param {*} [options] Override http request option.
  4610. * @throws {RequiredError}
  4611. */
  4612. deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4613. return localVarFp.deleteApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4614. },
  4615. /**
  4616. *
  4617. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4618. * @param {*} [options] Override http request option.
  4619. * @throws {RequiredError}
  4620. */
  4621. getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4622. return localVarFp.getApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4623. },
  4624. /**
  4625. *
  4626. * @param {*} [options] Override http request option.
  4627. * @throws {RequiredError}
  4628. */
  4629. getApiKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4630. return localVarFp.getApiKeys(options).then((request) => request(axios, basePath));
  4631. },
  4632. /**
  4633. *
  4634. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4635. * @param {*} [options] Override http request option.
  4636. * @throws {RequiredError}
  4637. */
  4638. updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4639. return localVarFp.updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4640. },
  4641. };
  4642. };
  4643. /**
  4644. * Request parameters for createApiKey operation in APIKeyApi.
  4645. * @export
  4646. * @interface APIKeyApiCreateApiKeyRequest
  4647. */
  4648. export interface APIKeyApiCreateApiKeyRequest {
  4649. /**
  4650. *
  4651. * @type {APIKeyCreateDto}
  4652. * @memberof APIKeyApiCreateApiKey
  4653. */
  4654. readonly aPIKeyCreateDto: APIKeyCreateDto
  4655. }
  4656. /**
  4657. * Request parameters for deleteApiKey operation in APIKeyApi.
  4658. * @export
  4659. * @interface APIKeyApiDeleteApiKeyRequest
  4660. */
  4661. export interface APIKeyApiDeleteApiKeyRequest {
  4662. /**
  4663. *
  4664. * @type {string}
  4665. * @memberof APIKeyApiDeleteApiKey
  4666. */
  4667. readonly id: string
  4668. }
  4669. /**
  4670. * Request parameters for getApiKey operation in APIKeyApi.
  4671. * @export
  4672. * @interface APIKeyApiGetApiKeyRequest
  4673. */
  4674. export interface APIKeyApiGetApiKeyRequest {
  4675. /**
  4676. *
  4677. * @type {string}
  4678. * @memberof APIKeyApiGetApiKey
  4679. */
  4680. readonly id: string
  4681. }
  4682. /**
  4683. * Request parameters for updateApiKey operation in APIKeyApi.
  4684. * @export
  4685. * @interface APIKeyApiUpdateApiKeyRequest
  4686. */
  4687. export interface APIKeyApiUpdateApiKeyRequest {
  4688. /**
  4689. *
  4690. * @type {string}
  4691. * @memberof APIKeyApiUpdateApiKey
  4692. */
  4693. readonly id: string
  4694. /**
  4695. *
  4696. * @type {APIKeyUpdateDto}
  4697. * @memberof APIKeyApiUpdateApiKey
  4698. */
  4699. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4700. }
  4701. /**
  4702. * APIKeyApi - object-oriented interface
  4703. * @export
  4704. * @class APIKeyApi
  4705. * @extends {BaseAPI}
  4706. */
  4707. export class APIKeyApi extends BaseAPI {
  4708. /**
  4709. *
  4710. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4711. * @param {*} [options] Override http request option.
  4712. * @throws {RequiredError}
  4713. * @memberof APIKeyApi
  4714. */
  4715. public createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig) {
  4716. return APIKeyApiFp(this.configuration).createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4717. }
  4718. /**
  4719. *
  4720. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4721. * @param {*} [options] Override http request option.
  4722. * @throws {RequiredError}
  4723. * @memberof APIKeyApi
  4724. */
  4725. public deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig) {
  4726. return APIKeyApiFp(this.configuration).deleteApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4727. }
  4728. /**
  4729. *
  4730. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4731. * @param {*} [options] Override http request option.
  4732. * @throws {RequiredError}
  4733. * @memberof APIKeyApi
  4734. */
  4735. public getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig) {
  4736. return APIKeyApiFp(this.configuration).getApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4737. }
  4738. /**
  4739. *
  4740. * @param {*} [options] Override http request option.
  4741. * @throws {RequiredError}
  4742. * @memberof APIKeyApi
  4743. */
  4744. public getApiKeys(options?: AxiosRequestConfig) {
  4745. return APIKeyApiFp(this.configuration).getApiKeys(options).then((request) => request(this.axios, this.basePath));
  4746. }
  4747. /**
  4748. *
  4749. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4750. * @param {*} [options] Override http request option.
  4751. * @throws {RequiredError}
  4752. * @memberof APIKeyApi
  4753. */
  4754. public updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig) {
  4755. return APIKeyApiFp(this.configuration).updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4756. }
  4757. }
  4758. /**
  4759. * ActivityApi - axios parameter creator
  4760. * @export
  4761. */
  4762. export const ActivityApiAxiosParamCreator = function (configuration?: Configuration) {
  4763. return {
  4764. /**
  4765. *
  4766. * @param {ActivityCreateDto} activityCreateDto
  4767. * @param {*} [options] Override http request option.
  4768. * @throws {RequiredError}
  4769. */
  4770. createActivity: async (activityCreateDto: ActivityCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4771. // verify required parameter 'activityCreateDto' is not null or undefined
  4772. assertParamExists('createActivity', 'activityCreateDto', activityCreateDto)
  4773. const localVarPath = `/activity`;
  4774. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4775. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4776. let baseOptions;
  4777. if (configuration) {
  4778. baseOptions = configuration.baseOptions;
  4779. }
  4780. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4781. const localVarHeaderParameter = {} as any;
  4782. const localVarQueryParameter = {} as any;
  4783. // authentication cookie required
  4784. // authentication api_key required
  4785. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4786. // authentication bearer required
  4787. // http bearer authentication required
  4788. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4789. localVarHeaderParameter['Content-Type'] = 'application/json';
  4790. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4791. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4792. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4793. localVarRequestOptions.data = serializeDataIfNeeded(activityCreateDto, localVarRequestOptions, configuration)
  4794. return {
  4795. url: toPathString(localVarUrlObj),
  4796. options: localVarRequestOptions,
  4797. };
  4798. },
  4799. /**
  4800. *
  4801. * @param {string} id
  4802. * @param {*} [options] Override http request option.
  4803. * @throws {RequiredError}
  4804. */
  4805. deleteActivity: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4806. // verify required parameter 'id' is not null or undefined
  4807. assertParamExists('deleteActivity', 'id', id)
  4808. const localVarPath = `/activity/{id}`
  4809. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4810. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4811. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4812. let baseOptions;
  4813. if (configuration) {
  4814. baseOptions = configuration.baseOptions;
  4815. }
  4816. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4817. const localVarHeaderParameter = {} as any;
  4818. const localVarQueryParameter = {} as any;
  4819. // authentication cookie required
  4820. // authentication api_key required
  4821. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4822. // authentication bearer required
  4823. // http bearer authentication required
  4824. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4825. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4826. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4827. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4828. return {
  4829. url: toPathString(localVarUrlObj),
  4830. options: localVarRequestOptions,
  4831. };
  4832. },
  4833. /**
  4834. *
  4835. * @param {string} albumId
  4836. * @param {string} [assetId]
  4837. * @param {ReactionType} [type]
  4838. * @param {string} [userId]
  4839. * @param {*} [options] Override http request option.
  4840. * @throws {RequiredError}
  4841. */
  4842. getActivities: async (albumId: string, assetId?: string, type?: ReactionType, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4843. // verify required parameter 'albumId' is not null or undefined
  4844. assertParamExists('getActivities', 'albumId', albumId)
  4845. const localVarPath = `/activity`;
  4846. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4847. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4848. let baseOptions;
  4849. if (configuration) {
  4850. baseOptions = configuration.baseOptions;
  4851. }
  4852. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4853. const localVarHeaderParameter = {} as any;
  4854. const localVarQueryParameter = {} as any;
  4855. // authentication cookie required
  4856. // authentication api_key required
  4857. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4858. // authentication bearer required
  4859. // http bearer authentication required
  4860. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4861. if (albumId !== undefined) {
  4862. localVarQueryParameter['albumId'] = albumId;
  4863. }
  4864. if (assetId !== undefined) {
  4865. localVarQueryParameter['assetId'] = assetId;
  4866. }
  4867. if (type !== undefined) {
  4868. localVarQueryParameter['type'] = type;
  4869. }
  4870. if (userId !== undefined) {
  4871. localVarQueryParameter['userId'] = userId;
  4872. }
  4873. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4874. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4875. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4876. return {
  4877. url: toPathString(localVarUrlObj),
  4878. options: localVarRequestOptions,
  4879. };
  4880. },
  4881. /**
  4882. *
  4883. * @param {string} albumId
  4884. * @param {string} [assetId]
  4885. * @param {*} [options] Override http request option.
  4886. * @throws {RequiredError}
  4887. */
  4888. getActivityStatistics: async (albumId: string, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4889. // verify required parameter 'albumId' is not null or undefined
  4890. assertParamExists('getActivityStatistics', 'albumId', albumId)
  4891. const localVarPath = `/activity/statistics`;
  4892. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4893. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4894. let baseOptions;
  4895. if (configuration) {
  4896. baseOptions = configuration.baseOptions;
  4897. }
  4898. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4899. const localVarHeaderParameter = {} as any;
  4900. const localVarQueryParameter = {} as any;
  4901. // authentication cookie required
  4902. // authentication api_key required
  4903. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4904. // authentication bearer required
  4905. // http bearer authentication required
  4906. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4907. if (albumId !== undefined) {
  4908. localVarQueryParameter['albumId'] = albumId;
  4909. }
  4910. if (assetId !== undefined) {
  4911. localVarQueryParameter['assetId'] = assetId;
  4912. }
  4913. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4914. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4915. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4916. return {
  4917. url: toPathString(localVarUrlObj),
  4918. options: localVarRequestOptions,
  4919. };
  4920. },
  4921. }
  4922. };
  4923. /**
  4924. * ActivityApi - functional programming interface
  4925. * @export
  4926. */
  4927. export const ActivityApiFp = function(configuration?: Configuration) {
  4928. const localVarAxiosParamCreator = ActivityApiAxiosParamCreator(configuration)
  4929. return {
  4930. /**
  4931. *
  4932. * @param {ActivityCreateDto} activityCreateDto
  4933. * @param {*} [options] Override http request option.
  4934. * @throws {RequiredError}
  4935. */
  4936. async createActivity(activityCreateDto: ActivityCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityResponseDto>> {
  4937. const localVarAxiosArgs = await localVarAxiosParamCreator.createActivity(activityCreateDto, options);
  4938. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4939. },
  4940. /**
  4941. *
  4942. * @param {string} id
  4943. * @param {*} [options] Override http request option.
  4944. * @throws {RequiredError}
  4945. */
  4946. async deleteActivity(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4947. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivity(id, options);
  4948. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4949. },
  4950. /**
  4951. *
  4952. * @param {string} albumId
  4953. * @param {string} [assetId]
  4954. * @param {ReactionType} [type]
  4955. * @param {string} [userId]
  4956. * @param {*} [options] Override http request option.
  4957. * @throws {RequiredError}
  4958. */
  4959. async getActivities(albumId: string, assetId?: string, type?: ReactionType, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
  4960. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, userId, options);
  4961. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4962. },
  4963. /**
  4964. *
  4965. * @param {string} albumId
  4966. * @param {string} [assetId]
  4967. * @param {*} [options] Override http request option.
  4968. * @throws {RequiredError}
  4969. */
  4970. async getActivityStatistics(albumId: string, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityStatisticsResponseDto>> {
  4971. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivityStatistics(albumId, assetId, options);
  4972. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4973. },
  4974. }
  4975. };
  4976. /**
  4977. * ActivityApi - factory interface
  4978. * @export
  4979. */
  4980. export const ActivityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4981. const localVarFp = ActivityApiFp(configuration)
  4982. return {
  4983. /**
  4984. *
  4985. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  4986. * @param {*} [options] Override http request option.
  4987. * @throws {RequiredError}
  4988. */
  4989. createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityResponseDto> {
  4990. return localVarFp.createActivity(requestParameters.activityCreateDto, options).then((request) => request(axios, basePath));
  4991. },
  4992. /**
  4993. *
  4994. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  4995. * @param {*} [options] Override http request option.
  4996. * @throws {RequiredError}
  4997. */
  4998. deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4999. return localVarFp.deleteActivity(requestParameters.id, options).then((request) => request(axios, basePath));
  5000. },
  5001. /**
  5002. *
  5003. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5004. * @param {*} [options] Override http request option.
  5005. * @throws {RequiredError}
  5006. */
  5007. getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ActivityResponseDto>> {
  5008. return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.userId, options).then((request) => request(axios, basePath));
  5009. },
  5010. /**
  5011. *
  5012. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5013. * @param {*} [options] Override http request option.
  5014. * @throws {RequiredError}
  5015. */
  5016. getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityStatisticsResponseDto> {
  5017. return localVarFp.getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5018. },
  5019. };
  5020. };
  5021. /**
  5022. * Request parameters for createActivity operation in ActivityApi.
  5023. * @export
  5024. * @interface ActivityApiCreateActivityRequest
  5025. */
  5026. export interface ActivityApiCreateActivityRequest {
  5027. /**
  5028. *
  5029. * @type {ActivityCreateDto}
  5030. * @memberof ActivityApiCreateActivity
  5031. */
  5032. readonly activityCreateDto: ActivityCreateDto
  5033. }
  5034. /**
  5035. * Request parameters for deleteActivity operation in ActivityApi.
  5036. * @export
  5037. * @interface ActivityApiDeleteActivityRequest
  5038. */
  5039. export interface ActivityApiDeleteActivityRequest {
  5040. /**
  5041. *
  5042. * @type {string}
  5043. * @memberof ActivityApiDeleteActivity
  5044. */
  5045. readonly id: string
  5046. }
  5047. /**
  5048. * Request parameters for getActivities operation in ActivityApi.
  5049. * @export
  5050. * @interface ActivityApiGetActivitiesRequest
  5051. */
  5052. export interface ActivityApiGetActivitiesRequest {
  5053. /**
  5054. *
  5055. * @type {string}
  5056. * @memberof ActivityApiGetActivities
  5057. */
  5058. readonly albumId: string
  5059. /**
  5060. *
  5061. * @type {string}
  5062. * @memberof ActivityApiGetActivities
  5063. */
  5064. readonly assetId?: string
  5065. /**
  5066. *
  5067. * @type {ReactionType}
  5068. * @memberof ActivityApiGetActivities
  5069. */
  5070. readonly type?: ReactionType
  5071. /**
  5072. *
  5073. * @type {string}
  5074. * @memberof ActivityApiGetActivities
  5075. */
  5076. readonly userId?: string
  5077. }
  5078. /**
  5079. * Request parameters for getActivityStatistics operation in ActivityApi.
  5080. * @export
  5081. * @interface ActivityApiGetActivityStatisticsRequest
  5082. */
  5083. export interface ActivityApiGetActivityStatisticsRequest {
  5084. /**
  5085. *
  5086. * @type {string}
  5087. * @memberof ActivityApiGetActivityStatistics
  5088. */
  5089. readonly albumId: string
  5090. /**
  5091. *
  5092. * @type {string}
  5093. * @memberof ActivityApiGetActivityStatistics
  5094. */
  5095. readonly assetId?: string
  5096. }
  5097. /**
  5098. * ActivityApi - object-oriented interface
  5099. * @export
  5100. * @class ActivityApi
  5101. * @extends {BaseAPI}
  5102. */
  5103. export class ActivityApi extends BaseAPI {
  5104. /**
  5105. *
  5106. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5107. * @param {*} [options] Override http request option.
  5108. * @throws {RequiredError}
  5109. * @memberof ActivityApi
  5110. */
  5111. public createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig) {
  5112. return ActivityApiFp(this.configuration).createActivity(requestParameters.activityCreateDto, options).then((request) => request(this.axios, this.basePath));
  5113. }
  5114. /**
  5115. *
  5116. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5117. * @param {*} [options] Override http request option.
  5118. * @throws {RequiredError}
  5119. * @memberof ActivityApi
  5120. */
  5121. public deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig) {
  5122. return ActivityApiFp(this.configuration).deleteActivity(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5123. }
  5124. /**
  5125. *
  5126. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5127. * @param {*} [options] Override http request option.
  5128. * @throws {RequiredError}
  5129. * @memberof ActivityApi
  5130. */
  5131. public getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig) {
  5132. return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5133. }
  5134. /**
  5135. *
  5136. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5137. * @param {*} [options] Override http request option.
  5138. * @throws {RequiredError}
  5139. * @memberof ActivityApi
  5140. */
  5141. public getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig) {
  5142. return ActivityApiFp(this.configuration).getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5143. }
  5144. }
  5145. /**
  5146. * AlbumApi - axios parameter creator
  5147. * @export
  5148. */
  5149. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  5150. return {
  5151. /**
  5152. *
  5153. * @param {string} id
  5154. * @param {BulkIdsDto} bulkIdsDto
  5155. * @param {string} [key]
  5156. * @param {*} [options] Override http request option.
  5157. * @throws {RequiredError}
  5158. */
  5159. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5160. // verify required parameter 'id' is not null or undefined
  5161. assertParamExists('addAssetsToAlbum', 'id', id)
  5162. // verify required parameter 'bulkIdsDto' is not null or undefined
  5163. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  5164. const localVarPath = `/album/{id}/assets`
  5165. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5166. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5167. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5168. let baseOptions;
  5169. if (configuration) {
  5170. baseOptions = configuration.baseOptions;
  5171. }
  5172. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5173. const localVarHeaderParameter = {} as any;
  5174. const localVarQueryParameter = {} as any;
  5175. // authentication cookie required
  5176. // authentication api_key required
  5177. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5178. // authentication bearer required
  5179. // http bearer authentication required
  5180. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5181. if (key !== undefined) {
  5182. localVarQueryParameter['key'] = key;
  5183. }
  5184. localVarHeaderParameter['Content-Type'] = 'application/json';
  5185. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5186. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5187. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5188. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5189. return {
  5190. url: toPathString(localVarUrlObj),
  5191. options: localVarRequestOptions,
  5192. };
  5193. },
  5194. /**
  5195. *
  5196. * @param {string} id
  5197. * @param {AddUsersDto} addUsersDto
  5198. * @param {*} [options] Override http request option.
  5199. * @throws {RequiredError}
  5200. */
  5201. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5202. // verify required parameter 'id' is not null or undefined
  5203. assertParamExists('addUsersToAlbum', 'id', id)
  5204. // verify required parameter 'addUsersDto' is not null or undefined
  5205. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  5206. const localVarPath = `/album/{id}/users`
  5207. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5208. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5209. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5210. let baseOptions;
  5211. if (configuration) {
  5212. baseOptions = configuration.baseOptions;
  5213. }
  5214. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5215. const localVarHeaderParameter = {} as any;
  5216. const localVarQueryParameter = {} as any;
  5217. // authentication cookie required
  5218. // authentication api_key required
  5219. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5220. // authentication bearer required
  5221. // http bearer authentication required
  5222. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5223. localVarHeaderParameter['Content-Type'] = 'application/json';
  5224. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5225. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5226. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5227. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  5228. return {
  5229. url: toPathString(localVarUrlObj),
  5230. options: localVarRequestOptions,
  5231. };
  5232. },
  5233. /**
  5234. *
  5235. * @param {CreateAlbumDto} createAlbumDto
  5236. * @param {*} [options] Override http request option.
  5237. * @throws {RequiredError}
  5238. */
  5239. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5240. // verify required parameter 'createAlbumDto' is not null or undefined
  5241. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  5242. const localVarPath = `/album`;
  5243. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5244. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5245. let baseOptions;
  5246. if (configuration) {
  5247. baseOptions = configuration.baseOptions;
  5248. }
  5249. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5250. const localVarHeaderParameter = {} as any;
  5251. const localVarQueryParameter = {} as any;
  5252. // authentication cookie required
  5253. // authentication api_key required
  5254. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5255. // authentication bearer required
  5256. // http bearer authentication required
  5257. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5258. localVarHeaderParameter['Content-Type'] = 'application/json';
  5259. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5260. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5261. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5262. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  5263. return {
  5264. url: toPathString(localVarUrlObj),
  5265. options: localVarRequestOptions,
  5266. };
  5267. },
  5268. /**
  5269. *
  5270. * @param {string} id
  5271. * @param {*} [options] Override http request option.
  5272. * @throws {RequiredError}
  5273. */
  5274. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5275. // verify required parameter 'id' is not null or undefined
  5276. assertParamExists('deleteAlbum', 'id', id)
  5277. const localVarPath = `/album/{id}`
  5278. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5279. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5280. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5281. let baseOptions;
  5282. if (configuration) {
  5283. baseOptions = configuration.baseOptions;
  5284. }
  5285. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5286. const localVarHeaderParameter = {} as any;
  5287. const localVarQueryParameter = {} as any;
  5288. // authentication cookie required
  5289. // authentication api_key required
  5290. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5291. // authentication bearer required
  5292. // http bearer authentication required
  5293. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5294. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5295. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5296. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5297. return {
  5298. url: toPathString(localVarUrlObj),
  5299. options: localVarRequestOptions,
  5300. };
  5301. },
  5302. /**
  5303. *
  5304. * @param {*} [options] Override http request option.
  5305. * @throws {RequiredError}
  5306. */
  5307. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5308. const localVarPath = `/album/count`;
  5309. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5310. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5311. let baseOptions;
  5312. if (configuration) {
  5313. baseOptions = configuration.baseOptions;
  5314. }
  5315. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5316. const localVarHeaderParameter = {} as any;
  5317. const localVarQueryParameter = {} as any;
  5318. // authentication cookie required
  5319. // authentication api_key required
  5320. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5321. // authentication bearer required
  5322. // http bearer authentication required
  5323. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5324. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5325. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5326. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5327. return {
  5328. url: toPathString(localVarUrlObj),
  5329. options: localVarRequestOptions,
  5330. };
  5331. },
  5332. /**
  5333. *
  5334. * @param {string} id
  5335. * @param {boolean} [withoutAssets]
  5336. * @param {string} [key]
  5337. * @param {*} [options] Override http request option.
  5338. * @throws {RequiredError}
  5339. */
  5340. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5341. // verify required parameter 'id' is not null or undefined
  5342. assertParamExists('getAlbumInfo', 'id', id)
  5343. const localVarPath = `/album/{id}`
  5344. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5345. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5346. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5347. let baseOptions;
  5348. if (configuration) {
  5349. baseOptions = configuration.baseOptions;
  5350. }
  5351. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5352. const localVarHeaderParameter = {} as any;
  5353. const localVarQueryParameter = {} as any;
  5354. // authentication cookie required
  5355. // authentication api_key required
  5356. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5357. // authentication bearer required
  5358. // http bearer authentication required
  5359. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5360. if (withoutAssets !== undefined) {
  5361. localVarQueryParameter['withoutAssets'] = withoutAssets;
  5362. }
  5363. if (key !== undefined) {
  5364. localVarQueryParameter['key'] = key;
  5365. }
  5366. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5367. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5368. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5369. return {
  5370. url: toPathString(localVarUrlObj),
  5371. options: localVarRequestOptions,
  5372. };
  5373. },
  5374. /**
  5375. *
  5376. * @param {boolean} [shared]
  5377. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5378. * @param {*} [options] Override http request option.
  5379. * @throws {RequiredError}
  5380. */
  5381. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5382. const localVarPath = `/album`;
  5383. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5384. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5385. let baseOptions;
  5386. if (configuration) {
  5387. baseOptions = configuration.baseOptions;
  5388. }
  5389. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5390. const localVarHeaderParameter = {} as any;
  5391. const localVarQueryParameter = {} as any;
  5392. // authentication cookie required
  5393. // authentication api_key required
  5394. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5395. // authentication bearer required
  5396. // http bearer authentication required
  5397. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5398. if (shared !== undefined) {
  5399. localVarQueryParameter['shared'] = shared;
  5400. }
  5401. if (assetId !== undefined) {
  5402. localVarQueryParameter['assetId'] = assetId;
  5403. }
  5404. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5405. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5406. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5407. return {
  5408. url: toPathString(localVarUrlObj),
  5409. options: localVarRequestOptions,
  5410. };
  5411. },
  5412. /**
  5413. *
  5414. * @param {string} id
  5415. * @param {BulkIdsDto} bulkIdsDto
  5416. * @param {*} [options] Override http request option.
  5417. * @throws {RequiredError}
  5418. */
  5419. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5420. // verify required parameter 'id' is not null or undefined
  5421. assertParamExists('removeAssetFromAlbum', 'id', id)
  5422. // verify required parameter 'bulkIdsDto' is not null or undefined
  5423. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  5424. const localVarPath = `/album/{id}/assets`
  5425. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5426. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5427. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5428. let baseOptions;
  5429. if (configuration) {
  5430. baseOptions = configuration.baseOptions;
  5431. }
  5432. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5433. const localVarHeaderParameter = {} as any;
  5434. const localVarQueryParameter = {} as any;
  5435. // authentication cookie required
  5436. // authentication api_key required
  5437. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5438. // authentication bearer required
  5439. // http bearer authentication required
  5440. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5441. localVarHeaderParameter['Content-Type'] = 'application/json';
  5442. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5443. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5444. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5445. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5446. return {
  5447. url: toPathString(localVarUrlObj),
  5448. options: localVarRequestOptions,
  5449. };
  5450. },
  5451. /**
  5452. *
  5453. * @param {string} id
  5454. * @param {string} userId
  5455. * @param {*} [options] Override http request option.
  5456. * @throws {RequiredError}
  5457. */
  5458. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5459. // verify required parameter 'id' is not null or undefined
  5460. assertParamExists('removeUserFromAlbum', 'id', id)
  5461. // verify required parameter 'userId' is not null or undefined
  5462. assertParamExists('removeUserFromAlbum', 'userId', userId)
  5463. const localVarPath = `/album/{id}/user/{userId}`
  5464. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  5465. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  5466. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5467. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5468. let baseOptions;
  5469. if (configuration) {
  5470. baseOptions = configuration.baseOptions;
  5471. }
  5472. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5473. const localVarHeaderParameter = {} as any;
  5474. const localVarQueryParameter = {} as any;
  5475. // authentication cookie required
  5476. // authentication api_key required
  5477. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5478. // authentication bearer required
  5479. // http bearer authentication required
  5480. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5481. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5482. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5483. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5484. return {
  5485. url: toPathString(localVarUrlObj),
  5486. options: localVarRequestOptions,
  5487. };
  5488. },
  5489. /**
  5490. *
  5491. * @param {string} id
  5492. * @param {UpdateAlbumDto} updateAlbumDto
  5493. * @param {*} [options] Override http request option.
  5494. * @throws {RequiredError}
  5495. */
  5496. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5497. // verify required parameter 'id' is not null or undefined
  5498. assertParamExists('updateAlbumInfo', 'id', id)
  5499. // verify required parameter 'updateAlbumDto' is not null or undefined
  5500. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  5501. const localVarPath = `/album/{id}`
  5502. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5503. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5504. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5505. let baseOptions;
  5506. if (configuration) {
  5507. baseOptions = configuration.baseOptions;
  5508. }
  5509. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  5510. const localVarHeaderParameter = {} as any;
  5511. const localVarQueryParameter = {} as any;
  5512. // authentication cookie required
  5513. // authentication api_key required
  5514. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5515. // authentication bearer required
  5516. // http bearer authentication required
  5517. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5518. localVarHeaderParameter['Content-Type'] = 'application/json';
  5519. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5520. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5521. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5522. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  5523. return {
  5524. url: toPathString(localVarUrlObj),
  5525. options: localVarRequestOptions,
  5526. };
  5527. },
  5528. }
  5529. };
  5530. /**
  5531. * AlbumApi - functional programming interface
  5532. * @export
  5533. */
  5534. export const AlbumApiFp = function(configuration?: Configuration) {
  5535. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  5536. return {
  5537. /**
  5538. *
  5539. * @param {string} id
  5540. * @param {BulkIdsDto} bulkIdsDto
  5541. * @param {string} [key]
  5542. * @param {*} [options] Override http request option.
  5543. * @throws {RequiredError}
  5544. */
  5545. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5546. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  5547. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5548. },
  5549. /**
  5550. *
  5551. * @param {string} id
  5552. * @param {AddUsersDto} addUsersDto
  5553. * @param {*} [options] Override http request option.
  5554. * @throws {RequiredError}
  5555. */
  5556. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5557. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5558. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5559. },
  5560. /**
  5561. *
  5562. * @param {CreateAlbumDto} createAlbumDto
  5563. * @param {*} [options] Override http request option.
  5564. * @throws {RequiredError}
  5565. */
  5566. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5567. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5568. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5569. },
  5570. /**
  5571. *
  5572. * @param {string} id
  5573. * @param {*} [options] Override http request option.
  5574. * @throws {RequiredError}
  5575. */
  5576. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5577. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5578. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5579. },
  5580. /**
  5581. *
  5582. * @param {*} [options] Override http request option.
  5583. * @throws {RequiredError}
  5584. */
  5585. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5586. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5587. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5588. },
  5589. /**
  5590. *
  5591. * @param {string} id
  5592. * @param {boolean} [withoutAssets]
  5593. * @param {string} [key]
  5594. * @param {*} [options] Override http request option.
  5595. * @throws {RequiredError}
  5596. */
  5597. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5598. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5599. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5600. },
  5601. /**
  5602. *
  5603. * @param {boolean} [shared]
  5604. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5605. * @param {*} [options] Override http request option.
  5606. * @throws {RequiredError}
  5607. */
  5608. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5609. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5610. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5611. },
  5612. /**
  5613. *
  5614. * @param {string} id
  5615. * @param {BulkIdsDto} bulkIdsDto
  5616. * @param {*} [options] Override http request option.
  5617. * @throws {RequiredError}
  5618. */
  5619. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5620. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5621. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5622. },
  5623. /**
  5624. *
  5625. * @param {string} id
  5626. * @param {string} userId
  5627. * @param {*} [options] Override http request option.
  5628. * @throws {RequiredError}
  5629. */
  5630. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5631. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5632. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5633. },
  5634. /**
  5635. *
  5636. * @param {string} id
  5637. * @param {UpdateAlbumDto} updateAlbumDto
  5638. * @param {*} [options] Override http request option.
  5639. * @throws {RequiredError}
  5640. */
  5641. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5642. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5643. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5644. },
  5645. }
  5646. };
  5647. /**
  5648. * AlbumApi - factory interface
  5649. * @export
  5650. */
  5651. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5652. const localVarFp = AlbumApiFp(configuration)
  5653. return {
  5654. /**
  5655. *
  5656. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5657. * @param {*} [options] Override http request option.
  5658. * @throws {RequiredError}
  5659. */
  5660. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5661. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5662. },
  5663. /**
  5664. *
  5665. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5666. * @param {*} [options] Override http request option.
  5667. * @throws {RequiredError}
  5668. */
  5669. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5670. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5671. },
  5672. /**
  5673. *
  5674. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5675. * @param {*} [options] Override http request option.
  5676. * @throws {RequiredError}
  5677. */
  5678. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5679. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5680. },
  5681. /**
  5682. *
  5683. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5684. * @param {*} [options] Override http request option.
  5685. * @throws {RequiredError}
  5686. */
  5687. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5688. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5689. },
  5690. /**
  5691. *
  5692. * @param {*} [options] Override http request option.
  5693. * @throws {RequiredError}
  5694. */
  5695. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5696. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5697. },
  5698. /**
  5699. *
  5700. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5701. * @param {*} [options] Override http request option.
  5702. * @throws {RequiredError}
  5703. */
  5704. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5705. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5706. },
  5707. /**
  5708. *
  5709. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5710. * @param {*} [options] Override http request option.
  5711. * @throws {RequiredError}
  5712. */
  5713. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5714. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5715. },
  5716. /**
  5717. *
  5718. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5719. * @param {*} [options] Override http request option.
  5720. * @throws {RequiredError}
  5721. */
  5722. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5723. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5724. },
  5725. /**
  5726. *
  5727. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5728. * @param {*} [options] Override http request option.
  5729. * @throws {RequiredError}
  5730. */
  5731. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5732. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5733. },
  5734. /**
  5735. *
  5736. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5737. * @param {*} [options] Override http request option.
  5738. * @throws {RequiredError}
  5739. */
  5740. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5741. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5742. },
  5743. };
  5744. };
  5745. /**
  5746. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5747. * @export
  5748. * @interface AlbumApiAddAssetsToAlbumRequest
  5749. */
  5750. export interface AlbumApiAddAssetsToAlbumRequest {
  5751. /**
  5752. *
  5753. * @type {string}
  5754. * @memberof AlbumApiAddAssetsToAlbum
  5755. */
  5756. readonly id: string
  5757. /**
  5758. *
  5759. * @type {BulkIdsDto}
  5760. * @memberof AlbumApiAddAssetsToAlbum
  5761. */
  5762. readonly bulkIdsDto: BulkIdsDto
  5763. /**
  5764. *
  5765. * @type {string}
  5766. * @memberof AlbumApiAddAssetsToAlbum
  5767. */
  5768. readonly key?: string
  5769. }
  5770. /**
  5771. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5772. * @export
  5773. * @interface AlbumApiAddUsersToAlbumRequest
  5774. */
  5775. export interface AlbumApiAddUsersToAlbumRequest {
  5776. /**
  5777. *
  5778. * @type {string}
  5779. * @memberof AlbumApiAddUsersToAlbum
  5780. */
  5781. readonly id: string
  5782. /**
  5783. *
  5784. * @type {AddUsersDto}
  5785. * @memberof AlbumApiAddUsersToAlbum
  5786. */
  5787. readonly addUsersDto: AddUsersDto
  5788. }
  5789. /**
  5790. * Request parameters for createAlbum operation in AlbumApi.
  5791. * @export
  5792. * @interface AlbumApiCreateAlbumRequest
  5793. */
  5794. export interface AlbumApiCreateAlbumRequest {
  5795. /**
  5796. *
  5797. * @type {CreateAlbumDto}
  5798. * @memberof AlbumApiCreateAlbum
  5799. */
  5800. readonly createAlbumDto: CreateAlbumDto
  5801. }
  5802. /**
  5803. * Request parameters for deleteAlbum operation in AlbumApi.
  5804. * @export
  5805. * @interface AlbumApiDeleteAlbumRequest
  5806. */
  5807. export interface AlbumApiDeleteAlbumRequest {
  5808. /**
  5809. *
  5810. * @type {string}
  5811. * @memberof AlbumApiDeleteAlbum
  5812. */
  5813. readonly id: string
  5814. }
  5815. /**
  5816. * Request parameters for getAlbumInfo operation in AlbumApi.
  5817. * @export
  5818. * @interface AlbumApiGetAlbumInfoRequest
  5819. */
  5820. export interface AlbumApiGetAlbumInfoRequest {
  5821. /**
  5822. *
  5823. * @type {string}
  5824. * @memberof AlbumApiGetAlbumInfo
  5825. */
  5826. readonly id: string
  5827. /**
  5828. *
  5829. * @type {boolean}
  5830. * @memberof AlbumApiGetAlbumInfo
  5831. */
  5832. readonly withoutAssets?: boolean
  5833. /**
  5834. *
  5835. * @type {string}
  5836. * @memberof AlbumApiGetAlbumInfo
  5837. */
  5838. readonly key?: string
  5839. }
  5840. /**
  5841. * Request parameters for getAllAlbums operation in AlbumApi.
  5842. * @export
  5843. * @interface AlbumApiGetAllAlbumsRequest
  5844. */
  5845. export interface AlbumApiGetAllAlbumsRequest {
  5846. /**
  5847. *
  5848. * @type {boolean}
  5849. * @memberof AlbumApiGetAllAlbums
  5850. */
  5851. readonly shared?: boolean
  5852. /**
  5853. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5854. * @type {string}
  5855. * @memberof AlbumApiGetAllAlbums
  5856. */
  5857. readonly assetId?: string
  5858. }
  5859. /**
  5860. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5861. * @export
  5862. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5863. */
  5864. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5865. /**
  5866. *
  5867. * @type {string}
  5868. * @memberof AlbumApiRemoveAssetFromAlbum
  5869. */
  5870. readonly id: string
  5871. /**
  5872. *
  5873. * @type {BulkIdsDto}
  5874. * @memberof AlbumApiRemoveAssetFromAlbum
  5875. */
  5876. readonly bulkIdsDto: BulkIdsDto
  5877. }
  5878. /**
  5879. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5880. * @export
  5881. * @interface AlbumApiRemoveUserFromAlbumRequest
  5882. */
  5883. export interface AlbumApiRemoveUserFromAlbumRequest {
  5884. /**
  5885. *
  5886. * @type {string}
  5887. * @memberof AlbumApiRemoveUserFromAlbum
  5888. */
  5889. readonly id: string
  5890. /**
  5891. *
  5892. * @type {string}
  5893. * @memberof AlbumApiRemoveUserFromAlbum
  5894. */
  5895. readonly userId: string
  5896. }
  5897. /**
  5898. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5899. * @export
  5900. * @interface AlbumApiUpdateAlbumInfoRequest
  5901. */
  5902. export interface AlbumApiUpdateAlbumInfoRequest {
  5903. /**
  5904. *
  5905. * @type {string}
  5906. * @memberof AlbumApiUpdateAlbumInfo
  5907. */
  5908. readonly id: string
  5909. /**
  5910. *
  5911. * @type {UpdateAlbumDto}
  5912. * @memberof AlbumApiUpdateAlbumInfo
  5913. */
  5914. readonly updateAlbumDto: UpdateAlbumDto
  5915. }
  5916. /**
  5917. * AlbumApi - object-oriented interface
  5918. * @export
  5919. * @class AlbumApi
  5920. * @extends {BaseAPI}
  5921. */
  5922. export class AlbumApi extends BaseAPI {
  5923. /**
  5924. *
  5925. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5926. * @param {*} [options] Override http request option.
  5927. * @throws {RequiredError}
  5928. * @memberof AlbumApi
  5929. */
  5930. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5931. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5932. }
  5933. /**
  5934. *
  5935. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5936. * @param {*} [options] Override http request option.
  5937. * @throws {RequiredError}
  5938. * @memberof AlbumApi
  5939. */
  5940. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5941. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5942. }
  5943. /**
  5944. *
  5945. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5946. * @param {*} [options] Override http request option.
  5947. * @throws {RequiredError}
  5948. * @memberof AlbumApi
  5949. */
  5950. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5951. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5952. }
  5953. /**
  5954. *
  5955. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5956. * @param {*} [options] Override http request option.
  5957. * @throws {RequiredError}
  5958. * @memberof AlbumApi
  5959. */
  5960. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  5961. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5962. }
  5963. /**
  5964. *
  5965. * @param {*} [options] Override http request option.
  5966. * @throws {RequiredError}
  5967. * @memberof AlbumApi
  5968. */
  5969. public getAlbumCount(options?: AxiosRequestConfig) {
  5970. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  5971. }
  5972. /**
  5973. *
  5974. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5975. * @param {*} [options] Override http request option.
  5976. * @throws {RequiredError}
  5977. * @memberof AlbumApi
  5978. */
  5979. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  5980. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5981. }
  5982. /**
  5983. *
  5984. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5985. * @param {*} [options] Override http request option.
  5986. * @throws {RequiredError}
  5987. * @memberof AlbumApi
  5988. */
  5989. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  5990. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5991. }
  5992. /**
  5993. *
  5994. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5995. * @param {*} [options] Override http request option.
  5996. * @throws {RequiredError}
  5997. * @memberof AlbumApi
  5998. */
  5999. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  6000. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  6001. }
  6002. /**
  6003. *
  6004. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  6005. * @param {*} [options] Override http request option.
  6006. * @throws {RequiredError}
  6007. * @memberof AlbumApi
  6008. */
  6009. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  6010. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  6011. }
  6012. /**
  6013. *
  6014. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  6015. * @param {*} [options] Override http request option.
  6016. * @throws {RequiredError}
  6017. * @memberof AlbumApi
  6018. */
  6019. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  6020. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  6021. }
  6022. }
  6023. /**
  6024. * AssetApi - axios parameter creator
  6025. * @export
  6026. */
  6027. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  6028. return {
  6029. /**
  6030. * Checks if assets exist by checksums
  6031. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6032. * @param {*} [options] Override http request option.
  6033. * @throws {RequiredError}
  6034. */
  6035. checkBulkUpload: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6036. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  6037. assertParamExists('checkBulkUpload', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  6038. const localVarPath = `/asset/bulk-upload-check`;
  6039. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6040. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6041. let baseOptions;
  6042. if (configuration) {
  6043. baseOptions = configuration.baseOptions;
  6044. }
  6045. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6046. const localVarHeaderParameter = {} as any;
  6047. const localVarQueryParameter = {} as any;
  6048. // authentication cookie required
  6049. // authentication api_key required
  6050. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6051. // authentication bearer required
  6052. // http bearer authentication required
  6053. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6054. localVarHeaderParameter['Content-Type'] = 'application/json';
  6055. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6056. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6057. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6058. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  6059. return {
  6060. url: toPathString(localVarUrlObj),
  6061. options: localVarRequestOptions,
  6062. };
  6063. },
  6064. /**
  6065. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6066. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6067. * @param {*} [options] Override http request option.
  6068. * @throws {RequiredError}
  6069. */
  6070. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6071. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  6072. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  6073. const localVarPath = `/asset/exist`;
  6074. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6075. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6076. let baseOptions;
  6077. if (configuration) {
  6078. baseOptions = configuration.baseOptions;
  6079. }
  6080. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6081. const localVarHeaderParameter = {} as any;
  6082. const localVarQueryParameter = {} as any;
  6083. // authentication cookie required
  6084. // authentication api_key required
  6085. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6086. // authentication bearer required
  6087. // http bearer authentication required
  6088. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6089. localVarHeaderParameter['Content-Type'] = 'application/json';
  6090. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6091. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6092. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6093. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  6094. return {
  6095. url: toPathString(localVarUrlObj),
  6096. options: localVarRequestOptions,
  6097. };
  6098. },
  6099. /**
  6100. *
  6101. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6102. * @param {*} [options] Override http request option.
  6103. * @throws {RequiredError}
  6104. */
  6105. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6106. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  6107. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  6108. const localVarPath = `/asset`;
  6109. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6110. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6111. let baseOptions;
  6112. if (configuration) {
  6113. baseOptions = configuration.baseOptions;
  6114. }
  6115. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6116. const localVarHeaderParameter = {} as any;
  6117. const localVarQueryParameter = {} as any;
  6118. // authentication cookie required
  6119. // authentication api_key required
  6120. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6121. // authentication bearer required
  6122. // http bearer authentication required
  6123. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6124. localVarHeaderParameter['Content-Type'] = 'application/json';
  6125. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6126. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6127. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6128. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  6129. return {
  6130. url: toPathString(localVarUrlObj),
  6131. options: localVarRequestOptions,
  6132. };
  6133. },
  6134. /**
  6135. *
  6136. * @param {AssetIdsDto} assetIdsDto
  6137. * @param {string} [key]
  6138. * @param {*} [options] Override http request option.
  6139. * @throws {RequiredError}
  6140. */
  6141. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6142. // verify required parameter 'assetIdsDto' is not null or undefined
  6143. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  6144. const localVarPath = `/asset/download/archive`;
  6145. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6146. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6147. let baseOptions;
  6148. if (configuration) {
  6149. baseOptions = configuration.baseOptions;
  6150. }
  6151. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6152. const localVarHeaderParameter = {} as any;
  6153. const localVarQueryParameter = {} as any;
  6154. // authentication cookie required
  6155. // authentication api_key required
  6156. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6157. // authentication bearer required
  6158. // http bearer authentication required
  6159. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6160. if (key !== undefined) {
  6161. localVarQueryParameter['key'] = key;
  6162. }
  6163. localVarHeaderParameter['Content-Type'] = 'application/json';
  6164. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6165. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6166. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6167. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  6168. return {
  6169. url: toPathString(localVarUrlObj),
  6170. options: localVarRequestOptions,
  6171. };
  6172. },
  6173. /**
  6174. *
  6175. * @param {string} id
  6176. * @param {string} [key]
  6177. * @param {*} [options] Override http request option.
  6178. * @throws {RequiredError}
  6179. */
  6180. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6181. // verify required parameter 'id' is not null or undefined
  6182. assertParamExists('downloadFile', 'id', id)
  6183. const localVarPath = `/asset/download/{id}`
  6184. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6185. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6186. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6187. let baseOptions;
  6188. if (configuration) {
  6189. baseOptions = configuration.baseOptions;
  6190. }
  6191. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6192. const localVarHeaderParameter = {} as any;
  6193. const localVarQueryParameter = {} as any;
  6194. // authentication cookie required
  6195. // authentication api_key required
  6196. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6197. // authentication bearer required
  6198. // http bearer authentication required
  6199. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6200. if (key !== undefined) {
  6201. localVarQueryParameter['key'] = key;
  6202. }
  6203. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6204. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6205. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6206. return {
  6207. url: toPathString(localVarUrlObj),
  6208. options: localVarRequestOptions,
  6209. };
  6210. },
  6211. /**
  6212. *
  6213. * @param {*} [options] Override http request option.
  6214. * @throws {RequiredError}
  6215. */
  6216. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6217. const localVarPath = `/asset/trash/empty`;
  6218. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6219. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6220. let baseOptions;
  6221. if (configuration) {
  6222. baseOptions = configuration.baseOptions;
  6223. }
  6224. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6225. const localVarHeaderParameter = {} as any;
  6226. const localVarQueryParameter = {} as any;
  6227. // authentication cookie required
  6228. // authentication api_key required
  6229. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6230. // authentication bearer required
  6231. // http bearer authentication required
  6232. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6233. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6234. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6235. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6236. return {
  6237. url: toPathString(localVarUrlObj),
  6238. options: localVarRequestOptions,
  6239. };
  6240. },
  6241. /**
  6242. * Get all AssetEntity belong to the user
  6243. * @param {number} [skip]
  6244. * @param {number} [take]
  6245. * @param {string} [userId]
  6246. * @param {boolean} [isFavorite]
  6247. * @param {boolean} [isArchived]
  6248. * @param {string} [updatedAfter]
  6249. * @param {string} [updatedBefore]
  6250. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6251. * @param {*} [options] Override http request option.
  6252. * @throws {RequiredError}
  6253. */
  6254. getAllAssets: async (skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6255. const localVarPath = `/asset`;
  6256. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6257. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6258. let baseOptions;
  6259. if (configuration) {
  6260. baseOptions = configuration.baseOptions;
  6261. }
  6262. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6263. const localVarHeaderParameter = {} as any;
  6264. const localVarQueryParameter = {} as any;
  6265. // authentication cookie required
  6266. // authentication api_key required
  6267. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6268. // authentication bearer required
  6269. // http bearer authentication required
  6270. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6271. if (skip !== undefined) {
  6272. localVarQueryParameter['skip'] = skip;
  6273. }
  6274. if (take !== undefined) {
  6275. localVarQueryParameter['take'] = take;
  6276. }
  6277. if (userId !== undefined) {
  6278. localVarQueryParameter['userId'] = userId;
  6279. }
  6280. if (isFavorite !== undefined) {
  6281. localVarQueryParameter['isFavorite'] = isFavorite;
  6282. }
  6283. if (isArchived !== undefined) {
  6284. localVarQueryParameter['isArchived'] = isArchived;
  6285. }
  6286. if (updatedAfter !== undefined) {
  6287. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  6288. (updatedAfter as any).toISOString() :
  6289. updatedAfter;
  6290. }
  6291. if (updatedBefore !== undefined) {
  6292. localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
  6293. (updatedBefore as any).toISOString() :
  6294. updatedBefore;
  6295. }
  6296. if (ifNoneMatch != null) {
  6297. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  6298. }
  6299. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6300. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6301. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6302. return {
  6303. url: toPathString(localVarUrlObj),
  6304. options: localVarRequestOptions,
  6305. };
  6306. },
  6307. /**
  6308. * Get a single asset\'s information
  6309. * @param {string} id
  6310. * @param {string} [key]
  6311. * @param {*} [options] Override http request option.
  6312. * @throws {RequiredError}
  6313. */
  6314. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6315. // verify required parameter 'id' is not null or undefined
  6316. assertParamExists('getAssetById', 'id', id)
  6317. const localVarPath = `/asset/assetById/{id}`
  6318. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6319. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6320. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6321. let baseOptions;
  6322. if (configuration) {
  6323. baseOptions = configuration.baseOptions;
  6324. }
  6325. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6326. const localVarHeaderParameter = {} as any;
  6327. const localVarQueryParameter = {} as any;
  6328. // authentication cookie required
  6329. // authentication api_key required
  6330. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6331. // authentication bearer required
  6332. // http bearer authentication required
  6333. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6334. if (key !== undefined) {
  6335. localVarQueryParameter['key'] = key;
  6336. }
  6337. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6338. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6339. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6340. return {
  6341. url: toPathString(localVarUrlObj),
  6342. options: localVarRequestOptions,
  6343. };
  6344. },
  6345. /**
  6346. *
  6347. * @param {*} [options] Override http request option.
  6348. * @throws {RequiredError}
  6349. */
  6350. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6351. const localVarPath = `/asset/search-terms`;
  6352. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6353. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6354. let baseOptions;
  6355. if (configuration) {
  6356. baseOptions = configuration.baseOptions;
  6357. }
  6358. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6359. const localVarHeaderParameter = {} as any;
  6360. const localVarQueryParameter = {} as any;
  6361. // authentication cookie required
  6362. // authentication api_key required
  6363. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6364. // authentication bearer required
  6365. // http bearer authentication required
  6366. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6367. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6368. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6369. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6370. return {
  6371. url: toPathString(localVarUrlObj),
  6372. options: localVarRequestOptions,
  6373. };
  6374. },
  6375. /**
  6376. *
  6377. * @param {boolean} [isArchived]
  6378. * @param {boolean} [isFavorite]
  6379. * @param {boolean} [isTrashed]
  6380. * @param {*} [options] Override http request option.
  6381. * @throws {RequiredError}
  6382. */
  6383. getAssetStatistics: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6384. const localVarPath = `/asset/statistics`;
  6385. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6386. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6387. let baseOptions;
  6388. if (configuration) {
  6389. baseOptions = configuration.baseOptions;
  6390. }
  6391. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6392. const localVarHeaderParameter = {} as any;
  6393. const localVarQueryParameter = {} as any;
  6394. // authentication cookie required
  6395. // authentication api_key required
  6396. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6397. // authentication bearer required
  6398. // http bearer authentication required
  6399. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6400. if (isArchived !== undefined) {
  6401. localVarQueryParameter['isArchived'] = isArchived;
  6402. }
  6403. if (isFavorite !== undefined) {
  6404. localVarQueryParameter['isFavorite'] = isFavorite;
  6405. }
  6406. if (isTrashed !== undefined) {
  6407. localVarQueryParameter['isTrashed'] = isTrashed;
  6408. }
  6409. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6410. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6411. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6412. return {
  6413. url: toPathString(localVarUrlObj),
  6414. options: localVarRequestOptions,
  6415. };
  6416. },
  6417. /**
  6418. *
  6419. * @param {string} id
  6420. * @param {ThumbnailFormat} [format]
  6421. * @param {string} [key]
  6422. * @param {*} [options] Override http request option.
  6423. * @throws {RequiredError}
  6424. */
  6425. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6426. // verify required parameter 'id' is not null or undefined
  6427. assertParamExists('getAssetThumbnail', 'id', id)
  6428. const localVarPath = `/asset/thumbnail/{id}`
  6429. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6430. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6431. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6432. let baseOptions;
  6433. if (configuration) {
  6434. baseOptions = configuration.baseOptions;
  6435. }
  6436. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6437. const localVarHeaderParameter = {} as any;
  6438. const localVarQueryParameter = {} as any;
  6439. // authentication cookie required
  6440. // authentication api_key required
  6441. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6442. // authentication bearer required
  6443. // http bearer authentication required
  6444. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6445. if (format !== undefined) {
  6446. localVarQueryParameter['format'] = format;
  6447. }
  6448. if (key !== undefined) {
  6449. localVarQueryParameter['key'] = key;
  6450. }
  6451. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6452. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6453. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6454. return {
  6455. url: toPathString(localVarUrlObj),
  6456. options: localVarRequestOptions,
  6457. };
  6458. },
  6459. /**
  6460. *
  6461. * @param {*} [options] Override http request option.
  6462. * @throws {RequiredError}
  6463. */
  6464. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6465. const localVarPath = `/asset/curated-locations`;
  6466. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6467. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6468. let baseOptions;
  6469. if (configuration) {
  6470. baseOptions = configuration.baseOptions;
  6471. }
  6472. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6473. const localVarHeaderParameter = {} as any;
  6474. const localVarQueryParameter = {} as any;
  6475. // authentication cookie required
  6476. // authentication api_key required
  6477. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6478. // authentication bearer required
  6479. // http bearer authentication required
  6480. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6481. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6482. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6483. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6484. return {
  6485. url: toPathString(localVarUrlObj),
  6486. options: localVarRequestOptions,
  6487. };
  6488. },
  6489. /**
  6490. *
  6491. * @param {*} [options] Override http request option.
  6492. * @throws {RequiredError}
  6493. */
  6494. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6495. const localVarPath = `/asset/curated-objects`;
  6496. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6497. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6498. let baseOptions;
  6499. if (configuration) {
  6500. baseOptions = configuration.baseOptions;
  6501. }
  6502. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6503. const localVarHeaderParameter = {} as any;
  6504. const localVarQueryParameter = {} as any;
  6505. // authentication cookie required
  6506. // authentication api_key required
  6507. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6508. // authentication bearer required
  6509. // http bearer authentication required
  6510. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6511. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6512. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6513. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6514. return {
  6515. url: toPathString(localVarUrlObj),
  6516. options: localVarRequestOptions,
  6517. };
  6518. },
  6519. /**
  6520. *
  6521. * @param {DownloadInfoDto} downloadInfoDto
  6522. * @param {string} [key]
  6523. * @param {*} [options] Override http request option.
  6524. * @throws {RequiredError}
  6525. */
  6526. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6527. // verify required parameter 'downloadInfoDto' is not null or undefined
  6528. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6529. const localVarPath = `/asset/download/info`;
  6530. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6531. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6532. let baseOptions;
  6533. if (configuration) {
  6534. baseOptions = configuration.baseOptions;
  6535. }
  6536. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6537. const localVarHeaderParameter = {} as any;
  6538. const localVarQueryParameter = {} as any;
  6539. // authentication cookie required
  6540. // authentication api_key required
  6541. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6542. // authentication bearer required
  6543. // http bearer authentication required
  6544. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6545. if (key !== undefined) {
  6546. localVarQueryParameter['key'] = key;
  6547. }
  6548. localVarHeaderParameter['Content-Type'] = 'application/json';
  6549. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6550. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6551. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6552. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6553. return {
  6554. url: toPathString(localVarUrlObj),
  6555. options: localVarRequestOptions,
  6556. };
  6557. },
  6558. /**
  6559. *
  6560. * @param {boolean} [isArchived]
  6561. * @param {boolean} [isFavorite]
  6562. * @param {string} [fileCreatedAfter]
  6563. * @param {string} [fileCreatedBefore]
  6564. * @param {*} [options] Override http request option.
  6565. * @throws {RequiredError}
  6566. */
  6567. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6568. const localVarPath = `/asset/map-marker`;
  6569. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6570. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6571. let baseOptions;
  6572. if (configuration) {
  6573. baseOptions = configuration.baseOptions;
  6574. }
  6575. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6576. const localVarHeaderParameter = {} as any;
  6577. const localVarQueryParameter = {} as any;
  6578. // authentication cookie required
  6579. // authentication api_key required
  6580. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6581. // authentication bearer required
  6582. // http bearer authentication required
  6583. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6584. if (isArchived !== undefined) {
  6585. localVarQueryParameter['isArchived'] = isArchived;
  6586. }
  6587. if (isFavorite !== undefined) {
  6588. localVarQueryParameter['isFavorite'] = isFavorite;
  6589. }
  6590. if (fileCreatedAfter !== undefined) {
  6591. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6592. (fileCreatedAfter as any).toISOString() :
  6593. fileCreatedAfter;
  6594. }
  6595. if (fileCreatedBefore !== undefined) {
  6596. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6597. (fileCreatedBefore as any).toISOString() :
  6598. fileCreatedBefore;
  6599. }
  6600. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6601. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6602. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6603. return {
  6604. url: toPathString(localVarUrlObj),
  6605. options: localVarRequestOptions,
  6606. };
  6607. },
  6608. /**
  6609. *
  6610. * @param {number} day
  6611. * @param {number} month
  6612. * @param {*} [options] Override http request option.
  6613. * @throws {RequiredError}
  6614. */
  6615. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6616. // verify required parameter 'day' is not null or undefined
  6617. assertParamExists('getMemoryLane', 'day', day)
  6618. // verify required parameter 'month' is not null or undefined
  6619. assertParamExists('getMemoryLane', 'month', month)
  6620. const localVarPath = `/asset/memory-lane`;
  6621. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6622. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6623. let baseOptions;
  6624. if (configuration) {
  6625. baseOptions = configuration.baseOptions;
  6626. }
  6627. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6628. const localVarHeaderParameter = {} as any;
  6629. const localVarQueryParameter = {} as any;
  6630. // authentication cookie required
  6631. // authentication api_key required
  6632. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6633. // authentication bearer required
  6634. // http bearer authentication required
  6635. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6636. if (day !== undefined) {
  6637. localVarQueryParameter['day'] = day;
  6638. }
  6639. if (month !== undefined) {
  6640. localVarQueryParameter['month'] = month;
  6641. }
  6642. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6643. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6644. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6645. return {
  6646. url: toPathString(localVarUrlObj),
  6647. options: localVarRequestOptions,
  6648. };
  6649. },
  6650. /**
  6651. *
  6652. * @param {number} [count]
  6653. * @param {*} [options] Override http request option.
  6654. * @throws {RequiredError}
  6655. */
  6656. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6657. const localVarPath = `/asset/random`;
  6658. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6659. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6660. let baseOptions;
  6661. if (configuration) {
  6662. baseOptions = configuration.baseOptions;
  6663. }
  6664. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6665. const localVarHeaderParameter = {} as any;
  6666. const localVarQueryParameter = {} as any;
  6667. // authentication cookie required
  6668. // authentication api_key required
  6669. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6670. // authentication bearer required
  6671. // http bearer authentication required
  6672. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6673. if (count !== undefined) {
  6674. localVarQueryParameter['count'] = count;
  6675. }
  6676. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6677. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6678. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6679. return {
  6680. url: toPathString(localVarUrlObj),
  6681. options: localVarRequestOptions,
  6682. };
  6683. },
  6684. /**
  6685. *
  6686. * @param {TimeBucketSize} size
  6687. * @param {string} timeBucket
  6688. * @param {string} [userId]
  6689. * @param {string} [albumId]
  6690. * @param {string} [personId]
  6691. * @param {boolean} [isArchived]
  6692. * @param {boolean} [isFavorite]
  6693. * @param {boolean} [isTrashed]
  6694. * @param {boolean} [withStacked]
  6695. * @param {string} [key]
  6696. * @param {*} [options] Override http request option.
  6697. * @throws {RequiredError}
  6698. */
  6699. getTimeBucket: 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> => {
  6700. // verify required parameter 'size' is not null or undefined
  6701. assertParamExists('getTimeBucket', 'size', size)
  6702. // verify required parameter 'timeBucket' is not null or undefined
  6703. assertParamExists('getTimeBucket', 'timeBucket', timeBucket)
  6704. const localVarPath = `/asset/time-bucket`;
  6705. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6706. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6707. let baseOptions;
  6708. if (configuration) {
  6709. baseOptions = configuration.baseOptions;
  6710. }
  6711. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6712. const localVarHeaderParameter = {} as any;
  6713. const localVarQueryParameter = {} as any;
  6714. // authentication cookie required
  6715. // authentication api_key required
  6716. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6717. // authentication bearer required
  6718. // http bearer authentication required
  6719. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6720. if (size !== undefined) {
  6721. localVarQueryParameter['size'] = size;
  6722. }
  6723. if (userId !== undefined) {
  6724. localVarQueryParameter['userId'] = userId;
  6725. }
  6726. if (albumId !== undefined) {
  6727. localVarQueryParameter['albumId'] = albumId;
  6728. }
  6729. if (personId !== undefined) {
  6730. localVarQueryParameter['personId'] = personId;
  6731. }
  6732. if (isArchived !== undefined) {
  6733. localVarQueryParameter['isArchived'] = isArchived;
  6734. }
  6735. if (isFavorite !== undefined) {
  6736. localVarQueryParameter['isFavorite'] = isFavorite;
  6737. }
  6738. if (isTrashed !== undefined) {
  6739. localVarQueryParameter['isTrashed'] = isTrashed;
  6740. }
  6741. if (withStacked !== undefined) {
  6742. localVarQueryParameter['withStacked'] = withStacked;
  6743. }
  6744. if (timeBucket !== undefined) {
  6745. localVarQueryParameter['timeBucket'] = timeBucket;
  6746. }
  6747. if (key !== undefined) {
  6748. localVarQueryParameter['key'] = key;
  6749. }
  6750. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6751. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6752. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6753. return {
  6754. url: toPathString(localVarUrlObj),
  6755. options: localVarRequestOptions,
  6756. };
  6757. },
  6758. /**
  6759. *
  6760. * @param {TimeBucketSize} size
  6761. * @param {string} [userId]
  6762. * @param {string} [albumId]
  6763. * @param {string} [personId]
  6764. * @param {boolean} [isArchived]
  6765. * @param {boolean} [isFavorite]
  6766. * @param {boolean} [isTrashed]
  6767. * @param {boolean} [withStacked]
  6768. * @param {string} [key]
  6769. * @param {*} [options] Override http request option.
  6770. * @throws {RequiredError}
  6771. */
  6772. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6773. // verify required parameter 'size' is not null or undefined
  6774. assertParamExists('getTimeBuckets', 'size', size)
  6775. const localVarPath = `/asset/time-buckets`;
  6776. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6777. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6778. let baseOptions;
  6779. if (configuration) {
  6780. baseOptions = configuration.baseOptions;
  6781. }
  6782. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6783. const localVarHeaderParameter = {} as any;
  6784. const localVarQueryParameter = {} as any;
  6785. // authentication cookie required
  6786. // authentication api_key required
  6787. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6788. // authentication bearer required
  6789. // http bearer authentication required
  6790. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6791. if (size !== undefined) {
  6792. localVarQueryParameter['size'] = size;
  6793. }
  6794. if (userId !== undefined) {
  6795. localVarQueryParameter['userId'] = userId;
  6796. }
  6797. if (albumId !== undefined) {
  6798. localVarQueryParameter['albumId'] = albumId;
  6799. }
  6800. if (personId !== undefined) {
  6801. localVarQueryParameter['personId'] = personId;
  6802. }
  6803. if (isArchived !== undefined) {
  6804. localVarQueryParameter['isArchived'] = isArchived;
  6805. }
  6806. if (isFavorite !== undefined) {
  6807. localVarQueryParameter['isFavorite'] = isFavorite;
  6808. }
  6809. if (isTrashed !== undefined) {
  6810. localVarQueryParameter['isTrashed'] = isTrashed;
  6811. }
  6812. if (withStacked !== undefined) {
  6813. localVarQueryParameter['withStacked'] = withStacked;
  6814. }
  6815. if (key !== undefined) {
  6816. localVarQueryParameter['key'] = key;
  6817. }
  6818. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6819. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6820. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6821. return {
  6822. url: toPathString(localVarUrlObj),
  6823. options: localVarRequestOptions,
  6824. };
  6825. },
  6826. /**
  6827. * Get all asset of a device that are in the database, ID only.
  6828. * @param {string} deviceId
  6829. * @param {*} [options] Override http request option.
  6830. * @throws {RequiredError}
  6831. */
  6832. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6833. // verify required parameter 'deviceId' is not null or undefined
  6834. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6835. const localVarPath = `/asset/{deviceId}`
  6836. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6837. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6838. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6839. let baseOptions;
  6840. if (configuration) {
  6841. baseOptions = configuration.baseOptions;
  6842. }
  6843. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6844. const localVarHeaderParameter = {} as any;
  6845. const localVarQueryParameter = {} as any;
  6846. // authentication cookie required
  6847. // authentication api_key required
  6848. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6849. // authentication bearer required
  6850. // http bearer authentication required
  6851. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6852. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6853. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6854. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6855. return {
  6856. url: toPathString(localVarUrlObj),
  6857. options: localVarRequestOptions,
  6858. };
  6859. },
  6860. /**
  6861. *
  6862. * @param {ImportAssetDto} importAssetDto
  6863. * @param {*} [options] Override http request option.
  6864. * @throws {RequiredError}
  6865. */
  6866. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6867. // verify required parameter 'importAssetDto' is not null or undefined
  6868. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  6869. const localVarPath = `/asset/import`;
  6870. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6871. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6872. let baseOptions;
  6873. if (configuration) {
  6874. baseOptions = configuration.baseOptions;
  6875. }
  6876. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6877. const localVarHeaderParameter = {} as any;
  6878. const localVarQueryParameter = {} as any;
  6879. // authentication cookie required
  6880. // authentication api_key required
  6881. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6882. // authentication bearer required
  6883. // http bearer authentication required
  6884. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6885. localVarHeaderParameter['Content-Type'] = 'application/json';
  6886. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6887. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6888. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6889. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  6890. return {
  6891. url: toPathString(localVarUrlObj),
  6892. options: localVarRequestOptions,
  6893. };
  6894. },
  6895. /**
  6896. *
  6897. * @param {BulkIdsDto} bulkIdsDto
  6898. * @param {*} [options] Override http request option.
  6899. * @throws {RequiredError}
  6900. */
  6901. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6902. // verify required parameter 'bulkIdsDto' is not null or undefined
  6903. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6904. const localVarPath = `/asset/restore`;
  6905. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6906. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6907. let baseOptions;
  6908. if (configuration) {
  6909. baseOptions = configuration.baseOptions;
  6910. }
  6911. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6912. const localVarHeaderParameter = {} as any;
  6913. const localVarQueryParameter = {} as any;
  6914. // authentication cookie required
  6915. // authentication api_key required
  6916. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6917. // authentication bearer required
  6918. // http bearer authentication required
  6919. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6920. localVarHeaderParameter['Content-Type'] = 'application/json';
  6921. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6922. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6923. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6924. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6925. return {
  6926. url: toPathString(localVarUrlObj),
  6927. options: localVarRequestOptions,
  6928. };
  6929. },
  6930. /**
  6931. *
  6932. * @param {*} [options] Override http request option.
  6933. * @throws {RequiredError}
  6934. */
  6935. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6936. const localVarPath = `/asset/trash/restore`;
  6937. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6938. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6939. let baseOptions;
  6940. if (configuration) {
  6941. baseOptions = configuration.baseOptions;
  6942. }
  6943. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6944. const localVarHeaderParameter = {} as any;
  6945. const localVarQueryParameter = {} as any;
  6946. // authentication cookie required
  6947. // authentication api_key required
  6948. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6949. // authentication bearer required
  6950. // http bearer authentication required
  6951. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6952. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6953. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6954. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6955. return {
  6956. url: toPathString(localVarUrlObj),
  6957. options: localVarRequestOptions,
  6958. };
  6959. },
  6960. /**
  6961. *
  6962. * @param {AssetJobsDto} assetJobsDto
  6963. * @param {*} [options] Override http request option.
  6964. * @throws {RequiredError}
  6965. */
  6966. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6967. // verify required parameter 'assetJobsDto' is not null or undefined
  6968. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  6969. const localVarPath = `/asset/jobs`;
  6970. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6971. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6972. let baseOptions;
  6973. if (configuration) {
  6974. baseOptions = configuration.baseOptions;
  6975. }
  6976. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6977. const localVarHeaderParameter = {} as any;
  6978. const localVarQueryParameter = {} as any;
  6979. // authentication cookie required
  6980. // authentication api_key required
  6981. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6982. // authentication bearer required
  6983. // http bearer authentication required
  6984. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6985. localVarHeaderParameter['Content-Type'] = 'application/json';
  6986. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6987. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6988. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6989. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  6990. return {
  6991. url: toPathString(localVarUrlObj),
  6992. options: localVarRequestOptions,
  6993. };
  6994. },
  6995. /**
  6996. *
  6997. * @param {SearchAssetDto} searchAssetDto
  6998. * @param {*} [options] Override http request option.
  6999. * @throws {RequiredError}
  7000. */
  7001. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7002. // verify required parameter 'searchAssetDto' is not null or undefined
  7003. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  7004. const localVarPath = `/asset/search`;
  7005. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7006. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7007. let baseOptions;
  7008. if (configuration) {
  7009. baseOptions = configuration.baseOptions;
  7010. }
  7011. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7012. const localVarHeaderParameter = {} as any;
  7013. const localVarQueryParameter = {} as any;
  7014. // authentication cookie required
  7015. // authentication api_key required
  7016. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7017. // authentication bearer required
  7018. // http bearer authentication required
  7019. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7020. localVarHeaderParameter['Content-Type'] = 'application/json';
  7021. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7022. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7023. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7024. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  7025. return {
  7026. url: toPathString(localVarUrlObj),
  7027. options: localVarRequestOptions,
  7028. };
  7029. },
  7030. /**
  7031. *
  7032. * @param {string} id
  7033. * @param {boolean} [isThumb]
  7034. * @param {boolean} [isWeb]
  7035. * @param {string} [key]
  7036. * @param {*} [options] Override http request option.
  7037. * @throws {RequiredError}
  7038. */
  7039. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7040. // verify required parameter 'id' is not null or undefined
  7041. assertParamExists('serveFile', 'id', id)
  7042. const localVarPath = `/asset/file/{id}`
  7043. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7044. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7045. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7046. let baseOptions;
  7047. if (configuration) {
  7048. baseOptions = configuration.baseOptions;
  7049. }
  7050. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7051. const localVarHeaderParameter = {} as any;
  7052. const localVarQueryParameter = {} as any;
  7053. // authentication cookie required
  7054. // authentication api_key required
  7055. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7056. // authentication bearer required
  7057. // http bearer authentication required
  7058. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7059. if (isThumb !== undefined) {
  7060. localVarQueryParameter['isThumb'] = isThumb;
  7061. }
  7062. if (isWeb !== undefined) {
  7063. localVarQueryParameter['isWeb'] = isWeb;
  7064. }
  7065. if (key !== undefined) {
  7066. localVarQueryParameter['key'] = key;
  7067. }
  7068. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7069. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7070. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7071. return {
  7072. url: toPathString(localVarUrlObj),
  7073. options: localVarRequestOptions,
  7074. };
  7075. },
  7076. /**
  7077. *
  7078. * @param {string} id
  7079. * @param {UpdateAssetDto} updateAssetDto
  7080. * @param {*} [options] Override http request option.
  7081. * @throws {RequiredError}
  7082. */
  7083. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7084. // verify required parameter 'id' is not null or undefined
  7085. assertParamExists('updateAsset', 'id', id)
  7086. // verify required parameter 'updateAssetDto' is not null or undefined
  7087. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  7088. const localVarPath = `/asset/{id}`
  7089. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7090. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7091. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7092. let baseOptions;
  7093. if (configuration) {
  7094. baseOptions = configuration.baseOptions;
  7095. }
  7096. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7097. const localVarHeaderParameter = {} as any;
  7098. const localVarQueryParameter = {} as any;
  7099. // authentication cookie required
  7100. // authentication api_key required
  7101. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7102. // authentication bearer required
  7103. // http bearer authentication required
  7104. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7105. localVarHeaderParameter['Content-Type'] = 'application/json';
  7106. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7107. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7108. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7109. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  7110. return {
  7111. url: toPathString(localVarUrlObj),
  7112. options: localVarRequestOptions,
  7113. };
  7114. },
  7115. /**
  7116. *
  7117. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7118. * @param {*} [options] Override http request option.
  7119. * @throws {RequiredError}
  7120. */
  7121. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7122. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  7123. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  7124. const localVarPath = `/asset`;
  7125. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7126. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7127. let baseOptions;
  7128. if (configuration) {
  7129. baseOptions = configuration.baseOptions;
  7130. }
  7131. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7132. const localVarHeaderParameter = {} as any;
  7133. const localVarQueryParameter = {} as any;
  7134. // authentication cookie required
  7135. // authentication api_key required
  7136. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7137. // authentication bearer required
  7138. // http bearer authentication required
  7139. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7140. localVarHeaderParameter['Content-Type'] = 'application/json';
  7141. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7142. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7143. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7144. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  7145. return {
  7146. url: toPathString(localVarUrlObj),
  7147. options: localVarRequestOptions,
  7148. };
  7149. },
  7150. /**
  7151. *
  7152. * @param {UpdateStackParentDto} updateStackParentDto
  7153. * @param {*} [options] Override http request option.
  7154. * @throws {RequiredError}
  7155. */
  7156. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7157. // verify required parameter 'updateStackParentDto' is not null or undefined
  7158. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  7159. const localVarPath = `/asset/stack/parent`;
  7160. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7161. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7162. let baseOptions;
  7163. if (configuration) {
  7164. baseOptions = configuration.baseOptions;
  7165. }
  7166. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7167. const localVarHeaderParameter = {} as any;
  7168. const localVarQueryParameter = {} as any;
  7169. // authentication cookie required
  7170. // authentication api_key required
  7171. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7172. // authentication bearer required
  7173. // http bearer authentication required
  7174. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7175. localVarHeaderParameter['Content-Type'] = 'application/json';
  7176. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7177. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7178. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7179. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  7180. return {
  7181. url: toPathString(localVarUrlObj),
  7182. options: localVarRequestOptions,
  7183. };
  7184. },
  7185. /**
  7186. *
  7187. * @param {File} assetData
  7188. * @param {string} deviceAssetId
  7189. * @param {string} deviceId
  7190. * @param {string} fileCreatedAt
  7191. * @param {string} fileModifiedAt
  7192. * @param {string} [key]
  7193. * @param {string} [duration]
  7194. * @param {boolean} [isArchived]
  7195. * @param {boolean} [isExternal]
  7196. * @param {boolean} [isFavorite]
  7197. * @param {boolean} [isOffline]
  7198. * @param {boolean} [isReadOnly]
  7199. * @param {boolean} [isVisible]
  7200. * @param {string} [libraryId]
  7201. * @param {File} [livePhotoData]
  7202. * @param {File} [sidecarData]
  7203. * @param {*} [options] Override http request option.
  7204. * @throws {RequiredError}
  7205. */
  7206. uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isFavorite?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7207. // verify required parameter 'assetData' is not null or undefined
  7208. assertParamExists('uploadFile', 'assetData', assetData)
  7209. // verify required parameter 'deviceAssetId' is not null or undefined
  7210. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  7211. // verify required parameter 'deviceId' is not null or undefined
  7212. assertParamExists('uploadFile', 'deviceId', deviceId)
  7213. // verify required parameter 'fileCreatedAt' is not null or undefined
  7214. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  7215. // verify required parameter 'fileModifiedAt' is not null or undefined
  7216. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  7217. const localVarPath = `/asset/upload`;
  7218. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7219. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7220. let baseOptions;
  7221. if (configuration) {
  7222. baseOptions = configuration.baseOptions;
  7223. }
  7224. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7225. const localVarHeaderParameter = {} as any;
  7226. const localVarQueryParameter = {} as any;
  7227. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  7228. // authentication cookie required
  7229. // authentication api_key required
  7230. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7231. // authentication bearer required
  7232. // http bearer authentication required
  7233. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7234. if (key !== undefined) {
  7235. localVarQueryParameter['key'] = key;
  7236. }
  7237. if (assetData !== undefined) {
  7238. localVarFormParams.append('assetData', assetData as any);
  7239. }
  7240. if (deviceAssetId !== undefined) {
  7241. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  7242. }
  7243. if (deviceId !== undefined) {
  7244. localVarFormParams.append('deviceId', deviceId as any);
  7245. }
  7246. if (duration !== undefined) {
  7247. localVarFormParams.append('duration', duration as any);
  7248. }
  7249. if (fileCreatedAt !== undefined) {
  7250. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  7251. }
  7252. if (fileModifiedAt !== undefined) {
  7253. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  7254. }
  7255. if (isArchived !== undefined) {
  7256. localVarFormParams.append('isArchived', isArchived as any);
  7257. }
  7258. if (isExternal !== undefined) {
  7259. localVarFormParams.append('isExternal', isExternal as any);
  7260. }
  7261. if (isFavorite !== undefined) {
  7262. localVarFormParams.append('isFavorite', isFavorite as any);
  7263. }
  7264. if (isOffline !== undefined) {
  7265. localVarFormParams.append('isOffline', isOffline as any);
  7266. }
  7267. if (isReadOnly !== undefined) {
  7268. localVarFormParams.append('isReadOnly', isReadOnly as any);
  7269. }
  7270. if (isVisible !== undefined) {
  7271. localVarFormParams.append('isVisible', isVisible as any);
  7272. }
  7273. if (libraryId !== undefined) {
  7274. localVarFormParams.append('libraryId', libraryId as any);
  7275. }
  7276. if (livePhotoData !== undefined) {
  7277. localVarFormParams.append('livePhotoData', livePhotoData as any);
  7278. }
  7279. if (sidecarData !== undefined) {
  7280. localVarFormParams.append('sidecarData', sidecarData as any);
  7281. }
  7282. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  7283. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7284. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7285. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7286. localVarRequestOptions.data = localVarFormParams;
  7287. return {
  7288. url: toPathString(localVarUrlObj),
  7289. options: localVarRequestOptions,
  7290. };
  7291. },
  7292. }
  7293. };
  7294. /**
  7295. * AssetApi - functional programming interface
  7296. * @export
  7297. */
  7298. export const AssetApiFp = function(configuration?: Configuration) {
  7299. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  7300. return {
  7301. /**
  7302. * Checks if assets exist by checksums
  7303. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  7304. * @param {*} [options] Override http request option.
  7305. * @throws {RequiredError}
  7306. */
  7307. async checkBulkUpload(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  7308. const localVarAxiosArgs = await localVarAxiosParamCreator.checkBulkUpload(assetBulkUploadCheckDto, options);
  7309. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7310. },
  7311. /**
  7312. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7313. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  7314. * @param {*} [options] Override http request option.
  7315. * @throws {RequiredError}
  7316. */
  7317. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  7318. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  7319. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7320. },
  7321. /**
  7322. *
  7323. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  7324. * @param {*} [options] Override http request option.
  7325. * @throws {RequiredError}
  7326. */
  7327. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7328. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  7329. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7330. },
  7331. /**
  7332. *
  7333. * @param {AssetIdsDto} assetIdsDto
  7334. * @param {string} [key]
  7335. * @param {*} [options] Override http request option.
  7336. * @throws {RequiredError}
  7337. */
  7338. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7339. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  7340. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7341. },
  7342. /**
  7343. *
  7344. * @param {string} id
  7345. * @param {string} [key]
  7346. * @param {*} [options] Override http request option.
  7347. * @throws {RequiredError}
  7348. */
  7349. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7350. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  7351. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7352. },
  7353. /**
  7354. *
  7355. * @param {*} [options] Override http request option.
  7356. * @throws {RequiredError}
  7357. */
  7358. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7359. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  7360. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7361. },
  7362. /**
  7363. * Get all AssetEntity belong to the user
  7364. * @param {number} [skip]
  7365. * @param {number} [take]
  7366. * @param {string} [userId]
  7367. * @param {boolean} [isFavorite]
  7368. * @param {boolean} [isArchived]
  7369. * @param {string} [updatedAfter]
  7370. * @param {string} [updatedBefore]
  7371. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  7372. * @param {*} [options] Override http request option.
  7373. * @throws {RequiredError}
  7374. */
  7375. async getAllAssets(skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7376. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(skip, take, userId, isFavorite, isArchived, updatedAfter, updatedBefore, ifNoneMatch, options);
  7377. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7378. },
  7379. /**
  7380. * Get a single asset\'s information
  7381. * @param {string} id
  7382. * @param {string} [key]
  7383. * @param {*} [options] Override http request option.
  7384. * @throws {RequiredError}
  7385. */
  7386. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7387. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  7388. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7389. },
  7390. /**
  7391. *
  7392. * @param {*} [options] Override http request option.
  7393. * @throws {RequiredError}
  7394. */
  7395. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7396. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  7397. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7398. },
  7399. /**
  7400. *
  7401. * @param {boolean} [isArchived]
  7402. * @param {boolean} [isFavorite]
  7403. * @param {boolean} [isTrashed]
  7404. * @param {*} [options] Override http request option.
  7405. * @throws {RequiredError}
  7406. */
  7407. async getAssetStatistics(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  7408. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStatistics(isArchived, isFavorite, isTrashed, options);
  7409. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7410. },
  7411. /**
  7412. *
  7413. * @param {string} id
  7414. * @param {ThumbnailFormat} [format]
  7415. * @param {string} [key]
  7416. * @param {*} [options] Override http request option.
  7417. * @throws {RequiredError}
  7418. */
  7419. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7420. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  7421. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7422. },
  7423. /**
  7424. *
  7425. * @param {*} [options] Override http request option.
  7426. * @throws {RequiredError}
  7427. */
  7428. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  7429. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  7430. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7431. },
  7432. /**
  7433. *
  7434. * @param {*} [options] Override http request option.
  7435. * @throws {RequiredError}
  7436. */
  7437. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  7438. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  7439. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7440. },
  7441. /**
  7442. *
  7443. * @param {DownloadInfoDto} downloadInfoDto
  7444. * @param {string} [key]
  7445. * @param {*} [options] Override http request option.
  7446. * @throws {RequiredError}
  7447. */
  7448. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  7449. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  7450. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7451. },
  7452. /**
  7453. *
  7454. * @param {boolean} [isArchived]
  7455. * @param {boolean} [isFavorite]
  7456. * @param {string} [fileCreatedAfter]
  7457. * @param {string} [fileCreatedBefore]
  7458. * @param {*} [options] Override http request option.
  7459. * @throws {RequiredError}
  7460. */
  7461. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  7462. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  7463. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7464. },
  7465. /**
  7466. *
  7467. * @param {number} day
  7468. * @param {number} month
  7469. * @param {*} [options] Override http request option.
  7470. * @throws {RequiredError}
  7471. */
  7472. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  7473. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  7474. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7475. },
  7476. /**
  7477. *
  7478. * @param {number} [count]
  7479. * @param {*} [options] Override http request option.
  7480. * @throws {RequiredError}
  7481. */
  7482. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7483. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  7484. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7485. },
  7486. /**
  7487. *
  7488. * @param {TimeBucketSize} size
  7489. * @param {string} timeBucket
  7490. * @param {string} [userId]
  7491. * @param {string} [albumId]
  7492. * @param {string} [personId]
  7493. * @param {boolean} [isArchived]
  7494. * @param {boolean} [isFavorite]
  7495. * @param {boolean} [isTrashed]
  7496. * @param {boolean} [withStacked]
  7497. * @param {string} [key]
  7498. * @param {*} [options] Override http request option.
  7499. * @throws {RequiredError}
  7500. */
  7501. async getTimeBucket(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>>> {
  7502. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, key, options);
  7503. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7504. },
  7505. /**
  7506. *
  7507. * @param {TimeBucketSize} size
  7508. * @param {string} [userId]
  7509. * @param {string} [albumId]
  7510. * @param {string} [personId]
  7511. * @param {boolean} [isArchived]
  7512. * @param {boolean} [isFavorite]
  7513. * @param {boolean} [isTrashed]
  7514. * @param {boolean} [withStacked]
  7515. * @param {string} [key]
  7516. * @param {*} [options] Override http request option.
  7517. * @throws {RequiredError}
  7518. */
  7519. 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>>> {
  7520. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, key, options);
  7521. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7522. },
  7523. /**
  7524. * Get all asset of a device that are in the database, ID only.
  7525. * @param {string} deviceId
  7526. * @param {*} [options] Override http request option.
  7527. * @throws {RequiredError}
  7528. */
  7529. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7530. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  7531. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7532. },
  7533. /**
  7534. *
  7535. * @param {ImportAssetDto} importAssetDto
  7536. * @param {*} [options] Override http request option.
  7537. * @throws {RequiredError}
  7538. */
  7539. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7540. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  7541. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7542. },
  7543. /**
  7544. *
  7545. * @param {BulkIdsDto} bulkIdsDto
  7546. * @param {*} [options] Override http request option.
  7547. * @throws {RequiredError}
  7548. */
  7549. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7550. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  7551. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7552. },
  7553. /**
  7554. *
  7555. * @param {*} [options] Override http request option.
  7556. * @throws {RequiredError}
  7557. */
  7558. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7559. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7560. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7561. },
  7562. /**
  7563. *
  7564. * @param {AssetJobsDto} assetJobsDto
  7565. * @param {*} [options] Override http request option.
  7566. * @throws {RequiredError}
  7567. */
  7568. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7569. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7570. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7571. },
  7572. /**
  7573. *
  7574. * @param {SearchAssetDto} searchAssetDto
  7575. * @param {*} [options] Override http request option.
  7576. * @throws {RequiredError}
  7577. */
  7578. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7579. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  7580. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7581. },
  7582. /**
  7583. *
  7584. * @param {string} id
  7585. * @param {boolean} [isThumb]
  7586. * @param {boolean} [isWeb]
  7587. * @param {string} [key]
  7588. * @param {*} [options] Override http request option.
  7589. * @throws {RequiredError}
  7590. */
  7591. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7592. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7593. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7594. },
  7595. /**
  7596. *
  7597. * @param {string} id
  7598. * @param {UpdateAssetDto} updateAssetDto
  7599. * @param {*} [options] Override http request option.
  7600. * @throws {RequiredError}
  7601. */
  7602. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7603. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7604. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7605. },
  7606. /**
  7607. *
  7608. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7609. * @param {*} [options] Override http request option.
  7610. * @throws {RequiredError}
  7611. */
  7612. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7613. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7614. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7615. },
  7616. /**
  7617. *
  7618. * @param {UpdateStackParentDto} updateStackParentDto
  7619. * @param {*} [options] Override http request option.
  7620. * @throws {RequiredError}
  7621. */
  7622. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7623. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7624. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7625. },
  7626. /**
  7627. *
  7628. * @param {File} assetData
  7629. * @param {string} deviceAssetId
  7630. * @param {string} deviceId
  7631. * @param {string} fileCreatedAt
  7632. * @param {string} fileModifiedAt
  7633. * @param {string} [key]
  7634. * @param {string} [duration]
  7635. * @param {boolean} [isArchived]
  7636. * @param {boolean} [isExternal]
  7637. * @param {boolean} [isFavorite]
  7638. * @param {boolean} [isOffline]
  7639. * @param {boolean} [isReadOnly]
  7640. * @param {boolean} [isVisible]
  7641. * @param {string} [libraryId]
  7642. * @param {File} [livePhotoData]
  7643. * @param {File} [sidecarData]
  7644. * @param {*} [options] Override http request option.
  7645. * @throws {RequiredError}
  7646. */
  7647. async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isFavorite?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7648. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, key, duration, isArchived, isExternal, isFavorite, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7649. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7650. },
  7651. }
  7652. };
  7653. /**
  7654. * AssetApi - factory interface
  7655. * @export
  7656. */
  7657. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7658. const localVarFp = AssetApiFp(configuration)
  7659. return {
  7660. /**
  7661. * Checks if assets exist by checksums
  7662. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  7663. * @param {*} [options] Override http request option.
  7664. * @throws {RequiredError}
  7665. */
  7666. checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7667. return localVarFp.checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7668. },
  7669. /**
  7670. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7671. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7672. * @param {*} [options] Override http request option.
  7673. * @throws {RequiredError}
  7674. */
  7675. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7676. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7677. },
  7678. /**
  7679. *
  7680. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7681. * @param {*} [options] Override http request option.
  7682. * @throws {RequiredError}
  7683. */
  7684. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7685. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7686. },
  7687. /**
  7688. *
  7689. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7690. * @param {*} [options] Override http request option.
  7691. * @throws {RequiredError}
  7692. */
  7693. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7694. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7695. },
  7696. /**
  7697. *
  7698. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7699. * @param {*} [options] Override http request option.
  7700. * @throws {RequiredError}
  7701. */
  7702. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7703. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7704. },
  7705. /**
  7706. *
  7707. * @param {*} [options] Override http request option.
  7708. * @throws {RequiredError}
  7709. */
  7710. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7711. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7712. },
  7713. /**
  7714. * Get all AssetEntity belong to the user
  7715. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7716. * @param {*} [options] Override http request option.
  7717. * @throws {RequiredError}
  7718. */
  7719. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7720. return localVarFp.getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7721. },
  7722. /**
  7723. * Get a single asset\'s information
  7724. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7725. * @param {*} [options] Override http request option.
  7726. * @throws {RequiredError}
  7727. */
  7728. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7729. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7730. },
  7731. /**
  7732. *
  7733. * @param {*} [options] Override http request option.
  7734. * @throws {RequiredError}
  7735. */
  7736. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7737. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7738. },
  7739. /**
  7740. *
  7741. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  7742. * @param {*} [options] Override http request option.
  7743. * @throws {RequiredError}
  7744. */
  7745. getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7746. return localVarFp.getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7747. },
  7748. /**
  7749. *
  7750. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7751. * @param {*} [options] Override http request option.
  7752. * @throws {RequiredError}
  7753. */
  7754. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7755. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7756. },
  7757. /**
  7758. *
  7759. * @param {*} [options] Override http request option.
  7760. * @throws {RequiredError}
  7761. */
  7762. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7763. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7764. },
  7765. /**
  7766. *
  7767. * @param {*} [options] Override http request option.
  7768. * @throws {RequiredError}
  7769. */
  7770. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7771. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7772. },
  7773. /**
  7774. *
  7775. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7776. * @param {*} [options] Override http request option.
  7777. * @throws {RequiredError}
  7778. */
  7779. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7780. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7781. },
  7782. /**
  7783. *
  7784. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7785. * @param {*} [options] Override http request option.
  7786. * @throws {RequiredError}
  7787. */
  7788. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7789. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7790. },
  7791. /**
  7792. *
  7793. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7794. * @param {*} [options] Override http request option.
  7795. * @throws {RequiredError}
  7796. */
  7797. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7798. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7799. },
  7800. /**
  7801. *
  7802. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7803. * @param {*} [options] Override http request option.
  7804. * @throws {RequiredError}
  7805. */
  7806. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7807. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7808. },
  7809. /**
  7810. *
  7811. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  7812. * @param {*} [options] Override http request option.
  7813. * @throws {RequiredError}
  7814. */
  7815. getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7816. return localVarFp.getTimeBucket(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));
  7817. },
  7818. /**
  7819. *
  7820. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7821. * @param {*} [options] Override http request option.
  7822. * @throws {RequiredError}
  7823. */
  7824. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7825. 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));
  7826. },
  7827. /**
  7828. * Get all asset of a device that are in the database, ID only.
  7829. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7830. * @param {*} [options] Override http request option.
  7831. * @throws {RequiredError}
  7832. */
  7833. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7834. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7835. },
  7836. /**
  7837. *
  7838. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7839. * @param {*} [options] Override http request option.
  7840. * @throws {RequiredError}
  7841. */
  7842. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7843. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7844. },
  7845. /**
  7846. *
  7847. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7848. * @param {*} [options] Override http request option.
  7849. * @throws {RequiredError}
  7850. */
  7851. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7852. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7853. },
  7854. /**
  7855. *
  7856. * @param {*} [options] Override http request option.
  7857. * @throws {RequiredError}
  7858. */
  7859. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7860. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  7861. },
  7862. /**
  7863. *
  7864. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  7865. * @param {*} [options] Override http request option.
  7866. * @throws {RequiredError}
  7867. */
  7868. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7869. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  7870. },
  7871. /**
  7872. *
  7873. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  7874. * @param {*} [options] Override http request option.
  7875. * @throws {RequiredError}
  7876. */
  7877. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7878. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  7879. },
  7880. /**
  7881. *
  7882. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  7883. * @param {*} [options] Override http request option.
  7884. * @throws {RequiredError}
  7885. */
  7886. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7887. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  7888. },
  7889. /**
  7890. *
  7891. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  7892. * @param {*} [options] Override http request option.
  7893. * @throws {RequiredError}
  7894. */
  7895. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7896. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  7897. },
  7898. /**
  7899. *
  7900. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  7901. * @param {*} [options] Override http request option.
  7902. * @throws {RequiredError}
  7903. */
  7904. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7905. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  7906. },
  7907. /**
  7908. *
  7909. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  7910. * @param {*} [options] Override http request option.
  7911. * @throws {RequiredError}
  7912. */
  7913. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7914. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  7915. },
  7916. /**
  7917. *
  7918. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  7919. * @param {*} [options] Override http request option.
  7920. * @throws {RequiredError}
  7921. */
  7922. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7923. return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
  7924. },
  7925. };
  7926. };
  7927. /**
  7928. * Request parameters for checkBulkUpload operation in AssetApi.
  7929. * @export
  7930. * @interface AssetApiCheckBulkUploadRequest
  7931. */
  7932. export interface AssetApiCheckBulkUploadRequest {
  7933. /**
  7934. *
  7935. * @type {AssetBulkUploadCheckDto}
  7936. * @memberof AssetApiCheckBulkUpload
  7937. */
  7938. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  7939. }
  7940. /**
  7941. * Request parameters for checkExistingAssets operation in AssetApi.
  7942. * @export
  7943. * @interface AssetApiCheckExistingAssetsRequest
  7944. */
  7945. export interface AssetApiCheckExistingAssetsRequest {
  7946. /**
  7947. *
  7948. * @type {CheckExistingAssetsDto}
  7949. * @memberof AssetApiCheckExistingAssets
  7950. */
  7951. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  7952. }
  7953. /**
  7954. * Request parameters for deleteAssets operation in AssetApi.
  7955. * @export
  7956. * @interface AssetApiDeleteAssetsRequest
  7957. */
  7958. export interface AssetApiDeleteAssetsRequest {
  7959. /**
  7960. *
  7961. * @type {AssetBulkDeleteDto}
  7962. * @memberof AssetApiDeleteAssets
  7963. */
  7964. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  7965. }
  7966. /**
  7967. * Request parameters for downloadArchive operation in AssetApi.
  7968. * @export
  7969. * @interface AssetApiDownloadArchiveRequest
  7970. */
  7971. export interface AssetApiDownloadArchiveRequest {
  7972. /**
  7973. *
  7974. * @type {AssetIdsDto}
  7975. * @memberof AssetApiDownloadArchive
  7976. */
  7977. readonly assetIdsDto: AssetIdsDto
  7978. /**
  7979. *
  7980. * @type {string}
  7981. * @memberof AssetApiDownloadArchive
  7982. */
  7983. readonly key?: string
  7984. }
  7985. /**
  7986. * Request parameters for downloadFile operation in AssetApi.
  7987. * @export
  7988. * @interface AssetApiDownloadFileRequest
  7989. */
  7990. export interface AssetApiDownloadFileRequest {
  7991. /**
  7992. *
  7993. * @type {string}
  7994. * @memberof AssetApiDownloadFile
  7995. */
  7996. readonly id: string
  7997. /**
  7998. *
  7999. * @type {string}
  8000. * @memberof AssetApiDownloadFile
  8001. */
  8002. readonly key?: string
  8003. }
  8004. /**
  8005. * Request parameters for getAllAssets operation in AssetApi.
  8006. * @export
  8007. * @interface AssetApiGetAllAssetsRequest
  8008. */
  8009. export interface AssetApiGetAllAssetsRequest {
  8010. /**
  8011. *
  8012. * @type {number}
  8013. * @memberof AssetApiGetAllAssets
  8014. */
  8015. readonly skip?: number
  8016. /**
  8017. *
  8018. * @type {number}
  8019. * @memberof AssetApiGetAllAssets
  8020. */
  8021. readonly take?: number
  8022. /**
  8023. *
  8024. * @type {string}
  8025. * @memberof AssetApiGetAllAssets
  8026. */
  8027. readonly userId?: string
  8028. /**
  8029. *
  8030. * @type {boolean}
  8031. * @memberof AssetApiGetAllAssets
  8032. */
  8033. readonly isFavorite?: boolean
  8034. /**
  8035. *
  8036. * @type {boolean}
  8037. * @memberof AssetApiGetAllAssets
  8038. */
  8039. readonly isArchived?: boolean
  8040. /**
  8041. *
  8042. * @type {string}
  8043. * @memberof AssetApiGetAllAssets
  8044. */
  8045. readonly updatedAfter?: string
  8046. /**
  8047. *
  8048. * @type {string}
  8049. * @memberof AssetApiGetAllAssets
  8050. */
  8051. readonly updatedBefore?: string
  8052. /**
  8053. * ETag of data already cached on the client
  8054. * @type {string}
  8055. * @memberof AssetApiGetAllAssets
  8056. */
  8057. readonly ifNoneMatch?: string
  8058. }
  8059. /**
  8060. * Request parameters for getAssetById operation in AssetApi.
  8061. * @export
  8062. * @interface AssetApiGetAssetByIdRequest
  8063. */
  8064. export interface AssetApiGetAssetByIdRequest {
  8065. /**
  8066. *
  8067. * @type {string}
  8068. * @memberof AssetApiGetAssetById
  8069. */
  8070. readonly id: string
  8071. /**
  8072. *
  8073. * @type {string}
  8074. * @memberof AssetApiGetAssetById
  8075. */
  8076. readonly key?: string
  8077. }
  8078. /**
  8079. * Request parameters for getAssetStatistics operation in AssetApi.
  8080. * @export
  8081. * @interface AssetApiGetAssetStatisticsRequest
  8082. */
  8083. export interface AssetApiGetAssetStatisticsRequest {
  8084. /**
  8085. *
  8086. * @type {boolean}
  8087. * @memberof AssetApiGetAssetStatistics
  8088. */
  8089. readonly isArchived?: boolean
  8090. /**
  8091. *
  8092. * @type {boolean}
  8093. * @memberof AssetApiGetAssetStatistics
  8094. */
  8095. readonly isFavorite?: boolean
  8096. /**
  8097. *
  8098. * @type {boolean}
  8099. * @memberof AssetApiGetAssetStatistics
  8100. */
  8101. readonly isTrashed?: boolean
  8102. }
  8103. /**
  8104. * Request parameters for getAssetThumbnail operation in AssetApi.
  8105. * @export
  8106. * @interface AssetApiGetAssetThumbnailRequest
  8107. */
  8108. export interface AssetApiGetAssetThumbnailRequest {
  8109. /**
  8110. *
  8111. * @type {string}
  8112. * @memberof AssetApiGetAssetThumbnail
  8113. */
  8114. readonly id: string
  8115. /**
  8116. *
  8117. * @type {ThumbnailFormat}
  8118. * @memberof AssetApiGetAssetThumbnail
  8119. */
  8120. readonly format?: ThumbnailFormat
  8121. /**
  8122. *
  8123. * @type {string}
  8124. * @memberof AssetApiGetAssetThumbnail
  8125. */
  8126. readonly key?: string
  8127. }
  8128. /**
  8129. * Request parameters for getDownloadInfo operation in AssetApi.
  8130. * @export
  8131. * @interface AssetApiGetDownloadInfoRequest
  8132. */
  8133. export interface AssetApiGetDownloadInfoRequest {
  8134. /**
  8135. *
  8136. * @type {DownloadInfoDto}
  8137. * @memberof AssetApiGetDownloadInfo
  8138. */
  8139. readonly downloadInfoDto: DownloadInfoDto
  8140. /**
  8141. *
  8142. * @type {string}
  8143. * @memberof AssetApiGetDownloadInfo
  8144. */
  8145. readonly key?: string
  8146. }
  8147. /**
  8148. * Request parameters for getMapMarkers operation in AssetApi.
  8149. * @export
  8150. * @interface AssetApiGetMapMarkersRequest
  8151. */
  8152. export interface AssetApiGetMapMarkersRequest {
  8153. /**
  8154. *
  8155. * @type {boolean}
  8156. * @memberof AssetApiGetMapMarkers
  8157. */
  8158. readonly isArchived?: boolean
  8159. /**
  8160. *
  8161. * @type {boolean}
  8162. * @memberof AssetApiGetMapMarkers
  8163. */
  8164. readonly isFavorite?: boolean
  8165. /**
  8166. *
  8167. * @type {string}
  8168. * @memberof AssetApiGetMapMarkers
  8169. */
  8170. readonly fileCreatedAfter?: string
  8171. /**
  8172. *
  8173. * @type {string}
  8174. * @memberof AssetApiGetMapMarkers
  8175. */
  8176. readonly fileCreatedBefore?: string
  8177. }
  8178. /**
  8179. * Request parameters for getMemoryLane operation in AssetApi.
  8180. * @export
  8181. * @interface AssetApiGetMemoryLaneRequest
  8182. */
  8183. export interface AssetApiGetMemoryLaneRequest {
  8184. /**
  8185. *
  8186. * @type {number}
  8187. * @memberof AssetApiGetMemoryLane
  8188. */
  8189. readonly day: number
  8190. /**
  8191. *
  8192. * @type {number}
  8193. * @memberof AssetApiGetMemoryLane
  8194. */
  8195. readonly month: number
  8196. }
  8197. /**
  8198. * Request parameters for getRandom operation in AssetApi.
  8199. * @export
  8200. * @interface AssetApiGetRandomRequest
  8201. */
  8202. export interface AssetApiGetRandomRequest {
  8203. /**
  8204. *
  8205. * @type {number}
  8206. * @memberof AssetApiGetRandom
  8207. */
  8208. readonly count?: number
  8209. }
  8210. /**
  8211. * Request parameters for getTimeBucket operation in AssetApi.
  8212. * @export
  8213. * @interface AssetApiGetTimeBucketRequest
  8214. */
  8215. export interface AssetApiGetTimeBucketRequest {
  8216. /**
  8217. *
  8218. * @type {TimeBucketSize}
  8219. * @memberof AssetApiGetTimeBucket
  8220. */
  8221. readonly size: TimeBucketSize
  8222. /**
  8223. *
  8224. * @type {string}
  8225. * @memberof AssetApiGetTimeBucket
  8226. */
  8227. readonly timeBucket: string
  8228. /**
  8229. *
  8230. * @type {string}
  8231. * @memberof AssetApiGetTimeBucket
  8232. */
  8233. readonly userId?: string
  8234. /**
  8235. *
  8236. * @type {string}
  8237. * @memberof AssetApiGetTimeBucket
  8238. */
  8239. readonly albumId?: string
  8240. /**
  8241. *
  8242. * @type {string}
  8243. * @memberof AssetApiGetTimeBucket
  8244. */
  8245. readonly personId?: string
  8246. /**
  8247. *
  8248. * @type {boolean}
  8249. * @memberof AssetApiGetTimeBucket
  8250. */
  8251. readonly isArchived?: boolean
  8252. /**
  8253. *
  8254. * @type {boolean}
  8255. * @memberof AssetApiGetTimeBucket
  8256. */
  8257. readonly isFavorite?: boolean
  8258. /**
  8259. *
  8260. * @type {boolean}
  8261. * @memberof AssetApiGetTimeBucket
  8262. */
  8263. readonly isTrashed?: boolean
  8264. /**
  8265. *
  8266. * @type {boolean}
  8267. * @memberof AssetApiGetTimeBucket
  8268. */
  8269. readonly withStacked?: boolean
  8270. /**
  8271. *
  8272. * @type {string}
  8273. * @memberof AssetApiGetTimeBucket
  8274. */
  8275. readonly key?: string
  8276. }
  8277. /**
  8278. * Request parameters for getTimeBuckets operation in AssetApi.
  8279. * @export
  8280. * @interface AssetApiGetTimeBucketsRequest
  8281. */
  8282. export interface AssetApiGetTimeBucketsRequest {
  8283. /**
  8284. *
  8285. * @type {TimeBucketSize}
  8286. * @memberof AssetApiGetTimeBuckets
  8287. */
  8288. readonly size: TimeBucketSize
  8289. /**
  8290. *
  8291. * @type {string}
  8292. * @memberof AssetApiGetTimeBuckets
  8293. */
  8294. readonly userId?: string
  8295. /**
  8296. *
  8297. * @type {string}
  8298. * @memberof AssetApiGetTimeBuckets
  8299. */
  8300. readonly albumId?: string
  8301. /**
  8302. *
  8303. * @type {string}
  8304. * @memberof AssetApiGetTimeBuckets
  8305. */
  8306. readonly personId?: string
  8307. /**
  8308. *
  8309. * @type {boolean}
  8310. * @memberof AssetApiGetTimeBuckets
  8311. */
  8312. readonly isArchived?: boolean
  8313. /**
  8314. *
  8315. * @type {boolean}
  8316. * @memberof AssetApiGetTimeBuckets
  8317. */
  8318. readonly isFavorite?: boolean
  8319. /**
  8320. *
  8321. * @type {boolean}
  8322. * @memberof AssetApiGetTimeBuckets
  8323. */
  8324. readonly isTrashed?: boolean
  8325. /**
  8326. *
  8327. * @type {boolean}
  8328. * @memberof AssetApiGetTimeBuckets
  8329. */
  8330. readonly withStacked?: boolean
  8331. /**
  8332. *
  8333. * @type {string}
  8334. * @memberof AssetApiGetTimeBuckets
  8335. */
  8336. readonly key?: string
  8337. }
  8338. /**
  8339. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  8340. * @export
  8341. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  8342. */
  8343. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  8344. /**
  8345. *
  8346. * @type {string}
  8347. * @memberof AssetApiGetUserAssetsByDeviceId
  8348. */
  8349. readonly deviceId: string
  8350. }
  8351. /**
  8352. * Request parameters for importFile operation in AssetApi.
  8353. * @export
  8354. * @interface AssetApiImportFileRequest
  8355. */
  8356. export interface AssetApiImportFileRequest {
  8357. /**
  8358. *
  8359. * @type {ImportAssetDto}
  8360. * @memberof AssetApiImportFile
  8361. */
  8362. readonly importAssetDto: ImportAssetDto
  8363. }
  8364. /**
  8365. * Request parameters for restoreAssets operation in AssetApi.
  8366. * @export
  8367. * @interface AssetApiRestoreAssetsRequest
  8368. */
  8369. export interface AssetApiRestoreAssetsRequest {
  8370. /**
  8371. *
  8372. * @type {BulkIdsDto}
  8373. * @memberof AssetApiRestoreAssets
  8374. */
  8375. readonly bulkIdsDto: BulkIdsDto
  8376. }
  8377. /**
  8378. * Request parameters for runAssetJobs operation in AssetApi.
  8379. * @export
  8380. * @interface AssetApiRunAssetJobsRequest
  8381. */
  8382. export interface AssetApiRunAssetJobsRequest {
  8383. /**
  8384. *
  8385. * @type {AssetJobsDto}
  8386. * @memberof AssetApiRunAssetJobs
  8387. */
  8388. readonly assetJobsDto: AssetJobsDto
  8389. }
  8390. /**
  8391. * Request parameters for searchAsset operation in AssetApi.
  8392. * @export
  8393. * @interface AssetApiSearchAssetRequest
  8394. */
  8395. export interface AssetApiSearchAssetRequest {
  8396. /**
  8397. *
  8398. * @type {SearchAssetDto}
  8399. * @memberof AssetApiSearchAsset
  8400. */
  8401. readonly searchAssetDto: SearchAssetDto
  8402. }
  8403. /**
  8404. * Request parameters for serveFile operation in AssetApi.
  8405. * @export
  8406. * @interface AssetApiServeFileRequest
  8407. */
  8408. export interface AssetApiServeFileRequest {
  8409. /**
  8410. *
  8411. * @type {string}
  8412. * @memberof AssetApiServeFile
  8413. */
  8414. readonly id: string
  8415. /**
  8416. *
  8417. * @type {boolean}
  8418. * @memberof AssetApiServeFile
  8419. */
  8420. readonly isThumb?: boolean
  8421. /**
  8422. *
  8423. * @type {boolean}
  8424. * @memberof AssetApiServeFile
  8425. */
  8426. readonly isWeb?: boolean
  8427. /**
  8428. *
  8429. * @type {string}
  8430. * @memberof AssetApiServeFile
  8431. */
  8432. readonly key?: string
  8433. }
  8434. /**
  8435. * Request parameters for updateAsset operation in AssetApi.
  8436. * @export
  8437. * @interface AssetApiUpdateAssetRequest
  8438. */
  8439. export interface AssetApiUpdateAssetRequest {
  8440. /**
  8441. *
  8442. * @type {string}
  8443. * @memberof AssetApiUpdateAsset
  8444. */
  8445. readonly id: string
  8446. /**
  8447. *
  8448. * @type {UpdateAssetDto}
  8449. * @memberof AssetApiUpdateAsset
  8450. */
  8451. readonly updateAssetDto: UpdateAssetDto
  8452. }
  8453. /**
  8454. * Request parameters for updateAssets operation in AssetApi.
  8455. * @export
  8456. * @interface AssetApiUpdateAssetsRequest
  8457. */
  8458. export interface AssetApiUpdateAssetsRequest {
  8459. /**
  8460. *
  8461. * @type {AssetBulkUpdateDto}
  8462. * @memberof AssetApiUpdateAssets
  8463. */
  8464. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  8465. }
  8466. /**
  8467. * Request parameters for updateStackParent operation in AssetApi.
  8468. * @export
  8469. * @interface AssetApiUpdateStackParentRequest
  8470. */
  8471. export interface AssetApiUpdateStackParentRequest {
  8472. /**
  8473. *
  8474. * @type {UpdateStackParentDto}
  8475. * @memberof AssetApiUpdateStackParent
  8476. */
  8477. readonly updateStackParentDto: UpdateStackParentDto
  8478. }
  8479. /**
  8480. * Request parameters for uploadFile operation in AssetApi.
  8481. * @export
  8482. * @interface AssetApiUploadFileRequest
  8483. */
  8484. export interface AssetApiUploadFileRequest {
  8485. /**
  8486. *
  8487. * @type {File}
  8488. * @memberof AssetApiUploadFile
  8489. */
  8490. readonly assetData: File
  8491. /**
  8492. *
  8493. * @type {string}
  8494. * @memberof AssetApiUploadFile
  8495. */
  8496. readonly deviceAssetId: string
  8497. /**
  8498. *
  8499. * @type {string}
  8500. * @memberof AssetApiUploadFile
  8501. */
  8502. readonly deviceId: string
  8503. /**
  8504. *
  8505. * @type {string}
  8506. * @memberof AssetApiUploadFile
  8507. */
  8508. readonly fileCreatedAt: string
  8509. /**
  8510. *
  8511. * @type {string}
  8512. * @memberof AssetApiUploadFile
  8513. */
  8514. readonly fileModifiedAt: string
  8515. /**
  8516. *
  8517. * @type {string}
  8518. * @memberof AssetApiUploadFile
  8519. */
  8520. readonly key?: string
  8521. /**
  8522. *
  8523. * @type {string}
  8524. * @memberof AssetApiUploadFile
  8525. */
  8526. readonly duration?: string
  8527. /**
  8528. *
  8529. * @type {boolean}
  8530. * @memberof AssetApiUploadFile
  8531. */
  8532. readonly isArchived?: boolean
  8533. /**
  8534. *
  8535. * @type {boolean}
  8536. * @memberof AssetApiUploadFile
  8537. */
  8538. readonly isExternal?: boolean
  8539. /**
  8540. *
  8541. * @type {boolean}
  8542. * @memberof AssetApiUploadFile
  8543. */
  8544. readonly isFavorite?: boolean
  8545. /**
  8546. *
  8547. * @type {boolean}
  8548. * @memberof AssetApiUploadFile
  8549. */
  8550. readonly isOffline?: boolean
  8551. /**
  8552. *
  8553. * @type {boolean}
  8554. * @memberof AssetApiUploadFile
  8555. */
  8556. readonly isReadOnly?: boolean
  8557. /**
  8558. *
  8559. * @type {boolean}
  8560. * @memberof AssetApiUploadFile
  8561. */
  8562. readonly isVisible?: boolean
  8563. /**
  8564. *
  8565. * @type {string}
  8566. * @memberof AssetApiUploadFile
  8567. */
  8568. readonly libraryId?: string
  8569. /**
  8570. *
  8571. * @type {File}
  8572. * @memberof AssetApiUploadFile
  8573. */
  8574. readonly livePhotoData?: File
  8575. /**
  8576. *
  8577. * @type {File}
  8578. * @memberof AssetApiUploadFile
  8579. */
  8580. readonly sidecarData?: File
  8581. }
  8582. /**
  8583. * AssetApi - object-oriented interface
  8584. * @export
  8585. * @class AssetApi
  8586. * @extends {BaseAPI}
  8587. */
  8588. export class AssetApi extends BaseAPI {
  8589. /**
  8590. * Checks if assets exist by checksums
  8591. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  8592. * @param {*} [options] Override http request option.
  8593. * @throws {RequiredError}
  8594. * @memberof AssetApi
  8595. */
  8596. public checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig) {
  8597. return AssetApiFp(this.configuration).checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  8598. }
  8599. /**
  8600. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  8601. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  8602. * @param {*} [options] Override http request option.
  8603. * @throws {RequiredError}
  8604. * @memberof AssetApi
  8605. */
  8606. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  8607. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  8608. }
  8609. /**
  8610. *
  8611. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  8612. * @param {*} [options] Override http request option.
  8613. * @throws {RequiredError}
  8614. * @memberof AssetApi
  8615. */
  8616. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  8617. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  8618. }
  8619. /**
  8620. *
  8621. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  8622. * @param {*} [options] Override http request option.
  8623. * @throws {RequiredError}
  8624. * @memberof AssetApi
  8625. */
  8626. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  8627. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8628. }
  8629. /**
  8630. *
  8631. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  8632. * @param {*} [options] Override http request option.
  8633. * @throws {RequiredError}
  8634. * @memberof AssetApi
  8635. */
  8636. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  8637. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8638. }
  8639. /**
  8640. *
  8641. * @param {*} [options] Override http request option.
  8642. * @throws {RequiredError}
  8643. * @memberof AssetApi
  8644. */
  8645. public emptyTrash(options?: AxiosRequestConfig) {
  8646. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  8647. }
  8648. /**
  8649. * Get all AssetEntity belong to the user
  8650. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  8651. * @param {*} [options] Override http request option.
  8652. * @throws {RequiredError}
  8653. * @memberof AssetApi
  8654. */
  8655. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  8656. return AssetApiFp(this.configuration).getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  8657. }
  8658. /**
  8659. * Get a single asset\'s information
  8660. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8661. * @param {*} [options] Override http request option.
  8662. * @throws {RequiredError}
  8663. * @memberof AssetApi
  8664. */
  8665. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  8666. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8667. }
  8668. /**
  8669. *
  8670. * @param {*} [options] Override http request option.
  8671. * @throws {RequiredError}
  8672. * @memberof AssetApi
  8673. */
  8674. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  8675. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  8676. }
  8677. /**
  8678. *
  8679. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  8680. * @param {*} [options] Override http request option.
  8681. * @throws {RequiredError}
  8682. * @memberof AssetApi
  8683. */
  8684. public getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig) {
  8685. return AssetApiFp(this.configuration).getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  8686. }
  8687. /**
  8688. *
  8689. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8690. * @param {*} [options] Override http request option.
  8691. * @throws {RequiredError}
  8692. * @memberof AssetApi
  8693. */
  8694. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  8695. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8696. }
  8697. /**
  8698. *
  8699. * @param {*} [options] Override http request option.
  8700. * @throws {RequiredError}
  8701. * @memberof AssetApi
  8702. */
  8703. public getCuratedLocations(options?: AxiosRequestConfig) {
  8704. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  8705. }
  8706. /**
  8707. *
  8708. * @param {*} [options] Override http request option.
  8709. * @throws {RequiredError}
  8710. * @memberof AssetApi
  8711. */
  8712. public getCuratedObjects(options?: AxiosRequestConfig) {
  8713. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  8714. }
  8715. /**
  8716. *
  8717. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8718. * @param {*} [options] Override http request option.
  8719. * @throws {RequiredError}
  8720. * @memberof AssetApi
  8721. */
  8722. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  8723. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8724. }
  8725. /**
  8726. *
  8727. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8728. * @param {*} [options] Override http request option.
  8729. * @throws {RequiredError}
  8730. * @memberof AssetApi
  8731. */
  8732. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  8733. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  8734. }
  8735. /**
  8736. *
  8737. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8738. * @param {*} [options] Override http request option.
  8739. * @throws {RequiredError}
  8740. * @memberof AssetApi
  8741. */
  8742. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  8743. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  8744. }
  8745. /**
  8746. *
  8747. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8748. * @param {*} [options] Override http request option.
  8749. * @throws {RequiredError}
  8750. * @memberof AssetApi
  8751. */
  8752. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  8753. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  8754. }
  8755. /**
  8756. *
  8757. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  8758. * @param {*} [options] Override http request option.
  8759. * @throws {RequiredError}
  8760. * @memberof AssetApi
  8761. */
  8762. public getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig) {
  8763. return AssetApiFp(this.configuration).getTimeBucket(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));
  8764. }
  8765. /**
  8766. *
  8767. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8768. * @param {*} [options] Override http request option.
  8769. * @throws {RequiredError}
  8770. * @memberof AssetApi
  8771. */
  8772. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  8773. 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));
  8774. }
  8775. /**
  8776. * Get all asset of a device that are in the database, ID only.
  8777. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8778. * @param {*} [options] Override http request option.
  8779. * @throws {RequiredError}
  8780. * @memberof AssetApi
  8781. */
  8782. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  8783. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  8784. }
  8785. /**
  8786. *
  8787. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  8788. * @param {*} [options] Override http request option.
  8789. * @throws {RequiredError}
  8790. * @memberof AssetApi
  8791. */
  8792. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  8793. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8794. }
  8795. /**
  8796. *
  8797. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8798. * @param {*} [options] Override http request option.
  8799. * @throws {RequiredError}
  8800. * @memberof AssetApi
  8801. */
  8802. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8803. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8804. }
  8805. /**
  8806. *
  8807. * @param {*} [options] Override http request option.
  8808. * @throws {RequiredError}
  8809. * @memberof AssetApi
  8810. */
  8811. public restoreTrash(options?: AxiosRequestConfig) {
  8812. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8813. }
  8814. /**
  8815. *
  8816. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8817. * @param {*} [options] Override http request option.
  8818. * @throws {RequiredError}
  8819. * @memberof AssetApi
  8820. */
  8821. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8822. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8823. }
  8824. /**
  8825. *
  8826. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8827. * @param {*} [options] Override http request option.
  8828. * @throws {RequiredError}
  8829. * @memberof AssetApi
  8830. */
  8831. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8832. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8833. }
  8834. /**
  8835. *
  8836. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8837. * @param {*} [options] Override http request option.
  8838. * @throws {RequiredError}
  8839. * @memberof AssetApi
  8840. */
  8841. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8842. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8843. }
  8844. /**
  8845. *
  8846. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8847. * @param {*} [options] Override http request option.
  8848. * @throws {RequiredError}
  8849. * @memberof AssetApi
  8850. */
  8851. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  8852. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  8853. }
  8854. /**
  8855. *
  8856. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8857. * @param {*} [options] Override http request option.
  8858. * @throws {RequiredError}
  8859. * @memberof AssetApi
  8860. */
  8861. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  8862. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8863. }
  8864. /**
  8865. *
  8866. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8867. * @param {*} [options] Override http request option.
  8868. * @throws {RequiredError}
  8869. * @memberof AssetApi
  8870. */
  8871. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  8872. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  8873. }
  8874. /**
  8875. *
  8876. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8877. * @param {*} [options] Override http request option.
  8878. * @throws {RequiredError}
  8879. * @memberof AssetApi
  8880. */
  8881. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  8882. return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
  8883. }
  8884. }
  8885. /**
  8886. * AuditApi - axios parameter creator
  8887. * @export
  8888. */
  8889. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  8890. return {
  8891. /**
  8892. *
  8893. * @param {FileReportFixDto} fileReportFixDto
  8894. * @param {*} [options] Override http request option.
  8895. * @throws {RequiredError}
  8896. */
  8897. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8898. // verify required parameter 'fileReportFixDto' is not null or undefined
  8899. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  8900. const localVarPath = `/audit/file-report/fix`;
  8901. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8902. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8903. let baseOptions;
  8904. if (configuration) {
  8905. baseOptions = configuration.baseOptions;
  8906. }
  8907. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8908. const localVarHeaderParameter = {} as any;
  8909. const localVarQueryParameter = {} as any;
  8910. // authentication cookie required
  8911. // authentication api_key required
  8912. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8913. // authentication bearer required
  8914. // http bearer authentication required
  8915. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8916. localVarHeaderParameter['Content-Type'] = 'application/json';
  8917. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8918. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8919. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8920. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  8921. return {
  8922. url: toPathString(localVarUrlObj),
  8923. options: localVarRequestOptions,
  8924. };
  8925. },
  8926. /**
  8927. *
  8928. * @param {EntityType} entityType
  8929. * @param {string} after
  8930. * @param {string} [userId]
  8931. * @param {*} [options] Override http request option.
  8932. * @throws {RequiredError}
  8933. */
  8934. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8935. // verify required parameter 'entityType' is not null or undefined
  8936. assertParamExists('getAuditDeletes', 'entityType', entityType)
  8937. // verify required parameter 'after' is not null or undefined
  8938. assertParamExists('getAuditDeletes', 'after', after)
  8939. const localVarPath = `/audit/deletes`;
  8940. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8941. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8942. let baseOptions;
  8943. if (configuration) {
  8944. baseOptions = configuration.baseOptions;
  8945. }
  8946. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8947. const localVarHeaderParameter = {} as any;
  8948. const localVarQueryParameter = {} as any;
  8949. // authentication cookie required
  8950. // authentication api_key required
  8951. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8952. // authentication bearer required
  8953. // http bearer authentication required
  8954. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8955. if (entityType !== undefined) {
  8956. localVarQueryParameter['entityType'] = entityType;
  8957. }
  8958. if (userId !== undefined) {
  8959. localVarQueryParameter['userId'] = userId;
  8960. }
  8961. if (after !== undefined) {
  8962. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  8963. (after as any).toISOString() :
  8964. after;
  8965. }
  8966. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8967. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8968. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8969. return {
  8970. url: toPathString(localVarUrlObj),
  8971. options: localVarRequestOptions,
  8972. };
  8973. },
  8974. /**
  8975. *
  8976. * @param {*} [options] Override http request option.
  8977. * @throws {RequiredError}
  8978. */
  8979. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8980. const localVarPath = `/audit/file-report`;
  8981. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8982. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8983. let baseOptions;
  8984. if (configuration) {
  8985. baseOptions = configuration.baseOptions;
  8986. }
  8987. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8988. const localVarHeaderParameter = {} as any;
  8989. const localVarQueryParameter = {} as any;
  8990. // authentication cookie required
  8991. // authentication api_key required
  8992. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8993. // authentication bearer required
  8994. // http bearer authentication required
  8995. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8996. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8997. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8998. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8999. return {
  9000. url: toPathString(localVarUrlObj),
  9001. options: localVarRequestOptions,
  9002. };
  9003. },
  9004. /**
  9005. *
  9006. * @param {FileChecksumDto} fileChecksumDto
  9007. * @param {*} [options] Override http request option.
  9008. * @throws {RequiredError}
  9009. */
  9010. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9011. // verify required parameter 'fileChecksumDto' is not null or undefined
  9012. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  9013. const localVarPath = `/audit/file-report/checksum`;
  9014. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9015. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9016. let baseOptions;
  9017. if (configuration) {
  9018. baseOptions = configuration.baseOptions;
  9019. }
  9020. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9021. const localVarHeaderParameter = {} as any;
  9022. const localVarQueryParameter = {} as any;
  9023. // authentication cookie required
  9024. // authentication api_key required
  9025. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9026. // authentication bearer required
  9027. // http bearer authentication required
  9028. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9029. localVarHeaderParameter['Content-Type'] = 'application/json';
  9030. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9031. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9032. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9033. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  9034. return {
  9035. url: toPathString(localVarUrlObj),
  9036. options: localVarRequestOptions,
  9037. };
  9038. },
  9039. }
  9040. };
  9041. /**
  9042. * AuditApi - functional programming interface
  9043. * @export
  9044. */
  9045. export const AuditApiFp = function(configuration?: Configuration) {
  9046. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  9047. return {
  9048. /**
  9049. *
  9050. * @param {FileReportFixDto} fileReportFixDto
  9051. * @param {*} [options] Override http request option.
  9052. * @throws {RequiredError}
  9053. */
  9054. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9055. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  9056. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9057. },
  9058. /**
  9059. *
  9060. * @param {EntityType} entityType
  9061. * @param {string} after
  9062. * @param {string} [userId]
  9063. * @param {*} [options] Override http request option.
  9064. * @throws {RequiredError}
  9065. */
  9066. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  9067. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  9068. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9069. },
  9070. /**
  9071. *
  9072. * @param {*} [options] Override http request option.
  9073. * @throws {RequiredError}
  9074. */
  9075. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  9076. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  9077. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9078. },
  9079. /**
  9080. *
  9081. * @param {FileChecksumDto} fileChecksumDto
  9082. * @param {*} [options] Override http request option.
  9083. * @throws {RequiredError}
  9084. */
  9085. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  9086. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  9087. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9088. },
  9089. }
  9090. };
  9091. /**
  9092. * AuditApi - factory interface
  9093. * @export
  9094. */
  9095. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9096. const localVarFp = AuditApiFp(configuration)
  9097. return {
  9098. /**
  9099. *
  9100. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9101. * @param {*} [options] Override http request option.
  9102. * @throws {RequiredError}
  9103. */
  9104. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9105. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  9106. },
  9107. /**
  9108. *
  9109. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9110. * @param {*} [options] Override http request option.
  9111. * @throws {RequiredError}
  9112. */
  9113. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  9114. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  9115. },
  9116. /**
  9117. *
  9118. * @param {*} [options] Override http request option.
  9119. * @throws {RequiredError}
  9120. */
  9121. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  9122. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  9123. },
  9124. /**
  9125. *
  9126. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9127. * @param {*} [options] Override http request option.
  9128. * @throws {RequiredError}
  9129. */
  9130. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  9131. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  9132. },
  9133. };
  9134. };
  9135. /**
  9136. * Request parameters for fixAuditFiles operation in AuditApi.
  9137. * @export
  9138. * @interface AuditApiFixAuditFilesRequest
  9139. */
  9140. export interface AuditApiFixAuditFilesRequest {
  9141. /**
  9142. *
  9143. * @type {FileReportFixDto}
  9144. * @memberof AuditApiFixAuditFiles
  9145. */
  9146. readonly fileReportFixDto: FileReportFixDto
  9147. }
  9148. /**
  9149. * Request parameters for getAuditDeletes operation in AuditApi.
  9150. * @export
  9151. * @interface AuditApiGetAuditDeletesRequest
  9152. */
  9153. export interface AuditApiGetAuditDeletesRequest {
  9154. /**
  9155. *
  9156. * @type {EntityType}
  9157. * @memberof AuditApiGetAuditDeletes
  9158. */
  9159. readonly entityType: EntityType
  9160. /**
  9161. *
  9162. * @type {string}
  9163. * @memberof AuditApiGetAuditDeletes
  9164. */
  9165. readonly after: string
  9166. /**
  9167. *
  9168. * @type {string}
  9169. * @memberof AuditApiGetAuditDeletes
  9170. */
  9171. readonly userId?: string
  9172. }
  9173. /**
  9174. * Request parameters for getFileChecksums operation in AuditApi.
  9175. * @export
  9176. * @interface AuditApiGetFileChecksumsRequest
  9177. */
  9178. export interface AuditApiGetFileChecksumsRequest {
  9179. /**
  9180. *
  9181. * @type {FileChecksumDto}
  9182. * @memberof AuditApiGetFileChecksums
  9183. */
  9184. readonly fileChecksumDto: FileChecksumDto
  9185. }
  9186. /**
  9187. * AuditApi - object-oriented interface
  9188. * @export
  9189. * @class AuditApi
  9190. * @extends {BaseAPI}
  9191. */
  9192. export class AuditApi extends BaseAPI {
  9193. /**
  9194. *
  9195. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9196. * @param {*} [options] Override http request option.
  9197. * @throws {RequiredError}
  9198. * @memberof AuditApi
  9199. */
  9200. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  9201. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  9202. }
  9203. /**
  9204. *
  9205. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9206. * @param {*} [options] Override http request option.
  9207. * @throws {RequiredError}
  9208. * @memberof AuditApi
  9209. */
  9210. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  9211. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  9212. }
  9213. /**
  9214. *
  9215. * @param {*} [options] Override http request option.
  9216. * @throws {RequiredError}
  9217. * @memberof AuditApi
  9218. */
  9219. public getAuditFiles(options?: AxiosRequestConfig) {
  9220. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  9221. }
  9222. /**
  9223. *
  9224. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9225. * @param {*} [options] Override http request option.
  9226. * @throws {RequiredError}
  9227. * @memberof AuditApi
  9228. */
  9229. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  9230. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  9231. }
  9232. }
  9233. /**
  9234. * AuthenticationApi - axios parameter creator
  9235. * @export
  9236. */
  9237. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  9238. return {
  9239. /**
  9240. *
  9241. * @param {ChangePasswordDto} changePasswordDto
  9242. * @param {*} [options] Override http request option.
  9243. * @throws {RequiredError}
  9244. */
  9245. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9246. // verify required parameter 'changePasswordDto' is not null or undefined
  9247. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  9248. const localVarPath = `/auth/change-password`;
  9249. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9250. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9251. let baseOptions;
  9252. if (configuration) {
  9253. baseOptions = configuration.baseOptions;
  9254. }
  9255. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9256. const localVarHeaderParameter = {} as any;
  9257. const localVarQueryParameter = {} as any;
  9258. // authentication cookie required
  9259. // authentication api_key required
  9260. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9261. // authentication bearer required
  9262. // http bearer authentication required
  9263. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9264. localVarHeaderParameter['Content-Type'] = 'application/json';
  9265. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9266. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9267. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9268. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  9269. return {
  9270. url: toPathString(localVarUrlObj),
  9271. options: localVarRequestOptions,
  9272. };
  9273. },
  9274. /**
  9275. *
  9276. * @param {*} [options] Override http request option.
  9277. * @throws {RequiredError}
  9278. */
  9279. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9280. const localVarPath = `/auth/devices`;
  9281. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9282. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9283. let baseOptions;
  9284. if (configuration) {
  9285. baseOptions = configuration.baseOptions;
  9286. }
  9287. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9288. const localVarHeaderParameter = {} as any;
  9289. const localVarQueryParameter = {} as any;
  9290. // authentication cookie required
  9291. // authentication api_key required
  9292. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9293. // authentication bearer required
  9294. // http bearer authentication required
  9295. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9296. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9297. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9298. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9299. return {
  9300. url: toPathString(localVarUrlObj),
  9301. options: localVarRequestOptions,
  9302. };
  9303. },
  9304. /**
  9305. *
  9306. * @param {LoginCredentialDto} loginCredentialDto
  9307. * @param {*} [options] Override http request option.
  9308. * @throws {RequiredError}
  9309. */
  9310. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9311. // verify required parameter 'loginCredentialDto' is not null or undefined
  9312. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  9313. const localVarPath = `/auth/login`;
  9314. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9315. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9316. let baseOptions;
  9317. if (configuration) {
  9318. baseOptions = configuration.baseOptions;
  9319. }
  9320. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9321. const localVarHeaderParameter = {} as any;
  9322. const localVarQueryParameter = {} as any;
  9323. localVarHeaderParameter['Content-Type'] = 'application/json';
  9324. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9325. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9326. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9327. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  9328. return {
  9329. url: toPathString(localVarUrlObj),
  9330. options: localVarRequestOptions,
  9331. };
  9332. },
  9333. /**
  9334. *
  9335. * @param {*} [options] Override http request option.
  9336. * @throws {RequiredError}
  9337. */
  9338. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9339. const localVarPath = `/auth/logout`;
  9340. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9341. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9342. let baseOptions;
  9343. if (configuration) {
  9344. baseOptions = configuration.baseOptions;
  9345. }
  9346. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9347. const localVarHeaderParameter = {} as any;
  9348. const localVarQueryParameter = {} as any;
  9349. // authentication cookie required
  9350. // authentication api_key required
  9351. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9352. // authentication bearer required
  9353. // http bearer authentication required
  9354. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9355. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9356. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9357. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9358. return {
  9359. url: toPathString(localVarUrlObj),
  9360. options: localVarRequestOptions,
  9361. };
  9362. },
  9363. /**
  9364. *
  9365. * @param {string} id
  9366. * @param {*} [options] Override http request option.
  9367. * @throws {RequiredError}
  9368. */
  9369. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9370. // verify required parameter 'id' is not null or undefined
  9371. assertParamExists('logoutAuthDevice', 'id', id)
  9372. const localVarPath = `/auth/devices/{id}`
  9373. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9374. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9375. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9376. let baseOptions;
  9377. if (configuration) {
  9378. baseOptions = configuration.baseOptions;
  9379. }
  9380. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9381. const localVarHeaderParameter = {} as any;
  9382. const localVarQueryParameter = {} as any;
  9383. // authentication cookie required
  9384. // authentication api_key required
  9385. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9386. // authentication bearer required
  9387. // http bearer authentication required
  9388. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9389. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9390. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9391. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9392. return {
  9393. url: toPathString(localVarUrlObj),
  9394. options: localVarRequestOptions,
  9395. };
  9396. },
  9397. /**
  9398. *
  9399. * @param {*} [options] Override http request option.
  9400. * @throws {RequiredError}
  9401. */
  9402. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9403. const localVarPath = `/auth/devices`;
  9404. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9405. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9406. let baseOptions;
  9407. if (configuration) {
  9408. baseOptions = configuration.baseOptions;
  9409. }
  9410. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9411. const localVarHeaderParameter = {} as any;
  9412. const localVarQueryParameter = {} as any;
  9413. // authentication cookie required
  9414. // authentication api_key required
  9415. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9416. // authentication bearer required
  9417. // http bearer authentication required
  9418. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9419. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9420. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9421. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9422. return {
  9423. url: toPathString(localVarUrlObj),
  9424. options: localVarRequestOptions,
  9425. };
  9426. },
  9427. /**
  9428. *
  9429. * @param {SignUpDto} signUpDto
  9430. * @param {*} [options] Override http request option.
  9431. * @throws {RequiredError}
  9432. */
  9433. signUpAdmin: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9434. // verify required parameter 'signUpDto' is not null or undefined
  9435. assertParamExists('signUpAdmin', 'signUpDto', signUpDto)
  9436. const localVarPath = `/auth/admin-sign-up`;
  9437. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9438. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9439. let baseOptions;
  9440. if (configuration) {
  9441. baseOptions = configuration.baseOptions;
  9442. }
  9443. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9444. const localVarHeaderParameter = {} as any;
  9445. const localVarQueryParameter = {} as any;
  9446. localVarHeaderParameter['Content-Type'] = 'application/json';
  9447. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9448. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9449. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9450. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  9451. return {
  9452. url: toPathString(localVarUrlObj),
  9453. options: localVarRequestOptions,
  9454. };
  9455. },
  9456. /**
  9457. *
  9458. * @param {*} [options] Override http request option.
  9459. * @throws {RequiredError}
  9460. */
  9461. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9462. const localVarPath = `/auth/validateToken`;
  9463. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9464. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9465. let baseOptions;
  9466. if (configuration) {
  9467. baseOptions = configuration.baseOptions;
  9468. }
  9469. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9470. const localVarHeaderParameter = {} as any;
  9471. const localVarQueryParameter = {} as any;
  9472. // authentication cookie required
  9473. // authentication api_key required
  9474. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9475. // authentication bearer required
  9476. // http bearer authentication required
  9477. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9478. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9479. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9480. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9481. return {
  9482. url: toPathString(localVarUrlObj),
  9483. options: localVarRequestOptions,
  9484. };
  9485. },
  9486. }
  9487. };
  9488. /**
  9489. * AuthenticationApi - functional programming interface
  9490. * @export
  9491. */
  9492. export const AuthenticationApiFp = function(configuration?: Configuration) {
  9493. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  9494. return {
  9495. /**
  9496. *
  9497. * @param {ChangePasswordDto} changePasswordDto
  9498. * @param {*} [options] Override http request option.
  9499. * @throws {RequiredError}
  9500. */
  9501. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9502. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  9503. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9504. },
  9505. /**
  9506. *
  9507. * @param {*} [options] Override http request option.
  9508. * @throws {RequiredError}
  9509. */
  9510. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  9511. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  9512. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9513. },
  9514. /**
  9515. *
  9516. * @param {LoginCredentialDto} loginCredentialDto
  9517. * @param {*} [options] Override http request option.
  9518. * @throws {RequiredError}
  9519. */
  9520. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  9521. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  9522. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9523. },
  9524. /**
  9525. *
  9526. * @param {*} [options] Override http request option.
  9527. * @throws {RequiredError}
  9528. */
  9529. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  9530. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  9531. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9532. },
  9533. /**
  9534. *
  9535. * @param {string} id
  9536. * @param {*} [options] Override http request option.
  9537. * @throws {RequiredError}
  9538. */
  9539. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9540. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  9541. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9542. },
  9543. /**
  9544. *
  9545. * @param {*} [options] Override http request option.
  9546. * @throws {RequiredError}
  9547. */
  9548. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9549. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  9550. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9551. },
  9552. /**
  9553. *
  9554. * @param {SignUpDto} signUpDto
  9555. * @param {*} [options] Override http request option.
  9556. * @throws {RequiredError}
  9557. */
  9558. async signUpAdmin(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9559. const localVarAxiosArgs = await localVarAxiosParamCreator.signUpAdmin(signUpDto, options);
  9560. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9561. },
  9562. /**
  9563. *
  9564. * @param {*} [options] Override http request option.
  9565. * @throws {RequiredError}
  9566. */
  9567. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  9568. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  9569. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9570. },
  9571. }
  9572. };
  9573. /**
  9574. * AuthenticationApi - factory interface
  9575. * @export
  9576. */
  9577. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9578. const localVarFp = AuthenticationApiFp(configuration)
  9579. return {
  9580. /**
  9581. *
  9582. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9583. * @param {*} [options] Override http request option.
  9584. * @throws {RequiredError}
  9585. */
  9586. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9587. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  9588. },
  9589. /**
  9590. *
  9591. * @param {*} [options] Override http request option.
  9592. * @throws {RequiredError}
  9593. */
  9594. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  9595. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  9596. },
  9597. /**
  9598. *
  9599. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9600. * @param {*} [options] Override http request option.
  9601. * @throws {RequiredError}
  9602. */
  9603. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9604. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  9605. },
  9606. /**
  9607. *
  9608. * @param {*} [options] Override http request option.
  9609. * @throws {RequiredError}
  9610. */
  9611. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  9612. return localVarFp.logout(options).then((request) => request(axios, basePath));
  9613. },
  9614. /**
  9615. *
  9616. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9617. * @param {*} [options] Override http request option.
  9618. * @throws {RequiredError}
  9619. */
  9620. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9621. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  9622. },
  9623. /**
  9624. *
  9625. * @param {*} [options] Override http request option.
  9626. * @throws {RequiredError}
  9627. */
  9628. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  9629. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  9630. },
  9631. /**
  9632. *
  9633. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  9634. * @param {*} [options] Override http request option.
  9635. * @throws {RequiredError}
  9636. */
  9637. signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9638. return localVarFp.signUpAdmin(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  9639. },
  9640. /**
  9641. *
  9642. * @param {*} [options] Override http request option.
  9643. * @throws {RequiredError}
  9644. */
  9645. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  9646. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  9647. },
  9648. };
  9649. };
  9650. /**
  9651. * Request parameters for changePassword operation in AuthenticationApi.
  9652. * @export
  9653. * @interface AuthenticationApiChangePasswordRequest
  9654. */
  9655. export interface AuthenticationApiChangePasswordRequest {
  9656. /**
  9657. *
  9658. * @type {ChangePasswordDto}
  9659. * @memberof AuthenticationApiChangePassword
  9660. */
  9661. readonly changePasswordDto: ChangePasswordDto
  9662. }
  9663. /**
  9664. * Request parameters for login operation in AuthenticationApi.
  9665. * @export
  9666. * @interface AuthenticationApiLoginRequest
  9667. */
  9668. export interface AuthenticationApiLoginRequest {
  9669. /**
  9670. *
  9671. * @type {LoginCredentialDto}
  9672. * @memberof AuthenticationApiLogin
  9673. */
  9674. readonly loginCredentialDto: LoginCredentialDto
  9675. }
  9676. /**
  9677. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  9678. * @export
  9679. * @interface AuthenticationApiLogoutAuthDeviceRequest
  9680. */
  9681. export interface AuthenticationApiLogoutAuthDeviceRequest {
  9682. /**
  9683. *
  9684. * @type {string}
  9685. * @memberof AuthenticationApiLogoutAuthDevice
  9686. */
  9687. readonly id: string
  9688. }
  9689. /**
  9690. * Request parameters for signUpAdmin operation in AuthenticationApi.
  9691. * @export
  9692. * @interface AuthenticationApiSignUpAdminRequest
  9693. */
  9694. export interface AuthenticationApiSignUpAdminRequest {
  9695. /**
  9696. *
  9697. * @type {SignUpDto}
  9698. * @memberof AuthenticationApiSignUpAdmin
  9699. */
  9700. readonly signUpDto: SignUpDto
  9701. }
  9702. /**
  9703. * AuthenticationApi - object-oriented interface
  9704. * @export
  9705. * @class AuthenticationApi
  9706. * @extends {BaseAPI}
  9707. */
  9708. export class AuthenticationApi extends BaseAPI {
  9709. /**
  9710. *
  9711. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9712. * @param {*} [options] Override http request option.
  9713. * @throws {RequiredError}
  9714. * @memberof AuthenticationApi
  9715. */
  9716. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  9717. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  9718. }
  9719. /**
  9720. *
  9721. * @param {*} [options] Override http request option.
  9722. * @throws {RequiredError}
  9723. * @memberof AuthenticationApi
  9724. */
  9725. public getAuthDevices(options?: AxiosRequestConfig) {
  9726. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9727. }
  9728. /**
  9729. *
  9730. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9731. * @param {*} [options] Override http request option.
  9732. * @throws {RequiredError}
  9733. * @memberof AuthenticationApi
  9734. */
  9735. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  9736. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  9737. }
  9738. /**
  9739. *
  9740. * @param {*} [options] Override http request option.
  9741. * @throws {RequiredError}
  9742. * @memberof AuthenticationApi
  9743. */
  9744. public logout(options?: AxiosRequestConfig) {
  9745. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  9746. }
  9747. /**
  9748. *
  9749. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9750. * @param {*} [options] Override http request option.
  9751. * @throws {RequiredError}
  9752. * @memberof AuthenticationApi
  9753. */
  9754. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  9755. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9756. }
  9757. /**
  9758. *
  9759. * @param {*} [options] Override http request option.
  9760. * @throws {RequiredError}
  9761. * @memberof AuthenticationApi
  9762. */
  9763. public logoutAuthDevices(options?: AxiosRequestConfig) {
  9764. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9765. }
  9766. /**
  9767. *
  9768. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  9769. * @param {*} [options] Override http request option.
  9770. * @throws {RequiredError}
  9771. * @memberof AuthenticationApi
  9772. */
  9773. public signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig) {
  9774. return AuthenticationApiFp(this.configuration).signUpAdmin(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  9775. }
  9776. /**
  9777. *
  9778. * @param {*} [options] Override http request option.
  9779. * @throws {RequiredError}
  9780. * @memberof AuthenticationApi
  9781. */
  9782. public validateAccessToken(options?: AxiosRequestConfig) {
  9783. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  9784. }
  9785. }
  9786. /**
  9787. * JobApi - axios parameter creator
  9788. * @export
  9789. */
  9790. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  9791. return {
  9792. /**
  9793. *
  9794. * @param {*} [options] Override http request option.
  9795. * @throws {RequiredError}
  9796. */
  9797. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9798. const localVarPath = `/jobs`;
  9799. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9800. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9801. let baseOptions;
  9802. if (configuration) {
  9803. baseOptions = configuration.baseOptions;
  9804. }
  9805. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9806. const localVarHeaderParameter = {} as any;
  9807. const localVarQueryParameter = {} as any;
  9808. // authentication cookie required
  9809. // authentication api_key required
  9810. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9811. // authentication bearer required
  9812. // http bearer authentication required
  9813. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9814. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9815. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9816. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9817. return {
  9818. url: toPathString(localVarUrlObj),
  9819. options: localVarRequestOptions,
  9820. };
  9821. },
  9822. /**
  9823. *
  9824. * @param {JobName} id
  9825. * @param {JobCommandDto} jobCommandDto
  9826. * @param {*} [options] Override http request option.
  9827. * @throws {RequiredError}
  9828. */
  9829. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9830. // verify required parameter 'id' is not null or undefined
  9831. assertParamExists('sendJobCommand', 'id', id)
  9832. // verify required parameter 'jobCommandDto' is not null or undefined
  9833. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  9834. const localVarPath = `/jobs/{id}`
  9835. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9836. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9837. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9838. let baseOptions;
  9839. if (configuration) {
  9840. baseOptions = configuration.baseOptions;
  9841. }
  9842. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9843. const localVarHeaderParameter = {} as any;
  9844. const localVarQueryParameter = {} as any;
  9845. // authentication cookie required
  9846. // authentication api_key required
  9847. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9848. // authentication bearer required
  9849. // http bearer authentication required
  9850. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9851. localVarHeaderParameter['Content-Type'] = 'application/json';
  9852. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9853. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9854. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9855. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  9856. return {
  9857. url: toPathString(localVarUrlObj),
  9858. options: localVarRequestOptions,
  9859. };
  9860. },
  9861. }
  9862. };
  9863. /**
  9864. * JobApi - functional programming interface
  9865. * @export
  9866. */
  9867. export const JobApiFp = function(configuration?: Configuration) {
  9868. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  9869. return {
  9870. /**
  9871. *
  9872. * @param {*} [options] Override http request option.
  9873. * @throws {RequiredError}
  9874. */
  9875. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  9876. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  9877. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9878. },
  9879. /**
  9880. *
  9881. * @param {JobName} id
  9882. * @param {JobCommandDto} jobCommandDto
  9883. * @param {*} [options] Override http request option.
  9884. * @throws {RequiredError}
  9885. */
  9886. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  9887. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  9888. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9889. },
  9890. }
  9891. };
  9892. /**
  9893. * JobApi - factory interface
  9894. * @export
  9895. */
  9896. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9897. const localVarFp = JobApiFp(configuration)
  9898. return {
  9899. /**
  9900. *
  9901. * @param {*} [options] Override http request option.
  9902. * @throws {RequiredError}
  9903. */
  9904. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  9905. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  9906. },
  9907. /**
  9908. *
  9909. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9910. * @param {*} [options] Override http request option.
  9911. * @throws {RequiredError}
  9912. */
  9913. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  9914. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  9915. },
  9916. };
  9917. };
  9918. /**
  9919. * Request parameters for sendJobCommand operation in JobApi.
  9920. * @export
  9921. * @interface JobApiSendJobCommandRequest
  9922. */
  9923. export interface JobApiSendJobCommandRequest {
  9924. /**
  9925. *
  9926. * @type {JobName}
  9927. * @memberof JobApiSendJobCommand
  9928. */
  9929. readonly id: JobName
  9930. /**
  9931. *
  9932. * @type {JobCommandDto}
  9933. * @memberof JobApiSendJobCommand
  9934. */
  9935. readonly jobCommandDto: JobCommandDto
  9936. }
  9937. /**
  9938. * JobApi - object-oriented interface
  9939. * @export
  9940. * @class JobApi
  9941. * @extends {BaseAPI}
  9942. */
  9943. export class JobApi extends BaseAPI {
  9944. /**
  9945. *
  9946. * @param {*} [options] Override http request option.
  9947. * @throws {RequiredError}
  9948. * @memberof JobApi
  9949. */
  9950. public getAllJobsStatus(options?: AxiosRequestConfig) {
  9951. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  9952. }
  9953. /**
  9954. *
  9955. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9956. * @param {*} [options] Override http request option.
  9957. * @throws {RequiredError}
  9958. * @memberof JobApi
  9959. */
  9960. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  9961. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  9962. }
  9963. }
  9964. /**
  9965. * LibraryApi - axios parameter creator
  9966. * @export
  9967. */
  9968. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  9969. return {
  9970. /**
  9971. *
  9972. * @param {CreateLibraryDto} createLibraryDto
  9973. * @param {*} [options] Override http request option.
  9974. * @throws {RequiredError}
  9975. */
  9976. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9977. // verify required parameter 'createLibraryDto' is not null or undefined
  9978. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  9979. const localVarPath = `/library`;
  9980. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9981. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9982. let baseOptions;
  9983. if (configuration) {
  9984. baseOptions = configuration.baseOptions;
  9985. }
  9986. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9987. const localVarHeaderParameter = {} as any;
  9988. const localVarQueryParameter = {} as any;
  9989. // authentication cookie required
  9990. // authentication api_key required
  9991. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9992. // authentication bearer required
  9993. // http bearer authentication required
  9994. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9995. localVarHeaderParameter['Content-Type'] = 'application/json';
  9996. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9997. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9998. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9999. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  10000. return {
  10001. url: toPathString(localVarUrlObj),
  10002. options: localVarRequestOptions,
  10003. };
  10004. },
  10005. /**
  10006. *
  10007. * @param {string} id
  10008. * @param {*} [options] Override http request option.
  10009. * @throws {RequiredError}
  10010. */
  10011. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10012. // verify required parameter 'id' is not null or undefined
  10013. assertParamExists('deleteLibrary', 'id', id)
  10014. const localVarPath = `/library/{id}`
  10015. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10016. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10017. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10018. let baseOptions;
  10019. if (configuration) {
  10020. baseOptions = configuration.baseOptions;
  10021. }
  10022. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10023. const localVarHeaderParameter = {} as any;
  10024. const localVarQueryParameter = {} as any;
  10025. // authentication cookie required
  10026. // authentication api_key required
  10027. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10028. // authentication bearer required
  10029. // http bearer authentication required
  10030. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10031. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10032. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10033. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10034. return {
  10035. url: toPathString(localVarUrlObj),
  10036. options: localVarRequestOptions,
  10037. };
  10038. },
  10039. /**
  10040. *
  10041. * @param {*} [options] Override http request option.
  10042. * @throws {RequiredError}
  10043. */
  10044. getLibraries: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10045. const localVarPath = `/library`;
  10046. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10047. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10048. let baseOptions;
  10049. if (configuration) {
  10050. baseOptions = configuration.baseOptions;
  10051. }
  10052. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10053. const localVarHeaderParameter = {} as any;
  10054. const localVarQueryParameter = {} as any;
  10055. // authentication cookie required
  10056. // authentication api_key required
  10057. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10058. // authentication bearer required
  10059. // http bearer authentication required
  10060. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10061. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10062. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10063. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10064. return {
  10065. url: toPathString(localVarUrlObj),
  10066. options: localVarRequestOptions,
  10067. };
  10068. },
  10069. /**
  10070. *
  10071. * @param {string} id
  10072. * @param {*} [options] Override http request option.
  10073. * @throws {RequiredError}
  10074. */
  10075. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10076. // verify required parameter 'id' is not null or undefined
  10077. assertParamExists('getLibraryInfo', 'id', id)
  10078. const localVarPath = `/library/{id}`
  10079. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10080. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10081. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10082. let baseOptions;
  10083. if (configuration) {
  10084. baseOptions = configuration.baseOptions;
  10085. }
  10086. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10087. const localVarHeaderParameter = {} as any;
  10088. const localVarQueryParameter = {} as any;
  10089. // authentication cookie required
  10090. // authentication api_key required
  10091. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10092. // authentication bearer required
  10093. // http bearer authentication required
  10094. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10095. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10096. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10097. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10098. return {
  10099. url: toPathString(localVarUrlObj),
  10100. options: localVarRequestOptions,
  10101. };
  10102. },
  10103. /**
  10104. *
  10105. * @param {string} id
  10106. * @param {*} [options] Override http request option.
  10107. * @throws {RequiredError}
  10108. */
  10109. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10110. // verify required parameter 'id' is not null or undefined
  10111. assertParamExists('getLibraryStatistics', 'id', id)
  10112. const localVarPath = `/library/{id}/statistics`
  10113. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10114. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10115. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10116. let baseOptions;
  10117. if (configuration) {
  10118. baseOptions = configuration.baseOptions;
  10119. }
  10120. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10121. const localVarHeaderParameter = {} as any;
  10122. const localVarQueryParameter = {} as any;
  10123. // authentication cookie required
  10124. // authentication api_key required
  10125. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10126. // authentication bearer required
  10127. // http bearer authentication required
  10128. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10129. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10130. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10131. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10132. return {
  10133. url: toPathString(localVarUrlObj),
  10134. options: localVarRequestOptions,
  10135. };
  10136. },
  10137. /**
  10138. *
  10139. * @param {string} id
  10140. * @param {*} [options] Override http request option.
  10141. * @throws {RequiredError}
  10142. */
  10143. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10144. // verify required parameter 'id' is not null or undefined
  10145. assertParamExists('removeOfflineFiles', 'id', id)
  10146. const localVarPath = `/library/{id}/removeOffline`
  10147. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10148. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10149. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10150. let baseOptions;
  10151. if (configuration) {
  10152. baseOptions = configuration.baseOptions;
  10153. }
  10154. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10155. const localVarHeaderParameter = {} as any;
  10156. const localVarQueryParameter = {} as any;
  10157. // authentication cookie required
  10158. // authentication api_key required
  10159. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10160. // authentication bearer required
  10161. // http bearer authentication required
  10162. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10163. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10164. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10165. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10166. return {
  10167. url: toPathString(localVarUrlObj),
  10168. options: localVarRequestOptions,
  10169. };
  10170. },
  10171. /**
  10172. *
  10173. * @param {string} id
  10174. * @param {ScanLibraryDto} scanLibraryDto
  10175. * @param {*} [options] Override http request option.
  10176. * @throws {RequiredError}
  10177. */
  10178. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10179. // verify required parameter 'id' is not null or undefined
  10180. assertParamExists('scanLibrary', 'id', id)
  10181. // verify required parameter 'scanLibraryDto' is not null or undefined
  10182. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  10183. const localVarPath = `/library/{id}/scan`
  10184. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10185. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10186. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10187. let baseOptions;
  10188. if (configuration) {
  10189. baseOptions = configuration.baseOptions;
  10190. }
  10191. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10192. const localVarHeaderParameter = {} as any;
  10193. const localVarQueryParameter = {} as any;
  10194. // authentication cookie required
  10195. // authentication api_key required
  10196. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10197. // authentication bearer required
  10198. // http bearer authentication required
  10199. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10200. localVarHeaderParameter['Content-Type'] = 'application/json';
  10201. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10202. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10203. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10204. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  10205. return {
  10206. url: toPathString(localVarUrlObj),
  10207. options: localVarRequestOptions,
  10208. };
  10209. },
  10210. /**
  10211. *
  10212. * @param {string} id
  10213. * @param {UpdateLibraryDto} updateLibraryDto
  10214. * @param {*} [options] Override http request option.
  10215. * @throws {RequiredError}
  10216. */
  10217. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10218. // verify required parameter 'id' is not null or undefined
  10219. assertParamExists('updateLibrary', 'id', id)
  10220. // verify required parameter 'updateLibraryDto' is not null or undefined
  10221. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  10222. const localVarPath = `/library/{id}`
  10223. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10224. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10225. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10226. let baseOptions;
  10227. if (configuration) {
  10228. baseOptions = configuration.baseOptions;
  10229. }
  10230. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10231. const localVarHeaderParameter = {} as any;
  10232. const localVarQueryParameter = {} as any;
  10233. // authentication cookie required
  10234. // authentication api_key required
  10235. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10236. // authentication bearer required
  10237. // http bearer authentication required
  10238. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10239. localVarHeaderParameter['Content-Type'] = 'application/json';
  10240. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10241. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10242. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10243. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  10244. return {
  10245. url: toPathString(localVarUrlObj),
  10246. options: localVarRequestOptions,
  10247. };
  10248. },
  10249. }
  10250. };
  10251. /**
  10252. * LibraryApi - functional programming interface
  10253. * @export
  10254. */
  10255. export const LibraryApiFp = function(configuration?: Configuration) {
  10256. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  10257. return {
  10258. /**
  10259. *
  10260. * @param {CreateLibraryDto} createLibraryDto
  10261. * @param {*} [options] Override http request option.
  10262. * @throws {RequiredError}
  10263. */
  10264. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10265. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  10266. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10267. },
  10268. /**
  10269. *
  10270. * @param {string} id
  10271. * @param {*} [options] Override http request option.
  10272. * @throws {RequiredError}
  10273. */
  10274. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10275. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  10276. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10277. },
  10278. /**
  10279. *
  10280. * @param {*} [options] Override http request option.
  10281. * @throws {RequiredError}
  10282. */
  10283. async getLibraries(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  10284. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraries(options);
  10285. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10286. },
  10287. /**
  10288. *
  10289. * @param {string} id
  10290. * @param {*} [options] Override http request option.
  10291. * @throws {RequiredError}
  10292. */
  10293. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10294. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  10295. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10296. },
  10297. /**
  10298. *
  10299. * @param {string} id
  10300. * @param {*} [options] Override http request option.
  10301. * @throws {RequiredError}
  10302. */
  10303. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  10304. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  10305. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10306. },
  10307. /**
  10308. *
  10309. * @param {string} id
  10310. * @param {*} [options] Override http request option.
  10311. * @throws {RequiredError}
  10312. */
  10313. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10314. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  10315. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10316. },
  10317. /**
  10318. *
  10319. * @param {string} id
  10320. * @param {ScanLibraryDto} scanLibraryDto
  10321. * @param {*} [options] Override http request option.
  10322. * @throws {RequiredError}
  10323. */
  10324. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10325. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  10326. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10327. },
  10328. /**
  10329. *
  10330. * @param {string} id
  10331. * @param {UpdateLibraryDto} updateLibraryDto
  10332. * @param {*} [options] Override http request option.
  10333. * @throws {RequiredError}
  10334. */
  10335. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10336. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  10337. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10338. },
  10339. }
  10340. };
  10341. /**
  10342. * LibraryApi - factory interface
  10343. * @export
  10344. */
  10345. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10346. const localVarFp = LibraryApiFp(configuration)
  10347. return {
  10348. /**
  10349. *
  10350. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10351. * @param {*} [options] Override http request option.
  10352. * @throws {RequiredError}
  10353. */
  10354. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10355. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  10356. },
  10357. /**
  10358. *
  10359. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10360. * @param {*} [options] Override http request option.
  10361. * @throws {RequiredError}
  10362. */
  10363. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10364. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  10365. },
  10366. /**
  10367. *
  10368. * @param {*} [options] Override http request option.
  10369. * @throws {RequiredError}
  10370. */
  10371. getLibraries(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  10372. return localVarFp.getLibraries(options).then((request) => request(axios, basePath));
  10373. },
  10374. /**
  10375. *
  10376. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10377. * @param {*} [options] Override http request option.
  10378. * @throws {RequiredError}
  10379. */
  10380. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10381. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  10382. },
  10383. /**
  10384. *
  10385. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10386. * @param {*} [options] Override http request option.
  10387. * @throws {RequiredError}
  10388. */
  10389. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  10390. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  10391. },
  10392. /**
  10393. *
  10394. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10395. * @param {*} [options] Override http request option.
  10396. * @throws {RequiredError}
  10397. */
  10398. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10399. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  10400. },
  10401. /**
  10402. *
  10403. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10404. * @param {*} [options] Override http request option.
  10405. * @throws {RequiredError}
  10406. */
  10407. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10408. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  10409. },
  10410. /**
  10411. *
  10412. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10413. * @param {*} [options] Override http request option.
  10414. * @throws {RequiredError}
  10415. */
  10416. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10417. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  10418. },
  10419. };
  10420. };
  10421. /**
  10422. * Request parameters for createLibrary operation in LibraryApi.
  10423. * @export
  10424. * @interface LibraryApiCreateLibraryRequest
  10425. */
  10426. export interface LibraryApiCreateLibraryRequest {
  10427. /**
  10428. *
  10429. * @type {CreateLibraryDto}
  10430. * @memberof LibraryApiCreateLibrary
  10431. */
  10432. readonly createLibraryDto: CreateLibraryDto
  10433. }
  10434. /**
  10435. * Request parameters for deleteLibrary operation in LibraryApi.
  10436. * @export
  10437. * @interface LibraryApiDeleteLibraryRequest
  10438. */
  10439. export interface LibraryApiDeleteLibraryRequest {
  10440. /**
  10441. *
  10442. * @type {string}
  10443. * @memberof LibraryApiDeleteLibrary
  10444. */
  10445. readonly id: string
  10446. }
  10447. /**
  10448. * Request parameters for getLibraryInfo operation in LibraryApi.
  10449. * @export
  10450. * @interface LibraryApiGetLibraryInfoRequest
  10451. */
  10452. export interface LibraryApiGetLibraryInfoRequest {
  10453. /**
  10454. *
  10455. * @type {string}
  10456. * @memberof LibraryApiGetLibraryInfo
  10457. */
  10458. readonly id: string
  10459. }
  10460. /**
  10461. * Request parameters for getLibraryStatistics operation in LibraryApi.
  10462. * @export
  10463. * @interface LibraryApiGetLibraryStatisticsRequest
  10464. */
  10465. export interface LibraryApiGetLibraryStatisticsRequest {
  10466. /**
  10467. *
  10468. * @type {string}
  10469. * @memberof LibraryApiGetLibraryStatistics
  10470. */
  10471. readonly id: string
  10472. }
  10473. /**
  10474. * Request parameters for removeOfflineFiles operation in LibraryApi.
  10475. * @export
  10476. * @interface LibraryApiRemoveOfflineFilesRequest
  10477. */
  10478. export interface LibraryApiRemoveOfflineFilesRequest {
  10479. /**
  10480. *
  10481. * @type {string}
  10482. * @memberof LibraryApiRemoveOfflineFiles
  10483. */
  10484. readonly id: string
  10485. }
  10486. /**
  10487. * Request parameters for scanLibrary operation in LibraryApi.
  10488. * @export
  10489. * @interface LibraryApiScanLibraryRequest
  10490. */
  10491. export interface LibraryApiScanLibraryRequest {
  10492. /**
  10493. *
  10494. * @type {string}
  10495. * @memberof LibraryApiScanLibrary
  10496. */
  10497. readonly id: string
  10498. /**
  10499. *
  10500. * @type {ScanLibraryDto}
  10501. * @memberof LibraryApiScanLibrary
  10502. */
  10503. readonly scanLibraryDto: ScanLibraryDto
  10504. }
  10505. /**
  10506. * Request parameters for updateLibrary operation in LibraryApi.
  10507. * @export
  10508. * @interface LibraryApiUpdateLibraryRequest
  10509. */
  10510. export interface LibraryApiUpdateLibraryRequest {
  10511. /**
  10512. *
  10513. * @type {string}
  10514. * @memberof LibraryApiUpdateLibrary
  10515. */
  10516. readonly id: string
  10517. /**
  10518. *
  10519. * @type {UpdateLibraryDto}
  10520. * @memberof LibraryApiUpdateLibrary
  10521. */
  10522. readonly updateLibraryDto: UpdateLibraryDto
  10523. }
  10524. /**
  10525. * LibraryApi - object-oriented interface
  10526. * @export
  10527. * @class LibraryApi
  10528. * @extends {BaseAPI}
  10529. */
  10530. export class LibraryApi extends BaseAPI {
  10531. /**
  10532. *
  10533. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10534. * @param {*} [options] Override http request option.
  10535. * @throws {RequiredError}
  10536. * @memberof LibraryApi
  10537. */
  10538. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  10539. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10540. }
  10541. /**
  10542. *
  10543. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10544. * @param {*} [options] Override http request option.
  10545. * @throws {RequiredError}
  10546. * @memberof LibraryApi
  10547. */
  10548. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  10549. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10550. }
  10551. /**
  10552. *
  10553. * @param {*} [options] Override http request option.
  10554. * @throws {RequiredError}
  10555. * @memberof LibraryApi
  10556. */
  10557. public getLibraries(options?: AxiosRequestConfig) {
  10558. return LibraryApiFp(this.configuration).getLibraries(options).then((request) => request(this.axios, this.basePath));
  10559. }
  10560. /**
  10561. *
  10562. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10563. * @param {*} [options] Override http request option.
  10564. * @throws {RequiredError}
  10565. * @memberof LibraryApi
  10566. */
  10567. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  10568. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10569. }
  10570. /**
  10571. *
  10572. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10573. * @param {*} [options] Override http request option.
  10574. * @throws {RequiredError}
  10575. * @memberof LibraryApi
  10576. */
  10577. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  10578. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10579. }
  10580. /**
  10581. *
  10582. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10583. * @param {*} [options] Override http request option.
  10584. * @throws {RequiredError}
  10585. * @memberof LibraryApi
  10586. */
  10587. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  10588. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10589. }
  10590. /**
  10591. *
  10592. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10593. * @param {*} [options] Override http request option.
  10594. * @throws {RequiredError}
  10595. * @memberof LibraryApi
  10596. */
  10597. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  10598. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10599. }
  10600. /**
  10601. *
  10602. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10603. * @param {*} [options] Override http request option.
  10604. * @throws {RequiredError}
  10605. * @memberof LibraryApi
  10606. */
  10607. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  10608. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10609. }
  10610. }
  10611. /**
  10612. * OAuthApi - axios parameter creator
  10613. * @export
  10614. */
  10615. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  10616. return {
  10617. /**
  10618. *
  10619. * @param {OAuthCallbackDto} oAuthCallbackDto
  10620. * @param {*} [options] Override http request option.
  10621. * @throws {RequiredError}
  10622. */
  10623. finishOAuth: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10624. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10625. assertParamExists('finishOAuth', 'oAuthCallbackDto', oAuthCallbackDto)
  10626. const localVarPath = `/oauth/callback`;
  10627. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10628. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10629. let baseOptions;
  10630. if (configuration) {
  10631. baseOptions = configuration.baseOptions;
  10632. }
  10633. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10634. const localVarHeaderParameter = {} as any;
  10635. const localVarQueryParameter = {} as any;
  10636. localVarHeaderParameter['Content-Type'] = 'application/json';
  10637. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10638. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10639. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10640. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10641. return {
  10642. url: toPathString(localVarUrlObj),
  10643. options: localVarRequestOptions,
  10644. };
  10645. },
  10646. /**
  10647. * @deprecated use feature flags and /oauth/authorize
  10648. * @param {OAuthConfigDto} oAuthConfigDto
  10649. * @param {*} [options] Override http request option.
  10650. * @deprecated
  10651. * @throws {RequiredError}
  10652. */
  10653. generateOAuthConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10654. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10655. assertParamExists('generateOAuthConfig', 'oAuthConfigDto', oAuthConfigDto)
  10656. const localVarPath = `/oauth/config`;
  10657. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10658. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10659. let baseOptions;
  10660. if (configuration) {
  10661. baseOptions = configuration.baseOptions;
  10662. }
  10663. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10664. const localVarHeaderParameter = {} as any;
  10665. const localVarQueryParameter = {} as any;
  10666. localVarHeaderParameter['Content-Type'] = 'application/json';
  10667. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10668. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10669. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10670. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10671. return {
  10672. url: toPathString(localVarUrlObj),
  10673. options: localVarRequestOptions,
  10674. };
  10675. },
  10676. /**
  10677. *
  10678. * @param {OAuthCallbackDto} oAuthCallbackDto
  10679. * @param {*} [options] Override http request option.
  10680. * @throws {RequiredError}
  10681. */
  10682. linkOAuthAccount: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10683. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10684. assertParamExists('linkOAuthAccount', 'oAuthCallbackDto', oAuthCallbackDto)
  10685. const localVarPath = `/oauth/link`;
  10686. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10687. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10688. let baseOptions;
  10689. if (configuration) {
  10690. baseOptions = configuration.baseOptions;
  10691. }
  10692. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10693. const localVarHeaderParameter = {} as any;
  10694. const localVarQueryParameter = {} as any;
  10695. // authentication cookie required
  10696. // authentication api_key required
  10697. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10698. // authentication bearer required
  10699. // http bearer authentication required
  10700. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10701. localVarHeaderParameter['Content-Type'] = 'application/json';
  10702. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10703. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10704. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10705. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10706. return {
  10707. url: toPathString(localVarUrlObj),
  10708. options: localVarRequestOptions,
  10709. };
  10710. },
  10711. /**
  10712. *
  10713. * @param {*} [options] Override http request option.
  10714. * @throws {RequiredError}
  10715. */
  10716. redirectOAuthToMobile: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10717. const localVarPath = `/oauth/mobile-redirect`;
  10718. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10719. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10720. let baseOptions;
  10721. if (configuration) {
  10722. baseOptions = configuration.baseOptions;
  10723. }
  10724. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10725. const localVarHeaderParameter = {} as any;
  10726. const localVarQueryParameter = {} as any;
  10727. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10728. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10729. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10730. return {
  10731. url: toPathString(localVarUrlObj),
  10732. options: localVarRequestOptions,
  10733. };
  10734. },
  10735. /**
  10736. *
  10737. * @param {OAuthConfigDto} oAuthConfigDto
  10738. * @param {*} [options] Override http request option.
  10739. * @throws {RequiredError}
  10740. */
  10741. startOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10742. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10743. assertParamExists('startOAuth', 'oAuthConfigDto', oAuthConfigDto)
  10744. const localVarPath = `/oauth/authorize`;
  10745. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10746. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10747. let baseOptions;
  10748. if (configuration) {
  10749. baseOptions = configuration.baseOptions;
  10750. }
  10751. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10752. const localVarHeaderParameter = {} as any;
  10753. const localVarQueryParameter = {} as any;
  10754. localVarHeaderParameter['Content-Type'] = 'application/json';
  10755. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10756. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10757. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10758. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10759. return {
  10760. url: toPathString(localVarUrlObj),
  10761. options: localVarRequestOptions,
  10762. };
  10763. },
  10764. /**
  10765. *
  10766. * @param {*} [options] Override http request option.
  10767. * @throws {RequiredError}
  10768. */
  10769. unlinkOAuthAccount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10770. const localVarPath = `/oauth/unlink`;
  10771. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10772. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10773. let baseOptions;
  10774. if (configuration) {
  10775. baseOptions = configuration.baseOptions;
  10776. }
  10777. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10778. const localVarHeaderParameter = {} as any;
  10779. const localVarQueryParameter = {} as any;
  10780. // authentication cookie required
  10781. // authentication api_key required
  10782. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10783. // authentication bearer required
  10784. // http bearer authentication required
  10785. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10786. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10787. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10788. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10789. return {
  10790. url: toPathString(localVarUrlObj),
  10791. options: localVarRequestOptions,
  10792. };
  10793. },
  10794. }
  10795. };
  10796. /**
  10797. * OAuthApi - functional programming interface
  10798. * @export
  10799. */
  10800. export const OAuthApiFp = function(configuration?: Configuration) {
  10801. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  10802. return {
  10803. /**
  10804. *
  10805. * @param {OAuthCallbackDto} oAuthCallbackDto
  10806. * @param {*} [options] Override http request option.
  10807. * @throws {RequiredError}
  10808. */
  10809. async finishOAuth(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10810. const localVarAxiosArgs = await localVarAxiosParamCreator.finishOAuth(oAuthCallbackDto, options);
  10811. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10812. },
  10813. /**
  10814. * @deprecated use feature flags and /oauth/authorize
  10815. * @param {OAuthConfigDto} oAuthConfigDto
  10816. * @param {*} [options] Override http request option.
  10817. * @deprecated
  10818. * @throws {RequiredError}
  10819. */
  10820. async generateOAuthConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  10821. const localVarAxiosArgs = await localVarAxiosParamCreator.generateOAuthConfig(oAuthConfigDto, options);
  10822. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10823. },
  10824. /**
  10825. *
  10826. * @param {OAuthCallbackDto} oAuthCallbackDto
  10827. * @param {*} [options] Override http request option.
  10828. * @throws {RequiredError}
  10829. */
  10830. async linkOAuthAccount(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10831. const localVarAxiosArgs = await localVarAxiosParamCreator.linkOAuthAccount(oAuthCallbackDto, options);
  10832. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10833. },
  10834. /**
  10835. *
  10836. * @param {*} [options] Override http request option.
  10837. * @throws {RequiredError}
  10838. */
  10839. async redirectOAuthToMobile(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10840. const localVarAxiosArgs = await localVarAxiosParamCreator.redirectOAuthToMobile(options);
  10841. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10842. },
  10843. /**
  10844. *
  10845. * @param {OAuthConfigDto} oAuthConfigDto
  10846. * @param {*} [options] Override http request option.
  10847. * @throws {RequiredError}
  10848. */
  10849. async startOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  10850. const localVarAxiosArgs = await localVarAxiosParamCreator.startOAuth(oAuthConfigDto, options);
  10851. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10852. },
  10853. /**
  10854. *
  10855. * @param {*} [options] Override http request option.
  10856. * @throws {RequiredError}
  10857. */
  10858. async unlinkOAuthAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10859. const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkOAuthAccount(options);
  10860. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10861. },
  10862. }
  10863. };
  10864. /**
  10865. * OAuthApi - factory interface
  10866. * @export
  10867. */
  10868. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10869. const localVarFp = OAuthApiFp(configuration)
  10870. return {
  10871. /**
  10872. *
  10873. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  10874. * @param {*} [options] Override http request option.
  10875. * @throws {RequiredError}
  10876. */
  10877. finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10878. return localVarFp.finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10879. },
  10880. /**
  10881. * @deprecated use feature flags and /oauth/authorize
  10882. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  10883. * @param {*} [options] Override http request option.
  10884. * @deprecated
  10885. * @throws {RequiredError}
  10886. */
  10887. generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  10888. return localVarFp.generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10889. },
  10890. /**
  10891. *
  10892. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  10893. * @param {*} [options] Override http request option.
  10894. * @throws {RequiredError}
  10895. */
  10896. linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10897. return localVarFp.linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10898. },
  10899. /**
  10900. *
  10901. * @param {*} [options] Override http request option.
  10902. * @throws {RequiredError}
  10903. */
  10904. redirectOAuthToMobile(options?: AxiosRequestConfig): AxiosPromise<void> {
  10905. return localVarFp.redirectOAuthToMobile(options).then((request) => request(axios, basePath));
  10906. },
  10907. /**
  10908. *
  10909. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  10910. * @param {*} [options] Override http request option.
  10911. * @throws {RequiredError}
  10912. */
  10913. startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  10914. return localVarFp.startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10915. },
  10916. /**
  10917. *
  10918. * @param {*} [options] Override http request option.
  10919. * @throws {RequiredError}
  10920. */
  10921. unlinkOAuthAccount(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10922. return localVarFp.unlinkOAuthAccount(options).then((request) => request(axios, basePath));
  10923. },
  10924. };
  10925. };
  10926. /**
  10927. * Request parameters for finishOAuth operation in OAuthApi.
  10928. * @export
  10929. * @interface OAuthApiFinishOAuthRequest
  10930. */
  10931. export interface OAuthApiFinishOAuthRequest {
  10932. /**
  10933. *
  10934. * @type {OAuthCallbackDto}
  10935. * @memberof OAuthApiFinishOAuth
  10936. */
  10937. readonly oAuthCallbackDto: OAuthCallbackDto
  10938. }
  10939. /**
  10940. * Request parameters for generateOAuthConfig operation in OAuthApi.
  10941. * @export
  10942. * @interface OAuthApiGenerateOAuthConfigRequest
  10943. */
  10944. export interface OAuthApiGenerateOAuthConfigRequest {
  10945. /**
  10946. *
  10947. * @type {OAuthConfigDto}
  10948. * @memberof OAuthApiGenerateOAuthConfig
  10949. */
  10950. readonly oAuthConfigDto: OAuthConfigDto
  10951. }
  10952. /**
  10953. * Request parameters for linkOAuthAccount operation in OAuthApi.
  10954. * @export
  10955. * @interface OAuthApiLinkOAuthAccountRequest
  10956. */
  10957. export interface OAuthApiLinkOAuthAccountRequest {
  10958. /**
  10959. *
  10960. * @type {OAuthCallbackDto}
  10961. * @memberof OAuthApiLinkOAuthAccount
  10962. */
  10963. readonly oAuthCallbackDto: OAuthCallbackDto
  10964. }
  10965. /**
  10966. * Request parameters for startOAuth operation in OAuthApi.
  10967. * @export
  10968. * @interface OAuthApiStartOAuthRequest
  10969. */
  10970. export interface OAuthApiStartOAuthRequest {
  10971. /**
  10972. *
  10973. * @type {OAuthConfigDto}
  10974. * @memberof OAuthApiStartOAuth
  10975. */
  10976. readonly oAuthConfigDto: OAuthConfigDto
  10977. }
  10978. /**
  10979. * OAuthApi - object-oriented interface
  10980. * @export
  10981. * @class OAuthApi
  10982. * @extends {BaseAPI}
  10983. */
  10984. export class OAuthApi extends BaseAPI {
  10985. /**
  10986. *
  10987. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  10988. * @param {*} [options] Override http request option.
  10989. * @throws {RequiredError}
  10990. * @memberof OAuthApi
  10991. */
  10992. public finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig) {
  10993. return OAuthApiFp(this.configuration).finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10994. }
  10995. /**
  10996. * @deprecated use feature flags and /oauth/authorize
  10997. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  10998. * @param {*} [options] Override http request option.
  10999. * @deprecated
  11000. * @throws {RequiredError}
  11001. * @memberof OAuthApi
  11002. */
  11003. public generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig) {
  11004. return OAuthApiFp(this.configuration).generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11005. }
  11006. /**
  11007. *
  11008. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11009. * @param {*} [options] Override http request option.
  11010. * @throws {RequiredError}
  11011. * @memberof OAuthApi
  11012. */
  11013. public linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig) {
  11014. return OAuthApiFp(this.configuration).linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11015. }
  11016. /**
  11017. *
  11018. * @param {*} [options] Override http request option.
  11019. * @throws {RequiredError}
  11020. * @memberof OAuthApi
  11021. */
  11022. public redirectOAuthToMobile(options?: AxiosRequestConfig) {
  11023. return OAuthApiFp(this.configuration).redirectOAuthToMobile(options).then((request) => request(this.axios, this.basePath));
  11024. }
  11025. /**
  11026. *
  11027. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11028. * @param {*} [options] Override http request option.
  11029. * @throws {RequiredError}
  11030. * @memberof OAuthApi
  11031. */
  11032. public startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig) {
  11033. return OAuthApiFp(this.configuration).startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11034. }
  11035. /**
  11036. *
  11037. * @param {*} [options] Override http request option.
  11038. * @throws {RequiredError}
  11039. * @memberof OAuthApi
  11040. */
  11041. public unlinkOAuthAccount(options?: AxiosRequestConfig) {
  11042. return OAuthApiFp(this.configuration).unlinkOAuthAccount(options).then((request) => request(this.axios, this.basePath));
  11043. }
  11044. }
  11045. /**
  11046. * PartnerApi - axios parameter creator
  11047. * @export
  11048. */
  11049. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  11050. return {
  11051. /**
  11052. *
  11053. * @param {string} id
  11054. * @param {*} [options] Override http request option.
  11055. * @throws {RequiredError}
  11056. */
  11057. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11058. // verify required parameter 'id' is not null or undefined
  11059. assertParamExists('createPartner', 'id', id)
  11060. const localVarPath = `/partner/{id}`
  11061. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11062. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11063. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11064. let baseOptions;
  11065. if (configuration) {
  11066. baseOptions = configuration.baseOptions;
  11067. }
  11068. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11069. const localVarHeaderParameter = {} as any;
  11070. const localVarQueryParameter = {} as any;
  11071. // authentication cookie required
  11072. // authentication api_key required
  11073. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11074. // authentication bearer required
  11075. // http bearer authentication required
  11076. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11077. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11078. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11079. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11080. return {
  11081. url: toPathString(localVarUrlObj),
  11082. options: localVarRequestOptions,
  11083. };
  11084. },
  11085. /**
  11086. *
  11087. * @param {'shared-by' | 'shared-with'} direction
  11088. * @param {*} [options] Override http request option.
  11089. * @throws {RequiredError}
  11090. */
  11091. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11092. // verify required parameter 'direction' is not null or undefined
  11093. assertParamExists('getPartners', 'direction', direction)
  11094. const localVarPath = `/partner`;
  11095. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11096. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11097. let baseOptions;
  11098. if (configuration) {
  11099. baseOptions = configuration.baseOptions;
  11100. }
  11101. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11102. const localVarHeaderParameter = {} as any;
  11103. const localVarQueryParameter = {} as any;
  11104. // authentication cookie required
  11105. // authentication api_key required
  11106. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11107. // authentication bearer required
  11108. // http bearer authentication required
  11109. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11110. if (direction !== undefined) {
  11111. localVarQueryParameter['direction'] = direction;
  11112. }
  11113. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11114. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11115. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11116. return {
  11117. url: toPathString(localVarUrlObj),
  11118. options: localVarRequestOptions,
  11119. };
  11120. },
  11121. /**
  11122. *
  11123. * @param {string} id
  11124. * @param {*} [options] Override http request option.
  11125. * @throws {RequiredError}
  11126. */
  11127. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11128. // verify required parameter 'id' is not null or undefined
  11129. assertParamExists('removePartner', 'id', id)
  11130. const localVarPath = `/partner/{id}`
  11131. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11132. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11133. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11134. let baseOptions;
  11135. if (configuration) {
  11136. baseOptions = configuration.baseOptions;
  11137. }
  11138. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  11139. const localVarHeaderParameter = {} as any;
  11140. const localVarQueryParameter = {} as any;
  11141. // authentication cookie required
  11142. // authentication api_key required
  11143. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11144. // authentication bearer required
  11145. // http bearer authentication required
  11146. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11147. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11148. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11149. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11150. return {
  11151. url: toPathString(localVarUrlObj),
  11152. options: localVarRequestOptions,
  11153. };
  11154. },
  11155. }
  11156. };
  11157. /**
  11158. * PartnerApi - functional programming interface
  11159. * @export
  11160. */
  11161. export const PartnerApiFp = function(configuration?: Configuration) {
  11162. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  11163. return {
  11164. /**
  11165. *
  11166. * @param {string} id
  11167. * @param {*} [options] Override http request option.
  11168. * @throws {RequiredError}
  11169. */
  11170. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11171. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  11172. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11173. },
  11174. /**
  11175. *
  11176. * @param {'shared-by' | 'shared-with'} direction
  11177. * @param {*} [options] Override http request option.
  11178. * @throws {RequiredError}
  11179. */
  11180. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  11181. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  11182. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11183. },
  11184. /**
  11185. *
  11186. * @param {string} id
  11187. * @param {*} [options] Override http request option.
  11188. * @throws {RequiredError}
  11189. */
  11190. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  11191. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  11192. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11193. },
  11194. }
  11195. };
  11196. /**
  11197. * PartnerApi - factory interface
  11198. * @export
  11199. */
  11200. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11201. const localVarFp = PartnerApiFp(configuration)
  11202. return {
  11203. /**
  11204. *
  11205. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11206. * @param {*} [options] Override http request option.
  11207. * @throws {RequiredError}
  11208. */
  11209. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11210. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11211. },
  11212. /**
  11213. *
  11214. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11215. * @param {*} [options] Override http request option.
  11216. * @throws {RequiredError}
  11217. */
  11218. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  11219. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  11220. },
  11221. /**
  11222. *
  11223. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11224. * @param {*} [options] Override http request option.
  11225. * @throws {RequiredError}
  11226. */
  11227. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  11228. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11229. },
  11230. };
  11231. };
  11232. /**
  11233. * Request parameters for createPartner operation in PartnerApi.
  11234. * @export
  11235. * @interface PartnerApiCreatePartnerRequest
  11236. */
  11237. export interface PartnerApiCreatePartnerRequest {
  11238. /**
  11239. *
  11240. * @type {string}
  11241. * @memberof PartnerApiCreatePartner
  11242. */
  11243. readonly id: string
  11244. }
  11245. /**
  11246. * Request parameters for getPartners operation in PartnerApi.
  11247. * @export
  11248. * @interface PartnerApiGetPartnersRequest
  11249. */
  11250. export interface PartnerApiGetPartnersRequest {
  11251. /**
  11252. *
  11253. * @type {'shared-by' | 'shared-with'}
  11254. * @memberof PartnerApiGetPartners
  11255. */
  11256. readonly direction: 'shared-by' | 'shared-with'
  11257. }
  11258. /**
  11259. * Request parameters for removePartner operation in PartnerApi.
  11260. * @export
  11261. * @interface PartnerApiRemovePartnerRequest
  11262. */
  11263. export interface PartnerApiRemovePartnerRequest {
  11264. /**
  11265. *
  11266. * @type {string}
  11267. * @memberof PartnerApiRemovePartner
  11268. */
  11269. readonly id: string
  11270. }
  11271. /**
  11272. * PartnerApi - object-oriented interface
  11273. * @export
  11274. * @class PartnerApi
  11275. * @extends {BaseAPI}
  11276. */
  11277. export class PartnerApi extends BaseAPI {
  11278. /**
  11279. *
  11280. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11281. * @param {*} [options] Override http request option.
  11282. * @throws {RequiredError}
  11283. * @memberof PartnerApi
  11284. */
  11285. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  11286. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11287. }
  11288. /**
  11289. *
  11290. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11291. * @param {*} [options] Override http request option.
  11292. * @throws {RequiredError}
  11293. * @memberof PartnerApi
  11294. */
  11295. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  11296. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  11297. }
  11298. /**
  11299. *
  11300. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11301. * @param {*} [options] Override http request option.
  11302. * @throws {RequiredError}
  11303. * @memberof PartnerApi
  11304. */
  11305. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  11306. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11307. }
  11308. }
  11309. /**
  11310. * PersonApi - axios parameter creator
  11311. * @export
  11312. */
  11313. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  11314. return {
  11315. /**
  11316. *
  11317. * @param {boolean} [withHidden]
  11318. * @param {*} [options] Override http request option.
  11319. * @throws {RequiredError}
  11320. */
  11321. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11322. const localVarPath = `/person`;
  11323. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11324. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11325. let baseOptions;
  11326. if (configuration) {
  11327. baseOptions = configuration.baseOptions;
  11328. }
  11329. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11330. const localVarHeaderParameter = {} as any;
  11331. const localVarQueryParameter = {} as any;
  11332. // authentication cookie required
  11333. // authentication api_key required
  11334. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11335. // authentication bearer required
  11336. // http bearer authentication required
  11337. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11338. if (withHidden !== undefined) {
  11339. localVarQueryParameter['withHidden'] = withHidden;
  11340. }
  11341. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11342. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11343. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11344. return {
  11345. url: toPathString(localVarUrlObj),
  11346. options: localVarRequestOptions,
  11347. };
  11348. },
  11349. /**
  11350. *
  11351. * @param {string} id
  11352. * @param {*} [options] Override http request option.
  11353. * @throws {RequiredError}
  11354. */
  11355. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11356. // verify required parameter 'id' is not null or undefined
  11357. assertParamExists('getPerson', 'id', id)
  11358. const localVarPath = `/person/{id}`
  11359. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11360. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11361. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11362. let baseOptions;
  11363. if (configuration) {
  11364. baseOptions = configuration.baseOptions;
  11365. }
  11366. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11367. const localVarHeaderParameter = {} as any;
  11368. const localVarQueryParameter = {} as any;
  11369. // authentication cookie required
  11370. // authentication api_key required
  11371. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11372. // authentication bearer required
  11373. // http bearer authentication required
  11374. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11375. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11376. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11377. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11378. return {
  11379. url: toPathString(localVarUrlObj),
  11380. options: localVarRequestOptions,
  11381. };
  11382. },
  11383. /**
  11384. *
  11385. * @param {string} id
  11386. * @param {*} [options] Override http request option.
  11387. * @throws {RequiredError}
  11388. */
  11389. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11390. // verify required parameter 'id' is not null or undefined
  11391. assertParamExists('getPersonAssets', 'id', id)
  11392. const localVarPath = `/person/{id}/assets`
  11393. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11394. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11395. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11396. let baseOptions;
  11397. if (configuration) {
  11398. baseOptions = configuration.baseOptions;
  11399. }
  11400. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11401. const localVarHeaderParameter = {} as any;
  11402. const localVarQueryParameter = {} as any;
  11403. // authentication cookie required
  11404. // authentication api_key required
  11405. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11406. // authentication bearer required
  11407. // http bearer authentication required
  11408. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11409. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11410. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11411. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11412. return {
  11413. url: toPathString(localVarUrlObj),
  11414. options: localVarRequestOptions,
  11415. };
  11416. },
  11417. /**
  11418. *
  11419. * @param {string} id
  11420. * @param {*} [options] Override http request option.
  11421. * @throws {RequiredError}
  11422. */
  11423. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11424. // verify required parameter 'id' is not null or undefined
  11425. assertParamExists('getPersonStatistics', 'id', id)
  11426. const localVarPath = `/person/{id}/statistics`
  11427. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  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} id
  11454. * @param {*} [options] Override http request option.
  11455. * @throws {RequiredError}
  11456. */
  11457. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11458. // verify required parameter 'id' is not null or undefined
  11459. assertParamExists('getPersonThumbnail', 'id', id)
  11460. const localVarPath = `/person/{id}/thumbnail`
  11461. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11462. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11463. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11464. let baseOptions;
  11465. if (configuration) {
  11466. baseOptions = configuration.baseOptions;
  11467. }
  11468. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11469. const localVarHeaderParameter = {} as any;
  11470. const localVarQueryParameter = {} as any;
  11471. // authentication cookie required
  11472. // authentication api_key required
  11473. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11474. // authentication bearer required
  11475. // http bearer authentication required
  11476. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11477. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11478. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11479. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11480. return {
  11481. url: toPathString(localVarUrlObj),
  11482. options: localVarRequestOptions,
  11483. };
  11484. },
  11485. /**
  11486. *
  11487. * @param {string} id
  11488. * @param {MergePersonDto} mergePersonDto
  11489. * @param {*} [options] Override http request option.
  11490. * @throws {RequiredError}
  11491. */
  11492. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11493. // verify required parameter 'id' is not null or undefined
  11494. assertParamExists('mergePerson', 'id', id)
  11495. // verify required parameter 'mergePersonDto' is not null or undefined
  11496. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  11497. const localVarPath = `/person/{id}/merge`
  11498. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11499. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11500. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11501. let baseOptions;
  11502. if (configuration) {
  11503. baseOptions = configuration.baseOptions;
  11504. }
  11505. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11506. const localVarHeaderParameter = {} as any;
  11507. const localVarQueryParameter = {} as any;
  11508. // authentication cookie required
  11509. // authentication api_key required
  11510. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11511. // authentication bearer required
  11512. // http bearer authentication required
  11513. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11514. localVarHeaderParameter['Content-Type'] = 'application/json';
  11515. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11516. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11517. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11518. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  11519. return {
  11520. url: toPathString(localVarUrlObj),
  11521. options: localVarRequestOptions,
  11522. };
  11523. },
  11524. /**
  11525. *
  11526. * @param {PeopleUpdateDto} peopleUpdateDto
  11527. * @param {*} [options] Override http request option.
  11528. * @throws {RequiredError}
  11529. */
  11530. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11531. // verify required parameter 'peopleUpdateDto' is not null or undefined
  11532. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  11533. const localVarPath = `/person`;
  11534. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11535. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11536. let baseOptions;
  11537. if (configuration) {
  11538. baseOptions = configuration.baseOptions;
  11539. }
  11540. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11541. const localVarHeaderParameter = {} as any;
  11542. const localVarQueryParameter = {} as any;
  11543. // authentication cookie required
  11544. // authentication api_key required
  11545. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11546. // authentication bearer required
  11547. // http bearer authentication required
  11548. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11549. localVarHeaderParameter['Content-Type'] = 'application/json';
  11550. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11551. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11552. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11553. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  11554. return {
  11555. url: toPathString(localVarUrlObj),
  11556. options: localVarRequestOptions,
  11557. };
  11558. },
  11559. /**
  11560. *
  11561. * @param {string} id
  11562. * @param {PersonUpdateDto} personUpdateDto
  11563. * @param {*} [options] Override http request option.
  11564. * @throws {RequiredError}
  11565. */
  11566. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11567. // verify required parameter 'id' is not null or undefined
  11568. assertParamExists('updatePerson', 'id', id)
  11569. // verify required parameter 'personUpdateDto' is not null or undefined
  11570. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  11571. const localVarPath = `/person/{id}`
  11572. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11573. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11574. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11575. let baseOptions;
  11576. if (configuration) {
  11577. baseOptions = configuration.baseOptions;
  11578. }
  11579. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11580. const localVarHeaderParameter = {} as any;
  11581. const localVarQueryParameter = {} as any;
  11582. // authentication cookie required
  11583. // authentication api_key required
  11584. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11585. // authentication bearer required
  11586. // http bearer authentication required
  11587. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11588. localVarHeaderParameter['Content-Type'] = 'application/json';
  11589. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11590. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11591. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11592. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  11593. return {
  11594. url: toPathString(localVarUrlObj),
  11595. options: localVarRequestOptions,
  11596. };
  11597. },
  11598. }
  11599. };
  11600. /**
  11601. * PersonApi - functional programming interface
  11602. * @export
  11603. */
  11604. export const PersonApiFp = function(configuration?: Configuration) {
  11605. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  11606. return {
  11607. /**
  11608. *
  11609. * @param {boolean} [withHidden]
  11610. * @param {*} [options] Override http request option.
  11611. * @throws {RequiredError}
  11612. */
  11613. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  11614. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  11615. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11616. },
  11617. /**
  11618. *
  11619. * @param {string} id
  11620. * @param {*} [options] Override http request option.
  11621. * @throws {RequiredError}
  11622. */
  11623. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11624. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  11625. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11626. },
  11627. /**
  11628. *
  11629. * @param {string} id
  11630. * @param {*} [options] Override http request option.
  11631. * @throws {RequiredError}
  11632. */
  11633. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  11634. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  11635. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11636. },
  11637. /**
  11638. *
  11639. * @param {string} id
  11640. * @param {*} [options] Override http request option.
  11641. * @throws {RequiredError}
  11642. */
  11643. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  11644. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  11645. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11646. },
  11647. /**
  11648. *
  11649. * @param {string} id
  11650. * @param {*} [options] Override http request option.
  11651. * @throws {RequiredError}
  11652. */
  11653. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  11654. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  11655. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11656. },
  11657. /**
  11658. *
  11659. * @param {string} id
  11660. * @param {MergePersonDto} mergePersonDto
  11661. * @param {*} [options] Override http request option.
  11662. * @throws {RequiredError}
  11663. */
  11664. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11665. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  11666. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11667. },
  11668. /**
  11669. *
  11670. * @param {PeopleUpdateDto} peopleUpdateDto
  11671. * @param {*} [options] Override http request option.
  11672. * @throws {RequiredError}
  11673. */
  11674. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11675. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  11676. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11677. },
  11678. /**
  11679. *
  11680. * @param {string} id
  11681. * @param {PersonUpdateDto} personUpdateDto
  11682. * @param {*} [options] Override http request option.
  11683. * @throws {RequiredError}
  11684. */
  11685. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11686. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  11687. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11688. },
  11689. }
  11690. };
  11691. /**
  11692. * PersonApi - factory interface
  11693. * @export
  11694. */
  11695. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11696. const localVarFp = PersonApiFp(configuration)
  11697. return {
  11698. /**
  11699. *
  11700. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11701. * @param {*} [options] Override http request option.
  11702. * @throws {RequiredError}
  11703. */
  11704. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  11705. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11706. },
  11707. /**
  11708. *
  11709. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11710. * @param {*} [options] Override http request option.
  11711. * @throws {RequiredError}
  11712. */
  11713. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11714. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  11715. },
  11716. /**
  11717. *
  11718. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11719. * @param {*} [options] Override http request option.
  11720. * @throws {RequiredError}
  11721. */
  11722. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  11723. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  11724. },
  11725. /**
  11726. *
  11727. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11728. * @param {*} [options] Override http request option.
  11729. * @throws {RequiredError}
  11730. */
  11731. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  11732. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  11733. },
  11734. /**
  11735. *
  11736. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11737. * @param {*} [options] Override http request option.
  11738. * @throws {RequiredError}
  11739. */
  11740. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  11741. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  11742. },
  11743. /**
  11744. *
  11745. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11746. * @param {*} [options] Override http request option.
  11747. * @throws {RequiredError}
  11748. */
  11749. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11750. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  11751. },
  11752. /**
  11753. *
  11754. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11755. * @param {*} [options] Override http request option.
  11756. * @throws {RequiredError}
  11757. */
  11758. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11759. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  11760. },
  11761. /**
  11762. *
  11763. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11764. * @param {*} [options] Override http request option.
  11765. * @throws {RequiredError}
  11766. */
  11767. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11768. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  11769. },
  11770. };
  11771. };
  11772. /**
  11773. * Request parameters for getAllPeople operation in PersonApi.
  11774. * @export
  11775. * @interface PersonApiGetAllPeopleRequest
  11776. */
  11777. export interface PersonApiGetAllPeopleRequest {
  11778. /**
  11779. *
  11780. * @type {boolean}
  11781. * @memberof PersonApiGetAllPeople
  11782. */
  11783. readonly withHidden?: boolean
  11784. }
  11785. /**
  11786. * Request parameters for getPerson operation in PersonApi.
  11787. * @export
  11788. * @interface PersonApiGetPersonRequest
  11789. */
  11790. export interface PersonApiGetPersonRequest {
  11791. /**
  11792. *
  11793. * @type {string}
  11794. * @memberof PersonApiGetPerson
  11795. */
  11796. readonly id: string
  11797. }
  11798. /**
  11799. * Request parameters for getPersonAssets operation in PersonApi.
  11800. * @export
  11801. * @interface PersonApiGetPersonAssetsRequest
  11802. */
  11803. export interface PersonApiGetPersonAssetsRequest {
  11804. /**
  11805. *
  11806. * @type {string}
  11807. * @memberof PersonApiGetPersonAssets
  11808. */
  11809. readonly id: string
  11810. }
  11811. /**
  11812. * Request parameters for getPersonStatistics operation in PersonApi.
  11813. * @export
  11814. * @interface PersonApiGetPersonStatisticsRequest
  11815. */
  11816. export interface PersonApiGetPersonStatisticsRequest {
  11817. /**
  11818. *
  11819. * @type {string}
  11820. * @memberof PersonApiGetPersonStatistics
  11821. */
  11822. readonly id: string
  11823. }
  11824. /**
  11825. * Request parameters for getPersonThumbnail operation in PersonApi.
  11826. * @export
  11827. * @interface PersonApiGetPersonThumbnailRequest
  11828. */
  11829. export interface PersonApiGetPersonThumbnailRequest {
  11830. /**
  11831. *
  11832. * @type {string}
  11833. * @memberof PersonApiGetPersonThumbnail
  11834. */
  11835. readonly id: string
  11836. }
  11837. /**
  11838. * Request parameters for mergePerson operation in PersonApi.
  11839. * @export
  11840. * @interface PersonApiMergePersonRequest
  11841. */
  11842. export interface PersonApiMergePersonRequest {
  11843. /**
  11844. *
  11845. * @type {string}
  11846. * @memberof PersonApiMergePerson
  11847. */
  11848. readonly id: string
  11849. /**
  11850. *
  11851. * @type {MergePersonDto}
  11852. * @memberof PersonApiMergePerson
  11853. */
  11854. readonly mergePersonDto: MergePersonDto
  11855. }
  11856. /**
  11857. * Request parameters for updatePeople operation in PersonApi.
  11858. * @export
  11859. * @interface PersonApiUpdatePeopleRequest
  11860. */
  11861. export interface PersonApiUpdatePeopleRequest {
  11862. /**
  11863. *
  11864. * @type {PeopleUpdateDto}
  11865. * @memberof PersonApiUpdatePeople
  11866. */
  11867. readonly peopleUpdateDto: PeopleUpdateDto
  11868. }
  11869. /**
  11870. * Request parameters for updatePerson operation in PersonApi.
  11871. * @export
  11872. * @interface PersonApiUpdatePersonRequest
  11873. */
  11874. export interface PersonApiUpdatePersonRequest {
  11875. /**
  11876. *
  11877. * @type {string}
  11878. * @memberof PersonApiUpdatePerson
  11879. */
  11880. readonly id: string
  11881. /**
  11882. *
  11883. * @type {PersonUpdateDto}
  11884. * @memberof PersonApiUpdatePerson
  11885. */
  11886. readonly personUpdateDto: PersonUpdateDto
  11887. }
  11888. /**
  11889. * PersonApi - object-oriented interface
  11890. * @export
  11891. * @class PersonApi
  11892. * @extends {BaseAPI}
  11893. */
  11894. export class PersonApi extends BaseAPI {
  11895. /**
  11896. *
  11897. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11898. * @param {*} [options] Override http request option.
  11899. * @throws {RequiredError}
  11900. * @memberof PersonApi
  11901. */
  11902. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  11903. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11904. }
  11905. /**
  11906. *
  11907. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11908. * @param {*} [options] Override http request option.
  11909. * @throws {RequiredError}
  11910. * @memberof PersonApi
  11911. */
  11912. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  11913. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11914. }
  11915. /**
  11916. *
  11917. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11918. * @param {*} [options] Override http request option.
  11919. * @throws {RequiredError}
  11920. * @memberof PersonApi
  11921. */
  11922. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  11923. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11924. }
  11925. /**
  11926. *
  11927. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11928. * @param {*} [options] Override http request option.
  11929. * @throws {RequiredError}
  11930. * @memberof PersonApi
  11931. */
  11932. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  11933. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11934. }
  11935. /**
  11936. *
  11937. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11938. * @param {*} [options] Override http request option.
  11939. * @throws {RequiredError}
  11940. * @memberof PersonApi
  11941. */
  11942. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  11943. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11944. }
  11945. /**
  11946. *
  11947. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11948. * @param {*} [options] Override http request option.
  11949. * @throws {RequiredError}
  11950. * @memberof PersonApi
  11951. */
  11952. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  11953. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  11954. }
  11955. /**
  11956. *
  11957. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11958. * @param {*} [options] Override http request option.
  11959. * @throws {RequiredError}
  11960. * @memberof PersonApi
  11961. */
  11962. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  11963. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11964. }
  11965. /**
  11966. *
  11967. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11968. * @param {*} [options] Override http request option.
  11969. * @throws {RequiredError}
  11970. * @memberof PersonApi
  11971. */
  11972. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  11973. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11974. }
  11975. }
  11976. /**
  11977. * SearchApi - axios parameter creator
  11978. * @export
  11979. */
  11980. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  11981. return {
  11982. /**
  11983. *
  11984. * @param {*} [options] Override http request option.
  11985. * @throws {RequiredError}
  11986. */
  11987. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11988. const localVarPath = `/search/explore`;
  11989. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11990. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11991. let baseOptions;
  11992. if (configuration) {
  11993. baseOptions = configuration.baseOptions;
  11994. }
  11995. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11996. const localVarHeaderParameter = {} as any;
  11997. const localVarQueryParameter = {} as any;
  11998. // authentication cookie required
  11999. // authentication api_key required
  12000. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12001. // authentication bearer required
  12002. // http bearer authentication required
  12003. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12004. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12005. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12006. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12007. return {
  12008. url: toPathString(localVarUrlObj),
  12009. options: localVarRequestOptions,
  12010. };
  12011. },
  12012. /**
  12013. *
  12014. * @param {string} [q]
  12015. * @param {string} [query]
  12016. * @param {boolean} [clip]
  12017. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12018. * @param {boolean} [isFavorite]
  12019. * @param {boolean} [isArchived]
  12020. * @param {string} [exifInfoCity]
  12021. * @param {string} [exifInfoState]
  12022. * @param {string} [exifInfoCountry]
  12023. * @param {string} [exifInfoMake]
  12024. * @param {string} [exifInfoModel]
  12025. * @param {string} [exifInfoProjectionType]
  12026. * @param {Array<string>} [smartInfoObjects]
  12027. * @param {Array<string>} [smartInfoTags]
  12028. * @param {boolean} [recent]
  12029. * @param {boolean} [motion]
  12030. * @param {*} [options] Override http request option.
  12031. * @throws {RequiredError}
  12032. */
  12033. 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> => {
  12034. const localVarPath = `/search`;
  12035. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12036. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12037. let baseOptions;
  12038. if (configuration) {
  12039. baseOptions = configuration.baseOptions;
  12040. }
  12041. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12042. const localVarHeaderParameter = {} as any;
  12043. const localVarQueryParameter = {} as any;
  12044. // authentication cookie required
  12045. // authentication api_key required
  12046. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12047. // authentication bearer required
  12048. // http bearer authentication required
  12049. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12050. if (q !== undefined) {
  12051. localVarQueryParameter['q'] = q;
  12052. }
  12053. if (query !== undefined) {
  12054. localVarQueryParameter['query'] = query;
  12055. }
  12056. if (clip !== undefined) {
  12057. localVarQueryParameter['clip'] = clip;
  12058. }
  12059. if (type !== undefined) {
  12060. localVarQueryParameter['type'] = type;
  12061. }
  12062. if (isFavorite !== undefined) {
  12063. localVarQueryParameter['isFavorite'] = isFavorite;
  12064. }
  12065. if (isArchived !== undefined) {
  12066. localVarQueryParameter['isArchived'] = isArchived;
  12067. }
  12068. if (exifInfoCity !== undefined) {
  12069. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  12070. }
  12071. if (exifInfoState !== undefined) {
  12072. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  12073. }
  12074. if (exifInfoCountry !== undefined) {
  12075. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  12076. }
  12077. if (exifInfoMake !== undefined) {
  12078. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  12079. }
  12080. if (exifInfoModel !== undefined) {
  12081. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  12082. }
  12083. if (exifInfoProjectionType !== undefined) {
  12084. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  12085. }
  12086. if (smartInfoObjects) {
  12087. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  12088. }
  12089. if (smartInfoTags) {
  12090. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  12091. }
  12092. if (recent !== undefined) {
  12093. localVarQueryParameter['recent'] = recent;
  12094. }
  12095. if (motion !== undefined) {
  12096. localVarQueryParameter['motion'] = motion;
  12097. }
  12098. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12099. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12100. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12101. return {
  12102. url: toPathString(localVarUrlObj),
  12103. options: localVarRequestOptions,
  12104. };
  12105. },
  12106. /**
  12107. *
  12108. * @param {string} name
  12109. * @param {boolean} [withHidden]
  12110. * @param {*} [options] Override http request option.
  12111. * @throws {RequiredError}
  12112. */
  12113. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12114. // verify required parameter 'name' is not null or undefined
  12115. assertParamExists('searchPerson', 'name', name)
  12116. const localVarPath = `/search/person`;
  12117. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12118. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12119. let baseOptions;
  12120. if (configuration) {
  12121. baseOptions = configuration.baseOptions;
  12122. }
  12123. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12124. const localVarHeaderParameter = {} as any;
  12125. const localVarQueryParameter = {} as any;
  12126. // authentication cookie required
  12127. // authentication api_key required
  12128. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12129. // authentication bearer required
  12130. // http bearer authentication required
  12131. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12132. if (name !== undefined) {
  12133. localVarQueryParameter['name'] = name;
  12134. }
  12135. if (withHidden !== undefined) {
  12136. localVarQueryParameter['withHidden'] = withHidden;
  12137. }
  12138. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12139. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12140. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12141. return {
  12142. url: toPathString(localVarUrlObj),
  12143. options: localVarRequestOptions,
  12144. };
  12145. },
  12146. }
  12147. };
  12148. /**
  12149. * SearchApi - functional programming interface
  12150. * @export
  12151. */
  12152. export const SearchApiFp = function(configuration?: Configuration) {
  12153. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  12154. return {
  12155. /**
  12156. *
  12157. * @param {*} [options] Override http request option.
  12158. * @throws {RequiredError}
  12159. */
  12160. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  12161. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  12162. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12163. },
  12164. /**
  12165. *
  12166. * @param {string} [q]
  12167. * @param {string} [query]
  12168. * @param {boolean} [clip]
  12169. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12170. * @param {boolean} [isFavorite]
  12171. * @param {boolean} [isArchived]
  12172. * @param {string} [exifInfoCity]
  12173. * @param {string} [exifInfoState]
  12174. * @param {string} [exifInfoCountry]
  12175. * @param {string} [exifInfoMake]
  12176. * @param {string} [exifInfoModel]
  12177. * @param {string} [exifInfoProjectionType]
  12178. * @param {Array<string>} [smartInfoObjects]
  12179. * @param {Array<string>} [smartInfoTags]
  12180. * @param {boolean} [recent]
  12181. * @param {boolean} [motion]
  12182. * @param {*} [options] Override http request option.
  12183. * @throws {RequiredError}
  12184. */
  12185. 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>> {
  12186. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  12187. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12188. },
  12189. /**
  12190. *
  12191. * @param {string} name
  12192. * @param {boolean} [withHidden]
  12193. * @param {*} [options] Override http request option.
  12194. * @throws {RequiredError}
  12195. */
  12196. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  12197. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  12198. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12199. },
  12200. }
  12201. };
  12202. /**
  12203. * SearchApi - factory interface
  12204. * @export
  12205. */
  12206. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12207. const localVarFp = SearchApiFp(configuration)
  12208. return {
  12209. /**
  12210. *
  12211. * @param {*} [options] Override http request option.
  12212. * @throws {RequiredError}
  12213. */
  12214. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  12215. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  12216. },
  12217. /**
  12218. *
  12219. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12220. * @param {*} [options] Override http request option.
  12221. * @throws {RequiredError}
  12222. */
  12223. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  12224. 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));
  12225. },
  12226. /**
  12227. *
  12228. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12229. * @param {*} [options] Override http request option.
  12230. * @throws {RequiredError}
  12231. */
  12232. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  12233. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  12234. },
  12235. };
  12236. };
  12237. /**
  12238. * Request parameters for search operation in SearchApi.
  12239. * @export
  12240. * @interface SearchApiSearchRequest
  12241. */
  12242. export interface SearchApiSearchRequest {
  12243. /**
  12244. *
  12245. * @type {string}
  12246. * @memberof SearchApiSearch
  12247. */
  12248. readonly q?: string
  12249. /**
  12250. *
  12251. * @type {string}
  12252. * @memberof SearchApiSearch
  12253. */
  12254. readonly query?: string
  12255. /**
  12256. *
  12257. * @type {boolean}
  12258. * @memberof SearchApiSearch
  12259. */
  12260. readonly clip?: boolean
  12261. /**
  12262. *
  12263. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  12264. * @memberof SearchApiSearch
  12265. */
  12266. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  12267. /**
  12268. *
  12269. * @type {boolean}
  12270. * @memberof SearchApiSearch
  12271. */
  12272. readonly isFavorite?: boolean
  12273. /**
  12274. *
  12275. * @type {boolean}
  12276. * @memberof SearchApiSearch
  12277. */
  12278. readonly isArchived?: boolean
  12279. /**
  12280. *
  12281. * @type {string}
  12282. * @memberof SearchApiSearch
  12283. */
  12284. readonly exifInfoCity?: string
  12285. /**
  12286. *
  12287. * @type {string}
  12288. * @memberof SearchApiSearch
  12289. */
  12290. readonly exifInfoState?: string
  12291. /**
  12292. *
  12293. * @type {string}
  12294. * @memberof SearchApiSearch
  12295. */
  12296. readonly exifInfoCountry?: string
  12297. /**
  12298. *
  12299. * @type {string}
  12300. * @memberof SearchApiSearch
  12301. */
  12302. readonly exifInfoMake?: string
  12303. /**
  12304. *
  12305. * @type {string}
  12306. * @memberof SearchApiSearch
  12307. */
  12308. readonly exifInfoModel?: string
  12309. /**
  12310. *
  12311. * @type {string}
  12312. * @memberof SearchApiSearch
  12313. */
  12314. readonly exifInfoProjectionType?: string
  12315. /**
  12316. *
  12317. * @type {Array<string>}
  12318. * @memberof SearchApiSearch
  12319. */
  12320. readonly smartInfoObjects?: Array<string>
  12321. /**
  12322. *
  12323. * @type {Array<string>}
  12324. * @memberof SearchApiSearch
  12325. */
  12326. readonly smartInfoTags?: Array<string>
  12327. /**
  12328. *
  12329. * @type {boolean}
  12330. * @memberof SearchApiSearch
  12331. */
  12332. readonly recent?: boolean
  12333. /**
  12334. *
  12335. * @type {boolean}
  12336. * @memberof SearchApiSearch
  12337. */
  12338. readonly motion?: boolean
  12339. }
  12340. /**
  12341. * Request parameters for searchPerson operation in SearchApi.
  12342. * @export
  12343. * @interface SearchApiSearchPersonRequest
  12344. */
  12345. export interface SearchApiSearchPersonRequest {
  12346. /**
  12347. *
  12348. * @type {string}
  12349. * @memberof SearchApiSearchPerson
  12350. */
  12351. readonly name: string
  12352. /**
  12353. *
  12354. * @type {boolean}
  12355. * @memberof SearchApiSearchPerson
  12356. */
  12357. readonly withHidden?: boolean
  12358. }
  12359. /**
  12360. * SearchApi - object-oriented interface
  12361. * @export
  12362. * @class SearchApi
  12363. * @extends {BaseAPI}
  12364. */
  12365. export class SearchApi extends BaseAPI {
  12366. /**
  12367. *
  12368. * @param {*} [options] Override http request option.
  12369. * @throws {RequiredError}
  12370. * @memberof SearchApi
  12371. */
  12372. public getExploreData(options?: AxiosRequestConfig) {
  12373. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  12374. }
  12375. /**
  12376. *
  12377. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12378. * @param {*} [options] Override http request option.
  12379. * @throws {RequiredError}
  12380. * @memberof SearchApi
  12381. */
  12382. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  12383. 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));
  12384. }
  12385. /**
  12386. *
  12387. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12388. * @param {*} [options] Override http request option.
  12389. * @throws {RequiredError}
  12390. * @memberof SearchApi
  12391. */
  12392. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  12393. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12394. }
  12395. }
  12396. /**
  12397. * ServerInfoApi - axios parameter creator
  12398. * @export
  12399. */
  12400. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  12401. return {
  12402. /**
  12403. *
  12404. * @param {*} [options] Override http request option.
  12405. * @throws {RequiredError}
  12406. */
  12407. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12408. const localVarPath = `/server-info/config`;
  12409. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12410. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12411. let baseOptions;
  12412. if (configuration) {
  12413. baseOptions = configuration.baseOptions;
  12414. }
  12415. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12416. const localVarHeaderParameter = {} as any;
  12417. const localVarQueryParameter = {} as any;
  12418. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12419. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12420. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12421. return {
  12422. url: toPathString(localVarUrlObj),
  12423. options: localVarRequestOptions,
  12424. };
  12425. },
  12426. /**
  12427. *
  12428. * @param {*} [options] Override http request option.
  12429. * @throws {RequiredError}
  12430. */
  12431. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12432. const localVarPath = `/server-info/features`;
  12433. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12434. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12435. let baseOptions;
  12436. if (configuration) {
  12437. baseOptions = configuration.baseOptions;
  12438. }
  12439. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12440. const localVarHeaderParameter = {} as any;
  12441. const localVarQueryParameter = {} as any;
  12442. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12443. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12444. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12445. return {
  12446. url: toPathString(localVarUrlObj),
  12447. options: localVarRequestOptions,
  12448. };
  12449. },
  12450. /**
  12451. *
  12452. * @param {*} [options] Override http request option.
  12453. * @throws {RequiredError}
  12454. */
  12455. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12456. const localVarPath = `/server-info`;
  12457. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12458. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12459. let baseOptions;
  12460. if (configuration) {
  12461. baseOptions = configuration.baseOptions;
  12462. }
  12463. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12464. const localVarHeaderParameter = {} as any;
  12465. const localVarQueryParameter = {} as any;
  12466. // authentication cookie required
  12467. // authentication api_key required
  12468. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12469. // authentication bearer required
  12470. // http bearer authentication required
  12471. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12472. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12473. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12474. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12475. return {
  12476. url: toPathString(localVarUrlObj),
  12477. options: localVarRequestOptions,
  12478. };
  12479. },
  12480. /**
  12481. *
  12482. * @param {*} [options] Override http request option.
  12483. * @throws {RequiredError}
  12484. */
  12485. getServerStatistics: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12486. const localVarPath = `/server-info/statistics`;
  12487. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12488. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12489. let baseOptions;
  12490. if (configuration) {
  12491. baseOptions = configuration.baseOptions;
  12492. }
  12493. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12494. const localVarHeaderParameter = {} as any;
  12495. const localVarQueryParameter = {} as any;
  12496. // authentication cookie required
  12497. // authentication api_key required
  12498. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12499. // authentication bearer required
  12500. // http bearer authentication required
  12501. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12502. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12503. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12504. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12505. return {
  12506. url: toPathString(localVarUrlObj),
  12507. options: localVarRequestOptions,
  12508. };
  12509. },
  12510. /**
  12511. *
  12512. * @param {*} [options] Override http request option.
  12513. * @throws {RequiredError}
  12514. */
  12515. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12516. const localVarPath = `/server-info/version`;
  12517. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12518. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12519. let baseOptions;
  12520. if (configuration) {
  12521. baseOptions = configuration.baseOptions;
  12522. }
  12523. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12524. const localVarHeaderParameter = {} as any;
  12525. const localVarQueryParameter = {} as any;
  12526. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12527. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12528. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12529. return {
  12530. url: toPathString(localVarUrlObj),
  12531. options: localVarRequestOptions,
  12532. };
  12533. },
  12534. /**
  12535. *
  12536. * @param {*} [options] Override http request option.
  12537. * @throws {RequiredError}
  12538. */
  12539. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12540. const localVarPath = `/server-info/media-types`;
  12541. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12542. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12543. let baseOptions;
  12544. if (configuration) {
  12545. baseOptions = configuration.baseOptions;
  12546. }
  12547. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12548. const localVarHeaderParameter = {} as any;
  12549. const localVarQueryParameter = {} as any;
  12550. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12551. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12552. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12553. return {
  12554. url: toPathString(localVarUrlObj),
  12555. options: localVarRequestOptions,
  12556. };
  12557. },
  12558. /**
  12559. *
  12560. * @param {*} [options] Override http request option.
  12561. * @throws {RequiredError}
  12562. */
  12563. getTheme: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12564. const localVarPath = `/server-info/theme`;
  12565. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12566. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12567. let baseOptions;
  12568. if (configuration) {
  12569. baseOptions = configuration.baseOptions;
  12570. }
  12571. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12572. const localVarHeaderParameter = {} as any;
  12573. const localVarQueryParameter = {} as any;
  12574. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12575. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12576. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12577. return {
  12578. url: toPathString(localVarUrlObj),
  12579. options: localVarRequestOptions,
  12580. };
  12581. },
  12582. /**
  12583. *
  12584. * @param {*} [options] Override http request option.
  12585. * @throws {RequiredError}
  12586. */
  12587. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12588. const localVarPath = `/server-info/ping`;
  12589. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12590. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12591. let baseOptions;
  12592. if (configuration) {
  12593. baseOptions = configuration.baseOptions;
  12594. }
  12595. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12596. const localVarHeaderParameter = {} as any;
  12597. const localVarQueryParameter = {} as any;
  12598. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12599. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12600. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12601. return {
  12602. url: toPathString(localVarUrlObj),
  12603. options: localVarRequestOptions,
  12604. };
  12605. },
  12606. }
  12607. };
  12608. /**
  12609. * ServerInfoApi - functional programming interface
  12610. * @export
  12611. */
  12612. export const ServerInfoApiFp = function(configuration?: Configuration) {
  12613. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  12614. return {
  12615. /**
  12616. *
  12617. * @param {*} [options] Override http request option.
  12618. * @throws {RequiredError}
  12619. */
  12620. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  12621. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  12622. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12623. },
  12624. /**
  12625. *
  12626. * @param {*} [options] Override http request option.
  12627. * @throws {RequiredError}
  12628. */
  12629. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  12630. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  12631. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12632. },
  12633. /**
  12634. *
  12635. * @param {*} [options] Override http request option.
  12636. * @throws {RequiredError}
  12637. */
  12638. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  12639. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  12640. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12641. },
  12642. /**
  12643. *
  12644. * @param {*} [options] Override http request option.
  12645. * @throws {RequiredError}
  12646. */
  12647. async getServerStatistics(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  12648. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerStatistics(options);
  12649. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12650. },
  12651. /**
  12652. *
  12653. * @param {*} [options] Override http request option.
  12654. * @throws {RequiredError}
  12655. */
  12656. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  12657. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  12658. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12659. },
  12660. /**
  12661. *
  12662. * @param {*} [options] Override http request option.
  12663. * @throws {RequiredError}
  12664. */
  12665. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  12666. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  12667. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12668. },
  12669. /**
  12670. *
  12671. * @param {*} [options] Override http request option.
  12672. * @throws {RequiredError}
  12673. */
  12674. async getTheme(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerThemeDto>> {
  12675. const localVarAxiosArgs = await localVarAxiosParamCreator.getTheme(options);
  12676. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12677. },
  12678. /**
  12679. *
  12680. * @param {*} [options] Override http request option.
  12681. * @throws {RequiredError}
  12682. */
  12683. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  12684. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  12685. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12686. },
  12687. }
  12688. };
  12689. /**
  12690. * ServerInfoApi - factory interface
  12691. * @export
  12692. */
  12693. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12694. const localVarFp = ServerInfoApiFp(configuration)
  12695. return {
  12696. /**
  12697. *
  12698. * @param {*} [options] Override http request option.
  12699. * @throws {RequiredError}
  12700. */
  12701. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  12702. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  12703. },
  12704. /**
  12705. *
  12706. * @param {*} [options] Override http request option.
  12707. * @throws {RequiredError}
  12708. */
  12709. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  12710. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  12711. },
  12712. /**
  12713. *
  12714. * @param {*} [options] Override http request option.
  12715. * @throws {RequiredError}
  12716. */
  12717. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  12718. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  12719. },
  12720. /**
  12721. *
  12722. * @param {*} [options] Override http request option.
  12723. * @throws {RequiredError}
  12724. */
  12725. getServerStatistics(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  12726. return localVarFp.getServerStatistics(options).then((request) => request(axios, basePath));
  12727. },
  12728. /**
  12729. *
  12730. * @param {*} [options] Override http request option.
  12731. * @throws {RequiredError}
  12732. */
  12733. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  12734. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  12735. },
  12736. /**
  12737. *
  12738. * @param {*} [options] Override http request option.
  12739. * @throws {RequiredError}
  12740. */
  12741. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  12742. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  12743. },
  12744. /**
  12745. *
  12746. * @param {*} [options] Override http request option.
  12747. * @throws {RequiredError}
  12748. */
  12749. getTheme(options?: AxiosRequestConfig): AxiosPromise<ServerThemeDto> {
  12750. return localVarFp.getTheme(options).then((request) => request(axios, basePath));
  12751. },
  12752. /**
  12753. *
  12754. * @param {*} [options] Override http request option.
  12755. * @throws {RequiredError}
  12756. */
  12757. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  12758. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  12759. },
  12760. };
  12761. };
  12762. /**
  12763. * ServerInfoApi - object-oriented interface
  12764. * @export
  12765. * @class ServerInfoApi
  12766. * @extends {BaseAPI}
  12767. */
  12768. export class ServerInfoApi extends BaseAPI {
  12769. /**
  12770. *
  12771. * @param {*} [options] Override http request option.
  12772. * @throws {RequiredError}
  12773. * @memberof ServerInfoApi
  12774. */
  12775. public getServerConfig(options?: AxiosRequestConfig) {
  12776. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  12777. }
  12778. /**
  12779. *
  12780. * @param {*} [options] Override http request option.
  12781. * @throws {RequiredError}
  12782. * @memberof ServerInfoApi
  12783. */
  12784. public getServerFeatures(options?: AxiosRequestConfig) {
  12785. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  12786. }
  12787. /**
  12788. *
  12789. * @param {*} [options] Override http request option.
  12790. * @throws {RequiredError}
  12791. * @memberof ServerInfoApi
  12792. */
  12793. public getServerInfo(options?: AxiosRequestConfig) {
  12794. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  12795. }
  12796. /**
  12797. *
  12798. * @param {*} [options] Override http request option.
  12799. * @throws {RequiredError}
  12800. * @memberof ServerInfoApi
  12801. */
  12802. public getServerStatistics(options?: AxiosRequestConfig) {
  12803. return ServerInfoApiFp(this.configuration).getServerStatistics(options).then((request) => request(this.axios, this.basePath));
  12804. }
  12805. /**
  12806. *
  12807. * @param {*} [options] Override http request option.
  12808. * @throws {RequiredError}
  12809. * @memberof ServerInfoApi
  12810. */
  12811. public getServerVersion(options?: AxiosRequestConfig) {
  12812. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  12813. }
  12814. /**
  12815. *
  12816. * @param {*} [options] Override http request option.
  12817. * @throws {RequiredError}
  12818. * @memberof ServerInfoApi
  12819. */
  12820. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  12821. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  12822. }
  12823. /**
  12824. *
  12825. * @param {*} [options] Override http request option.
  12826. * @throws {RequiredError}
  12827. * @memberof ServerInfoApi
  12828. */
  12829. public getTheme(options?: AxiosRequestConfig) {
  12830. return ServerInfoApiFp(this.configuration).getTheme(options).then((request) => request(this.axios, this.basePath));
  12831. }
  12832. /**
  12833. *
  12834. * @param {*} [options] Override http request option.
  12835. * @throws {RequiredError}
  12836. * @memberof ServerInfoApi
  12837. */
  12838. public pingServer(options?: AxiosRequestConfig) {
  12839. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  12840. }
  12841. }
  12842. /**
  12843. * SharedLinkApi - axios parameter creator
  12844. * @export
  12845. */
  12846. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  12847. return {
  12848. /**
  12849. *
  12850. * @param {string} id
  12851. * @param {AssetIdsDto} assetIdsDto
  12852. * @param {string} [key]
  12853. * @param {*} [options] Override http request option.
  12854. * @throws {RequiredError}
  12855. */
  12856. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12857. // verify required parameter 'id' is not null or undefined
  12858. assertParamExists('addSharedLinkAssets', 'id', id)
  12859. // verify required parameter 'assetIdsDto' is not null or undefined
  12860. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12861. const localVarPath = `/shared-link/{id}/assets`
  12862. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12863. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12864. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12865. let baseOptions;
  12866. if (configuration) {
  12867. baseOptions = configuration.baseOptions;
  12868. }
  12869. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12870. const localVarHeaderParameter = {} as any;
  12871. const localVarQueryParameter = {} as any;
  12872. // authentication cookie required
  12873. // authentication api_key required
  12874. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12875. // authentication bearer required
  12876. // http bearer authentication required
  12877. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12878. if (key !== undefined) {
  12879. localVarQueryParameter['key'] = key;
  12880. }
  12881. localVarHeaderParameter['Content-Type'] = 'application/json';
  12882. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12883. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12884. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12885. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12886. return {
  12887. url: toPathString(localVarUrlObj),
  12888. options: localVarRequestOptions,
  12889. };
  12890. },
  12891. /**
  12892. *
  12893. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12894. * @param {*} [options] Override http request option.
  12895. * @throws {RequiredError}
  12896. */
  12897. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12898. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  12899. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  12900. const localVarPath = `/shared-link`;
  12901. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12902. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12903. let baseOptions;
  12904. if (configuration) {
  12905. baseOptions = configuration.baseOptions;
  12906. }
  12907. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12908. const localVarHeaderParameter = {} as any;
  12909. const localVarQueryParameter = {} as any;
  12910. // authentication cookie required
  12911. // authentication api_key required
  12912. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12913. // authentication bearer required
  12914. // http bearer authentication required
  12915. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12916. localVarHeaderParameter['Content-Type'] = 'application/json';
  12917. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12918. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12919. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12920. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  12921. return {
  12922. url: toPathString(localVarUrlObj),
  12923. options: localVarRequestOptions,
  12924. };
  12925. },
  12926. /**
  12927. *
  12928. * @param {*} [options] Override http request option.
  12929. * @throws {RequiredError}
  12930. */
  12931. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12932. const localVarPath = `/shared-link`;
  12933. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12934. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12935. let baseOptions;
  12936. if (configuration) {
  12937. baseOptions = configuration.baseOptions;
  12938. }
  12939. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12940. const localVarHeaderParameter = {} as any;
  12941. const localVarQueryParameter = {} as any;
  12942. // authentication cookie required
  12943. // authentication api_key required
  12944. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12945. // authentication bearer required
  12946. // http bearer authentication required
  12947. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12948. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12949. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12950. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12951. return {
  12952. url: toPathString(localVarUrlObj),
  12953. options: localVarRequestOptions,
  12954. };
  12955. },
  12956. /**
  12957. *
  12958. * @param {string} [password]
  12959. * @param {string} [token]
  12960. * @param {string} [key]
  12961. * @param {*} [options] Override http request option.
  12962. * @throws {RequiredError}
  12963. */
  12964. getMySharedLink: async (password?: string, token?: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12965. const localVarPath = `/shared-link/me`;
  12966. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12967. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12968. let baseOptions;
  12969. if (configuration) {
  12970. baseOptions = configuration.baseOptions;
  12971. }
  12972. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12973. const localVarHeaderParameter = {} as any;
  12974. const localVarQueryParameter = {} as any;
  12975. // authentication cookie required
  12976. // authentication api_key required
  12977. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12978. // authentication bearer required
  12979. // http bearer authentication required
  12980. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12981. if (password !== undefined) {
  12982. localVarQueryParameter['password'] = password;
  12983. }
  12984. if (token !== undefined) {
  12985. localVarQueryParameter['token'] = token;
  12986. }
  12987. if (key !== undefined) {
  12988. localVarQueryParameter['key'] = key;
  12989. }
  12990. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12991. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12992. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12993. return {
  12994. url: toPathString(localVarUrlObj),
  12995. options: localVarRequestOptions,
  12996. };
  12997. },
  12998. /**
  12999. *
  13000. * @param {string} id
  13001. * @param {*} [options] Override http request option.
  13002. * @throws {RequiredError}
  13003. */
  13004. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13005. // verify required parameter 'id' is not null or undefined
  13006. assertParamExists('getSharedLinkById', 'id', id)
  13007. const localVarPath = `/shared-link/{id}`
  13008. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13009. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13010. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13011. let baseOptions;
  13012. if (configuration) {
  13013. baseOptions = configuration.baseOptions;
  13014. }
  13015. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13016. const localVarHeaderParameter = {} as any;
  13017. const localVarQueryParameter = {} as any;
  13018. // authentication cookie required
  13019. // authentication api_key required
  13020. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13021. // authentication bearer required
  13022. // http bearer authentication required
  13023. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13024. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13025. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13026. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13027. return {
  13028. url: toPathString(localVarUrlObj),
  13029. options: localVarRequestOptions,
  13030. };
  13031. },
  13032. /**
  13033. *
  13034. * @param {string} id
  13035. * @param {*} [options] Override http request option.
  13036. * @throws {RequiredError}
  13037. */
  13038. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13039. // verify required parameter 'id' is not null or undefined
  13040. assertParamExists('removeSharedLink', 'id', id)
  13041. const localVarPath = `/shared-link/{id}`
  13042. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13043. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13044. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13045. let baseOptions;
  13046. if (configuration) {
  13047. baseOptions = configuration.baseOptions;
  13048. }
  13049. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13050. const localVarHeaderParameter = {} as any;
  13051. const localVarQueryParameter = {} as any;
  13052. // authentication cookie required
  13053. // authentication api_key required
  13054. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13055. // authentication bearer required
  13056. // http bearer authentication required
  13057. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13058. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13059. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13060. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13061. return {
  13062. url: toPathString(localVarUrlObj),
  13063. options: localVarRequestOptions,
  13064. };
  13065. },
  13066. /**
  13067. *
  13068. * @param {string} id
  13069. * @param {AssetIdsDto} assetIdsDto
  13070. * @param {string} [key]
  13071. * @param {*} [options] Override http request option.
  13072. * @throws {RequiredError}
  13073. */
  13074. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13075. // verify required parameter 'id' is not null or undefined
  13076. assertParamExists('removeSharedLinkAssets', 'id', id)
  13077. // verify required parameter 'assetIdsDto' is not null or undefined
  13078. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13079. const localVarPath = `/shared-link/{id}/assets`
  13080. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13081. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13082. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13083. let baseOptions;
  13084. if (configuration) {
  13085. baseOptions = configuration.baseOptions;
  13086. }
  13087. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13088. const localVarHeaderParameter = {} as any;
  13089. const localVarQueryParameter = {} as any;
  13090. // authentication cookie required
  13091. // authentication api_key required
  13092. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13093. // authentication bearer required
  13094. // http bearer authentication required
  13095. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13096. if (key !== undefined) {
  13097. localVarQueryParameter['key'] = key;
  13098. }
  13099. localVarHeaderParameter['Content-Type'] = 'application/json';
  13100. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13101. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13102. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13103. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13104. return {
  13105. url: toPathString(localVarUrlObj),
  13106. options: localVarRequestOptions,
  13107. };
  13108. },
  13109. /**
  13110. *
  13111. * @param {string} id
  13112. * @param {SharedLinkEditDto} sharedLinkEditDto
  13113. * @param {*} [options] Override http request option.
  13114. * @throws {RequiredError}
  13115. */
  13116. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13117. // verify required parameter 'id' is not null or undefined
  13118. assertParamExists('updateSharedLink', 'id', id)
  13119. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  13120. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  13121. const localVarPath = `/shared-link/{id}`
  13122. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13123. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13124. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13125. let baseOptions;
  13126. if (configuration) {
  13127. baseOptions = configuration.baseOptions;
  13128. }
  13129. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13130. const localVarHeaderParameter = {} as any;
  13131. const localVarQueryParameter = {} as any;
  13132. // authentication cookie required
  13133. // authentication api_key required
  13134. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13135. // authentication bearer required
  13136. // http bearer authentication required
  13137. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13138. localVarHeaderParameter['Content-Type'] = 'application/json';
  13139. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13140. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13141. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13142. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  13143. return {
  13144. url: toPathString(localVarUrlObj),
  13145. options: localVarRequestOptions,
  13146. };
  13147. },
  13148. }
  13149. };
  13150. /**
  13151. * SharedLinkApi - functional programming interface
  13152. * @export
  13153. */
  13154. export const SharedLinkApiFp = function(configuration?: Configuration) {
  13155. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  13156. return {
  13157. /**
  13158. *
  13159. * @param {string} id
  13160. * @param {AssetIdsDto} assetIdsDto
  13161. * @param {string} [key]
  13162. * @param {*} [options] Override http request option.
  13163. * @throws {RequiredError}
  13164. */
  13165. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13166. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  13167. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13168. },
  13169. /**
  13170. *
  13171. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13172. * @param {*} [options] Override http request option.
  13173. * @throws {RequiredError}
  13174. */
  13175. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13176. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  13177. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13178. },
  13179. /**
  13180. *
  13181. * @param {*} [options] Override http request option.
  13182. * @throws {RequiredError}
  13183. */
  13184. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  13185. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  13186. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13187. },
  13188. /**
  13189. *
  13190. * @param {string} [password]
  13191. * @param {string} [token]
  13192. * @param {string} [key]
  13193. * @param {*} [options] Override http request option.
  13194. * @throws {RequiredError}
  13195. */
  13196. async getMySharedLink(password?: string, token?: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13197. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(password, token, key, options);
  13198. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13199. },
  13200. /**
  13201. *
  13202. * @param {string} id
  13203. * @param {*} [options] Override http request option.
  13204. * @throws {RequiredError}
  13205. */
  13206. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13207. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  13208. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13209. },
  13210. /**
  13211. *
  13212. * @param {string} id
  13213. * @param {*} [options] Override http request option.
  13214. * @throws {RequiredError}
  13215. */
  13216. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13217. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  13218. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13219. },
  13220. /**
  13221. *
  13222. * @param {string} id
  13223. * @param {AssetIdsDto} assetIdsDto
  13224. * @param {string} [key]
  13225. * @param {*} [options] Override http request option.
  13226. * @throws {RequiredError}
  13227. */
  13228. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13229. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  13230. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13231. },
  13232. /**
  13233. *
  13234. * @param {string} id
  13235. * @param {SharedLinkEditDto} sharedLinkEditDto
  13236. * @param {*} [options] Override http request option.
  13237. * @throws {RequiredError}
  13238. */
  13239. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13240. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  13241. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13242. },
  13243. }
  13244. };
  13245. /**
  13246. * SharedLinkApi - factory interface
  13247. * @export
  13248. */
  13249. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13250. const localVarFp = SharedLinkApiFp(configuration)
  13251. return {
  13252. /**
  13253. *
  13254. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13255. * @param {*} [options] Override http request option.
  13256. * @throws {RequiredError}
  13257. */
  13258. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13259. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13260. },
  13261. /**
  13262. *
  13263. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13264. * @param {*} [options] Override http request option.
  13265. * @throws {RequiredError}
  13266. */
  13267. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13268. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  13269. },
  13270. /**
  13271. *
  13272. * @param {*} [options] Override http request option.
  13273. * @throws {RequiredError}
  13274. */
  13275. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  13276. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  13277. },
  13278. /**
  13279. *
  13280. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13281. * @param {*} [options] Override http request option.
  13282. * @throws {RequiredError}
  13283. */
  13284. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13285. return localVarFp.getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(axios, basePath));
  13286. },
  13287. /**
  13288. *
  13289. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13290. * @param {*} [options] Override http request option.
  13291. * @throws {RequiredError}
  13292. */
  13293. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13294. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  13295. },
  13296. /**
  13297. *
  13298. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13299. * @param {*} [options] Override http request option.
  13300. * @throws {RequiredError}
  13301. */
  13302. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13303. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  13304. },
  13305. /**
  13306. *
  13307. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13308. * @param {*} [options] Override http request option.
  13309. * @throws {RequiredError}
  13310. */
  13311. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13312. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13313. },
  13314. /**
  13315. *
  13316. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13317. * @param {*} [options] Override http request option.
  13318. * @throws {RequiredError}
  13319. */
  13320. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13321. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  13322. },
  13323. };
  13324. };
  13325. /**
  13326. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  13327. * @export
  13328. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  13329. */
  13330. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  13331. /**
  13332. *
  13333. * @type {string}
  13334. * @memberof SharedLinkApiAddSharedLinkAssets
  13335. */
  13336. readonly id: string
  13337. /**
  13338. *
  13339. * @type {AssetIdsDto}
  13340. * @memberof SharedLinkApiAddSharedLinkAssets
  13341. */
  13342. readonly assetIdsDto: AssetIdsDto
  13343. /**
  13344. *
  13345. * @type {string}
  13346. * @memberof SharedLinkApiAddSharedLinkAssets
  13347. */
  13348. readonly key?: string
  13349. }
  13350. /**
  13351. * Request parameters for createSharedLink operation in SharedLinkApi.
  13352. * @export
  13353. * @interface SharedLinkApiCreateSharedLinkRequest
  13354. */
  13355. export interface SharedLinkApiCreateSharedLinkRequest {
  13356. /**
  13357. *
  13358. * @type {SharedLinkCreateDto}
  13359. * @memberof SharedLinkApiCreateSharedLink
  13360. */
  13361. readonly sharedLinkCreateDto: SharedLinkCreateDto
  13362. }
  13363. /**
  13364. * Request parameters for getMySharedLink operation in SharedLinkApi.
  13365. * @export
  13366. * @interface SharedLinkApiGetMySharedLinkRequest
  13367. */
  13368. export interface SharedLinkApiGetMySharedLinkRequest {
  13369. /**
  13370. *
  13371. * @type {string}
  13372. * @memberof SharedLinkApiGetMySharedLink
  13373. */
  13374. readonly password?: string
  13375. /**
  13376. *
  13377. * @type {string}
  13378. * @memberof SharedLinkApiGetMySharedLink
  13379. */
  13380. readonly token?: string
  13381. /**
  13382. *
  13383. * @type {string}
  13384. * @memberof SharedLinkApiGetMySharedLink
  13385. */
  13386. readonly key?: string
  13387. }
  13388. /**
  13389. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  13390. * @export
  13391. * @interface SharedLinkApiGetSharedLinkByIdRequest
  13392. */
  13393. export interface SharedLinkApiGetSharedLinkByIdRequest {
  13394. /**
  13395. *
  13396. * @type {string}
  13397. * @memberof SharedLinkApiGetSharedLinkById
  13398. */
  13399. readonly id: string
  13400. }
  13401. /**
  13402. * Request parameters for removeSharedLink operation in SharedLinkApi.
  13403. * @export
  13404. * @interface SharedLinkApiRemoveSharedLinkRequest
  13405. */
  13406. export interface SharedLinkApiRemoveSharedLinkRequest {
  13407. /**
  13408. *
  13409. * @type {string}
  13410. * @memberof SharedLinkApiRemoveSharedLink
  13411. */
  13412. readonly id: string
  13413. }
  13414. /**
  13415. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  13416. * @export
  13417. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  13418. */
  13419. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  13420. /**
  13421. *
  13422. * @type {string}
  13423. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13424. */
  13425. readonly id: string
  13426. /**
  13427. *
  13428. * @type {AssetIdsDto}
  13429. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13430. */
  13431. readonly assetIdsDto: AssetIdsDto
  13432. /**
  13433. *
  13434. * @type {string}
  13435. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13436. */
  13437. readonly key?: string
  13438. }
  13439. /**
  13440. * Request parameters for updateSharedLink operation in SharedLinkApi.
  13441. * @export
  13442. * @interface SharedLinkApiUpdateSharedLinkRequest
  13443. */
  13444. export interface SharedLinkApiUpdateSharedLinkRequest {
  13445. /**
  13446. *
  13447. * @type {string}
  13448. * @memberof SharedLinkApiUpdateSharedLink
  13449. */
  13450. readonly id: string
  13451. /**
  13452. *
  13453. * @type {SharedLinkEditDto}
  13454. * @memberof SharedLinkApiUpdateSharedLink
  13455. */
  13456. readonly sharedLinkEditDto: SharedLinkEditDto
  13457. }
  13458. /**
  13459. * SharedLinkApi - object-oriented interface
  13460. * @export
  13461. * @class SharedLinkApi
  13462. * @extends {BaseAPI}
  13463. */
  13464. export class SharedLinkApi extends BaseAPI {
  13465. /**
  13466. *
  13467. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13468. * @param {*} [options] Override http request option.
  13469. * @throws {RequiredError}
  13470. * @memberof SharedLinkApi
  13471. */
  13472. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  13473. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13474. }
  13475. /**
  13476. *
  13477. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13478. * @param {*} [options] Override http request option.
  13479. * @throws {RequiredError}
  13480. * @memberof SharedLinkApi
  13481. */
  13482. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  13483. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  13484. }
  13485. /**
  13486. *
  13487. * @param {*} [options] Override http request option.
  13488. * @throws {RequiredError}
  13489. * @memberof SharedLinkApi
  13490. */
  13491. public getAllSharedLinks(options?: AxiosRequestConfig) {
  13492. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  13493. }
  13494. /**
  13495. *
  13496. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13497. * @param {*} [options] Override http request option.
  13498. * @throws {RequiredError}
  13499. * @memberof SharedLinkApi
  13500. */
  13501. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  13502. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13503. }
  13504. /**
  13505. *
  13506. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13507. * @param {*} [options] Override http request option.
  13508. * @throws {RequiredError}
  13509. * @memberof SharedLinkApi
  13510. */
  13511. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  13512. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13513. }
  13514. /**
  13515. *
  13516. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13517. * @param {*} [options] Override http request option.
  13518. * @throws {RequiredError}
  13519. * @memberof SharedLinkApi
  13520. */
  13521. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  13522. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13523. }
  13524. /**
  13525. *
  13526. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13527. * @param {*} [options] Override http request option.
  13528. * @throws {RequiredError}
  13529. * @memberof SharedLinkApi
  13530. */
  13531. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  13532. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13533. }
  13534. /**
  13535. *
  13536. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13537. * @param {*} [options] Override http request option.
  13538. * @throws {RequiredError}
  13539. * @memberof SharedLinkApi
  13540. */
  13541. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  13542. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  13543. }
  13544. }
  13545. /**
  13546. * SystemConfigApi - axios parameter creator
  13547. * @export
  13548. */
  13549. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  13550. return {
  13551. /**
  13552. *
  13553. * @param {*} [options] Override http request option.
  13554. * @throws {RequiredError}
  13555. */
  13556. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13557. const localVarPath = `/system-config`;
  13558. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13559. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13560. let baseOptions;
  13561. if (configuration) {
  13562. baseOptions = configuration.baseOptions;
  13563. }
  13564. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13565. const localVarHeaderParameter = {} as any;
  13566. const localVarQueryParameter = {} as any;
  13567. // authentication cookie required
  13568. // authentication api_key required
  13569. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13570. // authentication bearer required
  13571. // http bearer authentication required
  13572. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13573. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13574. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13575. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13576. return {
  13577. url: toPathString(localVarUrlObj),
  13578. options: localVarRequestOptions,
  13579. };
  13580. },
  13581. /**
  13582. *
  13583. * @param {*} [options] Override http request option.
  13584. * @throws {RequiredError}
  13585. */
  13586. getConfigDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13587. const localVarPath = `/system-config/defaults`;
  13588. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13589. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13590. let baseOptions;
  13591. if (configuration) {
  13592. baseOptions = configuration.baseOptions;
  13593. }
  13594. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13595. const localVarHeaderParameter = {} as any;
  13596. const localVarQueryParameter = {} as any;
  13597. // authentication cookie required
  13598. // authentication api_key required
  13599. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13600. // authentication bearer required
  13601. // http bearer authentication required
  13602. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13603. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13604. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13605. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13606. return {
  13607. url: toPathString(localVarUrlObj),
  13608. options: localVarRequestOptions,
  13609. };
  13610. },
  13611. /**
  13612. *
  13613. * @param {*} [options] Override http request option.
  13614. * @throws {RequiredError}
  13615. */
  13616. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13617. const localVarPath = `/system-config/storage-template-options`;
  13618. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13619. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13620. let baseOptions;
  13621. if (configuration) {
  13622. baseOptions = configuration.baseOptions;
  13623. }
  13624. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13625. const localVarHeaderParameter = {} as any;
  13626. const localVarQueryParameter = {} as any;
  13627. // authentication cookie required
  13628. // authentication api_key required
  13629. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13630. // authentication bearer required
  13631. // http bearer authentication required
  13632. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13633. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13634. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13635. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13636. return {
  13637. url: toPathString(localVarUrlObj),
  13638. options: localVarRequestOptions,
  13639. };
  13640. },
  13641. /**
  13642. *
  13643. * @param {SystemConfigDto} systemConfigDto
  13644. * @param {*} [options] Override http request option.
  13645. * @throws {RequiredError}
  13646. */
  13647. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13648. // verify required parameter 'systemConfigDto' is not null or undefined
  13649. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  13650. const localVarPath = `/system-config`;
  13651. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13652. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13653. let baseOptions;
  13654. if (configuration) {
  13655. baseOptions = configuration.baseOptions;
  13656. }
  13657. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13658. const localVarHeaderParameter = {} as any;
  13659. const localVarQueryParameter = {} as any;
  13660. // authentication cookie required
  13661. // authentication api_key required
  13662. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13663. // authentication bearer required
  13664. // http bearer authentication required
  13665. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13666. localVarHeaderParameter['Content-Type'] = 'application/json';
  13667. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13668. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13669. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13670. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  13671. return {
  13672. url: toPathString(localVarUrlObj),
  13673. options: localVarRequestOptions,
  13674. };
  13675. },
  13676. }
  13677. };
  13678. /**
  13679. * SystemConfigApi - functional programming interface
  13680. * @export
  13681. */
  13682. export const SystemConfigApiFp = function(configuration?: Configuration) {
  13683. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  13684. return {
  13685. /**
  13686. *
  13687. * @param {*} [options] Override http request option.
  13688. * @throws {RequiredError}
  13689. */
  13690. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13691. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  13692. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13693. },
  13694. /**
  13695. *
  13696. * @param {*} [options] Override http request option.
  13697. * @throws {RequiredError}
  13698. */
  13699. async getConfigDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13700. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfigDefaults(options);
  13701. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13702. },
  13703. /**
  13704. *
  13705. * @param {*} [options] Override http request option.
  13706. * @throws {RequiredError}
  13707. */
  13708. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  13709. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  13710. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13711. },
  13712. /**
  13713. *
  13714. * @param {SystemConfigDto} systemConfigDto
  13715. * @param {*} [options] Override http request option.
  13716. * @throws {RequiredError}
  13717. */
  13718. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13719. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  13720. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13721. },
  13722. }
  13723. };
  13724. /**
  13725. * SystemConfigApi - factory interface
  13726. * @export
  13727. */
  13728. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13729. const localVarFp = SystemConfigApiFp(configuration)
  13730. return {
  13731. /**
  13732. *
  13733. * @param {*} [options] Override http request option.
  13734. * @throws {RequiredError}
  13735. */
  13736. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13737. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  13738. },
  13739. /**
  13740. *
  13741. * @param {*} [options] Override http request option.
  13742. * @throws {RequiredError}
  13743. */
  13744. getConfigDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13745. return localVarFp.getConfigDefaults(options).then((request) => request(axios, basePath));
  13746. },
  13747. /**
  13748. *
  13749. * @param {*} [options] Override http request option.
  13750. * @throws {RequiredError}
  13751. */
  13752. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  13753. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  13754. },
  13755. /**
  13756. *
  13757. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13758. * @param {*} [options] Override http request option.
  13759. * @throws {RequiredError}
  13760. */
  13761. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13762. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  13763. },
  13764. };
  13765. };
  13766. /**
  13767. * Request parameters for updateConfig operation in SystemConfigApi.
  13768. * @export
  13769. * @interface SystemConfigApiUpdateConfigRequest
  13770. */
  13771. export interface SystemConfigApiUpdateConfigRequest {
  13772. /**
  13773. *
  13774. * @type {SystemConfigDto}
  13775. * @memberof SystemConfigApiUpdateConfig
  13776. */
  13777. readonly systemConfigDto: SystemConfigDto
  13778. }
  13779. /**
  13780. * SystemConfigApi - object-oriented interface
  13781. * @export
  13782. * @class SystemConfigApi
  13783. * @extends {BaseAPI}
  13784. */
  13785. export class SystemConfigApi extends BaseAPI {
  13786. /**
  13787. *
  13788. * @param {*} [options] Override http request option.
  13789. * @throws {RequiredError}
  13790. * @memberof SystemConfigApi
  13791. */
  13792. public getConfig(options?: AxiosRequestConfig) {
  13793. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  13794. }
  13795. /**
  13796. *
  13797. * @param {*} [options] Override http request option.
  13798. * @throws {RequiredError}
  13799. * @memberof SystemConfigApi
  13800. */
  13801. public getConfigDefaults(options?: AxiosRequestConfig) {
  13802. return SystemConfigApiFp(this.configuration).getConfigDefaults(options).then((request) => request(this.axios, this.basePath));
  13803. }
  13804. /**
  13805. *
  13806. * @param {*} [options] Override http request option.
  13807. * @throws {RequiredError}
  13808. * @memberof SystemConfigApi
  13809. */
  13810. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  13811. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  13812. }
  13813. /**
  13814. *
  13815. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13816. * @param {*} [options] Override http request option.
  13817. * @throws {RequiredError}
  13818. * @memberof SystemConfigApi
  13819. */
  13820. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  13821. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  13822. }
  13823. }
  13824. /**
  13825. * TagApi - axios parameter creator
  13826. * @export
  13827. */
  13828. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  13829. return {
  13830. /**
  13831. *
  13832. * @param {CreateTagDto} createTagDto
  13833. * @param {*} [options] Override http request option.
  13834. * @throws {RequiredError}
  13835. */
  13836. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13837. // verify required parameter 'createTagDto' is not null or undefined
  13838. assertParamExists('createTag', 'createTagDto', createTagDto)
  13839. const localVarPath = `/tag`;
  13840. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13841. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13842. let baseOptions;
  13843. if (configuration) {
  13844. baseOptions = configuration.baseOptions;
  13845. }
  13846. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13847. const localVarHeaderParameter = {} as any;
  13848. const localVarQueryParameter = {} as any;
  13849. // authentication cookie required
  13850. // authentication api_key required
  13851. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13852. // authentication bearer required
  13853. // http bearer authentication required
  13854. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13855. localVarHeaderParameter['Content-Type'] = 'application/json';
  13856. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13857. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13858. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13859. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  13860. return {
  13861. url: toPathString(localVarUrlObj),
  13862. options: localVarRequestOptions,
  13863. };
  13864. },
  13865. /**
  13866. *
  13867. * @param {string} id
  13868. * @param {*} [options] Override http request option.
  13869. * @throws {RequiredError}
  13870. */
  13871. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13872. // verify required parameter 'id' is not null or undefined
  13873. assertParamExists('deleteTag', 'id', id)
  13874. const localVarPath = `/tag/{id}`
  13875. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13876. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13877. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13878. let baseOptions;
  13879. if (configuration) {
  13880. baseOptions = configuration.baseOptions;
  13881. }
  13882. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13883. const localVarHeaderParameter = {} as any;
  13884. const localVarQueryParameter = {} as any;
  13885. // authentication cookie required
  13886. // authentication api_key required
  13887. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13888. // authentication bearer required
  13889. // http bearer authentication required
  13890. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13891. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13892. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13893. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13894. return {
  13895. url: toPathString(localVarUrlObj),
  13896. options: localVarRequestOptions,
  13897. };
  13898. },
  13899. /**
  13900. *
  13901. * @param {*} [options] Override http request option.
  13902. * @throws {RequiredError}
  13903. */
  13904. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13905. const localVarPath = `/tag`;
  13906. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13907. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13908. let baseOptions;
  13909. if (configuration) {
  13910. baseOptions = configuration.baseOptions;
  13911. }
  13912. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13913. const localVarHeaderParameter = {} as any;
  13914. const localVarQueryParameter = {} as any;
  13915. // authentication cookie required
  13916. // authentication api_key required
  13917. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13918. // authentication bearer required
  13919. // http bearer authentication required
  13920. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13921. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13922. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13923. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13924. return {
  13925. url: toPathString(localVarUrlObj),
  13926. options: localVarRequestOptions,
  13927. };
  13928. },
  13929. /**
  13930. *
  13931. * @param {string} id
  13932. * @param {*} [options] Override http request option.
  13933. * @throws {RequiredError}
  13934. */
  13935. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13936. // verify required parameter 'id' is not null or undefined
  13937. assertParamExists('getTagAssets', 'id', id)
  13938. const localVarPath = `/tag/{id}/assets`
  13939. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13940. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13941. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13942. let baseOptions;
  13943. if (configuration) {
  13944. baseOptions = configuration.baseOptions;
  13945. }
  13946. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13947. const localVarHeaderParameter = {} as any;
  13948. const localVarQueryParameter = {} as any;
  13949. // authentication cookie required
  13950. // authentication api_key required
  13951. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13952. // authentication bearer required
  13953. // http bearer authentication required
  13954. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13955. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13956. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13957. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13958. return {
  13959. url: toPathString(localVarUrlObj),
  13960. options: localVarRequestOptions,
  13961. };
  13962. },
  13963. /**
  13964. *
  13965. * @param {string} id
  13966. * @param {*} [options] Override http request option.
  13967. * @throws {RequiredError}
  13968. */
  13969. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13970. // verify required parameter 'id' is not null or undefined
  13971. assertParamExists('getTagById', 'id', id)
  13972. const localVarPath = `/tag/{id}`
  13973. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13974. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13975. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13976. let baseOptions;
  13977. if (configuration) {
  13978. baseOptions = configuration.baseOptions;
  13979. }
  13980. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13981. const localVarHeaderParameter = {} as any;
  13982. const localVarQueryParameter = {} as any;
  13983. // authentication cookie required
  13984. // authentication api_key required
  13985. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13986. // authentication bearer required
  13987. // http bearer authentication required
  13988. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13989. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13990. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13991. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13992. return {
  13993. url: toPathString(localVarUrlObj),
  13994. options: localVarRequestOptions,
  13995. };
  13996. },
  13997. /**
  13998. *
  13999. * @param {string} id
  14000. * @param {AssetIdsDto} assetIdsDto
  14001. * @param {*} [options] Override http request option.
  14002. * @throws {RequiredError}
  14003. */
  14004. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14005. // verify required parameter 'id' is not null or undefined
  14006. assertParamExists('tagAssets', 'id', id)
  14007. // verify required parameter 'assetIdsDto' is not null or undefined
  14008. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  14009. const localVarPath = `/tag/{id}/assets`
  14010. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14011. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14012. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14013. let baseOptions;
  14014. if (configuration) {
  14015. baseOptions = configuration.baseOptions;
  14016. }
  14017. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14018. const localVarHeaderParameter = {} as any;
  14019. const localVarQueryParameter = {} as any;
  14020. // authentication cookie required
  14021. // authentication api_key required
  14022. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14023. // authentication bearer required
  14024. // http bearer authentication required
  14025. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14026. localVarHeaderParameter['Content-Type'] = 'application/json';
  14027. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14028. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14029. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14030. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14031. return {
  14032. url: toPathString(localVarUrlObj),
  14033. options: localVarRequestOptions,
  14034. };
  14035. },
  14036. /**
  14037. *
  14038. * @param {string} id
  14039. * @param {AssetIdsDto} assetIdsDto
  14040. * @param {*} [options] Override http request option.
  14041. * @throws {RequiredError}
  14042. */
  14043. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14044. // verify required parameter 'id' is not null or undefined
  14045. assertParamExists('untagAssets', 'id', id)
  14046. // verify required parameter 'assetIdsDto' is not null or undefined
  14047. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  14048. const localVarPath = `/tag/{id}/assets`
  14049. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14050. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14051. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14052. let baseOptions;
  14053. if (configuration) {
  14054. baseOptions = configuration.baseOptions;
  14055. }
  14056. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14057. const localVarHeaderParameter = {} as any;
  14058. const localVarQueryParameter = {} as any;
  14059. // authentication cookie required
  14060. // authentication api_key required
  14061. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14062. // authentication bearer required
  14063. // http bearer authentication required
  14064. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14065. localVarHeaderParameter['Content-Type'] = 'application/json';
  14066. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14067. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14068. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14069. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14070. return {
  14071. url: toPathString(localVarUrlObj),
  14072. options: localVarRequestOptions,
  14073. };
  14074. },
  14075. /**
  14076. *
  14077. * @param {string} id
  14078. * @param {UpdateTagDto} updateTagDto
  14079. * @param {*} [options] Override http request option.
  14080. * @throws {RequiredError}
  14081. */
  14082. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14083. // verify required parameter 'id' is not null or undefined
  14084. assertParamExists('updateTag', 'id', id)
  14085. // verify required parameter 'updateTagDto' is not null or undefined
  14086. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  14087. const localVarPath = `/tag/{id}`
  14088. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14089. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14090. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14091. let baseOptions;
  14092. if (configuration) {
  14093. baseOptions = configuration.baseOptions;
  14094. }
  14095. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  14096. const localVarHeaderParameter = {} as any;
  14097. const localVarQueryParameter = {} as any;
  14098. // authentication cookie required
  14099. // authentication api_key required
  14100. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14101. // authentication bearer required
  14102. // http bearer authentication required
  14103. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14104. localVarHeaderParameter['Content-Type'] = 'application/json';
  14105. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14106. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14107. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14108. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  14109. return {
  14110. url: toPathString(localVarUrlObj),
  14111. options: localVarRequestOptions,
  14112. };
  14113. },
  14114. }
  14115. };
  14116. /**
  14117. * TagApi - functional programming interface
  14118. * @export
  14119. */
  14120. export const TagApiFp = function(configuration?: Configuration) {
  14121. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  14122. return {
  14123. /**
  14124. *
  14125. * @param {CreateTagDto} createTagDto
  14126. * @param {*} [options] Override http request option.
  14127. * @throws {RequiredError}
  14128. */
  14129. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14130. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  14131. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14132. },
  14133. /**
  14134. *
  14135. * @param {string} id
  14136. * @param {*} [options] Override http request option.
  14137. * @throws {RequiredError}
  14138. */
  14139. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  14140. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  14141. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14142. },
  14143. /**
  14144. *
  14145. * @param {*} [options] Override http request option.
  14146. * @throws {RequiredError}
  14147. */
  14148. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  14149. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  14150. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14151. },
  14152. /**
  14153. *
  14154. * @param {string} id
  14155. * @param {*} [options] Override http request option.
  14156. * @throws {RequiredError}
  14157. */
  14158. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  14159. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  14160. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14161. },
  14162. /**
  14163. *
  14164. * @param {string} id
  14165. * @param {*} [options] Override http request option.
  14166. * @throws {RequiredError}
  14167. */
  14168. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14169. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  14170. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14171. },
  14172. /**
  14173. *
  14174. * @param {string} id
  14175. * @param {AssetIdsDto} assetIdsDto
  14176. * @param {*} [options] Override http request option.
  14177. * @throws {RequiredError}
  14178. */
  14179. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14180. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  14181. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14182. },
  14183. /**
  14184. *
  14185. * @param {string} id
  14186. * @param {AssetIdsDto} assetIdsDto
  14187. * @param {*} [options] Override http request option.
  14188. * @throws {RequiredError}
  14189. */
  14190. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14191. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  14192. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14193. },
  14194. /**
  14195. *
  14196. * @param {string} id
  14197. * @param {UpdateTagDto} updateTagDto
  14198. * @param {*} [options] Override http request option.
  14199. * @throws {RequiredError}
  14200. */
  14201. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14202. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  14203. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14204. },
  14205. }
  14206. };
  14207. /**
  14208. * TagApi - factory interface
  14209. * @export
  14210. */
  14211. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14212. const localVarFp = TagApiFp(configuration)
  14213. return {
  14214. /**
  14215. *
  14216. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14217. * @param {*} [options] Override http request option.
  14218. * @throws {RequiredError}
  14219. */
  14220. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14221. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  14222. },
  14223. /**
  14224. *
  14225. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14226. * @param {*} [options] Override http request option.
  14227. * @throws {RequiredError}
  14228. */
  14229. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  14230. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  14231. },
  14232. /**
  14233. *
  14234. * @param {*} [options] Override http request option.
  14235. * @throws {RequiredError}
  14236. */
  14237. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  14238. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  14239. },
  14240. /**
  14241. *
  14242. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14243. * @param {*} [options] Override http request option.
  14244. * @throws {RequiredError}
  14245. */
  14246. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  14247. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  14248. },
  14249. /**
  14250. *
  14251. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14252. * @param {*} [options] Override http request option.
  14253. * @throws {RequiredError}
  14254. */
  14255. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14256. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  14257. },
  14258. /**
  14259. *
  14260. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14261. * @param {*} [options] Override http request option.
  14262. * @throws {RequiredError}
  14263. */
  14264. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14265. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14266. },
  14267. /**
  14268. *
  14269. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14270. * @param {*} [options] Override http request option.
  14271. * @throws {RequiredError}
  14272. */
  14273. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14274. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14275. },
  14276. /**
  14277. *
  14278. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14279. * @param {*} [options] Override http request option.
  14280. * @throws {RequiredError}
  14281. */
  14282. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14283. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  14284. },
  14285. };
  14286. };
  14287. /**
  14288. * Request parameters for createTag operation in TagApi.
  14289. * @export
  14290. * @interface TagApiCreateTagRequest
  14291. */
  14292. export interface TagApiCreateTagRequest {
  14293. /**
  14294. *
  14295. * @type {CreateTagDto}
  14296. * @memberof TagApiCreateTag
  14297. */
  14298. readonly createTagDto: CreateTagDto
  14299. }
  14300. /**
  14301. * Request parameters for deleteTag operation in TagApi.
  14302. * @export
  14303. * @interface TagApiDeleteTagRequest
  14304. */
  14305. export interface TagApiDeleteTagRequest {
  14306. /**
  14307. *
  14308. * @type {string}
  14309. * @memberof TagApiDeleteTag
  14310. */
  14311. readonly id: string
  14312. }
  14313. /**
  14314. * Request parameters for getTagAssets operation in TagApi.
  14315. * @export
  14316. * @interface TagApiGetTagAssetsRequest
  14317. */
  14318. export interface TagApiGetTagAssetsRequest {
  14319. /**
  14320. *
  14321. * @type {string}
  14322. * @memberof TagApiGetTagAssets
  14323. */
  14324. readonly id: string
  14325. }
  14326. /**
  14327. * Request parameters for getTagById operation in TagApi.
  14328. * @export
  14329. * @interface TagApiGetTagByIdRequest
  14330. */
  14331. export interface TagApiGetTagByIdRequest {
  14332. /**
  14333. *
  14334. * @type {string}
  14335. * @memberof TagApiGetTagById
  14336. */
  14337. readonly id: string
  14338. }
  14339. /**
  14340. * Request parameters for tagAssets operation in TagApi.
  14341. * @export
  14342. * @interface TagApiTagAssetsRequest
  14343. */
  14344. export interface TagApiTagAssetsRequest {
  14345. /**
  14346. *
  14347. * @type {string}
  14348. * @memberof TagApiTagAssets
  14349. */
  14350. readonly id: string
  14351. /**
  14352. *
  14353. * @type {AssetIdsDto}
  14354. * @memberof TagApiTagAssets
  14355. */
  14356. readonly assetIdsDto: AssetIdsDto
  14357. }
  14358. /**
  14359. * Request parameters for untagAssets operation in TagApi.
  14360. * @export
  14361. * @interface TagApiUntagAssetsRequest
  14362. */
  14363. export interface TagApiUntagAssetsRequest {
  14364. /**
  14365. *
  14366. * @type {string}
  14367. * @memberof TagApiUntagAssets
  14368. */
  14369. readonly id: string
  14370. /**
  14371. *
  14372. * @type {AssetIdsDto}
  14373. * @memberof TagApiUntagAssets
  14374. */
  14375. readonly assetIdsDto: AssetIdsDto
  14376. }
  14377. /**
  14378. * Request parameters for updateTag operation in TagApi.
  14379. * @export
  14380. * @interface TagApiUpdateTagRequest
  14381. */
  14382. export interface TagApiUpdateTagRequest {
  14383. /**
  14384. *
  14385. * @type {string}
  14386. * @memberof TagApiUpdateTag
  14387. */
  14388. readonly id: string
  14389. /**
  14390. *
  14391. * @type {UpdateTagDto}
  14392. * @memberof TagApiUpdateTag
  14393. */
  14394. readonly updateTagDto: UpdateTagDto
  14395. }
  14396. /**
  14397. * TagApi - object-oriented interface
  14398. * @export
  14399. * @class TagApi
  14400. * @extends {BaseAPI}
  14401. */
  14402. export class TagApi extends BaseAPI {
  14403. /**
  14404. *
  14405. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14406. * @param {*} [options] Override http request option.
  14407. * @throws {RequiredError}
  14408. * @memberof TagApi
  14409. */
  14410. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  14411. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  14412. }
  14413. /**
  14414. *
  14415. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14416. * @param {*} [options] Override http request option.
  14417. * @throws {RequiredError}
  14418. * @memberof TagApi
  14419. */
  14420. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  14421. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14422. }
  14423. /**
  14424. *
  14425. * @param {*} [options] Override http request option.
  14426. * @throws {RequiredError}
  14427. * @memberof TagApi
  14428. */
  14429. public getAllTags(options?: AxiosRequestConfig) {
  14430. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  14431. }
  14432. /**
  14433. *
  14434. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14435. * @param {*} [options] Override http request option.
  14436. * @throws {RequiredError}
  14437. * @memberof TagApi
  14438. */
  14439. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  14440. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14441. }
  14442. /**
  14443. *
  14444. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14445. * @param {*} [options] Override http request option.
  14446. * @throws {RequiredError}
  14447. * @memberof TagApi
  14448. */
  14449. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  14450. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14451. }
  14452. /**
  14453. *
  14454. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14455. * @param {*} [options] Override http request option.
  14456. * @throws {RequiredError}
  14457. * @memberof TagApi
  14458. */
  14459. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  14460. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  14461. }
  14462. /**
  14463. *
  14464. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14465. * @param {*} [options] Override http request option.
  14466. * @throws {RequiredError}
  14467. * @memberof TagApi
  14468. */
  14469. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  14470. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  14471. }
  14472. /**
  14473. *
  14474. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14475. * @param {*} [options] Override http request option.
  14476. * @throws {RequiredError}
  14477. * @memberof TagApi
  14478. */
  14479. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  14480. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  14481. }
  14482. }
  14483. /**
  14484. * UserApi - axios parameter creator
  14485. * @export
  14486. */
  14487. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  14488. return {
  14489. /**
  14490. *
  14491. * @param {File} file
  14492. * @param {*} [options] Override http request option.
  14493. * @throws {RequiredError}
  14494. */
  14495. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14496. // verify required parameter 'file' is not null or undefined
  14497. assertParamExists('createProfileImage', 'file', file)
  14498. const localVarPath = `/user/profile-image`;
  14499. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14500. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14501. let baseOptions;
  14502. if (configuration) {
  14503. baseOptions = configuration.baseOptions;
  14504. }
  14505. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14506. const localVarHeaderParameter = {} as any;
  14507. const localVarQueryParameter = {} as any;
  14508. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  14509. // authentication cookie required
  14510. // authentication api_key required
  14511. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14512. // authentication bearer required
  14513. // http bearer authentication required
  14514. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14515. if (file !== undefined) {
  14516. localVarFormParams.append('file', file as any);
  14517. }
  14518. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  14519. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14520. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14521. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14522. localVarRequestOptions.data = localVarFormParams;
  14523. return {
  14524. url: toPathString(localVarUrlObj),
  14525. options: localVarRequestOptions,
  14526. };
  14527. },
  14528. /**
  14529. *
  14530. * @param {CreateUserDto} createUserDto
  14531. * @param {*} [options] Override http request option.
  14532. * @throws {RequiredError}
  14533. */
  14534. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14535. // verify required parameter 'createUserDto' is not null or undefined
  14536. assertParamExists('createUser', 'createUserDto', createUserDto)
  14537. const localVarPath = `/user`;
  14538. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14539. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14540. let baseOptions;
  14541. if (configuration) {
  14542. baseOptions = configuration.baseOptions;
  14543. }
  14544. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14545. const localVarHeaderParameter = {} as any;
  14546. const localVarQueryParameter = {} as any;
  14547. // authentication cookie required
  14548. // authentication api_key required
  14549. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14550. // authentication bearer required
  14551. // http bearer authentication required
  14552. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14553. localVarHeaderParameter['Content-Type'] = 'application/json';
  14554. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14555. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14556. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14557. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  14558. return {
  14559. url: toPathString(localVarUrlObj),
  14560. options: localVarRequestOptions,
  14561. };
  14562. },
  14563. /**
  14564. *
  14565. * @param {string} id
  14566. * @param {*} [options] Override http request option.
  14567. * @throws {RequiredError}
  14568. */
  14569. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14570. // verify required parameter 'id' is not null or undefined
  14571. assertParamExists('deleteUser', 'id', id)
  14572. const localVarPath = `/user/{id}`
  14573. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14574. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14575. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14576. let baseOptions;
  14577. if (configuration) {
  14578. baseOptions = configuration.baseOptions;
  14579. }
  14580. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14581. const localVarHeaderParameter = {} as any;
  14582. const localVarQueryParameter = {} as any;
  14583. // authentication cookie required
  14584. // authentication api_key required
  14585. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14586. // authentication bearer required
  14587. // http bearer authentication required
  14588. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14589. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14590. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14591. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14592. return {
  14593. url: toPathString(localVarUrlObj),
  14594. options: localVarRequestOptions,
  14595. };
  14596. },
  14597. /**
  14598. *
  14599. * @param {boolean} isAll
  14600. * @param {*} [options] Override http request option.
  14601. * @throws {RequiredError}
  14602. */
  14603. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14604. // verify required parameter 'isAll' is not null or undefined
  14605. assertParamExists('getAllUsers', 'isAll', isAll)
  14606. const localVarPath = `/user`;
  14607. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14608. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14609. let baseOptions;
  14610. if (configuration) {
  14611. baseOptions = configuration.baseOptions;
  14612. }
  14613. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14614. const localVarHeaderParameter = {} as any;
  14615. const localVarQueryParameter = {} as any;
  14616. // authentication cookie required
  14617. // authentication api_key required
  14618. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14619. // authentication bearer required
  14620. // http bearer authentication required
  14621. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14622. if (isAll !== undefined) {
  14623. localVarQueryParameter['isAll'] = isAll;
  14624. }
  14625. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14626. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14627. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14628. return {
  14629. url: toPathString(localVarUrlObj),
  14630. options: localVarRequestOptions,
  14631. };
  14632. },
  14633. /**
  14634. *
  14635. * @param {*} [options] Override http request option.
  14636. * @throws {RequiredError}
  14637. */
  14638. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14639. const localVarPath = `/user/me`;
  14640. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14641. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14642. let baseOptions;
  14643. if (configuration) {
  14644. baseOptions = configuration.baseOptions;
  14645. }
  14646. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14647. const localVarHeaderParameter = {} as any;
  14648. const localVarQueryParameter = {} as any;
  14649. // authentication cookie required
  14650. // authentication api_key required
  14651. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14652. // authentication bearer required
  14653. // http bearer authentication required
  14654. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14655. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14656. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14657. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14658. return {
  14659. url: toPathString(localVarUrlObj),
  14660. options: localVarRequestOptions,
  14661. };
  14662. },
  14663. /**
  14664. *
  14665. * @param {string} id
  14666. * @param {*} [options] Override http request option.
  14667. * @throws {RequiredError}
  14668. */
  14669. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14670. // verify required parameter 'id' is not null or undefined
  14671. assertParamExists('getProfileImage', 'id', id)
  14672. const localVarPath = `/user/profile-image/{id}`
  14673. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14674. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14675. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14676. let baseOptions;
  14677. if (configuration) {
  14678. baseOptions = configuration.baseOptions;
  14679. }
  14680. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14681. const localVarHeaderParameter = {} as any;
  14682. const localVarQueryParameter = {} as any;
  14683. // authentication cookie required
  14684. // authentication api_key required
  14685. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14686. // authentication bearer required
  14687. // http bearer authentication required
  14688. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14689. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14690. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14691. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14692. return {
  14693. url: toPathString(localVarUrlObj),
  14694. options: localVarRequestOptions,
  14695. };
  14696. },
  14697. /**
  14698. *
  14699. * @param {string} id
  14700. * @param {*} [options] Override http request option.
  14701. * @throws {RequiredError}
  14702. */
  14703. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14704. // verify required parameter 'id' is not null or undefined
  14705. assertParamExists('getUserById', 'id', id)
  14706. const localVarPath = `/user/info/{id}`
  14707. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14708. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14709. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14710. let baseOptions;
  14711. if (configuration) {
  14712. baseOptions = configuration.baseOptions;
  14713. }
  14714. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14715. const localVarHeaderParameter = {} as any;
  14716. const localVarQueryParameter = {} as any;
  14717. // authentication cookie required
  14718. // authentication api_key required
  14719. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14720. // authentication bearer required
  14721. // http bearer authentication required
  14722. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14723. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14724. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14725. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14726. return {
  14727. url: toPathString(localVarUrlObj),
  14728. options: localVarRequestOptions,
  14729. };
  14730. },
  14731. /**
  14732. *
  14733. * @param {string} id
  14734. * @param {*} [options] Override http request option.
  14735. * @throws {RequiredError}
  14736. */
  14737. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14738. // verify required parameter 'id' is not null or undefined
  14739. assertParamExists('restoreUser', 'id', id)
  14740. const localVarPath = `/user/{id}/restore`
  14741. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14742. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14743. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14744. let baseOptions;
  14745. if (configuration) {
  14746. baseOptions = configuration.baseOptions;
  14747. }
  14748. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14749. const localVarHeaderParameter = {} as any;
  14750. const localVarQueryParameter = {} as any;
  14751. // authentication cookie required
  14752. // authentication api_key required
  14753. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14754. // authentication bearer required
  14755. // http bearer authentication required
  14756. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14757. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14758. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14759. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14760. return {
  14761. url: toPathString(localVarUrlObj),
  14762. options: localVarRequestOptions,
  14763. };
  14764. },
  14765. /**
  14766. *
  14767. * @param {UpdateUserDto} updateUserDto
  14768. * @param {*} [options] Override http request option.
  14769. * @throws {RequiredError}
  14770. */
  14771. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14772. // verify required parameter 'updateUserDto' is not null or undefined
  14773. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  14774. const localVarPath = `/user`;
  14775. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14776. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14777. let baseOptions;
  14778. if (configuration) {
  14779. baseOptions = configuration.baseOptions;
  14780. }
  14781. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14782. const localVarHeaderParameter = {} as any;
  14783. const localVarQueryParameter = {} as any;
  14784. // authentication cookie required
  14785. // authentication api_key required
  14786. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14787. // authentication bearer required
  14788. // http bearer authentication required
  14789. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14790. localVarHeaderParameter['Content-Type'] = 'application/json';
  14791. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14792. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14793. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14794. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  14795. return {
  14796. url: toPathString(localVarUrlObj),
  14797. options: localVarRequestOptions,
  14798. };
  14799. },
  14800. }
  14801. };
  14802. /**
  14803. * UserApi - functional programming interface
  14804. * @export
  14805. */
  14806. export const UserApiFp = function(configuration?: Configuration) {
  14807. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  14808. return {
  14809. /**
  14810. *
  14811. * @param {File} file
  14812. * @param {*} [options] Override http request option.
  14813. * @throws {RequiredError}
  14814. */
  14815. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  14816. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  14817. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14818. },
  14819. /**
  14820. *
  14821. * @param {CreateUserDto} createUserDto
  14822. * @param {*} [options] Override http request option.
  14823. * @throws {RequiredError}
  14824. */
  14825. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14826. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  14827. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14828. },
  14829. /**
  14830. *
  14831. * @param {string} id
  14832. * @param {*} [options] Override http request option.
  14833. * @throws {RequiredError}
  14834. */
  14835. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14836. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  14837. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14838. },
  14839. /**
  14840. *
  14841. * @param {boolean} isAll
  14842. * @param {*} [options] Override http request option.
  14843. * @throws {RequiredError}
  14844. */
  14845. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  14846. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  14847. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14848. },
  14849. /**
  14850. *
  14851. * @param {*} [options] Override http request option.
  14852. * @throws {RequiredError}
  14853. */
  14854. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14855. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  14856. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14857. },
  14858. /**
  14859. *
  14860. * @param {string} id
  14861. * @param {*} [options] Override http request option.
  14862. * @throws {RequiredError}
  14863. */
  14864. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14865. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  14866. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14867. },
  14868. /**
  14869. *
  14870. * @param {string} id
  14871. * @param {*} [options] Override http request option.
  14872. * @throws {RequiredError}
  14873. */
  14874. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14875. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  14876. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14877. },
  14878. /**
  14879. *
  14880. * @param {string} id
  14881. * @param {*} [options] Override http request option.
  14882. * @throws {RequiredError}
  14883. */
  14884. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14885. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  14886. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14887. },
  14888. /**
  14889. *
  14890. * @param {UpdateUserDto} updateUserDto
  14891. * @param {*} [options] Override http request option.
  14892. * @throws {RequiredError}
  14893. */
  14894. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14895. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  14896. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14897. },
  14898. }
  14899. };
  14900. /**
  14901. * UserApi - factory interface
  14902. * @export
  14903. */
  14904. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14905. const localVarFp = UserApiFp(configuration)
  14906. return {
  14907. /**
  14908. *
  14909. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14910. * @param {*} [options] Override http request option.
  14911. * @throws {RequiredError}
  14912. */
  14913. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  14914. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  14915. },
  14916. /**
  14917. *
  14918. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14919. * @param {*} [options] Override http request option.
  14920. * @throws {RequiredError}
  14921. */
  14922. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14923. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  14924. },
  14925. /**
  14926. *
  14927. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14928. * @param {*} [options] Override http request option.
  14929. * @throws {RequiredError}
  14930. */
  14931. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14932. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14933. },
  14934. /**
  14935. *
  14936. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14937. * @param {*} [options] Override http request option.
  14938. * @throws {RequiredError}
  14939. */
  14940. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  14941. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  14942. },
  14943. /**
  14944. *
  14945. * @param {*} [options] Override http request option.
  14946. * @throws {RequiredError}
  14947. */
  14948. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14949. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  14950. },
  14951. /**
  14952. *
  14953. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14954. * @param {*} [options] Override http request option.
  14955. * @throws {RequiredError}
  14956. */
  14957. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14958. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  14959. },
  14960. /**
  14961. *
  14962. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14963. * @param {*} [options] Override http request option.
  14964. * @throws {RequiredError}
  14965. */
  14966. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14967. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  14968. },
  14969. /**
  14970. *
  14971. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14972. * @param {*} [options] Override http request option.
  14973. * @throws {RequiredError}
  14974. */
  14975. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14976. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14977. },
  14978. /**
  14979. *
  14980. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14981. * @param {*} [options] Override http request option.
  14982. * @throws {RequiredError}
  14983. */
  14984. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14985. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  14986. },
  14987. };
  14988. };
  14989. /**
  14990. * Request parameters for createProfileImage operation in UserApi.
  14991. * @export
  14992. * @interface UserApiCreateProfileImageRequest
  14993. */
  14994. export interface UserApiCreateProfileImageRequest {
  14995. /**
  14996. *
  14997. * @type {File}
  14998. * @memberof UserApiCreateProfileImage
  14999. */
  15000. readonly file: File
  15001. }
  15002. /**
  15003. * Request parameters for createUser operation in UserApi.
  15004. * @export
  15005. * @interface UserApiCreateUserRequest
  15006. */
  15007. export interface UserApiCreateUserRequest {
  15008. /**
  15009. *
  15010. * @type {CreateUserDto}
  15011. * @memberof UserApiCreateUser
  15012. */
  15013. readonly createUserDto: CreateUserDto
  15014. }
  15015. /**
  15016. * Request parameters for deleteUser operation in UserApi.
  15017. * @export
  15018. * @interface UserApiDeleteUserRequest
  15019. */
  15020. export interface UserApiDeleteUserRequest {
  15021. /**
  15022. *
  15023. * @type {string}
  15024. * @memberof UserApiDeleteUser
  15025. */
  15026. readonly id: string
  15027. }
  15028. /**
  15029. * Request parameters for getAllUsers operation in UserApi.
  15030. * @export
  15031. * @interface UserApiGetAllUsersRequest
  15032. */
  15033. export interface UserApiGetAllUsersRequest {
  15034. /**
  15035. *
  15036. * @type {boolean}
  15037. * @memberof UserApiGetAllUsers
  15038. */
  15039. readonly isAll: boolean
  15040. }
  15041. /**
  15042. * Request parameters for getProfileImage operation in UserApi.
  15043. * @export
  15044. * @interface UserApiGetProfileImageRequest
  15045. */
  15046. export interface UserApiGetProfileImageRequest {
  15047. /**
  15048. *
  15049. * @type {string}
  15050. * @memberof UserApiGetProfileImage
  15051. */
  15052. readonly id: string
  15053. }
  15054. /**
  15055. * Request parameters for getUserById operation in UserApi.
  15056. * @export
  15057. * @interface UserApiGetUserByIdRequest
  15058. */
  15059. export interface UserApiGetUserByIdRequest {
  15060. /**
  15061. *
  15062. * @type {string}
  15063. * @memberof UserApiGetUserById
  15064. */
  15065. readonly id: string
  15066. }
  15067. /**
  15068. * Request parameters for restoreUser operation in UserApi.
  15069. * @export
  15070. * @interface UserApiRestoreUserRequest
  15071. */
  15072. export interface UserApiRestoreUserRequest {
  15073. /**
  15074. *
  15075. * @type {string}
  15076. * @memberof UserApiRestoreUser
  15077. */
  15078. readonly id: string
  15079. }
  15080. /**
  15081. * Request parameters for updateUser operation in UserApi.
  15082. * @export
  15083. * @interface UserApiUpdateUserRequest
  15084. */
  15085. export interface UserApiUpdateUserRequest {
  15086. /**
  15087. *
  15088. * @type {UpdateUserDto}
  15089. * @memberof UserApiUpdateUser
  15090. */
  15091. readonly updateUserDto: UpdateUserDto
  15092. }
  15093. /**
  15094. * UserApi - object-oriented interface
  15095. * @export
  15096. * @class UserApi
  15097. * @extends {BaseAPI}
  15098. */
  15099. export class UserApi extends BaseAPI {
  15100. /**
  15101. *
  15102. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15103. * @param {*} [options] Override http request option.
  15104. * @throws {RequiredError}
  15105. * @memberof UserApi
  15106. */
  15107. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  15108. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  15109. }
  15110. /**
  15111. *
  15112. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15113. * @param {*} [options] Override http request option.
  15114. * @throws {RequiredError}
  15115. * @memberof UserApi
  15116. */
  15117. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  15118. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  15119. }
  15120. /**
  15121. *
  15122. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15123. * @param {*} [options] Override http request option.
  15124. * @throws {RequiredError}
  15125. * @memberof UserApi
  15126. */
  15127. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  15128. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15129. }
  15130. /**
  15131. *
  15132. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15133. * @param {*} [options] Override http request option.
  15134. * @throws {RequiredError}
  15135. * @memberof UserApi
  15136. */
  15137. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  15138. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  15139. }
  15140. /**
  15141. *
  15142. * @param {*} [options] Override http request option.
  15143. * @throws {RequiredError}
  15144. * @memberof UserApi
  15145. */
  15146. public getMyUserInfo(options?: AxiosRequestConfig) {
  15147. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  15148. }
  15149. /**
  15150. *
  15151. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15152. * @param {*} [options] Override http request option.
  15153. * @throws {RequiredError}
  15154. * @memberof UserApi
  15155. */
  15156. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  15157. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15158. }
  15159. /**
  15160. *
  15161. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15162. * @param {*} [options] Override http request option.
  15163. * @throws {RequiredError}
  15164. * @memberof UserApi
  15165. */
  15166. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  15167. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15168. }
  15169. /**
  15170. *
  15171. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15172. * @param {*} [options] Override http request option.
  15173. * @throws {RequiredError}
  15174. * @memberof UserApi
  15175. */
  15176. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  15177. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15178. }
  15179. /**
  15180. *
  15181. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15182. * @param {*} [options] Override http request option.
  15183. * @throws {RequiredError}
  15184. * @memberof UserApi
  15185. */
  15186. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  15187. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  15188. }
  15189. }