api.ts 604 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.88.2
  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. * @enum {string}
  656. */
  657. export const AssetOrder = {
  658. Asc: 'asc',
  659. Desc: 'desc'
  660. } as const;
  661. export type AssetOrder = typeof AssetOrder[keyof typeof AssetOrder];
  662. /**
  663. *
  664. * @export
  665. * @interface AssetResponseDto
  666. */
  667. export interface AssetResponseDto {
  668. /**
  669. * base64 encoded sha1 hash
  670. * @type {string}
  671. * @memberof AssetResponseDto
  672. */
  673. 'checksum': string;
  674. /**
  675. *
  676. * @type {string}
  677. * @memberof AssetResponseDto
  678. */
  679. 'deviceAssetId': string;
  680. /**
  681. *
  682. * @type {string}
  683. * @memberof AssetResponseDto
  684. */
  685. 'deviceId': string;
  686. /**
  687. *
  688. * @type {string}
  689. * @memberof AssetResponseDto
  690. */
  691. 'duration': string;
  692. /**
  693. *
  694. * @type {ExifResponseDto}
  695. * @memberof AssetResponseDto
  696. */
  697. 'exifInfo'?: ExifResponseDto;
  698. /**
  699. *
  700. * @type {string}
  701. * @memberof AssetResponseDto
  702. */
  703. 'fileCreatedAt': string;
  704. /**
  705. *
  706. * @type {string}
  707. * @memberof AssetResponseDto
  708. */
  709. 'fileModifiedAt': string;
  710. /**
  711. *
  712. * @type {boolean}
  713. * @memberof AssetResponseDto
  714. */
  715. 'hasMetadata': boolean;
  716. /**
  717. *
  718. * @type {string}
  719. * @memberof AssetResponseDto
  720. */
  721. 'id': string;
  722. /**
  723. *
  724. * @type {boolean}
  725. * @memberof AssetResponseDto
  726. */
  727. 'isArchived': boolean;
  728. /**
  729. *
  730. * @type {boolean}
  731. * @memberof AssetResponseDto
  732. */
  733. 'isExternal': boolean;
  734. /**
  735. *
  736. * @type {boolean}
  737. * @memberof AssetResponseDto
  738. */
  739. 'isFavorite': boolean;
  740. /**
  741. *
  742. * @type {boolean}
  743. * @memberof AssetResponseDto
  744. */
  745. 'isOffline': boolean;
  746. /**
  747. *
  748. * @type {boolean}
  749. * @memberof AssetResponseDto
  750. */
  751. 'isReadOnly': boolean;
  752. /**
  753. *
  754. * @type {boolean}
  755. * @memberof AssetResponseDto
  756. */
  757. 'isTrashed': boolean;
  758. /**
  759. *
  760. * @type {string}
  761. * @memberof AssetResponseDto
  762. */
  763. 'libraryId': string;
  764. /**
  765. *
  766. * @type {string}
  767. * @memberof AssetResponseDto
  768. */
  769. 'livePhotoVideoId'?: string | null;
  770. /**
  771. *
  772. * @type {string}
  773. * @memberof AssetResponseDto
  774. */
  775. 'localDateTime': string;
  776. /**
  777. *
  778. * @type {string}
  779. * @memberof AssetResponseDto
  780. */
  781. 'originalFileName': string;
  782. /**
  783. *
  784. * @type {string}
  785. * @memberof AssetResponseDto
  786. */
  787. 'originalPath': string;
  788. /**
  789. *
  790. * @type {UserResponseDto}
  791. * @memberof AssetResponseDto
  792. */
  793. 'owner'?: UserResponseDto;
  794. /**
  795. *
  796. * @type {string}
  797. * @memberof AssetResponseDto
  798. */
  799. 'ownerId': string;
  800. /**
  801. *
  802. * @type {Array<PersonResponseDto>}
  803. * @memberof AssetResponseDto
  804. */
  805. 'people'?: Array<PersonResponseDto>;
  806. /**
  807. *
  808. * @type {boolean}
  809. * @memberof AssetResponseDto
  810. */
  811. 'resized': boolean;
  812. /**
  813. *
  814. * @type {SmartInfoResponseDto}
  815. * @memberof AssetResponseDto
  816. */
  817. 'smartInfo'?: SmartInfoResponseDto;
  818. /**
  819. *
  820. * @type {Array<AssetResponseDto>}
  821. * @memberof AssetResponseDto
  822. */
  823. 'stack'?: Array<AssetResponseDto>;
  824. /**
  825. *
  826. * @type {number}
  827. * @memberof AssetResponseDto
  828. */
  829. 'stackCount': number | null;
  830. /**
  831. *
  832. * @type {string}
  833. * @memberof AssetResponseDto
  834. */
  835. 'stackParentId'?: string | null;
  836. /**
  837. *
  838. * @type {Array<TagResponseDto>}
  839. * @memberof AssetResponseDto
  840. */
  841. 'tags'?: Array<TagResponseDto>;
  842. /**
  843. *
  844. * @type {string}
  845. * @memberof AssetResponseDto
  846. */
  847. 'thumbhash': string | null;
  848. /**
  849. *
  850. * @type {AssetTypeEnum}
  851. * @memberof AssetResponseDto
  852. */
  853. 'type': AssetTypeEnum;
  854. /**
  855. *
  856. * @type {string}
  857. * @memberof AssetResponseDto
  858. */
  859. 'updatedAt': string;
  860. }
  861. /**
  862. *
  863. * @export
  864. * @interface AssetStatsResponseDto
  865. */
  866. export interface AssetStatsResponseDto {
  867. /**
  868. *
  869. * @type {number}
  870. * @memberof AssetStatsResponseDto
  871. */
  872. 'images': number;
  873. /**
  874. *
  875. * @type {number}
  876. * @memberof AssetStatsResponseDto
  877. */
  878. 'total': number;
  879. /**
  880. *
  881. * @type {number}
  882. * @memberof AssetStatsResponseDto
  883. */
  884. 'videos': number;
  885. }
  886. /**
  887. *
  888. * @export
  889. * @enum {string}
  890. */
  891. export const AssetTypeEnum = {
  892. Image: 'IMAGE',
  893. Video: 'VIDEO',
  894. Audio: 'AUDIO',
  895. Other: 'OTHER'
  896. } as const;
  897. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  898. /**
  899. *
  900. * @export
  901. * @enum {string}
  902. */
  903. export const AudioCodec = {
  904. Mp3: 'mp3',
  905. Aac: 'aac',
  906. Libopus: 'libopus'
  907. } as const;
  908. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  909. /**
  910. *
  911. * @export
  912. * @interface AuditDeletesResponseDto
  913. */
  914. export interface AuditDeletesResponseDto {
  915. /**
  916. *
  917. * @type {Array<string>}
  918. * @memberof AuditDeletesResponseDto
  919. */
  920. 'ids': Array<string>;
  921. /**
  922. *
  923. * @type {boolean}
  924. * @memberof AuditDeletesResponseDto
  925. */
  926. 'needsFullSync': boolean;
  927. }
  928. /**
  929. *
  930. * @export
  931. * @interface AuthDeviceResponseDto
  932. */
  933. export interface AuthDeviceResponseDto {
  934. /**
  935. *
  936. * @type {string}
  937. * @memberof AuthDeviceResponseDto
  938. */
  939. 'createdAt': string;
  940. /**
  941. *
  942. * @type {boolean}
  943. * @memberof AuthDeviceResponseDto
  944. */
  945. 'current': boolean;
  946. /**
  947. *
  948. * @type {string}
  949. * @memberof AuthDeviceResponseDto
  950. */
  951. 'deviceOS': string;
  952. /**
  953. *
  954. * @type {string}
  955. * @memberof AuthDeviceResponseDto
  956. */
  957. 'deviceType': string;
  958. /**
  959. *
  960. * @type {string}
  961. * @memberof AuthDeviceResponseDto
  962. */
  963. 'id': string;
  964. /**
  965. *
  966. * @type {string}
  967. * @memberof AuthDeviceResponseDto
  968. */
  969. 'updatedAt': string;
  970. }
  971. /**
  972. *
  973. * @export
  974. * @interface BulkIdResponseDto
  975. */
  976. export interface BulkIdResponseDto {
  977. /**
  978. *
  979. * @type {string}
  980. * @memberof BulkIdResponseDto
  981. */
  982. 'error'?: BulkIdResponseDtoErrorEnum;
  983. /**
  984. *
  985. * @type {string}
  986. * @memberof BulkIdResponseDto
  987. */
  988. 'id': string;
  989. /**
  990. *
  991. * @type {boolean}
  992. * @memberof BulkIdResponseDto
  993. */
  994. 'success': boolean;
  995. }
  996. export const BulkIdResponseDtoErrorEnum = {
  997. Duplicate: 'duplicate',
  998. NoPermission: 'no_permission',
  999. NotFound: 'not_found',
  1000. Unknown: 'unknown'
  1001. } as const;
  1002. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  1003. /**
  1004. *
  1005. * @export
  1006. * @interface BulkIdsDto
  1007. */
  1008. export interface BulkIdsDto {
  1009. /**
  1010. *
  1011. * @type {Array<string>}
  1012. * @memberof BulkIdsDto
  1013. */
  1014. 'ids': Array<string>;
  1015. }
  1016. /**
  1017. *
  1018. * @export
  1019. * @interface CLIPConfig
  1020. */
  1021. export interface CLIPConfig {
  1022. /**
  1023. *
  1024. * @type {boolean}
  1025. * @memberof CLIPConfig
  1026. */
  1027. 'enabled': boolean;
  1028. /**
  1029. *
  1030. * @type {CLIPMode}
  1031. * @memberof CLIPConfig
  1032. */
  1033. 'mode'?: CLIPMode;
  1034. /**
  1035. *
  1036. * @type {string}
  1037. * @memberof CLIPConfig
  1038. */
  1039. 'modelName': string;
  1040. /**
  1041. *
  1042. * @type {ModelType}
  1043. * @memberof CLIPConfig
  1044. */
  1045. 'modelType'?: ModelType;
  1046. }
  1047. /**
  1048. *
  1049. * @export
  1050. * @enum {string}
  1051. */
  1052. export const CLIPMode = {
  1053. Vision: 'vision',
  1054. Text: 'text'
  1055. } as const;
  1056. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  1057. /**
  1058. *
  1059. * @export
  1060. * @enum {string}
  1061. */
  1062. export const CQMode = {
  1063. Auto: 'auto',
  1064. Cqp: 'cqp',
  1065. Icq: 'icq'
  1066. } as const;
  1067. export type CQMode = typeof CQMode[keyof typeof CQMode];
  1068. /**
  1069. *
  1070. * @export
  1071. * @interface ChangePasswordDto
  1072. */
  1073. export interface ChangePasswordDto {
  1074. /**
  1075. *
  1076. * @type {string}
  1077. * @memberof ChangePasswordDto
  1078. */
  1079. 'newPassword': string;
  1080. /**
  1081. *
  1082. * @type {string}
  1083. * @memberof ChangePasswordDto
  1084. */
  1085. 'password': string;
  1086. }
  1087. /**
  1088. *
  1089. * @export
  1090. * @interface CheckExistingAssetsDto
  1091. */
  1092. export interface CheckExistingAssetsDto {
  1093. /**
  1094. *
  1095. * @type {Array<string>}
  1096. * @memberof CheckExistingAssetsDto
  1097. */
  1098. 'deviceAssetIds': Array<string>;
  1099. /**
  1100. *
  1101. * @type {string}
  1102. * @memberof CheckExistingAssetsDto
  1103. */
  1104. 'deviceId': string;
  1105. }
  1106. /**
  1107. *
  1108. * @export
  1109. * @interface CheckExistingAssetsResponseDto
  1110. */
  1111. export interface CheckExistingAssetsResponseDto {
  1112. /**
  1113. *
  1114. * @type {Array<string>}
  1115. * @memberof CheckExistingAssetsResponseDto
  1116. */
  1117. 'existingIds': Array<string>;
  1118. }
  1119. /**
  1120. *
  1121. * @export
  1122. * @enum {string}
  1123. */
  1124. export const CitiesFile = {
  1125. Cities15000: 'cities15000',
  1126. Cities5000: 'cities5000',
  1127. Cities1000: 'cities1000',
  1128. Cities500: 'cities500'
  1129. } as const;
  1130. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1131. /**
  1132. *
  1133. * @export
  1134. * @interface ClassificationConfig
  1135. */
  1136. export interface ClassificationConfig {
  1137. /**
  1138. *
  1139. * @type {boolean}
  1140. * @memberof ClassificationConfig
  1141. */
  1142. 'enabled': boolean;
  1143. /**
  1144. *
  1145. * @type {number}
  1146. * @memberof ClassificationConfig
  1147. */
  1148. 'minScore': number;
  1149. /**
  1150. *
  1151. * @type {string}
  1152. * @memberof ClassificationConfig
  1153. */
  1154. 'modelName': string;
  1155. /**
  1156. *
  1157. * @type {ModelType}
  1158. * @memberof ClassificationConfig
  1159. */
  1160. 'modelType'?: ModelType;
  1161. }
  1162. /**
  1163. *
  1164. * @export
  1165. * @enum {string}
  1166. */
  1167. export const Colorspace = {
  1168. Srgb: 'srgb',
  1169. P3: 'p3'
  1170. } as const;
  1171. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1172. /**
  1173. *
  1174. * @export
  1175. * @interface CreateAlbumDto
  1176. */
  1177. export interface CreateAlbumDto {
  1178. /**
  1179. *
  1180. * @type {string}
  1181. * @memberof CreateAlbumDto
  1182. */
  1183. 'albumName': string;
  1184. /**
  1185. *
  1186. * @type {Array<string>}
  1187. * @memberof CreateAlbumDto
  1188. */
  1189. 'assetIds'?: Array<string>;
  1190. /**
  1191. *
  1192. * @type {string}
  1193. * @memberof CreateAlbumDto
  1194. */
  1195. 'description'?: string;
  1196. /**
  1197. *
  1198. * @type {Array<string>}
  1199. * @memberof CreateAlbumDto
  1200. */
  1201. 'sharedWithUserIds'?: Array<string>;
  1202. }
  1203. /**
  1204. *
  1205. * @export
  1206. * @interface CreateLibraryDto
  1207. */
  1208. export interface CreateLibraryDto {
  1209. /**
  1210. *
  1211. * @type {Array<string>}
  1212. * @memberof CreateLibraryDto
  1213. */
  1214. 'exclusionPatterns'?: Array<string>;
  1215. /**
  1216. *
  1217. * @type {Array<string>}
  1218. * @memberof CreateLibraryDto
  1219. */
  1220. 'importPaths'?: Array<string>;
  1221. /**
  1222. *
  1223. * @type {boolean}
  1224. * @memberof CreateLibraryDto
  1225. */
  1226. 'isVisible'?: boolean;
  1227. /**
  1228. *
  1229. * @type {string}
  1230. * @memberof CreateLibraryDto
  1231. */
  1232. 'name'?: string;
  1233. /**
  1234. *
  1235. * @type {LibraryType}
  1236. * @memberof CreateLibraryDto
  1237. */
  1238. 'type': LibraryType;
  1239. }
  1240. /**
  1241. *
  1242. * @export
  1243. * @interface CreateProfileImageResponseDto
  1244. */
  1245. export interface CreateProfileImageResponseDto {
  1246. /**
  1247. *
  1248. * @type {string}
  1249. * @memberof CreateProfileImageResponseDto
  1250. */
  1251. 'profileImagePath': string;
  1252. /**
  1253. *
  1254. * @type {string}
  1255. * @memberof CreateProfileImageResponseDto
  1256. */
  1257. 'userId': string;
  1258. }
  1259. /**
  1260. *
  1261. * @export
  1262. * @interface CreateTagDto
  1263. */
  1264. export interface CreateTagDto {
  1265. /**
  1266. *
  1267. * @type {string}
  1268. * @memberof CreateTagDto
  1269. */
  1270. 'name': string;
  1271. /**
  1272. *
  1273. * @type {TagTypeEnum}
  1274. * @memberof CreateTagDto
  1275. */
  1276. 'type': TagTypeEnum;
  1277. }
  1278. /**
  1279. *
  1280. * @export
  1281. * @interface CreateUserDto
  1282. */
  1283. export interface CreateUserDto {
  1284. /**
  1285. *
  1286. * @type {string}
  1287. * @memberof CreateUserDto
  1288. */
  1289. 'email': string;
  1290. /**
  1291. *
  1292. * @type {string}
  1293. * @memberof CreateUserDto
  1294. */
  1295. 'externalPath'?: string | null;
  1296. /**
  1297. *
  1298. * @type {boolean}
  1299. * @memberof CreateUserDto
  1300. */
  1301. 'memoriesEnabled'?: boolean;
  1302. /**
  1303. *
  1304. * @type {string}
  1305. * @memberof CreateUserDto
  1306. */
  1307. 'name': string;
  1308. /**
  1309. *
  1310. * @type {string}
  1311. * @memberof CreateUserDto
  1312. */
  1313. 'password': string;
  1314. /**
  1315. *
  1316. * @type {string}
  1317. * @memberof CreateUserDto
  1318. */
  1319. 'storageLabel'?: string | null;
  1320. }
  1321. /**
  1322. *
  1323. * @export
  1324. * @interface CuratedLocationsResponseDto
  1325. */
  1326. export interface CuratedLocationsResponseDto {
  1327. /**
  1328. *
  1329. * @type {string}
  1330. * @memberof CuratedLocationsResponseDto
  1331. */
  1332. 'city': string;
  1333. /**
  1334. *
  1335. * @type {string}
  1336. * @memberof CuratedLocationsResponseDto
  1337. */
  1338. 'deviceAssetId': string;
  1339. /**
  1340. *
  1341. * @type {string}
  1342. * @memberof CuratedLocationsResponseDto
  1343. */
  1344. 'deviceId': string;
  1345. /**
  1346. *
  1347. * @type {string}
  1348. * @memberof CuratedLocationsResponseDto
  1349. */
  1350. 'id': string;
  1351. /**
  1352. *
  1353. * @type {string}
  1354. * @memberof CuratedLocationsResponseDto
  1355. */
  1356. 'resizePath': string;
  1357. }
  1358. /**
  1359. *
  1360. * @export
  1361. * @interface CuratedObjectsResponseDto
  1362. */
  1363. export interface CuratedObjectsResponseDto {
  1364. /**
  1365. *
  1366. * @type {string}
  1367. * @memberof CuratedObjectsResponseDto
  1368. */
  1369. 'deviceAssetId': string;
  1370. /**
  1371. *
  1372. * @type {string}
  1373. * @memberof CuratedObjectsResponseDto
  1374. */
  1375. 'deviceId': string;
  1376. /**
  1377. *
  1378. * @type {string}
  1379. * @memberof CuratedObjectsResponseDto
  1380. */
  1381. 'id': string;
  1382. /**
  1383. *
  1384. * @type {string}
  1385. * @memberof CuratedObjectsResponseDto
  1386. */
  1387. 'object': string;
  1388. /**
  1389. *
  1390. * @type {string}
  1391. * @memberof CuratedObjectsResponseDto
  1392. */
  1393. 'resizePath': string;
  1394. }
  1395. /**
  1396. *
  1397. * @export
  1398. * @interface DownloadArchiveInfo
  1399. */
  1400. export interface DownloadArchiveInfo {
  1401. /**
  1402. *
  1403. * @type {Array<string>}
  1404. * @memberof DownloadArchiveInfo
  1405. */
  1406. 'assetIds': Array<string>;
  1407. /**
  1408. *
  1409. * @type {number}
  1410. * @memberof DownloadArchiveInfo
  1411. */
  1412. 'size': number;
  1413. }
  1414. /**
  1415. *
  1416. * @export
  1417. * @interface DownloadInfoDto
  1418. */
  1419. export interface DownloadInfoDto {
  1420. /**
  1421. *
  1422. * @type {string}
  1423. * @memberof DownloadInfoDto
  1424. */
  1425. 'albumId'?: string;
  1426. /**
  1427. *
  1428. * @type {number}
  1429. * @memberof DownloadInfoDto
  1430. */
  1431. 'archiveSize'?: number;
  1432. /**
  1433. *
  1434. * @type {Array<string>}
  1435. * @memberof DownloadInfoDto
  1436. */
  1437. 'assetIds'?: Array<string>;
  1438. /**
  1439. *
  1440. * @type {string}
  1441. * @memberof DownloadInfoDto
  1442. */
  1443. 'userId'?: string;
  1444. }
  1445. /**
  1446. *
  1447. * @export
  1448. * @interface DownloadResponseDto
  1449. */
  1450. export interface DownloadResponseDto {
  1451. /**
  1452. *
  1453. * @type {Array<DownloadArchiveInfo>}
  1454. * @memberof DownloadResponseDto
  1455. */
  1456. 'archives': Array<DownloadArchiveInfo>;
  1457. /**
  1458. *
  1459. * @type {number}
  1460. * @memberof DownloadResponseDto
  1461. */
  1462. 'totalSize': number;
  1463. }
  1464. /**
  1465. *
  1466. * @export
  1467. * @enum {string}
  1468. */
  1469. export const EntityType = {
  1470. Asset: 'ASSET',
  1471. Album: 'ALBUM'
  1472. } as const;
  1473. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1474. /**
  1475. *
  1476. * @export
  1477. * @interface ExifResponseDto
  1478. */
  1479. export interface ExifResponseDto {
  1480. /**
  1481. *
  1482. * @type {string}
  1483. * @memberof ExifResponseDto
  1484. */
  1485. 'city'?: string | null;
  1486. /**
  1487. *
  1488. * @type {string}
  1489. * @memberof ExifResponseDto
  1490. */
  1491. 'country'?: string | null;
  1492. /**
  1493. *
  1494. * @type {string}
  1495. * @memberof ExifResponseDto
  1496. */
  1497. 'dateTimeOriginal'?: string | null;
  1498. /**
  1499. *
  1500. * @type {string}
  1501. * @memberof ExifResponseDto
  1502. */
  1503. 'description'?: string | null;
  1504. /**
  1505. *
  1506. * @type {number}
  1507. * @memberof ExifResponseDto
  1508. */
  1509. 'exifImageHeight'?: number | null;
  1510. /**
  1511. *
  1512. * @type {number}
  1513. * @memberof ExifResponseDto
  1514. */
  1515. 'exifImageWidth'?: number | null;
  1516. /**
  1517. *
  1518. * @type {string}
  1519. * @memberof ExifResponseDto
  1520. */
  1521. 'exposureTime'?: string | null;
  1522. /**
  1523. *
  1524. * @type {number}
  1525. * @memberof ExifResponseDto
  1526. */
  1527. 'fNumber'?: number | null;
  1528. /**
  1529. *
  1530. * @type {number}
  1531. * @memberof ExifResponseDto
  1532. */
  1533. 'fileSizeInByte'?: number | null;
  1534. /**
  1535. *
  1536. * @type {number}
  1537. * @memberof ExifResponseDto
  1538. */
  1539. 'focalLength'?: number | null;
  1540. /**
  1541. *
  1542. * @type {number}
  1543. * @memberof ExifResponseDto
  1544. */
  1545. 'iso'?: number | null;
  1546. /**
  1547. *
  1548. * @type {number}
  1549. * @memberof ExifResponseDto
  1550. */
  1551. 'latitude'?: number | null;
  1552. /**
  1553. *
  1554. * @type {string}
  1555. * @memberof ExifResponseDto
  1556. */
  1557. 'lensModel'?: string | null;
  1558. /**
  1559. *
  1560. * @type {number}
  1561. * @memberof ExifResponseDto
  1562. */
  1563. 'longitude'?: number | null;
  1564. /**
  1565. *
  1566. * @type {string}
  1567. * @memberof ExifResponseDto
  1568. */
  1569. 'make'?: string | null;
  1570. /**
  1571. *
  1572. * @type {string}
  1573. * @memberof ExifResponseDto
  1574. */
  1575. 'model'?: string | null;
  1576. /**
  1577. *
  1578. * @type {string}
  1579. * @memberof ExifResponseDto
  1580. */
  1581. 'modifyDate'?: string | null;
  1582. /**
  1583. *
  1584. * @type {string}
  1585. * @memberof ExifResponseDto
  1586. */
  1587. 'orientation'?: string | null;
  1588. /**
  1589. *
  1590. * @type {string}
  1591. * @memberof ExifResponseDto
  1592. */
  1593. 'projectionType'?: string | null;
  1594. /**
  1595. *
  1596. * @type {string}
  1597. * @memberof ExifResponseDto
  1598. */
  1599. 'state'?: string | null;
  1600. /**
  1601. *
  1602. * @type {string}
  1603. * @memberof ExifResponseDto
  1604. */
  1605. 'timeZone'?: string | null;
  1606. }
  1607. /**
  1608. *
  1609. * @export
  1610. * @interface FileChecksumDto
  1611. */
  1612. export interface FileChecksumDto {
  1613. /**
  1614. *
  1615. * @type {Array<string>}
  1616. * @memberof FileChecksumDto
  1617. */
  1618. 'filenames': Array<string>;
  1619. }
  1620. /**
  1621. *
  1622. * @export
  1623. * @interface FileChecksumResponseDto
  1624. */
  1625. export interface FileChecksumResponseDto {
  1626. /**
  1627. *
  1628. * @type {string}
  1629. * @memberof FileChecksumResponseDto
  1630. */
  1631. 'checksum': string;
  1632. /**
  1633. *
  1634. * @type {string}
  1635. * @memberof FileChecksumResponseDto
  1636. */
  1637. 'filename': string;
  1638. }
  1639. /**
  1640. *
  1641. * @export
  1642. * @interface FileReportDto
  1643. */
  1644. export interface FileReportDto {
  1645. /**
  1646. *
  1647. * @type {Array<string>}
  1648. * @memberof FileReportDto
  1649. */
  1650. 'extras': Array<string>;
  1651. /**
  1652. *
  1653. * @type {Array<FileReportItemDto>}
  1654. * @memberof FileReportDto
  1655. */
  1656. 'orphans': Array<FileReportItemDto>;
  1657. }
  1658. /**
  1659. *
  1660. * @export
  1661. * @interface FileReportFixDto
  1662. */
  1663. export interface FileReportFixDto {
  1664. /**
  1665. *
  1666. * @type {Array<FileReportItemDto>}
  1667. * @memberof FileReportFixDto
  1668. */
  1669. 'items': Array<FileReportItemDto>;
  1670. }
  1671. /**
  1672. *
  1673. * @export
  1674. * @interface FileReportItemDto
  1675. */
  1676. export interface FileReportItemDto {
  1677. /**
  1678. *
  1679. * @type {string}
  1680. * @memberof FileReportItemDto
  1681. */
  1682. 'checksum'?: string;
  1683. /**
  1684. *
  1685. * @type {string}
  1686. * @memberof FileReportItemDto
  1687. */
  1688. 'entityId': string;
  1689. /**
  1690. *
  1691. * @type {PathEntityType}
  1692. * @memberof FileReportItemDto
  1693. */
  1694. 'entityType': PathEntityType;
  1695. /**
  1696. *
  1697. * @type {PathType}
  1698. * @memberof FileReportItemDto
  1699. */
  1700. 'pathType': PathType;
  1701. /**
  1702. *
  1703. * @type {string}
  1704. * @memberof FileReportItemDto
  1705. */
  1706. 'pathValue': string;
  1707. }
  1708. /**
  1709. *
  1710. * @export
  1711. * @enum {string}
  1712. */
  1713. export const JobCommand = {
  1714. Start: 'start',
  1715. Pause: 'pause',
  1716. Resume: 'resume',
  1717. Empty: 'empty'
  1718. } as const;
  1719. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1720. /**
  1721. *
  1722. * @export
  1723. * @interface JobCommandDto
  1724. */
  1725. export interface JobCommandDto {
  1726. /**
  1727. *
  1728. * @type {JobCommand}
  1729. * @memberof JobCommandDto
  1730. */
  1731. 'command': JobCommand;
  1732. /**
  1733. *
  1734. * @type {boolean}
  1735. * @memberof JobCommandDto
  1736. */
  1737. 'force': boolean;
  1738. }
  1739. /**
  1740. *
  1741. * @export
  1742. * @interface JobCountsDto
  1743. */
  1744. export interface JobCountsDto {
  1745. /**
  1746. *
  1747. * @type {number}
  1748. * @memberof JobCountsDto
  1749. */
  1750. 'active': number;
  1751. /**
  1752. *
  1753. * @type {number}
  1754. * @memberof JobCountsDto
  1755. */
  1756. 'completed': number;
  1757. /**
  1758. *
  1759. * @type {number}
  1760. * @memberof JobCountsDto
  1761. */
  1762. 'delayed': number;
  1763. /**
  1764. *
  1765. * @type {number}
  1766. * @memberof JobCountsDto
  1767. */
  1768. 'failed': number;
  1769. /**
  1770. *
  1771. * @type {number}
  1772. * @memberof JobCountsDto
  1773. */
  1774. 'paused': number;
  1775. /**
  1776. *
  1777. * @type {number}
  1778. * @memberof JobCountsDto
  1779. */
  1780. 'waiting': number;
  1781. }
  1782. /**
  1783. *
  1784. * @export
  1785. * @enum {string}
  1786. */
  1787. export const JobName = {
  1788. ThumbnailGeneration: 'thumbnailGeneration',
  1789. MetadataExtraction: 'metadataExtraction',
  1790. VideoConversion: 'videoConversion',
  1791. ObjectTagging: 'objectTagging',
  1792. RecognizeFaces: 'recognizeFaces',
  1793. ClipEncoding: 'clipEncoding',
  1794. BackgroundTask: 'backgroundTask',
  1795. StorageTemplateMigration: 'storageTemplateMigration',
  1796. Migration: 'migration',
  1797. Search: 'search',
  1798. Sidecar: 'sidecar',
  1799. Library: 'library'
  1800. } as const;
  1801. export type JobName = typeof JobName[keyof typeof JobName];
  1802. /**
  1803. *
  1804. * @export
  1805. * @interface JobSettingsDto
  1806. */
  1807. export interface JobSettingsDto {
  1808. /**
  1809. *
  1810. * @type {number}
  1811. * @memberof JobSettingsDto
  1812. */
  1813. 'concurrency': number;
  1814. }
  1815. /**
  1816. *
  1817. * @export
  1818. * @interface JobStatusDto
  1819. */
  1820. export interface JobStatusDto {
  1821. /**
  1822. *
  1823. * @type {JobCountsDto}
  1824. * @memberof JobStatusDto
  1825. */
  1826. 'jobCounts': JobCountsDto;
  1827. /**
  1828. *
  1829. * @type {QueueStatusDto}
  1830. * @memberof JobStatusDto
  1831. */
  1832. 'queueStatus': QueueStatusDto;
  1833. }
  1834. /**
  1835. *
  1836. * @export
  1837. * @interface LibraryResponseDto
  1838. */
  1839. export interface LibraryResponseDto {
  1840. /**
  1841. *
  1842. * @type {number}
  1843. * @memberof LibraryResponseDto
  1844. */
  1845. 'assetCount': number;
  1846. /**
  1847. *
  1848. * @type {string}
  1849. * @memberof LibraryResponseDto
  1850. */
  1851. 'createdAt': string;
  1852. /**
  1853. *
  1854. * @type {Array<string>}
  1855. * @memberof LibraryResponseDto
  1856. */
  1857. 'exclusionPatterns': Array<string>;
  1858. /**
  1859. *
  1860. * @type {string}
  1861. * @memberof LibraryResponseDto
  1862. */
  1863. 'id': string;
  1864. /**
  1865. *
  1866. * @type {Array<string>}
  1867. * @memberof LibraryResponseDto
  1868. */
  1869. 'importPaths': Array<string>;
  1870. /**
  1871. *
  1872. * @type {string}
  1873. * @memberof LibraryResponseDto
  1874. */
  1875. 'name': string;
  1876. /**
  1877. *
  1878. * @type {string}
  1879. * @memberof LibraryResponseDto
  1880. */
  1881. 'ownerId': string;
  1882. /**
  1883. *
  1884. * @type {string}
  1885. * @memberof LibraryResponseDto
  1886. */
  1887. 'refreshedAt': string | null;
  1888. /**
  1889. *
  1890. * @type {LibraryType}
  1891. * @memberof LibraryResponseDto
  1892. */
  1893. 'type': LibraryType;
  1894. /**
  1895. *
  1896. * @type {string}
  1897. * @memberof LibraryResponseDto
  1898. */
  1899. 'updatedAt': string;
  1900. }
  1901. /**
  1902. *
  1903. * @export
  1904. * @interface LibraryStatsResponseDto
  1905. */
  1906. export interface LibraryStatsResponseDto {
  1907. /**
  1908. *
  1909. * @type {number}
  1910. * @memberof LibraryStatsResponseDto
  1911. */
  1912. 'photos': number;
  1913. /**
  1914. *
  1915. * @type {number}
  1916. * @memberof LibraryStatsResponseDto
  1917. */
  1918. 'total': number;
  1919. /**
  1920. *
  1921. * @type {number}
  1922. * @memberof LibraryStatsResponseDto
  1923. */
  1924. 'usage': number;
  1925. /**
  1926. *
  1927. * @type {number}
  1928. * @memberof LibraryStatsResponseDto
  1929. */
  1930. 'videos': number;
  1931. }
  1932. /**
  1933. *
  1934. * @export
  1935. * @enum {string}
  1936. */
  1937. export const LibraryType = {
  1938. Upload: 'UPLOAD',
  1939. External: 'EXTERNAL'
  1940. } as const;
  1941. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  1942. /**
  1943. *
  1944. * @export
  1945. * @interface LoginCredentialDto
  1946. */
  1947. export interface LoginCredentialDto {
  1948. /**
  1949. *
  1950. * @type {string}
  1951. * @memberof LoginCredentialDto
  1952. */
  1953. 'email': string;
  1954. /**
  1955. *
  1956. * @type {string}
  1957. * @memberof LoginCredentialDto
  1958. */
  1959. 'password': string;
  1960. }
  1961. /**
  1962. *
  1963. * @export
  1964. * @interface LoginResponseDto
  1965. */
  1966. export interface LoginResponseDto {
  1967. /**
  1968. *
  1969. * @type {string}
  1970. * @memberof LoginResponseDto
  1971. */
  1972. 'accessToken': string;
  1973. /**
  1974. *
  1975. * @type {boolean}
  1976. * @memberof LoginResponseDto
  1977. */
  1978. 'isAdmin': boolean;
  1979. /**
  1980. *
  1981. * @type {string}
  1982. * @memberof LoginResponseDto
  1983. */
  1984. 'name': string;
  1985. /**
  1986. *
  1987. * @type {string}
  1988. * @memberof LoginResponseDto
  1989. */
  1990. 'profileImagePath': string;
  1991. /**
  1992. *
  1993. * @type {boolean}
  1994. * @memberof LoginResponseDto
  1995. */
  1996. 'shouldChangePassword': boolean;
  1997. /**
  1998. *
  1999. * @type {string}
  2000. * @memberof LoginResponseDto
  2001. */
  2002. 'userEmail': string;
  2003. /**
  2004. *
  2005. * @type {string}
  2006. * @memberof LoginResponseDto
  2007. */
  2008. 'userId': string;
  2009. }
  2010. /**
  2011. *
  2012. * @export
  2013. * @interface LogoutResponseDto
  2014. */
  2015. export interface LogoutResponseDto {
  2016. /**
  2017. *
  2018. * @type {string}
  2019. * @memberof LogoutResponseDto
  2020. */
  2021. 'redirectUri': string;
  2022. /**
  2023. *
  2024. * @type {boolean}
  2025. * @memberof LogoutResponseDto
  2026. */
  2027. 'successful': boolean;
  2028. }
  2029. /**
  2030. *
  2031. * @export
  2032. * @interface MapMarkerResponseDto
  2033. */
  2034. export interface MapMarkerResponseDto {
  2035. /**
  2036. *
  2037. * @type {string}
  2038. * @memberof MapMarkerResponseDto
  2039. */
  2040. 'id': string;
  2041. /**
  2042. *
  2043. * @type {number}
  2044. * @memberof MapMarkerResponseDto
  2045. */
  2046. 'lat': number;
  2047. /**
  2048. *
  2049. * @type {number}
  2050. * @memberof MapMarkerResponseDto
  2051. */
  2052. 'lon': number;
  2053. }
  2054. /**
  2055. *
  2056. * @export
  2057. * @enum {string}
  2058. */
  2059. export const MapTheme = {
  2060. Light: 'light',
  2061. Dark: 'dark'
  2062. } as const;
  2063. export type MapTheme = typeof MapTheme[keyof typeof MapTheme];
  2064. /**
  2065. *
  2066. * @export
  2067. * @interface MemoryLaneResponseDto
  2068. */
  2069. export interface MemoryLaneResponseDto {
  2070. /**
  2071. *
  2072. * @type {Array<AssetResponseDto>}
  2073. * @memberof MemoryLaneResponseDto
  2074. */
  2075. 'assets': Array<AssetResponseDto>;
  2076. /**
  2077. *
  2078. * @type {string}
  2079. * @memberof MemoryLaneResponseDto
  2080. */
  2081. 'title': string;
  2082. }
  2083. /**
  2084. *
  2085. * @export
  2086. * @interface MergePersonDto
  2087. */
  2088. export interface MergePersonDto {
  2089. /**
  2090. *
  2091. * @type {Array<string>}
  2092. * @memberof MergePersonDto
  2093. */
  2094. 'ids': Array<string>;
  2095. }
  2096. /**
  2097. *
  2098. * @export
  2099. * @enum {string}
  2100. */
  2101. export const ModelType = {
  2102. ImageClassification: 'image-classification',
  2103. FacialRecognition: 'facial-recognition',
  2104. Clip: 'clip'
  2105. } as const;
  2106. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2107. /**
  2108. *
  2109. * @export
  2110. * @interface OAuthAuthorizeResponseDto
  2111. */
  2112. export interface OAuthAuthorizeResponseDto {
  2113. /**
  2114. *
  2115. * @type {string}
  2116. * @memberof OAuthAuthorizeResponseDto
  2117. */
  2118. 'url': string;
  2119. }
  2120. /**
  2121. *
  2122. * @export
  2123. * @interface OAuthCallbackDto
  2124. */
  2125. export interface OAuthCallbackDto {
  2126. /**
  2127. *
  2128. * @type {string}
  2129. * @memberof OAuthCallbackDto
  2130. */
  2131. 'url': string;
  2132. }
  2133. /**
  2134. *
  2135. * @export
  2136. * @interface OAuthConfigDto
  2137. */
  2138. export interface OAuthConfigDto {
  2139. /**
  2140. *
  2141. * @type {string}
  2142. * @memberof OAuthConfigDto
  2143. */
  2144. 'redirectUri': string;
  2145. }
  2146. /**
  2147. *
  2148. * @export
  2149. * @interface OAuthConfigResponseDto
  2150. */
  2151. export interface OAuthConfigResponseDto {
  2152. /**
  2153. *
  2154. * @type {boolean}
  2155. * @memberof OAuthConfigResponseDto
  2156. */
  2157. 'autoLaunch'?: boolean;
  2158. /**
  2159. *
  2160. * @type {string}
  2161. * @memberof OAuthConfigResponseDto
  2162. */
  2163. 'buttonText'?: string;
  2164. /**
  2165. *
  2166. * @type {boolean}
  2167. * @memberof OAuthConfigResponseDto
  2168. */
  2169. 'enabled': boolean;
  2170. /**
  2171. *
  2172. * @type {boolean}
  2173. * @memberof OAuthConfigResponseDto
  2174. */
  2175. 'passwordLoginEnabled': boolean;
  2176. /**
  2177. *
  2178. * @type {string}
  2179. * @memberof OAuthConfigResponseDto
  2180. */
  2181. 'url'?: string;
  2182. }
  2183. /**
  2184. *
  2185. * @export
  2186. * @interface PartnerResponseDto
  2187. */
  2188. export interface PartnerResponseDto {
  2189. /**
  2190. *
  2191. * @type {UserAvatarColor}
  2192. * @memberof PartnerResponseDto
  2193. */
  2194. 'avatarColor': UserAvatarColor;
  2195. /**
  2196. *
  2197. * @type {string}
  2198. * @memberof PartnerResponseDto
  2199. */
  2200. 'createdAt': string;
  2201. /**
  2202. *
  2203. * @type {string}
  2204. * @memberof PartnerResponseDto
  2205. */
  2206. 'deletedAt': string | null;
  2207. /**
  2208. *
  2209. * @type {string}
  2210. * @memberof PartnerResponseDto
  2211. */
  2212. 'email': string;
  2213. /**
  2214. *
  2215. * @type {string}
  2216. * @memberof PartnerResponseDto
  2217. */
  2218. 'externalPath': string | null;
  2219. /**
  2220. *
  2221. * @type {string}
  2222. * @memberof PartnerResponseDto
  2223. */
  2224. 'id': string;
  2225. /**
  2226. *
  2227. * @type {boolean}
  2228. * @memberof PartnerResponseDto
  2229. */
  2230. 'inTimeline'?: boolean;
  2231. /**
  2232. *
  2233. * @type {boolean}
  2234. * @memberof PartnerResponseDto
  2235. */
  2236. 'isAdmin': boolean;
  2237. /**
  2238. *
  2239. * @type {boolean}
  2240. * @memberof PartnerResponseDto
  2241. */
  2242. 'memoriesEnabled'?: boolean;
  2243. /**
  2244. *
  2245. * @type {string}
  2246. * @memberof PartnerResponseDto
  2247. */
  2248. 'name': string;
  2249. /**
  2250. *
  2251. * @type {string}
  2252. * @memberof PartnerResponseDto
  2253. */
  2254. 'oauthId': string;
  2255. /**
  2256. *
  2257. * @type {string}
  2258. * @memberof PartnerResponseDto
  2259. */
  2260. 'profileImagePath': string;
  2261. /**
  2262. *
  2263. * @type {boolean}
  2264. * @memberof PartnerResponseDto
  2265. */
  2266. 'shouldChangePassword': boolean;
  2267. /**
  2268. *
  2269. * @type {string}
  2270. * @memberof PartnerResponseDto
  2271. */
  2272. 'storageLabel': string | null;
  2273. /**
  2274. *
  2275. * @type {string}
  2276. * @memberof PartnerResponseDto
  2277. */
  2278. 'updatedAt': string;
  2279. }
  2280. /**
  2281. *
  2282. * @export
  2283. * @enum {string}
  2284. */
  2285. export const PathEntityType = {
  2286. Asset: 'asset',
  2287. Person: 'person',
  2288. User: 'user'
  2289. } as const;
  2290. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2291. /**
  2292. *
  2293. * @export
  2294. * @enum {string}
  2295. */
  2296. export const PathType = {
  2297. Original: 'original',
  2298. JpegThumbnail: 'jpeg_thumbnail',
  2299. WebpThumbnail: 'webp_thumbnail',
  2300. EncodedVideo: 'encoded_video',
  2301. Sidecar: 'sidecar',
  2302. Face: 'face',
  2303. Profile: 'profile'
  2304. } as const;
  2305. export type PathType = typeof PathType[keyof typeof PathType];
  2306. /**
  2307. *
  2308. * @export
  2309. * @interface PeopleResponseDto
  2310. */
  2311. export interface PeopleResponseDto {
  2312. /**
  2313. *
  2314. * @type {Array<PersonResponseDto>}
  2315. * @memberof PeopleResponseDto
  2316. */
  2317. 'people': Array<PersonResponseDto>;
  2318. /**
  2319. *
  2320. * @type {number}
  2321. * @memberof PeopleResponseDto
  2322. */
  2323. 'total': number;
  2324. /**
  2325. *
  2326. * @type {number}
  2327. * @memberof PeopleResponseDto
  2328. */
  2329. 'visible': number;
  2330. }
  2331. /**
  2332. *
  2333. * @export
  2334. * @interface PeopleUpdateDto
  2335. */
  2336. export interface PeopleUpdateDto {
  2337. /**
  2338. *
  2339. * @type {Array<PeopleUpdateItem>}
  2340. * @memberof PeopleUpdateDto
  2341. */
  2342. 'people': Array<PeopleUpdateItem>;
  2343. }
  2344. /**
  2345. *
  2346. * @export
  2347. * @interface PeopleUpdateItem
  2348. */
  2349. export interface PeopleUpdateItem {
  2350. /**
  2351. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2352. * @type {string}
  2353. * @memberof PeopleUpdateItem
  2354. */
  2355. 'birthDate'?: string | null;
  2356. /**
  2357. * Asset is used to get the feature face thumbnail.
  2358. * @type {string}
  2359. * @memberof PeopleUpdateItem
  2360. */
  2361. 'featureFaceAssetId'?: string;
  2362. /**
  2363. * Person id.
  2364. * @type {string}
  2365. * @memberof PeopleUpdateItem
  2366. */
  2367. 'id': string;
  2368. /**
  2369. * Person visibility
  2370. * @type {boolean}
  2371. * @memberof PeopleUpdateItem
  2372. */
  2373. 'isHidden'?: boolean;
  2374. /**
  2375. * Person name.
  2376. * @type {string}
  2377. * @memberof PeopleUpdateItem
  2378. */
  2379. 'name'?: string;
  2380. }
  2381. /**
  2382. *
  2383. * @export
  2384. * @interface PersonResponseDto
  2385. */
  2386. export interface PersonResponseDto {
  2387. /**
  2388. *
  2389. * @type {string}
  2390. * @memberof PersonResponseDto
  2391. */
  2392. 'birthDate': string | null;
  2393. /**
  2394. *
  2395. * @type {string}
  2396. * @memberof PersonResponseDto
  2397. */
  2398. 'id': string;
  2399. /**
  2400. *
  2401. * @type {boolean}
  2402. * @memberof PersonResponseDto
  2403. */
  2404. 'isHidden': boolean;
  2405. /**
  2406. *
  2407. * @type {string}
  2408. * @memberof PersonResponseDto
  2409. */
  2410. 'name': string;
  2411. /**
  2412. *
  2413. * @type {string}
  2414. * @memberof PersonResponseDto
  2415. */
  2416. 'thumbnailPath': string;
  2417. }
  2418. /**
  2419. *
  2420. * @export
  2421. * @interface PersonStatisticsResponseDto
  2422. */
  2423. export interface PersonStatisticsResponseDto {
  2424. /**
  2425. *
  2426. * @type {number}
  2427. * @memberof PersonStatisticsResponseDto
  2428. */
  2429. 'assets': number;
  2430. }
  2431. /**
  2432. *
  2433. * @export
  2434. * @interface PersonUpdateDto
  2435. */
  2436. export interface PersonUpdateDto {
  2437. /**
  2438. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2439. * @type {string}
  2440. * @memberof PersonUpdateDto
  2441. */
  2442. 'birthDate'?: string | null;
  2443. /**
  2444. * Asset is used to get the feature face thumbnail.
  2445. * @type {string}
  2446. * @memberof PersonUpdateDto
  2447. */
  2448. 'featureFaceAssetId'?: string;
  2449. /**
  2450. * Person visibility
  2451. * @type {boolean}
  2452. * @memberof PersonUpdateDto
  2453. */
  2454. 'isHidden'?: boolean;
  2455. /**
  2456. * Person name.
  2457. * @type {string}
  2458. * @memberof PersonUpdateDto
  2459. */
  2460. 'name'?: string;
  2461. }
  2462. /**
  2463. *
  2464. * @export
  2465. * @interface QueueStatusDto
  2466. */
  2467. export interface QueueStatusDto {
  2468. /**
  2469. *
  2470. * @type {boolean}
  2471. * @memberof QueueStatusDto
  2472. */
  2473. 'isActive': boolean;
  2474. /**
  2475. *
  2476. * @type {boolean}
  2477. * @memberof QueueStatusDto
  2478. */
  2479. 'isPaused': boolean;
  2480. }
  2481. /**
  2482. *
  2483. * @export
  2484. * @enum {string}
  2485. */
  2486. export const ReactionLevel = {
  2487. Album: 'album',
  2488. Asset: 'asset'
  2489. } as const;
  2490. export type ReactionLevel = typeof ReactionLevel[keyof typeof ReactionLevel];
  2491. /**
  2492. *
  2493. * @export
  2494. * @enum {string}
  2495. */
  2496. export const ReactionType = {
  2497. Comment: 'comment',
  2498. Like: 'like'
  2499. } as const;
  2500. export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
  2501. /**
  2502. *
  2503. * @export
  2504. * @interface RecognitionConfig
  2505. */
  2506. export interface RecognitionConfig {
  2507. /**
  2508. *
  2509. * @type {boolean}
  2510. * @memberof RecognitionConfig
  2511. */
  2512. 'enabled': boolean;
  2513. /**
  2514. *
  2515. * @type {number}
  2516. * @memberof RecognitionConfig
  2517. */
  2518. 'maxDistance': number;
  2519. /**
  2520. *
  2521. * @type {number}
  2522. * @memberof RecognitionConfig
  2523. */
  2524. 'minFaces': number;
  2525. /**
  2526. *
  2527. * @type {number}
  2528. * @memberof RecognitionConfig
  2529. */
  2530. 'minScore': number;
  2531. /**
  2532. *
  2533. * @type {string}
  2534. * @memberof RecognitionConfig
  2535. */
  2536. 'modelName': string;
  2537. /**
  2538. *
  2539. * @type {ModelType}
  2540. * @memberof RecognitionConfig
  2541. */
  2542. 'modelType'?: ModelType;
  2543. }
  2544. /**
  2545. *
  2546. * @export
  2547. * @interface ScanLibraryDto
  2548. */
  2549. export interface ScanLibraryDto {
  2550. /**
  2551. *
  2552. * @type {boolean}
  2553. * @memberof ScanLibraryDto
  2554. */
  2555. 'refreshAllFiles'?: boolean;
  2556. /**
  2557. *
  2558. * @type {boolean}
  2559. * @memberof ScanLibraryDto
  2560. */
  2561. 'refreshModifiedFiles'?: boolean;
  2562. }
  2563. /**
  2564. *
  2565. * @export
  2566. * @interface SearchAlbumResponseDto
  2567. */
  2568. export interface SearchAlbumResponseDto {
  2569. /**
  2570. *
  2571. * @type {number}
  2572. * @memberof SearchAlbumResponseDto
  2573. */
  2574. 'count': number;
  2575. /**
  2576. *
  2577. * @type {Array<SearchFacetResponseDto>}
  2578. * @memberof SearchAlbumResponseDto
  2579. */
  2580. 'facets': Array<SearchFacetResponseDto>;
  2581. /**
  2582. *
  2583. * @type {Array<AlbumResponseDto>}
  2584. * @memberof SearchAlbumResponseDto
  2585. */
  2586. 'items': Array<AlbumResponseDto>;
  2587. /**
  2588. *
  2589. * @type {number}
  2590. * @memberof SearchAlbumResponseDto
  2591. */
  2592. 'total': number;
  2593. }
  2594. /**
  2595. *
  2596. * @export
  2597. * @interface SearchAssetResponseDto
  2598. */
  2599. export interface SearchAssetResponseDto {
  2600. /**
  2601. *
  2602. * @type {number}
  2603. * @memberof SearchAssetResponseDto
  2604. */
  2605. 'count': number;
  2606. /**
  2607. *
  2608. * @type {Array<SearchFacetResponseDto>}
  2609. * @memberof SearchAssetResponseDto
  2610. */
  2611. 'facets': Array<SearchFacetResponseDto>;
  2612. /**
  2613. *
  2614. * @type {Array<AssetResponseDto>}
  2615. * @memberof SearchAssetResponseDto
  2616. */
  2617. 'items': Array<AssetResponseDto>;
  2618. /**
  2619. *
  2620. * @type {number}
  2621. * @memberof SearchAssetResponseDto
  2622. */
  2623. 'total': number;
  2624. }
  2625. /**
  2626. *
  2627. * @export
  2628. * @interface SearchExploreItem
  2629. */
  2630. export interface SearchExploreItem {
  2631. /**
  2632. *
  2633. * @type {AssetResponseDto}
  2634. * @memberof SearchExploreItem
  2635. */
  2636. 'data': AssetResponseDto;
  2637. /**
  2638. *
  2639. * @type {string}
  2640. * @memberof SearchExploreItem
  2641. */
  2642. 'value': string;
  2643. }
  2644. /**
  2645. *
  2646. * @export
  2647. * @interface SearchExploreResponseDto
  2648. */
  2649. export interface SearchExploreResponseDto {
  2650. /**
  2651. *
  2652. * @type {string}
  2653. * @memberof SearchExploreResponseDto
  2654. */
  2655. 'fieldName': string;
  2656. /**
  2657. *
  2658. * @type {Array<SearchExploreItem>}
  2659. * @memberof SearchExploreResponseDto
  2660. */
  2661. 'items': Array<SearchExploreItem>;
  2662. }
  2663. /**
  2664. *
  2665. * @export
  2666. * @interface SearchFacetCountResponseDto
  2667. */
  2668. export interface SearchFacetCountResponseDto {
  2669. /**
  2670. *
  2671. * @type {number}
  2672. * @memberof SearchFacetCountResponseDto
  2673. */
  2674. 'count': number;
  2675. /**
  2676. *
  2677. * @type {string}
  2678. * @memberof SearchFacetCountResponseDto
  2679. */
  2680. 'value': string;
  2681. }
  2682. /**
  2683. *
  2684. * @export
  2685. * @interface SearchFacetResponseDto
  2686. */
  2687. export interface SearchFacetResponseDto {
  2688. /**
  2689. *
  2690. * @type {Array<SearchFacetCountResponseDto>}
  2691. * @memberof SearchFacetResponseDto
  2692. */
  2693. 'counts': Array<SearchFacetCountResponseDto>;
  2694. /**
  2695. *
  2696. * @type {string}
  2697. * @memberof SearchFacetResponseDto
  2698. */
  2699. 'fieldName': string;
  2700. }
  2701. /**
  2702. *
  2703. * @export
  2704. * @interface SearchResponseDto
  2705. */
  2706. export interface SearchResponseDto {
  2707. /**
  2708. *
  2709. * @type {SearchAlbumResponseDto}
  2710. * @memberof SearchResponseDto
  2711. */
  2712. 'albums': SearchAlbumResponseDto;
  2713. /**
  2714. *
  2715. * @type {SearchAssetResponseDto}
  2716. * @memberof SearchResponseDto
  2717. */
  2718. 'assets': SearchAssetResponseDto;
  2719. }
  2720. /**
  2721. *
  2722. * @export
  2723. * @interface ServerConfigDto
  2724. */
  2725. export interface ServerConfigDto {
  2726. /**
  2727. *
  2728. * @type {boolean}
  2729. * @memberof ServerConfigDto
  2730. */
  2731. 'isInitialized': boolean;
  2732. /**
  2733. *
  2734. * @type {string}
  2735. * @memberof ServerConfigDto
  2736. */
  2737. 'loginPageMessage': string;
  2738. /**
  2739. *
  2740. * @type {string}
  2741. * @memberof ServerConfigDto
  2742. */
  2743. 'oauthButtonText': string;
  2744. /**
  2745. *
  2746. * @type {number}
  2747. * @memberof ServerConfigDto
  2748. */
  2749. 'trashDays': number;
  2750. }
  2751. /**
  2752. *
  2753. * @export
  2754. * @interface ServerFeaturesDto
  2755. */
  2756. export interface ServerFeaturesDto {
  2757. /**
  2758. *
  2759. * @type {boolean}
  2760. * @memberof ServerFeaturesDto
  2761. */
  2762. 'clipEncode': boolean;
  2763. /**
  2764. *
  2765. * @type {boolean}
  2766. * @memberof ServerFeaturesDto
  2767. */
  2768. 'configFile': boolean;
  2769. /**
  2770. *
  2771. * @type {boolean}
  2772. * @memberof ServerFeaturesDto
  2773. */
  2774. 'facialRecognition': boolean;
  2775. /**
  2776. *
  2777. * @type {boolean}
  2778. * @memberof ServerFeaturesDto
  2779. */
  2780. 'map': boolean;
  2781. /**
  2782. *
  2783. * @type {boolean}
  2784. * @memberof ServerFeaturesDto
  2785. */
  2786. 'oauth': boolean;
  2787. /**
  2788. *
  2789. * @type {boolean}
  2790. * @memberof ServerFeaturesDto
  2791. */
  2792. 'oauthAutoLaunch': boolean;
  2793. /**
  2794. *
  2795. * @type {boolean}
  2796. * @memberof ServerFeaturesDto
  2797. */
  2798. 'passwordLogin': boolean;
  2799. /**
  2800. *
  2801. * @type {boolean}
  2802. * @memberof ServerFeaturesDto
  2803. */
  2804. 'reverseGeocoding': boolean;
  2805. /**
  2806. *
  2807. * @type {boolean}
  2808. * @memberof ServerFeaturesDto
  2809. */
  2810. 'search': boolean;
  2811. /**
  2812. *
  2813. * @type {boolean}
  2814. * @memberof ServerFeaturesDto
  2815. */
  2816. 'sidecar': boolean;
  2817. /**
  2818. *
  2819. * @type {boolean}
  2820. * @memberof ServerFeaturesDto
  2821. */
  2822. 'tagImage': boolean;
  2823. /**
  2824. *
  2825. * @type {boolean}
  2826. * @memberof ServerFeaturesDto
  2827. */
  2828. 'trash': boolean;
  2829. }
  2830. /**
  2831. *
  2832. * @export
  2833. * @interface ServerInfoResponseDto
  2834. */
  2835. export interface ServerInfoResponseDto {
  2836. /**
  2837. *
  2838. * @type {string}
  2839. * @memberof ServerInfoResponseDto
  2840. */
  2841. 'diskAvailable': string;
  2842. /**
  2843. *
  2844. * @type {number}
  2845. * @memberof ServerInfoResponseDto
  2846. */
  2847. 'diskAvailableRaw': number;
  2848. /**
  2849. *
  2850. * @type {string}
  2851. * @memberof ServerInfoResponseDto
  2852. */
  2853. 'diskSize': string;
  2854. /**
  2855. *
  2856. * @type {number}
  2857. * @memberof ServerInfoResponseDto
  2858. */
  2859. 'diskSizeRaw': number;
  2860. /**
  2861. *
  2862. * @type {number}
  2863. * @memberof ServerInfoResponseDto
  2864. */
  2865. 'diskUsagePercentage': number;
  2866. /**
  2867. *
  2868. * @type {string}
  2869. * @memberof ServerInfoResponseDto
  2870. */
  2871. 'diskUse': string;
  2872. /**
  2873. *
  2874. * @type {number}
  2875. * @memberof ServerInfoResponseDto
  2876. */
  2877. 'diskUseRaw': number;
  2878. }
  2879. /**
  2880. *
  2881. * @export
  2882. * @interface ServerMediaTypesResponseDto
  2883. */
  2884. export interface ServerMediaTypesResponseDto {
  2885. /**
  2886. *
  2887. * @type {Array<string>}
  2888. * @memberof ServerMediaTypesResponseDto
  2889. */
  2890. 'image': Array<string>;
  2891. /**
  2892. *
  2893. * @type {Array<string>}
  2894. * @memberof ServerMediaTypesResponseDto
  2895. */
  2896. 'sidecar': Array<string>;
  2897. /**
  2898. *
  2899. * @type {Array<string>}
  2900. * @memberof ServerMediaTypesResponseDto
  2901. */
  2902. 'video': Array<string>;
  2903. }
  2904. /**
  2905. *
  2906. * @export
  2907. * @interface ServerPingResponse
  2908. */
  2909. export interface ServerPingResponse {
  2910. /**
  2911. *
  2912. * @type {string}
  2913. * @memberof ServerPingResponse
  2914. */
  2915. 'res': string;
  2916. }
  2917. /**
  2918. *
  2919. * @export
  2920. * @interface ServerStatsResponseDto
  2921. */
  2922. export interface ServerStatsResponseDto {
  2923. /**
  2924. *
  2925. * @type {number}
  2926. * @memberof ServerStatsResponseDto
  2927. */
  2928. 'photos': number;
  2929. /**
  2930. *
  2931. * @type {number}
  2932. * @memberof ServerStatsResponseDto
  2933. */
  2934. 'usage': number;
  2935. /**
  2936. *
  2937. * @type {Array<UsageByUserDto>}
  2938. * @memberof ServerStatsResponseDto
  2939. */
  2940. 'usageByUser': Array<UsageByUserDto>;
  2941. /**
  2942. *
  2943. * @type {number}
  2944. * @memberof ServerStatsResponseDto
  2945. */
  2946. 'videos': number;
  2947. }
  2948. /**
  2949. *
  2950. * @export
  2951. * @interface ServerThemeDto
  2952. */
  2953. export interface ServerThemeDto {
  2954. /**
  2955. *
  2956. * @type {string}
  2957. * @memberof ServerThemeDto
  2958. */
  2959. 'customCss': string;
  2960. }
  2961. /**
  2962. *
  2963. * @export
  2964. * @interface ServerVersionResponseDto
  2965. */
  2966. export interface ServerVersionResponseDto {
  2967. /**
  2968. *
  2969. * @type {number}
  2970. * @memberof ServerVersionResponseDto
  2971. */
  2972. 'major': number;
  2973. /**
  2974. *
  2975. * @type {number}
  2976. * @memberof ServerVersionResponseDto
  2977. */
  2978. 'minor': number;
  2979. /**
  2980. *
  2981. * @type {number}
  2982. * @memberof ServerVersionResponseDto
  2983. */
  2984. 'patch': number;
  2985. }
  2986. /**
  2987. *
  2988. * @export
  2989. * @interface SharedLinkCreateDto
  2990. */
  2991. export interface SharedLinkCreateDto {
  2992. /**
  2993. *
  2994. * @type {string}
  2995. * @memberof SharedLinkCreateDto
  2996. */
  2997. 'albumId'?: string;
  2998. /**
  2999. *
  3000. * @type {boolean}
  3001. * @memberof SharedLinkCreateDto
  3002. */
  3003. 'allowDownload'?: boolean;
  3004. /**
  3005. *
  3006. * @type {boolean}
  3007. * @memberof SharedLinkCreateDto
  3008. */
  3009. 'allowUpload'?: boolean;
  3010. /**
  3011. *
  3012. * @type {Array<string>}
  3013. * @memberof SharedLinkCreateDto
  3014. */
  3015. 'assetIds'?: Array<string>;
  3016. /**
  3017. *
  3018. * @type {string}
  3019. * @memberof SharedLinkCreateDto
  3020. */
  3021. 'description'?: string;
  3022. /**
  3023. *
  3024. * @type {string}
  3025. * @memberof SharedLinkCreateDto
  3026. */
  3027. 'expiresAt'?: string | null;
  3028. /**
  3029. *
  3030. * @type {string}
  3031. * @memberof SharedLinkCreateDto
  3032. */
  3033. 'password'?: string;
  3034. /**
  3035. *
  3036. * @type {boolean}
  3037. * @memberof SharedLinkCreateDto
  3038. */
  3039. 'showMetadata'?: boolean;
  3040. /**
  3041. *
  3042. * @type {SharedLinkType}
  3043. * @memberof SharedLinkCreateDto
  3044. */
  3045. 'type': SharedLinkType;
  3046. }
  3047. /**
  3048. *
  3049. * @export
  3050. * @interface SharedLinkEditDto
  3051. */
  3052. export interface SharedLinkEditDto {
  3053. /**
  3054. *
  3055. * @type {boolean}
  3056. * @memberof SharedLinkEditDto
  3057. */
  3058. 'allowDownload'?: boolean;
  3059. /**
  3060. *
  3061. * @type {boolean}
  3062. * @memberof SharedLinkEditDto
  3063. */
  3064. 'allowUpload'?: boolean;
  3065. /**
  3066. * 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.
  3067. * @type {boolean}
  3068. * @memberof SharedLinkEditDto
  3069. */
  3070. 'changeExpiryTime'?: boolean;
  3071. /**
  3072. *
  3073. * @type {string}
  3074. * @memberof SharedLinkEditDto
  3075. */
  3076. 'description'?: string;
  3077. /**
  3078. *
  3079. * @type {string}
  3080. * @memberof SharedLinkEditDto
  3081. */
  3082. 'expiresAt'?: string | null;
  3083. /**
  3084. *
  3085. * @type {string}
  3086. * @memberof SharedLinkEditDto
  3087. */
  3088. 'password'?: string;
  3089. /**
  3090. *
  3091. * @type {boolean}
  3092. * @memberof SharedLinkEditDto
  3093. */
  3094. 'showMetadata'?: boolean;
  3095. }
  3096. /**
  3097. *
  3098. * @export
  3099. * @interface SharedLinkResponseDto
  3100. */
  3101. export interface SharedLinkResponseDto {
  3102. /**
  3103. *
  3104. * @type {AlbumResponseDto}
  3105. * @memberof SharedLinkResponseDto
  3106. */
  3107. 'album'?: AlbumResponseDto;
  3108. /**
  3109. *
  3110. * @type {boolean}
  3111. * @memberof SharedLinkResponseDto
  3112. */
  3113. 'allowDownload': boolean;
  3114. /**
  3115. *
  3116. * @type {boolean}
  3117. * @memberof SharedLinkResponseDto
  3118. */
  3119. 'allowUpload': boolean;
  3120. /**
  3121. *
  3122. * @type {Array<AssetResponseDto>}
  3123. * @memberof SharedLinkResponseDto
  3124. */
  3125. 'assets': Array<AssetResponseDto>;
  3126. /**
  3127. *
  3128. * @type {string}
  3129. * @memberof SharedLinkResponseDto
  3130. */
  3131. 'createdAt': string;
  3132. /**
  3133. *
  3134. * @type {string}
  3135. * @memberof SharedLinkResponseDto
  3136. */
  3137. 'description': string | null;
  3138. /**
  3139. *
  3140. * @type {string}
  3141. * @memberof SharedLinkResponseDto
  3142. */
  3143. 'expiresAt': string | null;
  3144. /**
  3145. *
  3146. * @type {string}
  3147. * @memberof SharedLinkResponseDto
  3148. */
  3149. 'id': string;
  3150. /**
  3151. *
  3152. * @type {string}
  3153. * @memberof SharedLinkResponseDto
  3154. */
  3155. 'key': string;
  3156. /**
  3157. *
  3158. * @type {string}
  3159. * @memberof SharedLinkResponseDto
  3160. */
  3161. 'password': string | null;
  3162. /**
  3163. *
  3164. * @type {boolean}
  3165. * @memberof SharedLinkResponseDto
  3166. */
  3167. 'showMetadata': boolean;
  3168. /**
  3169. *
  3170. * @type {string}
  3171. * @memberof SharedLinkResponseDto
  3172. */
  3173. 'token'?: string | null;
  3174. /**
  3175. *
  3176. * @type {SharedLinkType}
  3177. * @memberof SharedLinkResponseDto
  3178. */
  3179. 'type': SharedLinkType;
  3180. /**
  3181. *
  3182. * @type {string}
  3183. * @memberof SharedLinkResponseDto
  3184. */
  3185. 'userId': string;
  3186. }
  3187. /**
  3188. *
  3189. * @export
  3190. * @enum {string}
  3191. */
  3192. export const SharedLinkType = {
  3193. Album: 'ALBUM',
  3194. Individual: 'INDIVIDUAL'
  3195. } as const;
  3196. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3197. /**
  3198. *
  3199. * @export
  3200. * @interface SignUpDto
  3201. */
  3202. export interface SignUpDto {
  3203. /**
  3204. *
  3205. * @type {string}
  3206. * @memberof SignUpDto
  3207. */
  3208. 'email': string;
  3209. /**
  3210. *
  3211. * @type {string}
  3212. * @memberof SignUpDto
  3213. */
  3214. 'name': string;
  3215. /**
  3216. *
  3217. * @type {string}
  3218. * @memberof SignUpDto
  3219. */
  3220. 'password': string;
  3221. }
  3222. /**
  3223. *
  3224. * @export
  3225. * @interface SmartInfoResponseDto
  3226. */
  3227. export interface SmartInfoResponseDto {
  3228. /**
  3229. *
  3230. * @type {Array<string>}
  3231. * @memberof SmartInfoResponseDto
  3232. */
  3233. 'objects'?: Array<string> | null;
  3234. /**
  3235. *
  3236. * @type {Array<string>}
  3237. * @memberof SmartInfoResponseDto
  3238. */
  3239. 'tags'?: Array<string> | null;
  3240. }
  3241. /**
  3242. *
  3243. * @export
  3244. * @interface SystemConfigDto
  3245. */
  3246. export interface SystemConfigDto {
  3247. /**
  3248. *
  3249. * @type {SystemConfigFFmpegDto}
  3250. * @memberof SystemConfigDto
  3251. */
  3252. 'ffmpeg': SystemConfigFFmpegDto;
  3253. /**
  3254. *
  3255. * @type {SystemConfigJobDto}
  3256. * @memberof SystemConfigDto
  3257. */
  3258. 'job': SystemConfigJobDto;
  3259. /**
  3260. *
  3261. * @type {SystemConfigLibraryDto}
  3262. * @memberof SystemConfigDto
  3263. */
  3264. 'library': SystemConfigLibraryDto;
  3265. /**
  3266. *
  3267. * @type {SystemConfigMachineLearningDto}
  3268. * @memberof SystemConfigDto
  3269. */
  3270. 'machineLearning': SystemConfigMachineLearningDto;
  3271. /**
  3272. *
  3273. * @type {SystemConfigMapDto}
  3274. * @memberof SystemConfigDto
  3275. */
  3276. 'map': SystemConfigMapDto;
  3277. /**
  3278. *
  3279. * @type {SystemConfigNewVersionCheckDto}
  3280. * @memberof SystemConfigDto
  3281. */
  3282. 'newVersionCheck': SystemConfigNewVersionCheckDto;
  3283. /**
  3284. *
  3285. * @type {SystemConfigOAuthDto}
  3286. * @memberof SystemConfigDto
  3287. */
  3288. 'oauth': SystemConfigOAuthDto;
  3289. /**
  3290. *
  3291. * @type {SystemConfigPasswordLoginDto}
  3292. * @memberof SystemConfigDto
  3293. */
  3294. 'passwordLogin': SystemConfigPasswordLoginDto;
  3295. /**
  3296. *
  3297. * @type {SystemConfigReverseGeocodingDto}
  3298. * @memberof SystemConfigDto
  3299. */
  3300. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3301. /**
  3302. *
  3303. * @type {SystemConfigStorageTemplateDto}
  3304. * @memberof SystemConfigDto
  3305. */
  3306. 'storageTemplate': SystemConfigStorageTemplateDto;
  3307. /**
  3308. *
  3309. * @type {SystemConfigThemeDto}
  3310. * @memberof SystemConfigDto
  3311. */
  3312. 'theme': SystemConfigThemeDto;
  3313. /**
  3314. *
  3315. * @type {SystemConfigThumbnailDto}
  3316. * @memberof SystemConfigDto
  3317. */
  3318. 'thumbnail': SystemConfigThumbnailDto;
  3319. /**
  3320. *
  3321. * @type {SystemConfigTrashDto}
  3322. * @memberof SystemConfigDto
  3323. */
  3324. 'trash': SystemConfigTrashDto;
  3325. }
  3326. /**
  3327. *
  3328. * @export
  3329. * @interface SystemConfigFFmpegDto
  3330. */
  3331. export interface SystemConfigFFmpegDto {
  3332. /**
  3333. *
  3334. * @type {TranscodeHWAccel}
  3335. * @memberof SystemConfigFFmpegDto
  3336. */
  3337. 'accel': TranscodeHWAccel;
  3338. /**
  3339. *
  3340. * @type {number}
  3341. * @memberof SystemConfigFFmpegDto
  3342. */
  3343. 'bframes': number;
  3344. /**
  3345. *
  3346. * @type {CQMode}
  3347. * @memberof SystemConfigFFmpegDto
  3348. */
  3349. 'cqMode': CQMode;
  3350. /**
  3351. *
  3352. * @type {number}
  3353. * @memberof SystemConfigFFmpegDto
  3354. */
  3355. 'crf': number;
  3356. /**
  3357. *
  3358. * @type {number}
  3359. * @memberof SystemConfigFFmpegDto
  3360. */
  3361. 'gopSize': number;
  3362. /**
  3363. *
  3364. * @type {string}
  3365. * @memberof SystemConfigFFmpegDto
  3366. */
  3367. 'maxBitrate': string;
  3368. /**
  3369. *
  3370. * @type {number}
  3371. * @memberof SystemConfigFFmpegDto
  3372. */
  3373. 'npl': number;
  3374. /**
  3375. *
  3376. * @type {string}
  3377. * @memberof SystemConfigFFmpegDto
  3378. */
  3379. 'preset': string;
  3380. /**
  3381. *
  3382. * @type {number}
  3383. * @memberof SystemConfigFFmpegDto
  3384. */
  3385. 'refs': number;
  3386. /**
  3387. *
  3388. * @type {AudioCodec}
  3389. * @memberof SystemConfigFFmpegDto
  3390. */
  3391. 'targetAudioCodec': AudioCodec;
  3392. /**
  3393. *
  3394. * @type {string}
  3395. * @memberof SystemConfigFFmpegDto
  3396. */
  3397. 'targetResolution': string;
  3398. /**
  3399. *
  3400. * @type {VideoCodec}
  3401. * @memberof SystemConfigFFmpegDto
  3402. */
  3403. 'targetVideoCodec': VideoCodec;
  3404. /**
  3405. *
  3406. * @type {boolean}
  3407. * @memberof SystemConfigFFmpegDto
  3408. */
  3409. 'temporalAQ': boolean;
  3410. /**
  3411. *
  3412. * @type {number}
  3413. * @memberof SystemConfigFFmpegDto
  3414. */
  3415. 'threads': number;
  3416. /**
  3417. *
  3418. * @type {ToneMapping}
  3419. * @memberof SystemConfigFFmpegDto
  3420. */
  3421. 'tonemap': ToneMapping;
  3422. /**
  3423. *
  3424. * @type {TranscodePolicy}
  3425. * @memberof SystemConfigFFmpegDto
  3426. */
  3427. 'transcode': TranscodePolicy;
  3428. /**
  3429. *
  3430. * @type {boolean}
  3431. * @memberof SystemConfigFFmpegDto
  3432. */
  3433. 'twoPass': boolean;
  3434. }
  3435. /**
  3436. *
  3437. * @export
  3438. * @interface SystemConfigJobDto
  3439. */
  3440. export interface SystemConfigJobDto {
  3441. /**
  3442. *
  3443. * @type {JobSettingsDto}
  3444. * @memberof SystemConfigJobDto
  3445. */
  3446. 'backgroundTask': JobSettingsDto;
  3447. /**
  3448. *
  3449. * @type {JobSettingsDto}
  3450. * @memberof SystemConfigJobDto
  3451. */
  3452. 'clipEncoding': JobSettingsDto;
  3453. /**
  3454. *
  3455. * @type {JobSettingsDto}
  3456. * @memberof SystemConfigJobDto
  3457. */
  3458. 'library': JobSettingsDto;
  3459. /**
  3460. *
  3461. * @type {JobSettingsDto}
  3462. * @memberof SystemConfigJobDto
  3463. */
  3464. 'metadataExtraction': JobSettingsDto;
  3465. /**
  3466. *
  3467. * @type {JobSettingsDto}
  3468. * @memberof SystemConfigJobDto
  3469. */
  3470. 'migration': JobSettingsDto;
  3471. /**
  3472. *
  3473. * @type {JobSettingsDto}
  3474. * @memberof SystemConfigJobDto
  3475. */
  3476. 'objectTagging': JobSettingsDto;
  3477. /**
  3478. *
  3479. * @type {JobSettingsDto}
  3480. * @memberof SystemConfigJobDto
  3481. */
  3482. 'recognizeFaces': JobSettingsDto;
  3483. /**
  3484. *
  3485. * @type {JobSettingsDto}
  3486. * @memberof SystemConfigJobDto
  3487. */
  3488. 'search': JobSettingsDto;
  3489. /**
  3490. *
  3491. * @type {JobSettingsDto}
  3492. * @memberof SystemConfigJobDto
  3493. */
  3494. 'sidecar': JobSettingsDto;
  3495. /**
  3496. *
  3497. * @type {JobSettingsDto}
  3498. * @memberof SystemConfigJobDto
  3499. */
  3500. 'storageTemplateMigration': JobSettingsDto;
  3501. /**
  3502. *
  3503. * @type {JobSettingsDto}
  3504. * @memberof SystemConfigJobDto
  3505. */
  3506. 'thumbnailGeneration': JobSettingsDto;
  3507. /**
  3508. *
  3509. * @type {JobSettingsDto}
  3510. * @memberof SystemConfigJobDto
  3511. */
  3512. 'videoConversion': JobSettingsDto;
  3513. }
  3514. /**
  3515. *
  3516. * @export
  3517. * @interface SystemConfigLibraryDto
  3518. */
  3519. export interface SystemConfigLibraryDto {
  3520. /**
  3521. *
  3522. * @type {SystemConfigLibraryScanDto}
  3523. * @memberof SystemConfigLibraryDto
  3524. */
  3525. 'scan': SystemConfigLibraryScanDto;
  3526. }
  3527. /**
  3528. *
  3529. * @export
  3530. * @interface SystemConfigLibraryScanDto
  3531. */
  3532. export interface SystemConfigLibraryScanDto {
  3533. /**
  3534. *
  3535. * @type {string}
  3536. * @memberof SystemConfigLibraryScanDto
  3537. */
  3538. 'cronExpression': string;
  3539. /**
  3540. *
  3541. * @type {boolean}
  3542. * @memberof SystemConfigLibraryScanDto
  3543. */
  3544. 'enabled': boolean;
  3545. }
  3546. /**
  3547. *
  3548. * @export
  3549. * @interface SystemConfigMachineLearningDto
  3550. */
  3551. export interface SystemConfigMachineLearningDto {
  3552. /**
  3553. *
  3554. * @type {ClassificationConfig}
  3555. * @memberof SystemConfigMachineLearningDto
  3556. */
  3557. 'classification': ClassificationConfig;
  3558. /**
  3559. *
  3560. * @type {CLIPConfig}
  3561. * @memberof SystemConfigMachineLearningDto
  3562. */
  3563. 'clip': CLIPConfig;
  3564. /**
  3565. *
  3566. * @type {boolean}
  3567. * @memberof SystemConfigMachineLearningDto
  3568. */
  3569. 'enabled': boolean;
  3570. /**
  3571. *
  3572. * @type {RecognitionConfig}
  3573. * @memberof SystemConfigMachineLearningDto
  3574. */
  3575. 'facialRecognition': RecognitionConfig;
  3576. /**
  3577. *
  3578. * @type {string}
  3579. * @memberof SystemConfigMachineLearningDto
  3580. */
  3581. 'url': string;
  3582. }
  3583. /**
  3584. *
  3585. * @export
  3586. * @interface SystemConfigMapDto
  3587. */
  3588. export interface SystemConfigMapDto {
  3589. /**
  3590. *
  3591. * @type {string}
  3592. * @memberof SystemConfigMapDto
  3593. */
  3594. 'darkStyle': string;
  3595. /**
  3596. *
  3597. * @type {boolean}
  3598. * @memberof SystemConfigMapDto
  3599. */
  3600. 'enabled': boolean;
  3601. /**
  3602. *
  3603. * @type {string}
  3604. * @memberof SystemConfigMapDto
  3605. */
  3606. 'lightStyle': string;
  3607. }
  3608. /**
  3609. *
  3610. * @export
  3611. * @interface SystemConfigNewVersionCheckDto
  3612. */
  3613. export interface SystemConfigNewVersionCheckDto {
  3614. /**
  3615. *
  3616. * @type {boolean}
  3617. * @memberof SystemConfigNewVersionCheckDto
  3618. */
  3619. 'enabled': boolean;
  3620. }
  3621. /**
  3622. *
  3623. * @export
  3624. * @interface SystemConfigOAuthDto
  3625. */
  3626. export interface SystemConfigOAuthDto {
  3627. /**
  3628. *
  3629. * @type {boolean}
  3630. * @memberof SystemConfigOAuthDto
  3631. */
  3632. 'autoLaunch': boolean;
  3633. /**
  3634. *
  3635. * @type {boolean}
  3636. * @memberof SystemConfigOAuthDto
  3637. */
  3638. 'autoRegister': boolean;
  3639. /**
  3640. *
  3641. * @type {string}
  3642. * @memberof SystemConfigOAuthDto
  3643. */
  3644. 'buttonText': string;
  3645. /**
  3646. *
  3647. * @type {string}
  3648. * @memberof SystemConfigOAuthDto
  3649. */
  3650. 'clientId': string;
  3651. /**
  3652. *
  3653. * @type {string}
  3654. * @memberof SystemConfigOAuthDto
  3655. */
  3656. 'clientSecret': string;
  3657. /**
  3658. *
  3659. * @type {boolean}
  3660. * @memberof SystemConfigOAuthDto
  3661. */
  3662. 'enabled': boolean;
  3663. /**
  3664. *
  3665. * @type {string}
  3666. * @memberof SystemConfigOAuthDto
  3667. */
  3668. 'issuerUrl': string;
  3669. /**
  3670. *
  3671. * @type {boolean}
  3672. * @memberof SystemConfigOAuthDto
  3673. */
  3674. 'mobileOverrideEnabled': boolean;
  3675. /**
  3676. *
  3677. * @type {string}
  3678. * @memberof SystemConfigOAuthDto
  3679. */
  3680. 'mobileRedirectUri': string;
  3681. /**
  3682. *
  3683. * @type {string}
  3684. * @memberof SystemConfigOAuthDto
  3685. */
  3686. 'scope': string;
  3687. /**
  3688. *
  3689. * @type {string}
  3690. * @memberof SystemConfigOAuthDto
  3691. */
  3692. 'storageLabelClaim': string;
  3693. }
  3694. /**
  3695. *
  3696. * @export
  3697. * @interface SystemConfigPasswordLoginDto
  3698. */
  3699. export interface SystemConfigPasswordLoginDto {
  3700. /**
  3701. *
  3702. * @type {boolean}
  3703. * @memberof SystemConfigPasswordLoginDto
  3704. */
  3705. 'enabled': boolean;
  3706. }
  3707. /**
  3708. *
  3709. * @export
  3710. * @interface SystemConfigReverseGeocodingDto
  3711. */
  3712. export interface SystemConfigReverseGeocodingDto {
  3713. /**
  3714. *
  3715. * @type {CitiesFile}
  3716. * @memberof SystemConfigReverseGeocodingDto
  3717. */
  3718. 'citiesFileOverride': CitiesFile;
  3719. /**
  3720. *
  3721. * @type {boolean}
  3722. * @memberof SystemConfigReverseGeocodingDto
  3723. */
  3724. 'enabled': boolean;
  3725. }
  3726. /**
  3727. *
  3728. * @export
  3729. * @interface SystemConfigStorageTemplateDto
  3730. */
  3731. export interface SystemConfigStorageTemplateDto {
  3732. /**
  3733. *
  3734. * @type {string}
  3735. * @memberof SystemConfigStorageTemplateDto
  3736. */
  3737. 'template': string;
  3738. }
  3739. /**
  3740. *
  3741. * @export
  3742. * @interface SystemConfigTemplateStorageOptionDto
  3743. */
  3744. export interface SystemConfigTemplateStorageOptionDto {
  3745. /**
  3746. *
  3747. * @type {Array<string>}
  3748. * @memberof SystemConfigTemplateStorageOptionDto
  3749. */
  3750. 'dayOptions': Array<string>;
  3751. /**
  3752. *
  3753. * @type {Array<string>}
  3754. * @memberof SystemConfigTemplateStorageOptionDto
  3755. */
  3756. 'hourOptions': Array<string>;
  3757. /**
  3758. *
  3759. * @type {Array<string>}
  3760. * @memberof SystemConfigTemplateStorageOptionDto
  3761. */
  3762. 'minuteOptions': Array<string>;
  3763. /**
  3764. *
  3765. * @type {Array<string>}
  3766. * @memberof SystemConfigTemplateStorageOptionDto
  3767. */
  3768. 'monthOptions': Array<string>;
  3769. /**
  3770. *
  3771. * @type {Array<string>}
  3772. * @memberof SystemConfigTemplateStorageOptionDto
  3773. */
  3774. 'presetOptions': Array<string>;
  3775. /**
  3776. *
  3777. * @type {Array<string>}
  3778. * @memberof SystemConfigTemplateStorageOptionDto
  3779. */
  3780. 'secondOptions': Array<string>;
  3781. /**
  3782. *
  3783. * @type {Array<string>}
  3784. * @memberof SystemConfigTemplateStorageOptionDto
  3785. */
  3786. 'weekOptions': Array<string>;
  3787. /**
  3788. *
  3789. * @type {Array<string>}
  3790. * @memberof SystemConfigTemplateStorageOptionDto
  3791. */
  3792. 'yearOptions': Array<string>;
  3793. }
  3794. /**
  3795. *
  3796. * @export
  3797. * @interface SystemConfigThemeDto
  3798. */
  3799. export interface SystemConfigThemeDto {
  3800. /**
  3801. *
  3802. * @type {string}
  3803. * @memberof SystemConfigThemeDto
  3804. */
  3805. 'customCss': string;
  3806. }
  3807. /**
  3808. *
  3809. * @export
  3810. * @interface SystemConfigThumbnailDto
  3811. */
  3812. export interface SystemConfigThumbnailDto {
  3813. /**
  3814. *
  3815. * @type {Colorspace}
  3816. * @memberof SystemConfigThumbnailDto
  3817. */
  3818. 'colorspace': Colorspace;
  3819. /**
  3820. *
  3821. * @type {number}
  3822. * @memberof SystemConfigThumbnailDto
  3823. */
  3824. 'jpegSize': number;
  3825. /**
  3826. *
  3827. * @type {number}
  3828. * @memberof SystemConfigThumbnailDto
  3829. */
  3830. 'quality': number;
  3831. /**
  3832. *
  3833. * @type {number}
  3834. * @memberof SystemConfigThumbnailDto
  3835. */
  3836. 'webpSize': number;
  3837. }
  3838. /**
  3839. *
  3840. * @export
  3841. * @interface SystemConfigTrashDto
  3842. */
  3843. export interface SystemConfigTrashDto {
  3844. /**
  3845. *
  3846. * @type {number}
  3847. * @memberof SystemConfigTrashDto
  3848. */
  3849. 'days': number;
  3850. /**
  3851. *
  3852. * @type {boolean}
  3853. * @memberof SystemConfigTrashDto
  3854. */
  3855. 'enabled': boolean;
  3856. }
  3857. /**
  3858. *
  3859. * @export
  3860. * @interface TagResponseDto
  3861. */
  3862. export interface TagResponseDto {
  3863. /**
  3864. *
  3865. * @type {string}
  3866. * @memberof TagResponseDto
  3867. */
  3868. 'id': string;
  3869. /**
  3870. *
  3871. * @type {string}
  3872. * @memberof TagResponseDto
  3873. */
  3874. 'name': string;
  3875. /**
  3876. *
  3877. * @type {TagTypeEnum}
  3878. * @memberof TagResponseDto
  3879. */
  3880. 'type': TagTypeEnum;
  3881. /**
  3882. *
  3883. * @type {string}
  3884. * @memberof TagResponseDto
  3885. */
  3886. 'userId': string;
  3887. }
  3888. /**
  3889. *
  3890. * @export
  3891. * @enum {string}
  3892. */
  3893. export const TagTypeEnum = {
  3894. Object: 'OBJECT',
  3895. Face: 'FACE',
  3896. Custom: 'CUSTOM'
  3897. } as const;
  3898. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3899. /**
  3900. *
  3901. * @export
  3902. * @enum {string}
  3903. */
  3904. export const ThumbnailFormat = {
  3905. Jpeg: 'JPEG',
  3906. Webp: 'WEBP'
  3907. } as const;
  3908. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3909. /**
  3910. *
  3911. * @export
  3912. * @interface TimeBucketResponseDto
  3913. */
  3914. export interface TimeBucketResponseDto {
  3915. /**
  3916. *
  3917. * @type {number}
  3918. * @memberof TimeBucketResponseDto
  3919. */
  3920. 'count': number;
  3921. /**
  3922. *
  3923. * @type {string}
  3924. * @memberof TimeBucketResponseDto
  3925. */
  3926. 'timeBucket': string;
  3927. }
  3928. /**
  3929. *
  3930. * @export
  3931. * @enum {string}
  3932. */
  3933. export const TimeBucketSize = {
  3934. Day: 'DAY',
  3935. Month: 'MONTH'
  3936. } as const;
  3937. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3938. /**
  3939. *
  3940. * @export
  3941. * @enum {string}
  3942. */
  3943. export const ToneMapping = {
  3944. Hable: 'hable',
  3945. Mobius: 'mobius',
  3946. Reinhard: 'reinhard',
  3947. Disabled: 'disabled'
  3948. } as const;
  3949. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3950. /**
  3951. *
  3952. * @export
  3953. * @enum {string}
  3954. */
  3955. export const TranscodeHWAccel = {
  3956. Nvenc: 'nvenc',
  3957. Qsv: 'qsv',
  3958. Vaapi: 'vaapi',
  3959. Rkmpp: 'rkmpp',
  3960. Disabled: 'disabled'
  3961. } as const;
  3962. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3963. /**
  3964. *
  3965. * @export
  3966. * @enum {string}
  3967. */
  3968. export const TranscodePolicy = {
  3969. All: 'all',
  3970. Optimal: 'optimal',
  3971. Required: 'required',
  3972. Disabled: 'disabled'
  3973. } as const;
  3974. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3975. /**
  3976. *
  3977. * @export
  3978. * @interface UpdateAlbumDto
  3979. */
  3980. export interface UpdateAlbumDto {
  3981. /**
  3982. *
  3983. * @type {string}
  3984. * @memberof UpdateAlbumDto
  3985. */
  3986. 'albumName'?: string;
  3987. /**
  3988. *
  3989. * @type {string}
  3990. * @memberof UpdateAlbumDto
  3991. */
  3992. 'albumThumbnailAssetId'?: string;
  3993. /**
  3994. *
  3995. * @type {string}
  3996. * @memberof UpdateAlbumDto
  3997. */
  3998. 'description'?: string;
  3999. /**
  4000. *
  4001. * @type {boolean}
  4002. * @memberof UpdateAlbumDto
  4003. */
  4004. 'isActivityEnabled'?: boolean;
  4005. }
  4006. /**
  4007. *
  4008. * @export
  4009. * @interface UpdateAssetDto
  4010. */
  4011. export interface UpdateAssetDto {
  4012. /**
  4013. *
  4014. * @type {string}
  4015. * @memberof UpdateAssetDto
  4016. */
  4017. 'description'?: string;
  4018. /**
  4019. *
  4020. * @type {boolean}
  4021. * @memberof UpdateAssetDto
  4022. */
  4023. 'isArchived'?: boolean;
  4024. /**
  4025. *
  4026. * @type {boolean}
  4027. * @memberof UpdateAssetDto
  4028. */
  4029. 'isFavorite'?: boolean;
  4030. }
  4031. /**
  4032. *
  4033. * @export
  4034. * @interface UpdateLibraryDto
  4035. */
  4036. export interface UpdateLibraryDto {
  4037. /**
  4038. *
  4039. * @type {Array<string>}
  4040. * @memberof UpdateLibraryDto
  4041. */
  4042. 'exclusionPatterns'?: Array<string>;
  4043. /**
  4044. *
  4045. * @type {Array<string>}
  4046. * @memberof UpdateLibraryDto
  4047. */
  4048. 'importPaths'?: Array<string>;
  4049. /**
  4050. *
  4051. * @type {boolean}
  4052. * @memberof UpdateLibraryDto
  4053. */
  4054. 'isVisible'?: boolean;
  4055. /**
  4056. *
  4057. * @type {string}
  4058. * @memberof UpdateLibraryDto
  4059. */
  4060. 'name'?: string;
  4061. }
  4062. /**
  4063. *
  4064. * @export
  4065. * @interface UpdatePartnerDto
  4066. */
  4067. export interface UpdatePartnerDto {
  4068. /**
  4069. *
  4070. * @type {boolean}
  4071. * @memberof UpdatePartnerDto
  4072. */
  4073. 'inTimeline': boolean;
  4074. }
  4075. /**
  4076. *
  4077. * @export
  4078. * @interface UpdateStackParentDto
  4079. */
  4080. export interface UpdateStackParentDto {
  4081. /**
  4082. *
  4083. * @type {string}
  4084. * @memberof UpdateStackParentDto
  4085. */
  4086. 'newParentId': string;
  4087. /**
  4088. *
  4089. * @type {string}
  4090. * @memberof UpdateStackParentDto
  4091. */
  4092. 'oldParentId': string;
  4093. }
  4094. /**
  4095. *
  4096. * @export
  4097. * @interface UpdateTagDto
  4098. */
  4099. export interface UpdateTagDto {
  4100. /**
  4101. *
  4102. * @type {string}
  4103. * @memberof UpdateTagDto
  4104. */
  4105. 'name'?: string;
  4106. }
  4107. /**
  4108. *
  4109. * @export
  4110. * @interface UpdateUserDto
  4111. */
  4112. export interface UpdateUserDto {
  4113. /**
  4114. *
  4115. * @type {UserAvatarColor}
  4116. * @memberof UpdateUserDto
  4117. */
  4118. 'avatarColor'?: UserAvatarColor;
  4119. /**
  4120. *
  4121. * @type {string}
  4122. * @memberof UpdateUserDto
  4123. */
  4124. 'email'?: string;
  4125. /**
  4126. *
  4127. * @type {string}
  4128. * @memberof UpdateUserDto
  4129. */
  4130. 'externalPath'?: string;
  4131. /**
  4132. *
  4133. * @type {string}
  4134. * @memberof UpdateUserDto
  4135. */
  4136. 'id': string;
  4137. /**
  4138. *
  4139. * @type {boolean}
  4140. * @memberof UpdateUserDto
  4141. */
  4142. 'isAdmin'?: boolean;
  4143. /**
  4144. *
  4145. * @type {boolean}
  4146. * @memberof UpdateUserDto
  4147. */
  4148. 'memoriesEnabled'?: boolean;
  4149. /**
  4150. *
  4151. * @type {string}
  4152. * @memberof UpdateUserDto
  4153. */
  4154. 'name'?: string;
  4155. /**
  4156. *
  4157. * @type {string}
  4158. * @memberof UpdateUserDto
  4159. */
  4160. 'password'?: string;
  4161. /**
  4162. *
  4163. * @type {boolean}
  4164. * @memberof UpdateUserDto
  4165. */
  4166. 'shouldChangePassword'?: boolean;
  4167. /**
  4168. *
  4169. * @type {string}
  4170. * @memberof UpdateUserDto
  4171. */
  4172. 'storageLabel'?: string;
  4173. }
  4174. /**
  4175. *
  4176. * @export
  4177. * @interface UsageByUserDto
  4178. */
  4179. export interface UsageByUserDto {
  4180. /**
  4181. *
  4182. * @type {number}
  4183. * @memberof UsageByUserDto
  4184. */
  4185. 'photos': number;
  4186. /**
  4187. *
  4188. * @type {number}
  4189. * @memberof UsageByUserDto
  4190. */
  4191. 'usage': number;
  4192. /**
  4193. *
  4194. * @type {string}
  4195. * @memberof UsageByUserDto
  4196. */
  4197. 'userId': string;
  4198. /**
  4199. *
  4200. * @type {string}
  4201. * @memberof UsageByUserDto
  4202. */
  4203. 'userName': string;
  4204. /**
  4205. *
  4206. * @type {number}
  4207. * @memberof UsageByUserDto
  4208. */
  4209. 'videos': number;
  4210. }
  4211. /**
  4212. *
  4213. * @export
  4214. * @enum {string}
  4215. */
  4216. export const UserAvatarColor = {
  4217. Primary: 'primary',
  4218. Pink: 'pink',
  4219. Red: 'red',
  4220. Yellow: 'yellow',
  4221. Blue: 'blue',
  4222. Green: 'green',
  4223. Purple: 'purple',
  4224. Orange: 'orange',
  4225. Gray: 'gray',
  4226. Amber: 'amber'
  4227. } as const;
  4228. export type UserAvatarColor = typeof UserAvatarColor[keyof typeof UserAvatarColor];
  4229. /**
  4230. *
  4231. * @export
  4232. * @interface UserDto
  4233. */
  4234. export interface UserDto {
  4235. /**
  4236. *
  4237. * @type {UserAvatarColor}
  4238. * @memberof UserDto
  4239. */
  4240. 'avatarColor': UserAvatarColor;
  4241. /**
  4242. *
  4243. * @type {string}
  4244. * @memberof UserDto
  4245. */
  4246. 'email': string;
  4247. /**
  4248. *
  4249. * @type {string}
  4250. * @memberof UserDto
  4251. */
  4252. 'id': string;
  4253. /**
  4254. *
  4255. * @type {string}
  4256. * @memberof UserDto
  4257. */
  4258. 'name': string;
  4259. /**
  4260. *
  4261. * @type {string}
  4262. * @memberof UserDto
  4263. */
  4264. 'profileImagePath': string;
  4265. }
  4266. /**
  4267. *
  4268. * @export
  4269. * @interface UserResponseDto
  4270. */
  4271. export interface UserResponseDto {
  4272. /**
  4273. *
  4274. * @type {UserAvatarColor}
  4275. * @memberof UserResponseDto
  4276. */
  4277. 'avatarColor': UserAvatarColor;
  4278. /**
  4279. *
  4280. * @type {string}
  4281. * @memberof UserResponseDto
  4282. */
  4283. 'createdAt': string;
  4284. /**
  4285. *
  4286. * @type {string}
  4287. * @memberof UserResponseDto
  4288. */
  4289. 'deletedAt': string | null;
  4290. /**
  4291. *
  4292. * @type {string}
  4293. * @memberof UserResponseDto
  4294. */
  4295. 'email': string;
  4296. /**
  4297. *
  4298. * @type {string}
  4299. * @memberof UserResponseDto
  4300. */
  4301. 'externalPath': string | null;
  4302. /**
  4303. *
  4304. * @type {string}
  4305. * @memberof UserResponseDto
  4306. */
  4307. 'id': string;
  4308. /**
  4309. *
  4310. * @type {boolean}
  4311. * @memberof UserResponseDto
  4312. */
  4313. 'isAdmin': boolean;
  4314. /**
  4315. *
  4316. * @type {boolean}
  4317. * @memberof UserResponseDto
  4318. */
  4319. 'memoriesEnabled'?: boolean;
  4320. /**
  4321. *
  4322. * @type {string}
  4323. * @memberof UserResponseDto
  4324. */
  4325. 'name': string;
  4326. /**
  4327. *
  4328. * @type {string}
  4329. * @memberof UserResponseDto
  4330. */
  4331. 'oauthId': string;
  4332. /**
  4333. *
  4334. * @type {string}
  4335. * @memberof UserResponseDto
  4336. */
  4337. 'profileImagePath': string;
  4338. /**
  4339. *
  4340. * @type {boolean}
  4341. * @memberof UserResponseDto
  4342. */
  4343. 'shouldChangePassword': boolean;
  4344. /**
  4345. *
  4346. * @type {string}
  4347. * @memberof UserResponseDto
  4348. */
  4349. 'storageLabel': string | null;
  4350. /**
  4351. *
  4352. * @type {string}
  4353. * @memberof UserResponseDto
  4354. */
  4355. 'updatedAt': string;
  4356. }
  4357. /**
  4358. *
  4359. * @export
  4360. * @interface ValidateAccessTokenResponseDto
  4361. */
  4362. export interface ValidateAccessTokenResponseDto {
  4363. /**
  4364. *
  4365. * @type {boolean}
  4366. * @memberof ValidateAccessTokenResponseDto
  4367. */
  4368. 'authStatus': boolean;
  4369. }
  4370. /**
  4371. *
  4372. * @export
  4373. * @enum {string}
  4374. */
  4375. export const VideoCodec = {
  4376. H264: 'h264',
  4377. Hevc: 'hevc',
  4378. Vp9: 'vp9'
  4379. } as const;
  4380. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4381. /**
  4382. * APIKeyApi - axios parameter creator
  4383. * @export
  4384. */
  4385. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4386. return {
  4387. /**
  4388. *
  4389. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4390. * @param {*} [options] Override http request option.
  4391. * @throws {RequiredError}
  4392. */
  4393. createApiKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4394. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4395. assertParamExists('createApiKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4396. const localVarPath = `/api-key`;
  4397. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4398. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4399. let baseOptions;
  4400. if (configuration) {
  4401. baseOptions = configuration.baseOptions;
  4402. }
  4403. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4404. const localVarHeaderParameter = {} as any;
  4405. const localVarQueryParameter = {} as any;
  4406. // authentication cookie required
  4407. // authentication api_key required
  4408. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4409. // authentication bearer required
  4410. // http bearer authentication required
  4411. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4412. localVarHeaderParameter['Content-Type'] = 'application/json';
  4413. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4414. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4415. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4416. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4417. return {
  4418. url: toPathString(localVarUrlObj),
  4419. options: localVarRequestOptions,
  4420. };
  4421. },
  4422. /**
  4423. *
  4424. * @param {string} id
  4425. * @param {*} [options] Override http request option.
  4426. * @throws {RequiredError}
  4427. */
  4428. deleteApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4429. // verify required parameter 'id' is not null or undefined
  4430. assertParamExists('deleteApiKey', 'id', id)
  4431. const localVarPath = `/api-key/{id}`
  4432. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4433. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4434. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4435. let baseOptions;
  4436. if (configuration) {
  4437. baseOptions = configuration.baseOptions;
  4438. }
  4439. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4440. const localVarHeaderParameter = {} as any;
  4441. const localVarQueryParameter = {} as any;
  4442. // authentication cookie required
  4443. // authentication api_key required
  4444. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4445. // authentication bearer required
  4446. // http bearer authentication required
  4447. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4448. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4449. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4450. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4451. return {
  4452. url: toPathString(localVarUrlObj),
  4453. options: localVarRequestOptions,
  4454. };
  4455. },
  4456. /**
  4457. *
  4458. * @param {string} id
  4459. * @param {*} [options] Override http request option.
  4460. * @throws {RequiredError}
  4461. */
  4462. getApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4463. // verify required parameter 'id' is not null or undefined
  4464. assertParamExists('getApiKey', 'id', id)
  4465. const localVarPath = `/api-key/{id}`
  4466. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  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 {*} [options] Override http request option.
  4493. * @throws {RequiredError}
  4494. */
  4495. getApiKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4496. const localVarPath = `/api-key`;
  4497. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4498. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4499. let baseOptions;
  4500. if (configuration) {
  4501. baseOptions = configuration.baseOptions;
  4502. }
  4503. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4504. const localVarHeaderParameter = {} as any;
  4505. const localVarQueryParameter = {} as any;
  4506. // authentication cookie required
  4507. // authentication api_key required
  4508. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4509. // authentication bearer required
  4510. // http bearer authentication required
  4511. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4512. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4513. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4514. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4515. return {
  4516. url: toPathString(localVarUrlObj),
  4517. options: localVarRequestOptions,
  4518. };
  4519. },
  4520. /**
  4521. *
  4522. * @param {string} id
  4523. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4524. * @param {*} [options] Override http request option.
  4525. * @throws {RequiredError}
  4526. */
  4527. updateApiKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4528. // verify required parameter 'id' is not null or undefined
  4529. assertParamExists('updateApiKey', 'id', id)
  4530. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4531. assertParamExists('updateApiKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4532. const localVarPath = `/api-key/{id}`
  4533. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4534. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4535. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4536. let baseOptions;
  4537. if (configuration) {
  4538. baseOptions = configuration.baseOptions;
  4539. }
  4540. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4541. const localVarHeaderParameter = {} as any;
  4542. const localVarQueryParameter = {} as any;
  4543. // authentication cookie required
  4544. // authentication api_key required
  4545. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4546. // authentication bearer required
  4547. // http bearer authentication required
  4548. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4549. localVarHeaderParameter['Content-Type'] = 'application/json';
  4550. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4551. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4552. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4553. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4554. return {
  4555. url: toPathString(localVarUrlObj),
  4556. options: localVarRequestOptions,
  4557. };
  4558. },
  4559. }
  4560. };
  4561. /**
  4562. * APIKeyApi - functional programming interface
  4563. * @export
  4564. */
  4565. export const APIKeyApiFp = function(configuration?: Configuration) {
  4566. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4567. return {
  4568. /**
  4569. *
  4570. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4571. * @param {*} [options] Override http request option.
  4572. * @throws {RequiredError}
  4573. */
  4574. async createApiKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4575. const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(aPIKeyCreateDto, options);
  4576. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4577. },
  4578. /**
  4579. *
  4580. * @param {string} id
  4581. * @param {*} [options] Override http request option.
  4582. * @throws {RequiredError}
  4583. */
  4584. async deleteApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4585. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(id, options);
  4586. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4587. },
  4588. /**
  4589. *
  4590. * @param {string} id
  4591. * @param {*} [options] Override http request option.
  4592. * @throws {RequiredError}
  4593. */
  4594. async getApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4595. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(id, options);
  4596. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4597. },
  4598. /**
  4599. *
  4600. * @param {*} [options] Override http request option.
  4601. * @throws {RequiredError}
  4602. */
  4603. async getApiKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4604. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKeys(options);
  4605. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4606. },
  4607. /**
  4608. *
  4609. * @param {string} id
  4610. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4611. * @param {*} [options] Override http request option.
  4612. * @throws {RequiredError}
  4613. */
  4614. async updateApiKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4615. const localVarAxiosArgs = await localVarAxiosParamCreator.updateApiKey(id, aPIKeyUpdateDto, options);
  4616. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4617. },
  4618. }
  4619. };
  4620. /**
  4621. * APIKeyApi - factory interface
  4622. * @export
  4623. */
  4624. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4625. const localVarFp = APIKeyApiFp(configuration)
  4626. return {
  4627. /**
  4628. *
  4629. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4630. * @param {*} [options] Override http request option.
  4631. * @throws {RequiredError}
  4632. */
  4633. createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4634. return localVarFp.createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4635. },
  4636. /**
  4637. *
  4638. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4639. * @param {*} [options] Override http request option.
  4640. * @throws {RequiredError}
  4641. */
  4642. deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4643. return localVarFp.deleteApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4644. },
  4645. /**
  4646. *
  4647. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4648. * @param {*} [options] Override http request option.
  4649. * @throws {RequiredError}
  4650. */
  4651. getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4652. return localVarFp.getApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4653. },
  4654. /**
  4655. *
  4656. * @param {*} [options] Override http request option.
  4657. * @throws {RequiredError}
  4658. */
  4659. getApiKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4660. return localVarFp.getApiKeys(options).then((request) => request(axios, basePath));
  4661. },
  4662. /**
  4663. *
  4664. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4665. * @param {*} [options] Override http request option.
  4666. * @throws {RequiredError}
  4667. */
  4668. updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4669. return localVarFp.updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4670. },
  4671. };
  4672. };
  4673. /**
  4674. * Request parameters for createApiKey operation in APIKeyApi.
  4675. * @export
  4676. * @interface APIKeyApiCreateApiKeyRequest
  4677. */
  4678. export interface APIKeyApiCreateApiKeyRequest {
  4679. /**
  4680. *
  4681. * @type {APIKeyCreateDto}
  4682. * @memberof APIKeyApiCreateApiKey
  4683. */
  4684. readonly aPIKeyCreateDto: APIKeyCreateDto
  4685. }
  4686. /**
  4687. * Request parameters for deleteApiKey operation in APIKeyApi.
  4688. * @export
  4689. * @interface APIKeyApiDeleteApiKeyRequest
  4690. */
  4691. export interface APIKeyApiDeleteApiKeyRequest {
  4692. /**
  4693. *
  4694. * @type {string}
  4695. * @memberof APIKeyApiDeleteApiKey
  4696. */
  4697. readonly id: string
  4698. }
  4699. /**
  4700. * Request parameters for getApiKey operation in APIKeyApi.
  4701. * @export
  4702. * @interface APIKeyApiGetApiKeyRequest
  4703. */
  4704. export interface APIKeyApiGetApiKeyRequest {
  4705. /**
  4706. *
  4707. * @type {string}
  4708. * @memberof APIKeyApiGetApiKey
  4709. */
  4710. readonly id: string
  4711. }
  4712. /**
  4713. * Request parameters for updateApiKey operation in APIKeyApi.
  4714. * @export
  4715. * @interface APIKeyApiUpdateApiKeyRequest
  4716. */
  4717. export interface APIKeyApiUpdateApiKeyRequest {
  4718. /**
  4719. *
  4720. * @type {string}
  4721. * @memberof APIKeyApiUpdateApiKey
  4722. */
  4723. readonly id: string
  4724. /**
  4725. *
  4726. * @type {APIKeyUpdateDto}
  4727. * @memberof APIKeyApiUpdateApiKey
  4728. */
  4729. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4730. }
  4731. /**
  4732. * APIKeyApi - object-oriented interface
  4733. * @export
  4734. * @class APIKeyApi
  4735. * @extends {BaseAPI}
  4736. */
  4737. export class APIKeyApi extends BaseAPI {
  4738. /**
  4739. *
  4740. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4741. * @param {*} [options] Override http request option.
  4742. * @throws {RequiredError}
  4743. * @memberof APIKeyApi
  4744. */
  4745. public createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig) {
  4746. return APIKeyApiFp(this.configuration).createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4747. }
  4748. /**
  4749. *
  4750. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4751. * @param {*} [options] Override http request option.
  4752. * @throws {RequiredError}
  4753. * @memberof APIKeyApi
  4754. */
  4755. public deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig) {
  4756. return APIKeyApiFp(this.configuration).deleteApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4757. }
  4758. /**
  4759. *
  4760. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4761. * @param {*} [options] Override http request option.
  4762. * @throws {RequiredError}
  4763. * @memberof APIKeyApi
  4764. */
  4765. public getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig) {
  4766. return APIKeyApiFp(this.configuration).getApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4767. }
  4768. /**
  4769. *
  4770. * @param {*} [options] Override http request option.
  4771. * @throws {RequiredError}
  4772. * @memberof APIKeyApi
  4773. */
  4774. public getApiKeys(options?: AxiosRequestConfig) {
  4775. return APIKeyApiFp(this.configuration).getApiKeys(options).then((request) => request(this.axios, this.basePath));
  4776. }
  4777. /**
  4778. *
  4779. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4780. * @param {*} [options] Override http request option.
  4781. * @throws {RequiredError}
  4782. * @memberof APIKeyApi
  4783. */
  4784. public updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig) {
  4785. return APIKeyApiFp(this.configuration).updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4786. }
  4787. }
  4788. /**
  4789. * ActivityApi - axios parameter creator
  4790. * @export
  4791. */
  4792. export const ActivityApiAxiosParamCreator = function (configuration?: Configuration) {
  4793. return {
  4794. /**
  4795. *
  4796. * @param {ActivityCreateDto} activityCreateDto
  4797. * @param {*} [options] Override http request option.
  4798. * @throws {RequiredError}
  4799. */
  4800. createActivity: async (activityCreateDto: ActivityCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4801. // verify required parameter 'activityCreateDto' is not null or undefined
  4802. assertParamExists('createActivity', 'activityCreateDto', activityCreateDto)
  4803. const localVarPath = `/activity`;
  4804. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4805. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4806. let baseOptions;
  4807. if (configuration) {
  4808. baseOptions = configuration.baseOptions;
  4809. }
  4810. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4811. const localVarHeaderParameter = {} as any;
  4812. const localVarQueryParameter = {} as any;
  4813. // authentication cookie required
  4814. // authentication api_key required
  4815. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4816. // authentication bearer required
  4817. // http bearer authentication required
  4818. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4819. localVarHeaderParameter['Content-Type'] = 'application/json';
  4820. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4821. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4822. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4823. localVarRequestOptions.data = serializeDataIfNeeded(activityCreateDto, localVarRequestOptions, configuration)
  4824. return {
  4825. url: toPathString(localVarUrlObj),
  4826. options: localVarRequestOptions,
  4827. };
  4828. },
  4829. /**
  4830. *
  4831. * @param {string} id
  4832. * @param {*} [options] Override http request option.
  4833. * @throws {RequiredError}
  4834. */
  4835. deleteActivity: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4836. // verify required parameter 'id' is not null or undefined
  4837. assertParamExists('deleteActivity', 'id', id)
  4838. const localVarPath = `/activity/{id}`
  4839. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4840. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4841. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4842. let baseOptions;
  4843. if (configuration) {
  4844. baseOptions = configuration.baseOptions;
  4845. }
  4846. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4847. const localVarHeaderParameter = {} as any;
  4848. const localVarQueryParameter = {} as any;
  4849. // authentication cookie required
  4850. // authentication api_key required
  4851. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4852. // authentication bearer required
  4853. // http bearer authentication required
  4854. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4855. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4856. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4857. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4858. return {
  4859. url: toPathString(localVarUrlObj),
  4860. options: localVarRequestOptions,
  4861. };
  4862. },
  4863. /**
  4864. *
  4865. * @param {string} albumId
  4866. * @param {string} [assetId]
  4867. * @param {ReactionType} [type]
  4868. * @param {ReactionLevel} [level]
  4869. * @param {string} [userId]
  4870. * @param {*} [options] Override http request option.
  4871. * @throws {RequiredError}
  4872. */
  4873. getActivities: async (albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4874. // verify required parameter 'albumId' is not null or undefined
  4875. assertParamExists('getActivities', 'albumId', albumId)
  4876. const localVarPath = `/activity`;
  4877. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4878. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4879. let baseOptions;
  4880. if (configuration) {
  4881. baseOptions = configuration.baseOptions;
  4882. }
  4883. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4884. const localVarHeaderParameter = {} as any;
  4885. const localVarQueryParameter = {} as any;
  4886. // authentication cookie required
  4887. // authentication api_key required
  4888. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4889. // authentication bearer required
  4890. // http bearer authentication required
  4891. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4892. if (albumId !== undefined) {
  4893. localVarQueryParameter['albumId'] = albumId;
  4894. }
  4895. if (assetId !== undefined) {
  4896. localVarQueryParameter['assetId'] = assetId;
  4897. }
  4898. if (type !== undefined) {
  4899. localVarQueryParameter['type'] = type;
  4900. }
  4901. if (level !== undefined) {
  4902. localVarQueryParameter['level'] = level;
  4903. }
  4904. if (userId !== undefined) {
  4905. localVarQueryParameter['userId'] = userId;
  4906. }
  4907. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4908. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4909. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4910. return {
  4911. url: toPathString(localVarUrlObj),
  4912. options: localVarRequestOptions,
  4913. };
  4914. },
  4915. /**
  4916. *
  4917. * @param {string} albumId
  4918. * @param {string} [assetId]
  4919. * @param {*} [options] Override http request option.
  4920. * @throws {RequiredError}
  4921. */
  4922. getActivityStatistics: async (albumId: string, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4923. // verify required parameter 'albumId' is not null or undefined
  4924. assertParamExists('getActivityStatistics', 'albumId', albumId)
  4925. const localVarPath = `/activity/statistics`;
  4926. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4927. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4928. let baseOptions;
  4929. if (configuration) {
  4930. baseOptions = configuration.baseOptions;
  4931. }
  4932. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4933. const localVarHeaderParameter = {} as any;
  4934. const localVarQueryParameter = {} as any;
  4935. // authentication cookie required
  4936. // authentication api_key required
  4937. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4938. // authentication bearer required
  4939. // http bearer authentication required
  4940. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4941. if (albumId !== undefined) {
  4942. localVarQueryParameter['albumId'] = albumId;
  4943. }
  4944. if (assetId !== undefined) {
  4945. localVarQueryParameter['assetId'] = assetId;
  4946. }
  4947. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4948. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4949. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4950. return {
  4951. url: toPathString(localVarUrlObj),
  4952. options: localVarRequestOptions,
  4953. };
  4954. },
  4955. }
  4956. };
  4957. /**
  4958. * ActivityApi - functional programming interface
  4959. * @export
  4960. */
  4961. export const ActivityApiFp = function(configuration?: Configuration) {
  4962. const localVarAxiosParamCreator = ActivityApiAxiosParamCreator(configuration)
  4963. return {
  4964. /**
  4965. *
  4966. * @param {ActivityCreateDto} activityCreateDto
  4967. * @param {*} [options] Override http request option.
  4968. * @throws {RequiredError}
  4969. */
  4970. async createActivity(activityCreateDto: ActivityCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityResponseDto>> {
  4971. const localVarAxiosArgs = await localVarAxiosParamCreator.createActivity(activityCreateDto, options);
  4972. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4973. },
  4974. /**
  4975. *
  4976. * @param {string} id
  4977. * @param {*} [options] Override http request option.
  4978. * @throws {RequiredError}
  4979. */
  4980. async deleteActivity(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4981. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivity(id, options);
  4982. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4983. },
  4984. /**
  4985. *
  4986. * @param {string} albumId
  4987. * @param {string} [assetId]
  4988. * @param {ReactionType} [type]
  4989. * @param {ReactionLevel} [level]
  4990. * @param {string} [userId]
  4991. * @param {*} [options] Override http request option.
  4992. * @throws {RequiredError}
  4993. */
  4994. async getActivities(albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
  4995. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, level, userId, options);
  4996. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4997. },
  4998. /**
  4999. *
  5000. * @param {string} albumId
  5001. * @param {string} [assetId]
  5002. * @param {*} [options] Override http request option.
  5003. * @throws {RequiredError}
  5004. */
  5005. async getActivityStatistics(albumId: string, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityStatisticsResponseDto>> {
  5006. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivityStatistics(albumId, assetId, options);
  5007. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5008. },
  5009. }
  5010. };
  5011. /**
  5012. * ActivityApi - factory interface
  5013. * @export
  5014. */
  5015. export const ActivityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5016. const localVarFp = ActivityApiFp(configuration)
  5017. return {
  5018. /**
  5019. *
  5020. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5021. * @param {*} [options] Override http request option.
  5022. * @throws {RequiredError}
  5023. */
  5024. createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityResponseDto> {
  5025. return localVarFp.createActivity(requestParameters.activityCreateDto, options).then((request) => request(axios, basePath));
  5026. },
  5027. /**
  5028. *
  5029. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5030. * @param {*} [options] Override http request option.
  5031. * @throws {RequiredError}
  5032. */
  5033. deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5034. return localVarFp.deleteActivity(requestParameters.id, options).then((request) => request(axios, basePath));
  5035. },
  5036. /**
  5037. *
  5038. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5039. * @param {*} [options] Override http request option.
  5040. * @throws {RequiredError}
  5041. */
  5042. getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ActivityResponseDto>> {
  5043. return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(axios, basePath));
  5044. },
  5045. /**
  5046. *
  5047. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5048. * @param {*} [options] Override http request option.
  5049. * @throws {RequiredError}
  5050. */
  5051. getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityStatisticsResponseDto> {
  5052. return localVarFp.getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5053. },
  5054. };
  5055. };
  5056. /**
  5057. * Request parameters for createActivity operation in ActivityApi.
  5058. * @export
  5059. * @interface ActivityApiCreateActivityRequest
  5060. */
  5061. export interface ActivityApiCreateActivityRequest {
  5062. /**
  5063. *
  5064. * @type {ActivityCreateDto}
  5065. * @memberof ActivityApiCreateActivity
  5066. */
  5067. readonly activityCreateDto: ActivityCreateDto
  5068. }
  5069. /**
  5070. * Request parameters for deleteActivity operation in ActivityApi.
  5071. * @export
  5072. * @interface ActivityApiDeleteActivityRequest
  5073. */
  5074. export interface ActivityApiDeleteActivityRequest {
  5075. /**
  5076. *
  5077. * @type {string}
  5078. * @memberof ActivityApiDeleteActivity
  5079. */
  5080. readonly id: string
  5081. }
  5082. /**
  5083. * Request parameters for getActivities operation in ActivityApi.
  5084. * @export
  5085. * @interface ActivityApiGetActivitiesRequest
  5086. */
  5087. export interface ActivityApiGetActivitiesRequest {
  5088. /**
  5089. *
  5090. * @type {string}
  5091. * @memberof ActivityApiGetActivities
  5092. */
  5093. readonly albumId: string
  5094. /**
  5095. *
  5096. * @type {string}
  5097. * @memberof ActivityApiGetActivities
  5098. */
  5099. readonly assetId?: string
  5100. /**
  5101. *
  5102. * @type {ReactionType}
  5103. * @memberof ActivityApiGetActivities
  5104. */
  5105. readonly type?: ReactionType
  5106. /**
  5107. *
  5108. * @type {ReactionLevel}
  5109. * @memberof ActivityApiGetActivities
  5110. */
  5111. readonly level?: ReactionLevel
  5112. /**
  5113. *
  5114. * @type {string}
  5115. * @memberof ActivityApiGetActivities
  5116. */
  5117. readonly userId?: string
  5118. }
  5119. /**
  5120. * Request parameters for getActivityStatistics operation in ActivityApi.
  5121. * @export
  5122. * @interface ActivityApiGetActivityStatisticsRequest
  5123. */
  5124. export interface ActivityApiGetActivityStatisticsRequest {
  5125. /**
  5126. *
  5127. * @type {string}
  5128. * @memberof ActivityApiGetActivityStatistics
  5129. */
  5130. readonly albumId: string
  5131. /**
  5132. *
  5133. * @type {string}
  5134. * @memberof ActivityApiGetActivityStatistics
  5135. */
  5136. readonly assetId?: string
  5137. }
  5138. /**
  5139. * ActivityApi - object-oriented interface
  5140. * @export
  5141. * @class ActivityApi
  5142. * @extends {BaseAPI}
  5143. */
  5144. export class ActivityApi extends BaseAPI {
  5145. /**
  5146. *
  5147. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5148. * @param {*} [options] Override http request option.
  5149. * @throws {RequiredError}
  5150. * @memberof ActivityApi
  5151. */
  5152. public createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig) {
  5153. return ActivityApiFp(this.configuration).createActivity(requestParameters.activityCreateDto, options).then((request) => request(this.axios, this.basePath));
  5154. }
  5155. /**
  5156. *
  5157. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5158. * @param {*} [options] Override http request option.
  5159. * @throws {RequiredError}
  5160. * @memberof ActivityApi
  5161. */
  5162. public deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig) {
  5163. return ActivityApiFp(this.configuration).deleteActivity(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5164. }
  5165. /**
  5166. *
  5167. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5168. * @param {*} [options] Override http request option.
  5169. * @throws {RequiredError}
  5170. * @memberof ActivityApi
  5171. */
  5172. public getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig) {
  5173. return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5174. }
  5175. /**
  5176. *
  5177. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5178. * @param {*} [options] Override http request option.
  5179. * @throws {RequiredError}
  5180. * @memberof ActivityApi
  5181. */
  5182. public getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig) {
  5183. return ActivityApiFp(this.configuration).getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5184. }
  5185. }
  5186. /**
  5187. * AlbumApi - axios parameter creator
  5188. * @export
  5189. */
  5190. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  5191. return {
  5192. /**
  5193. *
  5194. * @param {string} id
  5195. * @param {BulkIdsDto} bulkIdsDto
  5196. * @param {string} [key]
  5197. * @param {*} [options] Override http request option.
  5198. * @throws {RequiredError}
  5199. */
  5200. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5201. // verify required parameter 'id' is not null or undefined
  5202. assertParamExists('addAssetsToAlbum', 'id', id)
  5203. // verify required parameter 'bulkIdsDto' is not null or undefined
  5204. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  5205. const localVarPath = `/album/{id}/assets`
  5206. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5207. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5208. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5209. let baseOptions;
  5210. if (configuration) {
  5211. baseOptions = configuration.baseOptions;
  5212. }
  5213. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5214. const localVarHeaderParameter = {} as any;
  5215. const localVarQueryParameter = {} as any;
  5216. // authentication cookie required
  5217. // authentication api_key required
  5218. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5219. // authentication bearer required
  5220. // http bearer authentication required
  5221. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5222. if (key !== undefined) {
  5223. localVarQueryParameter['key'] = key;
  5224. }
  5225. localVarHeaderParameter['Content-Type'] = 'application/json';
  5226. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5227. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5228. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5229. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5230. return {
  5231. url: toPathString(localVarUrlObj),
  5232. options: localVarRequestOptions,
  5233. };
  5234. },
  5235. /**
  5236. *
  5237. * @param {string} id
  5238. * @param {AddUsersDto} addUsersDto
  5239. * @param {*} [options] Override http request option.
  5240. * @throws {RequiredError}
  5241. */
  5242. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5243. // verify required parameter 'id' is not null or undefined
  5244. assertParamExists('addUsersToAlbum', 'id', id)
  5245. // verify required parameter 'addUsersDto' is not null or undefined
  5246. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  5247. const localVarPath = `/album/{id}/users`
  5248. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5249. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5250. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5251. let baseOptions;
  5252. if (configuration) {
  5253. baseOptions = configuration.baseOptions;
  5254. }
  5255. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5256. const localVarHeaderParameter = {} as any;
  5257. const localVarQueryParameter = {} as any;
  5258. // authentication cookie required
  5259. // authentication api_key required
  5260. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5261. // authentication bearer required
  5262. // http bearer authentication required
  5263. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5264. localVarHeaderParameter['Content-Type'] = 'application/json';
  5265. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5266. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5267. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5268. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  5269. return {
  5270. url: toPathString(localVarUrlObj),
  5271. options: localVarRequestOptions,
  5272. };
  5273. },
  5274. /**
  5275. *
  5276. * @param {CreateAlbumDto} createAlbumDto
  5277. * @param {*} [options] Override http request option.
  5278. * @throws {RequiredError}
  5279. */
  5280. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5281. // verify required parameter 'createAlbumDto' is not null or undefined
  5282. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  5283. const localVarPath = `/album`;
  5284. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5285. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5286. let baseOptions;
  5287. if (configuration) {
  5288. baseOptions = configuration.baseOptions;
  5289. }
  5290. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5291. const localVarHeaderParameter = {} as any;
  5292. const localVarQueryParameter = {} as any;
  5293. // authentication cookie required
  5294. // authentication api_key required
  5295. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5296. // authentication bearer required
  5297. // http bearer authentication required
  5298. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5299. localVarHeaderParameter['Content-Type'] = 'application/json';
  5300. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5301. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5302. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5303. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  5304. return {
  5305. url: toPathString(localVarUrlObj),
  5306. options: localVarRequestOptions,
  5307. };
  5308. },
  5309. /**
  5310. *
  5311. * @param {string} id
  5312. * @param {*} [options] Override http request option.
  5313. * @throws {RequiredError}
  5314. */
  5315. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5316. // verify required parameter 'id' is not null or undefined
  5317. assertParamExists('deleteAlbum', 'id', id)
  5318. const localVarPath = `/album/{id}`
  5319. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5320. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5321. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5322. let baseOptions;
  5323. if (configuration) {
  5324. baseOptions = configuration.baseOptions;
  5325. }
  5326. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5327. const localVarHeaderParameter = {} as any;
  5328. const localVarQueryParameter = {} as any;
  5329. // authentication cookie required
  5330. // authentication api_key required
  5331. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5332. // authentication bearer required
  5333. // http bearer authentication required
  5334. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5335. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5336. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5337. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5338. return {
  5339. url: toPathString(localVarUrlObj),
  5340. options: localVarRequestOptions,
  5341. };
  5342. },
  5343. /**
  5344. *
  5345. * @param {*} [options] Override http request option.
  5346. * @throws {RequiredError}
  5347. */
  5348. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5349. const localVarPath = `/album/count`;
  5350. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5351. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5352. let baseOptions;
  5353. if (configuration) {
  5354. baseOptions = configuration.baseOptions;
  5355. }
  5356. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5357. const localVarHeaderParameter = {} as any;
  5358. const localVarQueryParameter = {} as any;
  5359. // authentication cookie required
  5360. // authentication api_key required
  5361. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5362. // authentication bearer required
  5363. // http bearer authentication required
  5364. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5365. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5366. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5367. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5368. return {
  5369. url: toPathString(localVarUrlObj),
  5370. options: localVarRequestOptions,
  5371. };
  5372. },
  5373. /**
  5374. *
  5375. * @param {string} id
  5376. * @param {boolean} [withoutAssets]
  5377. * @param {string} [key]
  5378. * @param {*} [options] Override http request option.
  5379. * @throws {RequiredError}
  5380. */
  5381. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5382. // verify required parameter 'id' is not null or undefined
  5383. assertParamExists('getAlbumInfo', 'id', id)
  5384. const localVarPath = `/album/{id}`
  5385. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5386. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5387. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5388. let baseOptions;
  5389. if (configuration) {
  5390. baseOptions = configuration.baseOptions;
  5391. }
  5392. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5393. const localVarHeaderParameter = {} as any;
  5394. const localVarQueryParameter = {} as any;
  5395. // authentication cookie required
  5396. // authentication api_key required
  5397. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5398. // authentication bearer required
  5399. // http bearer authentication required
  5400. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5401. if (withoutAssets !== undefined) {
  5402. localVarQueryParameter['withoutAssets'] = withoutAssets;
  5403. }
  5404. if (key !== undefined) {
  5405. localVarQueryParameter['key'] = key;
  5406. }
  5407. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5408. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5409. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5410. return {
  5411. url: toPathString(localVarUrlObj),
  5412. options: localVarRequestOptions,
  5413. };
  5414. },
  5415. /**
  5416. *
  5417. * @param {boolean} [shared]
  5418. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5419. * @param {*} [options] Override http request option.
  5420. * @throws {RequiredError}
  5421. */
  5422. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5423. const localVarPath = `/album`;
  5424. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5425. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5426. let baseOptions;
  5427. if (configuration) {
  5428. baseOptions = configuration.baseOptions;
  5429. }
  5430. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5431. const localVarHeaderParameter = {} as any;
  5432. const localVarQueryParameter = {} as any;
  5433. // authentication cookie required
  5434. // authentication api_key required
  5435. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5436. // authentication bearer required
  5437. // http bearer authentication required
  5438. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5439. if (shared !== undefined) {
  5440. localVarQueryParameter['shared'] = shared;
  5441. }
  5442. if (assetId !== undefined) {
  5443. localVarQueryParameter['assetId'] = assetId;
  5444. }
  5445. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5446. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5447. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5448. return {
  5449. url: toPathString(localVarUrlObj),
  5450. options: localVarRequestOptions,
  5451. };
  5452. },
  5453. /**
  5454. *
  5455. * @param {string} id
  5456. * @param {BulkIdsDto} bulkIdsDto
  5457. * @param {*} [options] Override http request option.
  5458. * @throws {RequiredError}
  5459. */
  5460. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5461. // verify required parameter 'id' is not null or undefined
  5462. assertParamExists('removeAssetFromAlbum', 'id', id)
  5463. // verify required parameter 'bulkIdsDto' is not null or undefined
  5464. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  5465. const localVarPath = `/album/{id}/assets`
  5466. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5467. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5468. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5469. let baseOptions;
  5470. if (configuration) {
  5471. baseOptions = configuration.baseOptions;
  5472. }
  5473. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5474. const localVarHeaderParameter = {} as any;
  5475. const localVarQueryParameter = {} as any;
  5476. // authentication cookie required
  5477. // authentication api_key required
  5478. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5479. // authentication bearer required
  5480. // http bearer authentication required
  5481. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5482. localVarHeaderParameter['Content-Type'] = 'application/json';
  5483. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5484. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5485. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5486. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5487. return {
  5488. url: toPathString(localVarUrlObj),
  5489. options: localVarRequestOptions,
  5490. };
  5491. },
  5492. /**
  5493. *
  5494. * @param {string} id
  5495. * @param {string} userId
  5496. * @param {*} [options] Override http request option.
  5497. * @throws {RequiredError}
  5498. */
  5499. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5500. // verify required parameter 'id' is not null or undefined
  5501. assertParamExists('removeUserFromAlbum', 'id', id)
  5502. // verify required parameter 'userId' is not null or undefined
  5503. assertParamExists('removeUserFromAlbum', 'userId', userId)
  5504. const localVarPath = `/album/{id}/user/{userId}`
  5505. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  5506. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  5507. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5508. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5509. let baseOptions;
  5510. if (configuration) {
  5511. baseOptions = configuration.baseOptions;
  5512. }
  5513. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5514. const localVarHeaderParameter = {} as any;
  5515. const localVarQueryParameter = {} as any;
  5516. // authentication cookie required
  5517. // authentication api_key required
  5518. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5519. // authentication bearer required
  5520. // http bearer authentication required
  5521. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5522. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5523. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5524. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5525. return {
  5526. url: toPathString(localVarUrlObj),
  5527. options: localVarRequestOptions,
  5528. };
  5529. },
  5530. /**
  5531. *
  5532. * @param {string} id
  5533. * @param {UpdateAlbumDto} updateAlbumDto
  5534. * @param {*} [options] Override http request option.
  5535. * @throws {RequiredError}
  5536. */
  5537. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5538. // verify required parameter 'id' is not null or undefined
  5539. assertParamExists('updateAlbumInfo', 'id', id)
  5540. // verify required parameter 'updateAlbumDto' is not null or undefined
  5541. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  5542. const localVarPath = `/album/{id}`
  5543. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5544. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5545. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5546. let baseOptions;
  5547. if (configuration) {
  5548. baseOptions = configuration.baseOptions;
  5549. }
  5550. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  5551. const localVarHeaderParameter = {} as any;
  5552. const localVarQueryParameter = {} as any;
  5553. // authentication cookie required
  5554. // authentication api_key required
  5555. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5556. // authentication bearer required
  5557. // http bearer authentication required
  5558. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5559. localVarHeaderParameter['Content-Type'] = 'application/json';
  5560. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5561. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5562. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5563. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  5564. return {
  5565. url: toPathString(localVarUrlObj),
  5566. options: localVarRequestOptions,
  5567. };
  5568. },
  5569. }
  5570. };
  5571. /**
  5572. * AlbumApi - functional programming interface
  5573. * @export
  5574. */
  5575. export const AlbumApiFp = function(configuration?: Configuration) {
  5576. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  5577. return {
  5578. /**
  5579. *
  5580. * @param {string} id
  5581. * @param {BulkIdsDto} bulkIdsDto
  5582. * @param {string} [key]
  5583. * @param {*} [options] Override http request option.
  5584. * @throws {RequiredError}
  5585. */
  5586. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5587. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  5588. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5589. },
  5590. /**
  5591. *
  5592. * @param {string} id
  5593. * @param {AddUsersDto} addUsersDto
  5594. * @param {*} [options] Override http request option.
  5595. * @throws {RequiredError}
  5596. */
  5597. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5598. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5599. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5600. },
  5601. /**
  5602. *
  5603. * @param {CreateAlbumDto} createAlbumDto
  5604. * @param {*} [options] Override http request option.
  5605. * @throws {RequiredError}
  5606. */
  5607. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5608. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5609. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5610. },
  5611. /**
  5612. *
  5613. * @param {string} id
  5614. * @param {*} [options] Override http request option.
  5615. * @throws {RequiredError}
  5616. */
  5617. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5618. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5619. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5620. },
  5621. /**
  5622. *
  5623. * @param {*} [options] Override http request option.
  5624. * @throws {RequiredError}
  5625. */
  5626. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5627. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5628. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5629. },
  5630. /**
  5631. *
  5632. * @param {string} id
  5633. * @param {boolean} [withoutAssets]
  5634. * @param {string} [key]
  5635. * @param {*} [options] Override http request option.
  5636. * @throws {RequiredError}
  5637. */
  5638. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5639. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5640. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5641. },
  5642. /**
  5643. *
  5644. * @param {boolean} [shared]
  5645. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5646. * @param {*} [options] Override http request option.
  5647. * @throws {RequiredError}
  5648. */
  5649. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5650. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5651. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5652. },
  5653. /**
  5654. *
  5655. * @param {string} id
  5656. * @param {BulkIdsDto} bulkIdsDto
  5657. * @param {*} [options] Override http request option.
  5658. * @throws {RequiredError}
  5659. */
  5660. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5661. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5662. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5663. },
  5664. /**
  5665. *
  5666. * @param {string} id
  5667. * @param {string} userId
  5668. * @param {*} [options] Override http request option.
  5669. * @throws {RequiredError}
  5670. */
  5671. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5672. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5673. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5674. },
  5675. /**
  5676. *
  5677. * @param {string} id
  5678. * @param {UpdateAlbumDto} updateAlbumDto
  5679. * @param {*} [options] Override http request option.
  5680. * @throws {RequiredError}
  5681. */
  5682. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5683. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5684. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5685. },
  5686. }
  5687. };
  5688. /**
  5689. * AlbumApi - factory interface
  5690. * @export
  5691. */
  5692. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5693. const localVarFp = AlbumApiFp(configuration)
  5694. return {
  5695. /**
  5696. *
  5697. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5698. * @param {*} [options] Override http request option.
  5699. * @throws {RequiredError}
  5700. */
  5701. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5702. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5703. },
  5704. /**
  5705. *
  5706. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5707. * @param {*} [options] Override http request option.
  5708. * @throws {RequiredError}
  5709. */
  5710. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5711. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5712. },
  5713. /**
  5714. *
  5715. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5716. * @param {*} [options] Override http request option.
  5717. * @throws {RequiredError}
  5718. */
  5719. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5720. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5721. },
  5722. /**
  5723. *
  5724. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5725. * @param {*} [options] Override http request option.
  5726. * @throws {RequiredError}
  5727. */
  5728. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5729. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5730. },
  5731. /**
  5732. *
  5733. * @param {*} [options] Override http request option.
  5734. * @throws {RequiredError}
  5735. */
  5736. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5737. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5738. },
  5739. /**
  5740. *
  5741. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5742. * @param {*} [options] Override http request option.
  5743. * @throws {RequiredError}
  5744. */
  5745. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5746. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5747. },
  5748. /**
  5749. *
  5750. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5751. * @param {*} [options] Override http request option.
  5752. * @throws {RequiredError}
  5753. */
  5754. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5755. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5756. },
  5757. /**
  5758. *
  5759. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5760. * @param {*} [options] Override http request option.
  5761. * @throws {RequiredError}
  5762. */
  5763. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5764. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5765. },
  5766. /**
  5767. *
  5768. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5769. * @param {*} [options] Override http request option.
  5770. * @throws {RequiredError}
  5771. */
  5772. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5773. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5774. },
  5775. /**
  5776. *
  5777. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5778. * @param {*} [options] Override http request option.
  5779. * @throws {RequiredError}
  5780. */
  5781. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5782. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5783. },
  5784. };
  5785. };
  5786. /**
  5787. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5788. * @export
  5789. * @interface AlbumApiAddAssetsToAlbumRequest
  5790. */
  5791. export interface AlbumApiAddAssetsToAlbumRequest {
  5792. /**
  5793. *
  5794. * @type {string}
  5795. * @memberof AlbumApiAddAssetsToAlbum
  5796. */
  5797. readonly id: string
  5798. /**
  5799. *
  5800. * @type {BulkIdsDto}
  5801. * @memberof AlbumApiAddAssetsToAlbum
  5802. */
  5803. readonly bulkIdsDto: BulkIdsDto
  5804. /**
  5805. *
  5806. * @type {string}
  5807. * @memberof AlbumApiAddAssetsToAlbum
  5808. */
  5809. readonly key?: string
  5810. }
  5811. /**
  5812. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5813. * @export
  5814. * @interface AlbumApiAddUsersToAlbumRequest
  5815. */
  5816. export interface AlbumApiAddUsersToAlbumRequest {
  5817. /**
  5818. *
  5819. * @type {string}
  5820. * @memberof AlbumApiAddUsersToAlbum
  5821. */
  5822. readonly id: string
  5823. /**
  5824. *
  5825. * @type {AddUsersDto}
  5826. * @memberof AlbumApiAddUsersToAlbum
  5827. */
  5828. readonly addUsersDto: AddUsersDto
  5829. }
  5830. /**
  5831. * Request parameters for createAlbum operation in AlbumApi.
  5832. * @export
  5833. * @interface AlbumApiCreateAlbumRequest
  5834. */
  5835. export interface AlbumApiCreateAlbumRequest {
  5836. /**
  5837. *
  5838. * @type {CreateAlbumDto}
  5839. * @memberof AlbumApiCreateAlbum
  5840. */
  5841. readonly createAlbumDto: CreateAlbumDto
  5842. }
  5843. /**
  5844. * Request parameters for deleteAlbum operation in AlbumApi.
  5845. * @export
  5846. * @interface AlbumApiDeleteAlbumRequest
  5847. */
  5848. export interface AlbumApiDeleteAlbumRequest {
  5849. /**
  5850. *
  5851. * @type {string}
  5852. * @memberof AlbumApiDeleteAlbum
  5853. */
  5854. readonly id: string
  5855. }
  5856. /**
  5857. * Request parameters for getAlbumInfo operation in AlbumApi.
  5858. * @export
  5859. * @interface AlbumApiGetAlbumInfoRequest
  5860. */
  5861. export interface AlbumApiGetAlbumInfoRequest {
  5862. /**
  5863. *
  5864. * @type {string}
  5865. * @memberof AlbumApiGetAlbumInfo
  5866. */
  5867. readonly id: string
  5868. /**
  5869. *
  5870. * @type {boolean}
  5871. * @memberof AlbumApiGetAlbumInfo
  5872. */
  5873. readonly withoutAssets?: boolean
  5874. /**
  5875. *
  5876. * @type {string}
  5877. * @memberof AlbumApiGetAlbumInfo
  5878. */
  5879. readonly key?: string
  5880. }
  5881. /**
  5882. * Request parameters for getAllAlbums operation in AlbumApi.
  5883. * @export
  5884. * @interface AlbumApiGetAllAlbumsRequest
  5885. */
  5886. export interface AlbumApiGetAllAlbumsRequest {
  5887. /**
  5888. *
  5889. * @type {boolean}
  5890. * @memberof AlbumApiGetAllAlbums
  5891. */
  5892. readonly shared?: boolean
  5893. /**
  5894. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5895. * @type {string}
  5896. * @memberof AlbumApiGetAllAlbums
  5897. */
  5898. readonly assetId?: string
  5899. }
  5900. /**
  5901. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5902. * @export
  5903. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5904. */
  5905. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5906. /**
  5907. *
  5908. * @type {string}
  5909. * @memberof AlbumApiRemoveAssetFromAlbum
  5910. */
  5911. readonly id: string
  5912. /**
  5913. *
  5914. * @type {BulkIdsDto}
  5915. * @memberof AlbumApiRemoveAssetFromAlbum
  5916. */
  5917. readonly bulkIdsDto: BulkIdsDto
  5918. }
  5919. /**
  5920. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5921. * @export
  5922. * @interface AlbumApiRemoveUserFromAlbumRequest
  5923. */
  5924. export interface AlbumApiRemoveUserFromAlbumRequest {
  5925. /**
  5926. *
  5927. * @type {string}
  5928. * @memberof AlbumApiRemoveUserFromAlbum
  5929. */
  5930. readonly id: string
  5931. /**
  5932. *
  5933. * @type {string}
  5934. * @memberof AlbumApiRemoveUserFromAlbum
  5935. */
  5936. readonly userId: string
  5937. }
  5938. /**
  5939. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5940. * @export
  5941. * @interface AlbumApiUpdateAlbumInfoRequest
  5942. */
  5943. export interface AlbumApiUpdateAlbumInfoRequest {
  5944. /**
  5945. *
  5946. * @type {string}
  5947. * @memberof AlbumApiUpdateAlbumInfo
  5948. */
  5949. readonly id: string
  5950. /**
  5951. *
  5952. * @type {UpdateAlbumDto}
  5953. * @memberof AlbumApiUpdateAlbumInfo
  5954. */
  5955. readonly updateAlbumDto: UpdateAlbumDto
  5956. }
  5957. /**
  5958. * AlbumApi - object-oriented interface
  5959. * @export
  5960. * @class AlbumApi
  5961. * @extends {BaseAPI}
  5962. */
  5963. export class AlbumApi extends BaseAPI {
  5964. /**
  5965. *
  5966. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5967. * @param {*} [options] Override http request option.
  5968. * @throws {RequiredError}
  5969. * @memberof AlbumApi
  5970. */
  5971. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5972. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5973. }
  5974. /**
  5975. *
  5976. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5977. * @param {*} [options] Override http request option.
  5978. * @throws {RequiredError}
  5979. * @memberof AlbumApi
  5980. */
  5981. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5982. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5983. }
  5984. /**
  5985. *
  5986. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5987. * @param {*} [options] Override http request option.
  5988. * @throws {RequiredError}
  5989. * @memberof AlbumApi
  5990. */
  5991. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5992. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5993. }
  5994. /**
  5995. *
  5996. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5997. * @param {*} [options] Override http request option.
  5998. * @throws {RequiredError}
  5999. * @memberof AlbumApi
  6000. */
  6001. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  6002. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  6003. }
  6004. /**
  6005. *
  6006. * @param {*} [options] Override http request option.
  6007. * @throws {RequiredError}
  6008. * @memberof AlbumApi
  6009. */
  6010. public getAlbumCount(options?: AxiosRequestConfig) {
  6011. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  6012. }
  6013. /**
  6014. *
  6015. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  6016. * @param {*} [options] Override http request option.
  6017. * @throws {RequiredError}
  6018. * @memberof AlbumApi
  6019. */
  6020. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  6021. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6022. }
  6023. /**
  6024. *
  6025. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  6026. * @param {*} [options] Override http request option.
  6027. * @throws {RequiredError}
  6028. * @memberof AlbumApi
  6029. */
  6030. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  6031. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  6032. }
  6033. /**
  6034. *
  6035. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  6036. * @param {*} [options] Override http request option.
  6037. * @throws {RequiredError}
  6038. * @memberof AlbumApi
  6039. */
  6040. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  6041. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  6042. }
  6043. /**
  6044. *
  6045. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  6046. * @param {*} [options] Override http request option.
  6047. * @throws {RequiredError}
  6048. * @memberof AlbumApi
  6049. */
  6050. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  6051. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  6052. }
  6053. /**
  6054. *
  6055. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  6056. * @param {*} [options] Override http request option.
  6057. * @throws {RequiredError}
  6058. * @memberof AlbumApi
  6059. */
  6060. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  6061. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  6062. }
  6063. }
  6064. /**
  6065. * AssetApi - axios parameter creator
  6066. * @export
  6067. */
  6068. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  6069. return {
  6070. /**
  6071. * Checks if assets exist by checksums
  6072. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6073. * @param {*} [options] Override http request option.
  6074. * @throws {RequiredError}
  6075. */
  6076. checkBulkUpload: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6077. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  6078. assertParamExists('checkBulkUpload', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  6079. const localVarPath = `/asset/bulk-upload-check`;
  6080. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6081. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6082. let baseOptions;
  6083. if (configuration) {
  6084. baseOptions = configuration.baseOptions;
  6085. }
  6086. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6087. const localVarHeaderParameter = {} as any;
  6088. const localVarQueryParameter = {} as any;
  6089. // authentication cookie required
  6090. // authentication api_key required
  6091. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6092. // authentication bearer required
  6093. // http bearer authentication required
  6094. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6095. localVarHeaderParameter['Content-Type'] = 'application/json';
  6096. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6097. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6098. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6099. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  6100. return {
  6101. url: toPathString(localVarUrlObj),
  6102. options: localVarRequestOptions,
  6103. };
  6104. },
  6105. /**
  6106. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6107. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6108. * @param {*} [options] Override http request option.
  6109. * @throws {RequiredError}
  6110. */
  6111. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6112. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  6113. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  6114. const localVarPath = `/asset/exist`;
  6115. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6116. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6117. let baseOptions;
  6118. if (configuration) {
  6119. baseOptions = configuration.baseOptions;
  6120. }
  6121. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6122. const localVarHeaderParameter = {} as any;
  6123. const localVarQueryParameter = {} as any;
  6124. // authentication cookie required
  6125. // authentication api_key required
  6126. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6127. // authentication bearer required
  6128. // http bearer authentication required
  6129. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6130. localVarHeaderParameter['Content-Type'] = 'application/json';
  6131. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6132. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6133. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6134. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  6135. return {
  6136. url: toPathString(localVarUrlObj),
  6137. options: localVarRequestOptions,
  6138. };
  6139. },
  6140. /**
  6141. *
  6142. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6143. * @param {*} [options] Override http request option.
  6144. * @throws {RequiredError}
  6145. */
  6146. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6147. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  6148. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  6149. const localVarPath = `/asset`;
  6150. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6151. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6152. let baseOptions;
  6153. if (configuration) {
  6154. baseOptions = configuration.baseOptions;
  6155. }
  6156. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6157. const localVarHeaderParameter = {} as any;
  6158. const localVarQueryParameter = {} as any;
  6159. // authentication cookie required
  6160. // authentication api_key required
  6161. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6162. // authentication bearer required
  6163. // http bearer authentication required
  6164. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6165. localVarHeaderParameter['Content-Type'] = 'application/json';
  6166. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6167. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6168. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6169. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  6170. return {
  6171. url: toPathString(localVarUrlObj),
  6172. options: localVarRequestOptions,
  6173. };
  6174. },
  6175. /**
  6176. *
  6177. * @param {AssetIdsDto} assetIdsDto
  6178. * @param {string} [key]
  6179. * @param {*} [options] Override http request option.
  6180. * @throws {RequiredError}
  6181. */
  6182. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6183. // verify required parameter 'assetIdsDto' is not null or undefined
  6184. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  6185. const localVarPath = `/asset/download/archive`;
  6186. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6187. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6188. let baseOptions;
  6189. if (configuration) {
  6190. baseOptions = configuration.baseOptions;
  6191. }
  6192. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6193. const localVarHeaderParameter = {} as any;
  6194. const localVarQueryParameter = {} as any;
  6195. // authentication cookie required
  6196. // authentication api_key required
  6197. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6198. // authentication bearer required
  6199. // http bearer authentication required
  6200. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6201. if (key !== undefined) {
  6202. localVarQueryParameter['key'] = key;
  6203. }
  6204. localVarHeaderParameter['Content-Type'] = 'application/json';
  6205. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6206. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6207. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6208. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  6209. return {
  6210. url: toPathString(localVarUrlObj),
  6211. options: localVarRequestOptions,
  6212. };
  6213. },
  6214. /**
  6215. *
  6216. * @param {string} id
  6217. * @param {string} [key]
  6218. * @param {*} [options] Override http request option.
  6219. * @throws {RequiredError}
  6220. */
  6221. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6222. // verify required parameter 'id' is not null or undefined
  6223. assertParamExists('downloadFile', 'id', id)
  6224. const localVarPath = `/asset/download/{id}`
  6225. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6226. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6227. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6228. let baseOptions;
  6229. if (configuration) {
  6230. baseOptions = configuration.baseOptions;
  6231. }
  6232. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6233. const localVarHeaderParameter = {} as any;
  6234. const localVarQueryParameter = {} as any;
  6235. // authentication cookie required
  6236. // authentication api_key required
  6237. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6238. // authentication bearer required
  6239. // http bearer authentication required
  6240. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6241. if (key !== undefined) {
  6242. localVarQueryParameter['key'] = key;
  6243. }
  6244. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6245. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6246. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6247. return {
  6248. url: toPathString(localVarUrlObj),
  6249. options: localVarRequestOptions,
  6250. };
  6251. },
  6252. /**
  6253. *
  6254. * @param {*} [options] Override http request option.
  6255. * @throws {RequiredError}
  6256. */
  6257. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6258. const localVarPath = `/asset/trash/empty`;
  6259. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6260. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6261. let baseOptions;
  6262. if (configuration) {
  6263. baseOptions = configuration.baseOptions;
  6264. }
  6265. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6266. const localVarHeaderParameter = {} as any;
  6267. const localVarQueryParameter = {} as any;
  6268. // authentication cookie required
  6269. // authentication api_key required
  6270. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6271. // authentication bearer required
  6272. // http bearer authentication required
  6273. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6274. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6275. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6276. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6277. return {
  6278. url: toPathString(localVarUrlObj),
  6279. options: localVarRequestOptions,
  6280. };
  6281. },
  6282. /**
  6283. * Get all AssetEntity belong to the user
  6284. * @param {number} [skip]
  6285. * @param {number} [take]
  6286. * @param {string} [userId]
  6287. * @param {boolean} [isFavorite]
  6288. * @param {boolean} [isArchived]
  6289. * @param {string} [updatedAfter]
  6290. * @param {string} [updatedBefore]
  6291. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6292. * @param {*} [options] Override http request option.
  6293. * @throws {RequiredError}
  6294. */
  6295. getAllAssets: async (skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6296. const localVarPath = `/asset`;
  6297. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6298. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6299. let baseOptions;
  6300. if (configuration) {
  6301. baseOptions = configuration.baseOptions;
  6302. }
  6303. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6304. const localVarHeaderParameter = {} as any;
  6305. const localVarQueryParameter = {} as any;
  6306. // authentication cookie required
  6307. // authentication api_key required
  6308. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6309. // authentication bearer required
  6310. // http bearer authentication required
  6311. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6312. if (skip !== undefined) {
  6313. localVarQueryParameter['skip'] = skip;
  6314. }
  6315. if (take !== undefined) {
  6316. localVarQueryParameter['take'] = take;
  6317. }
  6318. if (userId !== undefined) {
  6319. localVarQueryParameter['userId'] = userId;
  6320. }
  6321. if (isFavorite !== undefined) {
  6322. localVarQueryParameter['isFavorite'] = isFavorite;
  6323. }
  6324. if (isArchived !== undefined) {
  6325. localVarQueryParameter['isArchived'] = isArchived;
  6326. }
  6327. if (updatedAfter !== undefined) {
  6328. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  6329. (updatedAfter as any).toISOString() :
  6330. updatedAfter;
  6331. }
  6332. if (updatedBefore !== undefined) {
  6333. localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
  6334. (updatedBefore as any).toISOString() :
  6335. updatedBefore;
  6336. }
  6337. if (ifNoneMatch != null) {
  6338. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  6339. }
  6340. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6341. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6342. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6343. return {
  6344. url: toPathString(localVarUrlObj),
  6345. options: localVarRequestOptions,
  6346. };
  6347. },
  6348. /**
  6349. * Get a single asset\'s information
  6350. * @param {string} id
  6351. * @param {string} [key]
  6352. * @param {*} [options] Override http request option.
  6353. * @throws {RequiredError}
  6354. */
  6355. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6356. // verify required parameter 'id' is not null or undefined
  6357. assertParamExists('getAssetById', 'id', id)
  6358. const localVarPath = `/asset/assetById/{id}`
  6359. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6360. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6361. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6362. let baseOptions;
  6363. if (configuration) {
  6364. baseOptions = configuration.baseOptions;
  6365. }
  6366. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6367. const localVarHeaderParameter = {} as any;
  6368. const localVarQueryParameter = {} as any;
  6369. // authentication cookie required
  6370. // authentication api_key required
  6371. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6372. // authentication bearer required
  6373. // http bearer authentication required
  6374. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6375. if (key !== undefined) {
  6376. localVarQueryParameter['key'] = key;
  6377. }
  6378. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6379. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6380. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6381. return {
  6382. url: toPathString(localVarUrlObj),
  6383. options: localVarRequestOptions,
  6384. };
  6385. },
  6386. /**
  6387. *
  6388. * @param {*} [options] Override http request option.
  6389. * @throws {RequiredError}
  6390. */
  6391. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6392. const localVarPath = `/asset/search-terms`;
  6393. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6394. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6395. let baseOptions;
  6396. if (configuration) {
  6397. baseOptions = configuration.baseOptions;
  6398. }
  6399. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6400. const localVarHeaderParameter = {} as any;
  6401. const localVarQueryParameter = {} as any;
  6402. // authentication cookie required
  6403. // authentication api_key required
  6404. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6405. // authentication bearer required
  6406. // http bearer authentication required
  6407. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6408. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6409. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6410. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6411. return {
  6412. url: toPathString(localVarUrlObj),
  6413. options: localVarRequestOptions,
  6414. };
  6415. },
  6416. /**
  6417. *
  6418. * @param {boolean} [isArchived]
  6419. * @param {boolean} [isFavorite]
  6420. * @param {boolean} [isTrashed]
  6421. * @param {*} [options] Override http request option.
  6422. * @throws {RequiredError}
  6423. */
  6424. getAssetStatistics: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6425. const localVarPath = `/asset/statistics`;
  6426. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6427. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6428. let baseOptions;
  6429. if (configuration) {
  6430. baseOptions = configuration.baseOptions;
  6431. }
  6432. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6433. const localVarHeaderParameter = {} as any;
  6434. const localVarQueryParameter = {} as any;
  6435. // authentication cookie required
  6436. // authentication api_key required
  6437. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6438. // authentication bearer required
  6439. // http bearer authentication required
  6440. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6441. if (isArchived !== undefined) {
  6442. localVarQueryParameter['isArchived'] = isArchived;
  6443. }
  6444. if (isFavorite !== undefined) {
  6445. localVarQueryParameter['isFavorite'] = isFavorite;
  6446. }
  6447. if (isTrashed !== undefined) {
  6448. localVarQueryParameter['isTrashed'] = isTrashed;
  6449. }
  6450. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6451. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6452. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6453. return {
  6454. url: toPathString(localVarUrlObj),
  6455. options: localVarRequestOptions,
  6456. };
  6457. },
  6458. /**
  6459. *
  6460. * @param {string} id
  6461. * @param {ThumbnailFormat} [format]
  6462. * @param {string} [key]
  6463. * @param {*} [options] Override http request option.
  6464. * @throws {RequiredError}
  6465. */
  6466. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6467. // verify required parameter 'id' is not null or undefined
  6468. assertParamExists('getAssetThumbnail', 'id', id)
  6469. const localVarPath = `/asset/thumbnail/{id}`
  6470. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6471. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6472. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6473. let baseOptions;
  6474. if (configuration) {
  6475. baseOptions = configuration.baseOptions;
  6476. }
  6477. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6478. const localVarHeaderParameter = {} as any;
  6479. const localVarQueryParameter = {} as any;
  6480. // authentication cookie required
  6481. // authentication api_key required
  6482. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6483. // authentication bearer required
  6484. // http bearer authentication required
  6485. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6486. if (format !== undefined) {
  6487. localVarQueryParameter['format'] = format;
  6488. }
  6489. if (key !== undefined) {
  6490. localVarQueryParameter['key'] = key;
  6491. }
  6492. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6493. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6494. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6495. return {
  6496. url: toPathString(localVarUrlObj),
  6497. options: localVarRequestOptions,
  6498. };
  6499. },
  6500. /**
  6501. *
  6502. * @param {*} [options] Override http request option.
  6503. * @throws {RequiredError}
  6504. */
  6505. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6506. const localVarPath = `/asset/curated-locations`;
  6507. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6508. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6509. let baseOptions;
  6510. if (configuration) {
  6511. baseOptions = configuration.baseOptions;
  6512. }
  6513. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6514. const localVarHeaderParameter = {} as any;
  6515. const localVarQueryParameter = {} as any;
  6516. // authentication cookie required
  6517. // authentication api_key required
  6518. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6519. // authentication bearer required
  6520. // http bearer authentication required
  6521. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6522. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6523. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6524. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6525. return {
  6526. url: toPathString(localVarUrlObj),
  6527. options: localVarRequestOptions,
  6528. };
  6529. },
  6530. /**
  6531. *
  6532. * @param {*} [options] Override http request option.
  6533. * @throws {RequiredError}
  6534. */
  6535. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6536. const localVarPath = `/asset/curated-objects`;
  6537. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6538. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6539. let baseOptions;
  6540. if (configuration) {
  6541. baseOptions = configuration.baseOptions;
  6542. }
  6543. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6544. const localVarHeaderParameter = {} as any;
  6545. const localVarQueryParameter = {} as any;
  6546. // authentication cookie required
  6547. // authentication api_key required
  6548. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6549. // authentication bearer required
  6550. // http bearer authentication required
  6551. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6552. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6553. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6554. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6555. return {
  6556. url: toPathString(localVarUrlObj),
  6557. options: localVarRequestOptions,
  6558. };
  6559. },
  6560. /**
  6561. *
  6562. * @param {DownloadInfoDto} downloadInfoDto
  6563. * @param {string} [key]
  6564. * @param {*} [options] Override http request option.
  6565. * @throws {RequiredError}
  6566. */
  6567. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6568. // verify required parameter 'downloadInfoDto' is not null or undefined
  6569. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6570. const localVarPath = `/asset/download/info`;
  6571. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6572. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6573. let baseOptions;
  6574. if (configuration) {
  6575. baseOptions = configuration.baseOptions;
  6576. }
  6577. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6578. const localVarHeaderParameter = {} as any;
  6579. const localVarQueryParameter = {} as any;
  6580. // authentication cookie required
  6581. // authentication api_key required
  6582. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6583. // authentication bearer required
  6584. // http bearer authentication required
  6585. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6586. if (key !== undefined) {
  6587. localVarQueryParameter['key'] = key;
  6588. }
  6589. localVarHeaderParameter['Content-Type'] = 'application/json';
  6590. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6591. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6592. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6593. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6594. return {
  6595. url: toPathString(localVarUrlObj),
  6596. options: localVarRequestOptions,
  6597. };
  6598. },
  6599. /**
  6600. *
  6601. * @param {boolean} [isArchived]
  6602. * @param {boolean} [isFavorite]
  6603. * @param {string} [fileCreatedAfter]
  6604. * @param {string} [fileCreatedBefore]
  6605. * @param {*} [options] Override http request option.
  6606. * @throws {RequiredError}
  6607. */
  6608. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6609. const localVarPath = `/asset/map-marker`;
  6610. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6611. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6612. let baseOptions;
  6613. if (configuration) {
  6614. baseOptions = configuration.baseOptions;
  6615. }
  6616. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6617. const localVarHeaderParameter = {} as any;
  6618. const localVarQueryParameter = {} as any;
  6619. // authentication cookie required
  6620. // authentication api_key required
  6621. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6622. // authentication bearer required
  6623. // http bearer authentication required
  6624. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6625. if (isArchived !== undefined) {
  6626. localVarQueryParameter['isArchived'] = isArchived;
  6627. }
  6628. if (isFavorite !== undefined) {
  6629. localVarQueryParameter['isFavorite'] = isFavorite;
  6630. }
  6631. if (fileCreatedAfter !== undefined) {
  6632. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6633. (fileCreatedAfter as any).toISOString() :
  6634. fileCreatedAfter;
  6635. }
  6636. if (fileCreatedBefore !== undefined) {
  6637. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6638. (fileCreatedBefore as any).toISOString() :
  6639. fileCreatedBefore;
  6640. }
  6641. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6642. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6643. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6644. return {
  6645. url: toPathString(localVarUrlObj),
  6646. options: localVarRequestOptions,
  6647. };
  6648. },
  6649. /**
  6650. *
  6651. * @param {number} day
  6652. * @param {number} month
  6653. * @param {*} [options] Override http request option.
  6654. * @throws {RequiredError}
  6655. */
  6656. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6657. // verify required parameter 'day' is not null or undefined
  6658. assertParamExists('getMemoryLane', 'day', day)
  6659. // verify required parameter 'month' is not null or undefined
  6660. assertParamExists('getMemoryLane', 'month', month)
  6661. const localVarPath = `/asset/memory-lane`;
  6662. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6663. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6664. let baseOptions;
  6665. if (configuration) {
  6666. baseOptions = configuration.baseOptions;
  6667. }
  6668. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6669. const localVarHeaderParameter = {} as any;
  6670. const localVarQueryParameter = {} as any;
  6671. // authentication cookie required
  6672. // authentication api_key required
  6673. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6674. // authentication bearer required
  6675. // http bearer authentication required
  6676. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6677. if (day !== undefined) {
  6678. localVarQueryParameter['day'] = day;
  6679. }
  6680. if (month !== undefined) {
  6681. localVarQueryParameter['month'] = month;
  6682. }
  6683. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6684. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6685. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6686. return {
  6687. url: toPathString(localVarUrlObj),
  6688. options: localVarRequestOptions,
  6689. };
  6690. },
  6691. /**
  6692. *
  6693. * @param {number} [count]
  6694. * @param {*} [options] Override http request option.
  6695. * @throws {RequiredError}
  6696. */
  6697. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6698. const localVarPath = `/asset/random`;
  6699. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6700. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6701. let baseOptions;
  6702. if (configuration) {
  6703. baseOptions = configuration.baseOptions;
  6704. }
  6705. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6706. const localVarHeaderParameter = {} as any;
  6707. const localVarQueryParameter = {} as any;
  6708. // authentication cookie required
  6709. // authentication api_key required
  6710. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6711. // authentication bearer required
  6712. // http bearer authentication required
  6713. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6714. if (count !== undefined) {
  6715. localVarQueryParameter['count'] = count;
  6716. }
  6717. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6718. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6719. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6720. return {
  6721. url: toPathString(localVarUrlObj),
  6722. options: localVarRequestOptions,
  6723. };
  6724. },
  6725. /**
  6726. *
  6727. * @param {TimeBucketSize} size
  6728. * @param {string} timeBucket
  6729. * @param {string} [userId]
  6730. * @param {string} [albumId]
  6731. * @param {string} [personId]
  6732. * @param {boolean} [isArchived]
  6733. * @param {boolean} [isFavorite]
  6734. * @param {boolean} [isTrashed]
  6735. * @param {boolean} [withStacked]
  6736. * @param {boolean} [withPartners]
  6737. * @param {string} [key]
  6738. * @param {*} [options] Override http request option.
  6739. * @throws {RequiredError}
  6740. */
  6741. getTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6742. // verify required parameter 'size' is not null or undefined
  6743. assertParamExists('getTimeBucket', 'size', size)
  6744. // verify required parameter 'timeBucket' is not null or undefined
  6745. assertParamExists('getTimeBucket', 'timeBucket', timeBucket)
  6746. const localVarPath = `/asset/time-bucket`;
  6747. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6748. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6749. let baseOptions;
  6750. if (configuration) {
  6751. baseOptions = configuration.baseOptions;
  6752. }
  6753. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6754. const localVarHeaderParameter = {} as any;
  6755. const localVarQueryParameter = {} as any;
  6756. // authentication cookie required
  6757. // authentication api_key required
  6758. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6759. // authentication bearer required
  6760. // http bearer authentication required
  6761. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6762. if (size !== undefined) {
  6763. localVarQueryParameter['size'] = size;
  6764. }
  6765. if (userId !== undefined) {
  6766. localVarQueryParameter['userId'] = userId;
  6767. }
  6768. if (albumId !== undefined) {
  6769. localVarQueryParameter['albumId'] = albumId;
  6770. }
  6771. if (personId !== undefined) {
  6772. localVarQueryParameter['personId'] = personId;
  6773. }
  6774. if (isArchived !== undefined) {
  6775. localVarQueryParameter['isArchived'] = isArchived;
  6776. }
  6777. if (isFavorite !== undefined) {
  6778. localVarQueryParameter['isFavorite'] = isFavorite;
  6779. }
  6780. if (isTrashed !== undefined) {
  6781. localVarQueryParameter['isTrashed'] = isTrashed;
  6782. }
  6783. if (withStacked !== undefined) {
  6784. localVarQueryParameter['withStacked'] = withStacked;
  6785. }
  6786. if (withPartners !== undefined) {
  6787. localVarQueryParameter['withPartners'] = withPartners;
  6788. }
  6789. if (timeBucket !== undefined) {
  6790. localVarQueryParameter['timeBucket'] = timeBucket;
  6791. }
  6792. if (key !== undefined) {
  6793. localVarQueryParameter['key'] = key;
  6794. }
  6795. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6796. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6797. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6798. return {
  6799. url: toPathString(localVarUrlObj),
  6800. options: localVarRequestOptions,
  6801. };
  6802. },
  6803. /**
  6804. *
  6805. * @param {TimeBucketSize} size
  6806. * @param {string} [userId]
  6807. * @param {string} [albumId]
  6808. * @param {string} [personId]
  6809. * @param {boolean} [isArchived]
  6810. * @param {boolean} [isFavorite]
  6811. * @param {boolean} [isTrashed]
  6812. * @param {boolean} [withStacked]
  6813. * @param {boolean} [withPartners]
  6814. * @param {string} [key]
  6815. * @param {*} [options] Override http request option.
  6816. * @throws {RequiredError}
  6817. */
  6818. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6819. // verify required parameter 'size' is not null or undefined
  6820. assertParamExists('getTimeBuckets', 'size', size)
  6821. const localVarPath = `/asset/time-buckets`;
  6822. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6823. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6824. let baseOptions;
  6825. if (configuration) {
  6826. baseOptions = configuration.baseOptions;
  6827. }
  6828. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6829. const localVarHeaderParameter = {} as any;
  6830. const localVarQueryParameter = {} as any;
  6831. // authentication cookie required
  6832. // authentication api_key required
  6833. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6834. // authentication bearer required
  6835. // http bearer authentication required
  6836. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6837. if (size !== undefined) {
  6838. localVarQueryParameter['size'] = size;
  6839. }
  6840. if (userId !== undefined) {
  6841. localVarQueryParameter['userId'] = userId;
  6842. }
  6843. if (albumId !== undefined) {
  6844. localVarQueryParameter['albumId'] = albumId;
  6845. }
  6846. if (personId !== undefined) {
  6847. localVarQueryParameter['personId'] = personId;
  6848. }
  6849. if (isArchived !== undefined) {
  6850. localVarQueryParameter['isArchived'] = isArchived;
  6851. }
  6852. if (isFavorite !== undefined) {
  6853. localVarQueryParameter['isFavorite'] = isFavorite;
  6854. }
  6855. if (isTrashed !== undefined) {
  6856. localVarQueryParameter['isTrashed'] = isTrashed;
  6857. }
  6858. if (withStacked !== undefined) {
  6859. localVarQueryParameter['withStacked'] = withStacked;
  6860. }
  6861. if (withPartners !== undefined) {
  6862. localVarQueryParameter['withPartners'] = withPartners;
  6863. }
  6864. if (key !== undefined) {
  6865. localVarQueryParameter['key'] = key;
  6866. }
  6867. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6868. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6869. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6870. return {
  6871. url: toPathString(localVarUrlObj),
  6872. options: localVarRequestOptions,
  6873. };
  6874. },
  6875. /**
  6876. * Get all asset of a device that are in the database, ID only.
  6877. * @param {string} deviceId
  6878. * @param {*} [options] Override http request option.
  6879. * @throws {RequiredError}
  6880. */
  6881. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6882. // verify required parameter 'deviceId' is not null or undefined
  6883. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6884. const localVarPath = `/asset/{deviceId}`
  6885. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6886. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6887. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6888. let baseOptions;
  6889. if (configuration) {
  6890. baseOptions = configuration.baseOptions;
  6891. }
  6892. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6893. const localVarHeaderParameter = {} as any;
  6894. const localVarQueryParameter = {} as any;
  6895. // authentication cookie required
  6896. // authentication api_key required
  6897. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6898. // authentication bearer required
  6899. // http bearer authentication required
  6900. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6901. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6902. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6903. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6904. return {
  6905. url: toPathString(localVarUrlObj),
  6906. options: localVarRequestOptions,
  6907. };
  6908. },
  6909. /**
  6910. *
  6911. * @param {BulkIdsDto} bulkIdsDto
  6912. * @param {*} [options] Override http request option.
  6913. * @throws {RequiredError}
  6914. */
  6915. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6916. // verify required parameter 'bulkIdsDto' is not null or undefined
  6917. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6918. const localVarPath = `/asset/restore`;
  6919. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6920. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6921. let baseOptions;
  6922. if (configuration) {
  6923. baseOptions = configuration.baseOptions;
  6924. }
  6925. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6926. const localVarHeaderParameter = {} as any;
  6927. const localVarQueryParameter = {} as any;
  6928. // authentication cookie required
  6929. // authentication api_key required
  6930. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6931. // authentication bearer required
  6932. // http bearer authentication required
  6933. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6934. localVarHeaderParameter['Content-Type'] = 'application/json';
  6935. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6936. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6937. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6938. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6939. return {
  6940. url: toPathString(localVarUrlObj),
  6941. options: localVarRequestOptions,
  6942. };
  6943. },
  6944. /**
  6945. *
  6946. * @param {*} [options] Override http request option.
  6947. * @throws {RequiredError}
  6948. */
  6949. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6950. const localVarPath = `/asset/trash/restore`;
  6951. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6952. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6953. let baseOptions;
  6954. if (configuration) {
  6955. baseOptions = configuration.baseOptions;
  6956. }
  6957. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6958. const localVarHeaderParameter = {} as any;
  6959. const localVarQueryParameter = {} as any;
  6960. // authentication cookie required
  6961. // authentication api_key required
  6962. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6963. // authentication bearer required
  6964. // http bearer authentication required
  6965. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6966. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6967. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6968. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6969. return {
  6970. url: toPathString(localVarUrlObj),
  6971. options: localVarRequestOptions,
  6972. };
  6973. },
  6974. /**
  6975. *
  6976. * @param {AssetJobsDto} assetJobsDto
  6977. * @param {*} [options] Override http request option.
  6978. * @throws {RequiredError}
  6979. */
  6980. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6981. // verify required parameter 'assetJobsDto' is not null or undefined
  6982. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  6983. const localVarPath = `/asset/jobs`;
  6984. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6985. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6986. let baseOptions;
  6987. if (configuration) {
  6988. baseOptions = configuration.baseOptions;
  6989. }
  6990. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6991. const localVarHeaderParameter = {} as any;
  6992. const localVarQueryParameter = {} as any;
  6993. // authentication cookie required
  6994. // authentication api_key required
  6995. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6996. // authentication bearer required
  6997. // http bearer authentication required
  6998. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6999. localVarHeaderParameter['Content-Type'] = 'application/json';
  7000. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7001. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7002. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7003. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  7004. return {
  7005. url: toPathString(localVarUrlObj),
  7006. options: localVarRequestOptions,
  7007. };
  7008. },
  7009. /**
  7010. *
  7011. * @param {string} [id]
  7012. * @param {string} [libraryId]
  7013. * @param {AssetTypeEnum} [type]
  7014. * @param {AssetOrder} [order]
  7015. * @param {string} [deviceAssetId]
  7016. * @param {string} [deviceId]
  7017. * @param {string} [checksum]
  7018. * @param {boolean} [isArchived]
  7019. * @param {boolean} [isEncoded]
  7020. * @param {boolean} [isExternal]
  7021. * @param {boolean} [isFavorite]
  7022. * @param {boolean} [isMotion]
  7023. * @param {boolean} [isOffline]
  7024. * @param {boolean} [isReadOnly]
  7025. * @param {boolean} [isVisible]
  7026. * @param {boolean} [withDeleted]
  7027. * @param {boolean} [withStacked]
  7028. * @param {boolean} [withExif]
  7029. * @param {boolean} [withPeople]
  7030. * @param {string} [createdBefore]
  7031. * @param {string} [createdAfter]
  7032. * @param {string} [updatedBefore]
  7033. * @param {string} [updatedAfter]
  7034. * @param {string} [trashedBefore]
  7035. * @param {string} [trashedAfter]
  7036. * @param {string} [takenBefore]
  7037. * @param {string} [takenAfter]
  7038. * @param {string} [originalFileName]
  7039. * @param {string} [originalPath]
  7040. * @param {string} [resizePath]
  7041. * @param {string} [webpPath]
  7042. * @param {string} [encodedVideoPath]
  7043. * @param {string} [city]
  7044. * @param {string} [state]
  7045. * @param {string} [country]
  7046. * @param {string} [make]
  7047. * @param {string} [model]
  7048. * @param {string} [lensModel]
  7049. * @param {number} [page]
  7050. * @param {number} [size]
  7051. * @param {*} [options] Override http request option.
  7052. * @throws {RequiredError}
  7053. */
  7054. searchAssets: async (id?: string, libraryId?: string, type?: AssetTypeEnum, order?: AssetOrder, deviceAssetId?: string, deviceId?: string, checksum?: string, isArchived?: boolean, isEncoded?: boolean, isExternal?: boolean, isFavorite?: boolean, isMotion?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, withDeleted?: boolean, withStacked?: boolean, withExif?: boolean, withPeople?: boolean, createdBefore?: string, createdAfter?: string, updatedBefore?: string, updatedAfter?: string, trashedBefore?: string, trashedAfter?: string, takenBefore?: string, takenAfter?: string, originalFileName?: string, originalPath?: string, resizePath?: string, webpPath?: string, encodedVideoPath?: string, city?: string, state?: string, country?: string, make?: string, model?: string, lensModel?: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7055. const localVarPath = `/assets`;
  7056. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7057. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7058. let baseOptions;
  7059. if (configuration) {
  7060. baseOptions = configuration.baseOptions;
  7061. }
  7062. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7063. const localVarHeaderParameter = {} as any;
  7064. const localVarQueryParameter = {} as any;
  7065. // authentication cookie required
  7066. // authentication api_key required
  7067. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7068. // authentication bearer required
  7069. // http bearer authentication required
  7070. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7071. if (id !== undefined) {
  7072. localVarQueryParameter['id'] = id;
  7073. }
  7074. if (libraryId !== undefined) {
  7075. localVarQueryParameter['libraryId'] = libraryId;
  7076. }
  7077. if (type !== undefined) {
  7078. localVarQueryParameter['type'] = type;
  7079. }
  7080. if (order !== undefined) {
  7081. localVarQueryParameter['order'] = order;
  7082. }
  7083. if (deviceAssetId !== undefined) {
  7084. localVarQueryParameter['deviceAssetId'] = deviceAssetId;
  7085. }
  7086. if (deviceId !== undefined) {
  7087. localVarQueryParameter['deviceId'] = deviceId;
  7088. }
  7089. if (checksum !== undefined) {
  7090. localVarQueryParameter['checksum'] = checksum;
  7091. }
  7092. if (isArchived !== undefined) {
  7093. localVarQueryParameter['isArchived'] = isArchived;
  7094. }
  7095. if (isEncoded !== undefined) {
  7096. localVarQueryParameter['isEncoded'] = isEncoded;
  7097. }
  7098. if (isExternal !== undefined) {
  7099. localVarQueryParameter['isExternal'] = isExternal;
  7100. }
  7101. if (isFavorite !== undefined) {
  7102. localVarQueryParameter['isFavorite'] = isFavorite;
  7103. }
  7104. if (isMotion !== undefined) {
  7105. localVarQueryParameter['isMotion'] = isMotion;
  7106. }
  7107. if (isOffline !== undefined) {
  7108. localVarQueryParameter['isOffline'] = isOffline;
  7109. }
  7110. if (isReadOnly !== undefined) {
  7111. localVarQueryParameter['isReadOnly'] = isReadOnly;
  7112. }
  7113. if (isVisible !== undefined) {
  7114. localVarQueryParameter['isVisible'] = isVisible;
  7115. }
  7116. if (withDeleted !== undefined) {
  7117. localVarQueryParameter['withDeleted'] = withDeleted;
  7118. }
  7119. if (withStacked !== undefined) {
  7120. localVarQueryParameter['withStacked'] = withStacked;
  7121. }
  7122. if (withExif !== undefined) {
  7123. localVarQueryParameter['withExif'] = withExif;
  7124. }
  7125. if (withPeople !== undefined) {
  7126. localVarQueryParameter['withPeople'] = withPeople;
  7127. }
  7128. if (createdBefore !== undefined) {
  7129. localVarQueryParameter['createdBefore'] = (createdBefore as any instanceof Date) ?
  7130. (createdBefore as any).toISOString() :
  7131. createdBefore;
  7132. }
  7133. if (createdAfter !== undefined) {
  7134. localVarQueryParameter['createdAfter'] = (createdAfter as any instanceof Date) ?
  7135. (createdAfter as any).toISOString() :
  7136. createdAfter;
  7137. }
  7138. if (updatedBefore !== undefined) {
  7139. localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
  7140. (updatedBefore as any).toISOString() :
  7141. updatedBefore;
  7142. }
  7143. if (updatedAfter !== undefined) {
  7144. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  7145. (updatedAfter as any).toISOString() :
  7146. updatedAfter;
  7147. }
  7148. if (trashedBefore !== undefined) {
  7149. localVarQueryParameter['trashedBefore'] = (trashedBefore as any instanceof Date) ?
  7150. (trashedBefore as any).toISOString() :
  7151. trashedBefore;
  7152. }
  7153. if (trashedAfter !== undefined) {
  7154. localVarQueryParameter['trashedAfter'] = (trashedAfter as any instanceof Date) ?
  7155. (trashedAfter as any).toISOString() :
  7156. trashedAfter;
  7157. }
  7158. if (takenBefore !== undefined) {
  7159. localVarQueryParameter['takenBefore'] = (takenBefore as any instanceof Date) ?
  7160. (takenBefore as any).toISOString() :
  7161. takenBefore;
  7162. }
  7163. if (takenAfter !== undefined) {
  7164. localVarQueryParameter['takenAfter'] = (takenAfter as any instanceof Date) ?
  7165. (takenAfter as any).toISOString() :
  7166. takenAfter;
  7167. }
  7168. if (originalFileName !== undefined) {
  7169. localVarQueryParameter['originalFileName'] = originalFileName;
  7170. }
  7171. if (originalPath !== undefined) {
  7172. localVarQueryParameter['originalPath'] = originalPath;
  7173. }
  7174. if (resizePath !== undefined) {
  7175. localVarQueryParameter['resizePath'] = resizePath;
  7176. }
  7177. if (webpPath !== undefined) {
  7178. localVarQueryParameter['webpPath'] = webpPath;
  7179. }
  7180. if (encodedVideoPath !== undefined) {
  7181. localVarQueryParameter['encodedVideoPath'] = encodedVideoPath;
  7182. }
  7183. if (city !== undefined) {
  7184. localVarQueryParameter['city'] = city;
  7185. }
  7186. if (state !== undefined) {
  7187. localVarQueryParameter['state'] = state;
  7188. }
  7189. if (country !== undefined) {
  7190. localVarQueryParameter['country'] = country;
  7191. }
  7192. if (make !== undefined) {
  7193. localVarQueryParameter['make'] = make;
  7194. }
  7195. if (model !== undefined) {
  7196. localVarQueryParameter['model'] = model;
  7197. }
  7198. if (lensModel !== undefined) {
  7199. localVarQueryParameter['lensModel'] = lensModel;
  7200. }
  7201. if (page !== undefined) {
  7202. localVarQueryParameter['page'] = page;
  7203. }
  7204. if (size !== undefined) {
  7205. localVarQueryParameter['size'] = size;
  7206. }
  7207. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7208. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7209. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7210. return {
  7211. url: toPathString(localVarUrlObj),
  7212. options: localVarRequestOptions,
  7213. };
  7214. },
  7215. /**
  7216. *
  7217. * @param {string} id
  7218. * @param {boolean} [isThumb]
  7219. * @param {boolean} [isWeb]
  7220. * @param {string} [key]
  7221. * @param {*} [options] Override http request option.
  7222. * @throws {RequiredError}
  7223. */
  7224. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7225. // verify required parameter 'id' is not null or undefined
  7226. assertParamExists('serveFile', 'id', id)
  7227. const localVarPath = `/asset/file/{id}`
  7228. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7229. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7230. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7231. let baseOptions;
  7232. if (configuration) {
  7233. baseOptions = configuration.baseOptions;
  7234. }
  7235. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7236. const localVarHeaderParameter = {} as any;
  7237. const localVarQueryParameter = {} as any;
  7238. // authentication cookie required
  7239. // authentication api_key required
  7240. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7241. // authentication bearer required
  7242. // http bearer authentication required
  7243. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7244. if (isThumb !== undefined) {
  7245. localVarQueryParameter['isThumb'] = isThumb;
  7246. }
  7247. if (isWeb !== undefined) {
  7248. localVarQueryParameter['isWeb'] = isWeb;
  7249. }
  7250. if (key !== undefined) {
  7251. localVarQueryParameter['key'] = key;
  7252. }
  7253. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7254. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7255. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7256. return {
  7257. url: toPathString(localVarUrlObj),
  7258. options: localVarRequestOptions,
  7259. };
  7260. },
  7261. /**
  7262. *
  7263. * @param {string} id
  7264. * @param {UpdateAssetDto} updateAssetDto
  7265. * @param {*} [options] Override http request option.
  7266. * @throws {RequiredError}
  7267. */
  7268. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7269. // verify required parameter 'id' is not null or undefined
  7270. assertParamExists('updateAsset', 'id', id)
  7271. // verify required parameter 'updateAssetDto' is not null or undefined
  7272. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  7273. const localVarPath = `/asset/{id}`
  7274. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7275. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7276. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7277. let baseOptions;
  7278. if (configuration) {
  7279. baseOptions = configuration.baseOptions;
  7280. }
  7281. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7282. const localVarHeaderParameter = {} as any;
  7283. const localVarQueryParameter = {} as any;
  7284. // authentication cookie required
  7285. // authentication api_key required
  7286. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7287. // authentication bearer required
  7288. // http bearer authentication required
  7289. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7290. localVarHeaderParameter['Content-Type'] = 'application/json';
  7291. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7292. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7293. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7294. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  7295. return {
  7296. url: toPathString(localVarUrlObj),
  7297. options: localVarRequestOptions,
  7298. };
  7299. },
  7300. /**
  7301. *
  7302. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7303. * @param {*} [options] Override http request option.
  7304. * @throws {RequiredError}
  7305. */
  7306. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7307. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  7308. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  7309. const localVarPath = `/asset`;
  7310. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7311. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7312. let baseOptions;
  7313. if (configuration) {
  7314. baseOptions = configuration.baseOptions;
  7315. }
  7316. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7317. const localVarHeaderParameter = {} as any;
  7318. const localVarQueryParameter = {} as any;
  7319. // authentication cookie required
  7320. // authentication api_key required
  7321. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7322. // authentication bearer required
  7323. // http bearer authentication required
  7324. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7325. localVarHeaderParameter['Content-Type'] = 'application/json';
  7326. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7327. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7328. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7329. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  7330. return {
  7331. url: toPathString(localVarUrlObj),
  7332. options: localVarRequestOptions,
  7333. };
  7334. },
  7335. /**
  7336. *
  7337. * @param {UpdateStackParentDto} updateStackParentDto
  7338. * @param {*} [options] Override http request option.
  7339. * @throws {RequiredError}
  7340. */
  7341. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7342. // verify required parameter 'updateStackParentDto' is not null or undefined
  7343. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  7344. const localVarPath = `/asset/stack/parent`;
  7345. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7346. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7347. let baseOptions;
  7348. if (configuration) {
  7349. baseOptions = configuration.baseOptions;
  7350. }
  7351. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7352. const localVarHeaderParameter = {} as any;
  7353. const localVarQueryParameter = {} as any;
  7354. // authentication cookie required
  7355. // authentication api_key required
  7356. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7357. // authentication bearer required
  7358. // http bearer authentication required
  7359. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7360. localVarHeaderParameter['Content-Type'] = 'application/json';
  7361. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7362. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7363. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7364. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  7365. return {
  7366. url: toPathString(localVarUrlObj),
  7367. options: localVarRequestOptions,
  7368. };
  7369. },
  7370. /**
  7371. *
  7372. * @param {File} assetData
  7373. * @param {string} deviceAssetId
  7374. * @param {string} deviceId
  7375. * @param {string} fileCreatedAt
  7376. * @param {string} fileModifiedAt
  7377. * @param {string} [key]
  7378. * @param {string} [duration]
  7379. * @param {boolean} [isArchived]
  7380. * @param {boolean} [isExternal]
  7381. * @param {boolean} [isFavorite]
  7382. * @param {boolean} [isOffline]
  7383. * @param {boolean} [isReadOnly]
  7384. * @param {boolean} [isVisible]
  7385. * @param {string} [libraryId]
  7386. * @param {File} [livePhotoData]
  7387. * @param {File} [sidecarData]
  7388. * @param {*} [options] Override http request option.
  7389. * @throws {RequiredError}
  7390. */
  7391. 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> => {
  7392. // verify required parameter 'assetData' is not null or undefined
  7393. assertParamExists('uploadFile', 'assetData', assetData)
  7394. // verify required parameter 'deviceAssetId' is not null or undefined
  7395. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  7396. // verify required parameter 'deviceId' is not null or undefined
  7397. assertParamExists('uploadFile', 'deviceId', deviceId)
  7398. // verify required parameter 'fileCreatedAt' is not null or undefined
  7399. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  7400. // verify required parameter 'fileModifiedAt' is not null or undefined
  7401. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  7402. const localVarPath = `/asset/upload`;
  7403. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7404. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7405. let baseOptions;
  7406. if (configuration) {
  7407. baseOptions = configuration.baseOptions;
  7408. }
  7409. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7410. const localVarHeaderParameter = {} as any;
  7411. const localVarQueryParameter = {} as any;
  7412. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  7413. // authentication cookie required
  7414. // authentication api_key required
  7415. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7416. // authentication bearer required
  7417. // http bearer authentication required
  7418. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7419. if (key !== undefined) {
  7420. localVarQueryParameter['key'] = key;
  7421. }
  7422. if (assetData !== undefined) {
  7423. localVarFormParams.append('assetData', assetData as any);
  7424. }
  7425. if (deviceAssetId !== undefined) {
  7426. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  7427. }
  7428. if (deviceId !== undefined) {
  7429. localVarFormParams.append('deviceId', deviceId as any);
  7430. }
  7431. if (duration !== undefined) {
  7432. localVarFormParams.append('duration', duration as any);
  7433. }
  7434. if (fileCreatedAt !== undefined) {
  7435. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  7436. }
  7437. if (fileModifiedAt !== undefined) {
  7438. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  7439. }
  7440. if (isArchived !== undefined) {
  7441. localVarFormParams.append('isArchived', isArchived as any);
  7442. }
  7443. if (isExternal !== undefined) {
  7444. localVarFormParams.append('isExternal', isExternal as any);
  7445. }
  7446. if (isFavorite !== undefined) {
  7447. localVarFormParams.append('isFavorite', isFavorite as any);
  7448. }
  7449. if (isOffline !== undefined) {
  7450. localVarFormParams.append('isOffline', isOffline as any);
  7451. }
  7452. if (isReadOnly !== undefined) {
  7453. localVarFormParams.append('isReadOnly', isReadOnly as any);
  7454. }
  7455. if (isVisible !== undefined) {
  7456. localVarFormParams.append('isVisible', isVisible as any);
  7457. }
  7458. if (libraryId !== undefined) {
  7459. localVarFormParams.append('libraryId', libraryId as any);
  7460. }
  7461. if (livePhotoData !== undefined) {
  7462. localVarFormParams.append('livePhotoData', livePhotoData as any);
  7463. }
  7464. if (sidecarData !== undefined) {
  7465. localVarFormParams.append('sidecarData', sidecarData as any);
  7466. }
  7467. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  7468. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7469. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7470. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7471. localVarRequestOptions.data = localVarFormParams;
  7472. return {
  7473. url: toPathString(localVarUrlObj),
  7474. options: localVarRequestOptions,
  7475. };
  7476. },
  7477. }
  7478. };
  7479. /**
  7480. * AssetApi - functional programming interface
  7481. * @export
  7482. */
  7483. export const AssetApiFp = function(configuration?: Configuration) {
  7484. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  7485. return {
  7486. /**
  7487. * Checks if assets exist by checksums
  7488. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  7489. * @param {*} [options] Override http request option.
  7490. * @throws {RequiredError}
  7491. */
  7492. async checkBulkUpload(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  7493. const localVarAxiosArgs = await localVarAxiosParamCreator.checkBulkUpload(assetBulkUploadCheckDto, options);
  7494. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7495. },
  7496. /**
  7497. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7498. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  7499. * @param {*} [options] Override http request option.
  7500. * @throws {RequiredError}
  7501. */
  7502. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  7503. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  7504. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7505. },
  7506. /**
  7507. *
  7508. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  7509. * @param {*} [options] Override http request option.
  7510. * @throws {RequiredError}
  7511. */
  7512. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7513. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  7514. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7515. },
  7516. /**
  7517. *
  7518. * @param {AssetIdsDto} assetIdsDto
  7519. * @param {string} [key]
  7520. * @param {*} [options] Override http request option.
  7521. * @throws {RequiredError}
  7522. */
  7523. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7524. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  7525. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7526. },
  7527. /**
  7528. *
  7529. * @param {string} id
  7530. * @param {string} [key]
  7531. * @param {*} [options] Override http request option.
  7532. * @throws {RequiredError}
  7533. */
  7534. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7535. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  7536. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7537. },
  7538. /**
  7539. *
  7540. * @param {*} [options] Override http request option.
  7541. * @throws {RequiredError}
  7542. */
  7543. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7544. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  7545. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7546. },
  7547. /**
  7548. * Get all AssetEntity belong to the user
  7549. * @param {number} [skip]
  7550. * @param {number} [take]
  7551. * @param {string} [userId]
  7552. * @param {boolean} [isFavorite]
  7553. * @param {boolean} [isArchived]
  7554. * @param {string} [updatedAfter]
  7555. * @param {string} [updatedBefore]
  7556. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  7557. * @param {*} [options] Override http request option.
  7558. * @throws {RequiredError}
  7559. */
  7560. 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>>> {
  7561. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(skip, take, userId, isFavorite, isArchived, updatedAfter, updatedBefore, ifNoneMatch, options);
  7562. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7563. },
  7564. /**
  7565. * Get a single asset\'s information
  7566. * @param {string} id
  7567. * @param {string} [key]
  7568. * @param {*} [options] Override http request option.
  7569. * @throws {RequiredError}
  7570. */
  7571. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7572. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  7573. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7574. },
  7575. /**
  7576. *
  7577. * @param {*} [options] Override http request option.
  7578. * @throws {RequiredError}
  7579. */
  7580. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7581. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  7582. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7583. },
  7584. /**
  7585. *
  7586. * @param {boolean} [isArchived]
  7587. * @param {boolean} [isFavorite]
  7588. * @param {boolean} [isTrashed]
  7589. * @param {*} [options] Override http request option.
  7590. * @throws {RequiredError}
  7591. */
  7592. async getAssetStatistics(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  7593. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStatistics(isArchived, isFavorite, isTrashed, options);
  7594. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7595. },
  7596. /**
  7597. *
  7598. * @param {string} id
  7599. * @param {ThumbnailFormat} [format]
  7600. * @param {string} [key]
  7601. * @param {*} [options] Override http request option.
  7602. * @throws {RequiredError}
  7603. */
  7604. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7605. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  7606. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7607. },
  7608. /**
  7609. *
  7610. * @param {*} [options] Override http request option.
  7611. * @throws {RequiredError}
  7612. */
  7613. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  7614. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  7615. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7616. },
  7617. /**
  7618. *
  7619. * @param {*} [options] Override http request option.
  7620. * @throws {RequiredError}
  7621. */
  7622. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  7623. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  7624. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7625. },
  7626. /**
  7627. *
  7628. * @param {DownloadInfoDto} downloadInfoDto
  7629. * @param {string} [key]
  7630. * @param {*} [options] Override http request option.
  7631. * @throws {RequiredError}
  7632. */
  7633. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  7634. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  7635. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7636. },
  7637. /**
  7638. *
  7639. * @param {boolean} [isArchived]
  7640. * @param {boolean} [isFavorite]
  7641. * @param {string} [fileCreatedAfter]
  7642. * @param {string} [fileCreatedBefore]
  7643. * @param {*} [options] Override http request option.
  7644. * @throws {RequiredError}
  7645. */
  7646. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  7647. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  7648. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7649. },
  7650. /**
  7651. *
  7652. * @param {number} day
  7653. * @param {number} month
  7654. * @param {*} [options] Override http request option.
  7655. * @throws {RequiredError}
  7656. */
  7657. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  7658. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  7659. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7660. },
  7661. /**
  7662. *
  7663. * @param {number} [count]
  7664. * @param {*} [options] Override http request option.
  7665. * @throws {RequiredError}
  7666. */
  7667. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7668. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  7669. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7670. },
  7671. /**
  7672. *
  7673. * @param {TimeBucketSize} size
  7674. * @param {string} timeBucket
  7675. * @param {string} [userId]
  7676. * @param {string} [albumId]
  7677. * @param {string} [personId]
  7678. * @param {boolean} [isArchived]
  7679. * @param {boolean} [isFavorite]
  7680. * @param {boolean} [isTrashed]
  7681. * @param {boolean} [withStacked]
  7682. * @param {boolean} [withPartners]
  7683. * @param {string} [key]
  7684. * @param {*} [options] Override http request option.
  7685. * @throws {RequiredError}
  7686. */
  7687. async getTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7688. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
  7689. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7690. },
  7691. /**
  7692. *
  7693. * @param {TimeBucketSize} size
  7694. * @param {string} [userId]
  7695. * @param {string} [albumId]
  7696. * @param {string} [personId]
  7697. * @param {boolean} [isArchived]
  7698. * @param {boolean} [isFavorite]
  7699. * @param {boolean} [isTrashed]
  7700. * @param {boolean} [withStacked]
  7701. * @param {boolean} [withPartners]
  7702. * @param {string} [key]
  7703. * @param {*} [options] Override http request option.
  7704. * @throws {RequiredError}
  7705. */
  7706. async getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
  7707. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
  7708. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7709. },
  7710. /**
  7711. * Get all asset of a device that are in the database, ID only.
  7712. * @param {string} deviceId
  7713. * @param {*} [options] Override http request option.
  7714. * @throws {RequiredError}
  7715. */
  7716. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7717. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  7718. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7719. },
  7720. /**
  7721. *
  7722. * @param {BulkIdsDto} bulkIdsDto
  7723. * @param {*} [options] Override http request option.
  7724. * @throws {RequiredError}
  7725. */
  7726. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7727. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  7728. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7729. },
  7730. /**
  7731. *
  7732. * @param {*} [options] Override http request option.
  7733. * @throws {RequiredError}
  7734. */
  7735. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7736. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7737. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7738. },
  7739. /**
  7740. *
  7741. * @param {AssetJobsDto} assetJobsDto
  7742. * @param {*} [options] Override http request option.
  7743. * @throws {RequiredError}
  7744. */
  7745. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7746. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7747. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7748. },
  7749. /**
  7750. *
  7751. * @param {string} [id]
  7752. * @param {string} [libraryId]
  7753. * @param {AssetTypeEnum} [type]
  7754. * @param {AssetOrder} [order]
  7755. * @param {string} [deviceAssetId]
  7756. * @param {string} [deviceId]
  7757. * @param {string} [checksum]
  7758. * @param {boolean} [isArchived]
  7759. * @param {boolean} [isEncoded]
  7760. * @param {boolean} [isExternal]
  7761. * @param {boolean} [isFavorite]
  7762. * @param {boolean} [isMotion]
  7763. * @param {boolean} [isOffline]
  7764. * @param {boolean} [isReadOnly]
  7765. * @param {boolean} [isVisible]
  7766. * @param {boolean} [withDeleted]
  7767. * @param {boolean} [withStacked]
  7768. * @param {boolean} [withExif]
  7769. * @param {boolean} [withPeople]
  7770. * @param {string} [createdBefore]
  7771. * @param {string} [createdAfter]
  7772. * @param {string} [updatedBefore]
  7773. * @param {string} [updatedAfter]
  7774. * @param {string} [trashedBefore]
  7775. * @param {string} [trashedAfter]
  7776. * @param {string} [takenBefore]
  7777. * @param {string} [takenAfter]
  7778. * @param {string} [originalFileName]
  7779. * @param {string} [originalPath]
  7780. * @param {string} [resizePath]
  7781. * @param {string} [webpPath]
  7782. * @param {string} [encodedVideoPath]
  7783. * @param {string} [city]
  7784. * @param {string} [state]
  7785. * @param {string} [country]
  7786. * @param {string} [make]
  7787. * @param {string} [model]
  7788. * @param {string} [lensModel]
  7789. * @param {number} [page]
  7790. * @param {number} [size]
  7791. * @param {*} [options] Override http request option.
  7792. * @throws {RequiredError}
  7793. */
  7794. async searchAssets(id?: string, libraryId?: string, type?: AssetTypeEnum, order?: AssetOrder, deviceAssetId?: string, deviceId?: string, checksum?: string, isArchived?: boolean, isEncoded?: boolean, isExternal?: boolean, isFavorite?: boolean, isMotion?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, withDeleted?: boolean, withStacked?: boolean, withExif?: boolean, withPeople?: boolean, createdBefore?: string, createdAfter?: string, updatedBefore?: string, updatedAfter?: string, trashedBefore?: string, trashedAfter?: string, takenBefore?: string, takenAfter?: string, originalFileName?: string, originalPath?: string, resizePath?: string, webpPath?: string, encodedVideoPath?: string, city?: string, state?: string, country?: string, make?: string, model?: string, lensModel?: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7795. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAssets(id, libraryId, type, order, deviceAssetId, deviceId, checksum, isArchived, isEncoded, isExternal, isFavorite, isMotion, isOffline, isReadOnly, isVisible, withDeleted, withStacked, withExif, withPeople, createdBefore, createdAfter, updatedBefore, updatedAfter, trashedBefore, trashedAfter, takenBefore, takenAfter, originalFileName, originalPath, resizePath, webpPath, encodedVideoPath, city, state, country, make, model, lensModel, page, size, options);
  7796. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7797. },
  7798. /**
  7799. *
  7800. * @param {string} id
  7801. * @param {boolean} [isThumb]
  7802. * @param {boolean} [isWeb]
  7803. * @param {string} [key]
  7804. * @param {*} [options] Override http request option.
  7805. * @throws {RequiredError}
  7806. */
  7807. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7808. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7809. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7810. },
  7811. /**
  7812. *
  7813. * @param {string} id
  7814. * @param {UpdateAssetDto} updateAssetDto
  7815. * @param {*} [options] Override http request option.
  7816. * @throws {RequiredError}
  7817. */
  7818. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7819. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7820. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7821. },
  7822. /**
  7823. *
  7824. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7825. * @param {*} [options] Override http request option.
  7826. * @throws {RequiredError}
  7827. */
  7828. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7829. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7830. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7831. },
  7832. /**
  7833. *
  7834. * @param {UpdateStackParentDto} updateStackParentDto
  7835. * @param {*} [options] Override http request option.
  7836. * @throws {RequiredError}
  7837. */
  7838. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7839. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7840. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7841. },
  7842. /**
  7843. *
  7844. * @param {File} assetData
  7845. * @param {string} deviceAssetId
  7846. * @param {string} deviceId
  7847. * @param {string} fileCreatedAt
  7848. * @param {string} fileModifiedAt
  7849. * @param {string} [key]
  7850. * @param {string} [duration]
  7851. * @param {boolean} [isArchived]
  7852. * @param {boolean} [isExternal]
  7853. * @param {boolean} [isFavorite]
  7854. * @param {boolean} [isOffline]
  7855. * @param {boolean} [isReadOnly]
  7856. * @param {boolean} [isVisible]
  7857. * @param {string} [libraryId]
  7858. * @param {File} [livePhotoData]
  7859. * @param {File} [sidecarData]
  7860. * @param {*} [options] Override http request option.
  7861. * @throws {RequiredError}
  7862. */
  7863. 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>> {
  7864. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, key, duration, isArchived, isExternal, isFavorite, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7865. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7866. },
  7867. }
  7868. };
  7869. /**
  7870. * AssetApi - factory interface
  7871. * @export
  7872. */
  7873. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7874. const localVarFp = AssetApiFp(configuration)
  7875. return {
  7876. /**
  7877. * Checks if assets exist by checksums
  7878. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  7879. * @param {*} [options] Override http request option.
  7880. * @throws {RequiredError}
  7881. */
  7882. checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7883. return localVarFp.checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7884. },
  7885. /**
  7886. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7887. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7888. * @param {*} [options] Override http request option.
  7889. * @throws {RequiredError}
  7890. */
  7891. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7892. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7893. },
  7894. /**
  7895. *
  7896. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7897. * @param {*} [options] Override http request option.
  7898. * @throws {RequiredError}
  7899. */
  7900. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7901. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7902. },
  7903. /**
  7904. *
  7905. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7906. * @param {*} [options] Override http request option.
  7907. * @throws {RequiredError}
  7908. */
  7909. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7910. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7911. },
  7912. /**
  7913. *
  7914. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7915. * @param {*} [options] Override http request option.
  7916. * @throws {RequiredError}
  7917. */
  7918. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7919. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7920. },
  7921. /**
  7922. *
  7923. * @param {*} [options] Override http request option.
  7924. * @throws {RequiredError}
  7925. */
  7926. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7927. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7928. },
  7929. /**
  7930. * Get all AssetEntity belong to the user
  7931. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7932. * @param {*} [options] Override http request option.
  7933. * @throws {RequiredError}
  7934. */
  7935. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7936. 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));
  7937. },
  7938. /**
  7939. * Get a single asset\'s information
  7940. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7941. * @param {*} [options] Override http request option.
  7942. * @throws {RequiredError}
  7943. */
  7944. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7945. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7946. },
  7947. /**
  7948. *
  7949. * @param {*} [options] Override http request option.
  7950. * @throws {RequiredError}
  7951. */
  7952. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7953. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7954. },
  7955. /**
  7956. *
  7957. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  7958. * @param {*} [options] Override http request option.
  7959. * @throws {RequiredError}
  7960. */
  7961. getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7962. return localVarFp.getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7963. },
  7964. /**
  7965. *
  7966. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7967. * @param {*} [options] Override http request option.
  7968. * @throws {RequiredError}
  7969. */
  7970. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7971. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7972. },
  7973. /**
  7974. *
  7975. * @param {*} [options] Override http request option.
  7976. * @throws {RequiredError}
  7977. */
  7978. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7979. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7980. },
  7981. /**
  7982. *
  7983. * @param {*} [options] Override http request option.
  7984. * @throws {RequiredError}
  7985. */
  7986. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7987. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7988. },
  7989. /**
  7990. *
  7991. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7992. * @param {*} [options] Override http request option.
  7993. * @throws {RequiredError}
  7994. */
  7995. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7996. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7997. },
  7998. /**
  7999. *
  8000. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8001. * @param {*} [options] Override http request option.
  8002. * @throws {RequiredError}
  8003. */
  8004. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  8005. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  8006. },
  8007. /**
  8008. *
  8009. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8010. * @param {*} [options] Override http request option.
  8011. * @throws {RequiredError}
  8012. */
  8013. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  8014. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  8015. },
  8016. /**
  8017. *
  8018. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8019. * @param {*} [options] Override http request option.
  8020. * @throws {RequiredError}
  8021. */
  8022. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8023. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  8024. },
  8025. /**
  8026. *
  8027. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  8028. * @param {*} [options] Override http request option.
  8029. * @throws {RequiredError}
  8030. */
  8031. getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8032. return localVarFp.getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(axios, basePath));
  8033. },
  8034. /**
  8035. *
  8036. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8037. * @param {*} [options] Override http request option.
  8038. * @throws {RequiredError}
  8039. */
  8040. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  8041. return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(axios, basePath));
  8042. },
  8043. /**
  8044. * Get all asset of a device that are in the database, ID only.
  8045. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8046. * @param {*} [options] Override http request option.
  8047. * @throws {RequiredError}
  8048. */
  8049. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  8050. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  8051. },
  8052. /**
  8053. *
  8054. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8055. * @param {*} [options] Override http request option.
  8056. * @throws {RequiredError}
  8057. */
  8058. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8059. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  8060. },
  8061. /**
  8062. *
  8063. * @param {*} [options] Override http request option.
  8064. * @throws {RequiredError}
  8065. */
  8066. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  8067. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  8068. },
  8069. /**
  8070. *
  8071. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8072. * @param {*} [options] Override http request option.
  8073. * @throws {RequiredError}
  8074. */
  8075. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8076. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  8077. },
  8078. /**
  8079. *
  8080. * @param {AssetApiSearchAssetsRequest} requestParameters Request parameters.
  8081. * @param {*} [options] Override http request option.
  8082. * @throws {RequiredError}
  8083. */
  8084. searchAssets(requestParameters: AssetApiSearchAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8085. return localVarFp.searchAssets(requestParameters.id, requestParameters.libraryId, requestParameters.type, requestParameters.order, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.checksum, requestParameters.isArchived, requestParameters.isEncoded, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isMotion, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.withDeleted, requestParameters.withStacked, requestParameters.withExif, requestParameters.withPeople, requestParameters.createdBefore, requestParameters.createdAfter, requestParameters.updatedBefore, requestParameters.updatedAfter, requestParameters.trashedBefore, requestParameters.trashedAfter, requestParameters.takenBefore, requestParameters.takenAfter, requestParameters.originalFileName, requestParameters.originalPath, requestParameters.resizePath, requestParameters.webpPath, requestParameters.encodedVideoPath, requestParameters.city, requestParameters.state, requestParameters.country, requestParameters.make, requestParameters.model, requestParameters.lensModel, requestParameters.page, requestParameters.size, options).then((request) => request(axios, basePath));
  8086. },
  8087. /**
  8088. *
  8089. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8090. * @param {*} [options] Override http request option.
  8091. * @throws {RequiredError}
  8092. */
  8093. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  8094. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  8095. },
  8096. /**
  8097. *
  8098. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8099. * @param {*} [options] Override http request option.
  8100. * @throws {RequiredError}
  8101. */
  8102. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  8103. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  8104. },
  8105. /**
  8106. *
  8107. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8108. * @param {*} [options] Override http request option.
  8109. * @throws {RequiredError}
  8110. */
  8111. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8112. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  8113. },
  8114. /**
  8115. *
  8116. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8117. * @param {*} [options] Override http request option.
  8118. * @throws {RequiredError}
  8119. */
  8120. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8121. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  8122. },
  8123. /**
  8124. *
  8125. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8126. * @param {*} [options] Override http request option.
  8127. * @throws {RequiredError}
  8128. */
  8129. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  8130. 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));
  8131. },
  8132. };
  8133. };
  8134. /**
  8135. * Request parameters for checkBulkUpload operation in AssetApi.
  8136. * @export
  8137. * @interface AssetApiCheckBulkUploadRequest
  8138. */
  8139. export interface AssetApiCheckBulkUploadRequest {
  8140. /**
  8141. *
  8142. * @type {AssetBulkUploadCheckDto}
  8143. * @memberof AssetApiCheckBulkUpload
  8144. */
  8145. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  8146. }
  8147. /**
  8148. * Request parameters for checkExistingAssets operation in AssetApi.
  8149. * @export
  8150. * @interface AssetApiCheckExistingAssetsRequest
  8151. */
  8152. export interface AssetApiCheckExistingAssetsRequest {
  8153. /**
  8154. *
  8155. * @type {CheckExistingAssetsDto}
  8156. * @memberof AssetApiCheckExistingAssets
  8157. */
  8158. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  8159. }
  8160. /**
  8161. * Request parameters for deleteAssets operation in AssetApi.
  8162. * @export
  8163. * @interface AssetApiDeleteAssetsRequest
  8164. */
  8165. export interface AssetApiDeleteAssetsRequest {
  8166. /**
  8167. *
  8168. * @type {AssetBulkDeleteDto}
  8169. * @memberof AssetApiDeleteAssets
  8170. */
  8171. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  8172. }
  8173. /**
  8174. * Request parameters for downloadArchive operation in AssetApi.
  8175. * @export
  8176. * @interface AssetApiDownloadArchiveRequest
  8177. */
  8178. export interface AssetApiDownloadArchiveRequest {
  8179. /**
  8180. *
  8181. * @type {AssetIdsDto}
  8182. * @memberof AssetApiDownloadArchive
  8183. */
  8184. readonly assetIdsDto: AssetIdsDto
  8185. /**
  8186. *
  8187. * @type {string}
  8188. * @memberof AssetApiDownloadArchive
  8189. */
  8190. readonly key?: string
  8191. }
  8192. /**
  8193. * Request parameters for downloadFile operation in AssetApi.
  8194. * @export
  8195. * @interface AssetApiDownloadFileRequest
  8196. */
  8197. export interface AssetApiDownloadFileRequest {
  8198. /**
  8199. *
  8200. * @type {string}
  8201. * @memberof AssetApiDownloadFile
  8202. */
  8203. readonly id: string
  8204. /**
  8205. *
  8206. * @type {string}
  8207. * @memberof AssetApiDownloadFile
  8208. */
  8209. readonly key?: string
  8210. }
  8211. /**
  8212. * Request parameters for getAllAssets operation in AssetApi.
  8213. * @export
  8214. * @interface AssetApiGetAllAssetsRequest
  8215. */
  8216. export interface AssetApiGetAllAssetsRequest {
  8217. /**
  8218. *
  8219. * @type {number}
  8220. * @memberof AssetApiGetAllAssets
  8221. */
  8222. readonly skip?: number
  8223. /**
  8224. *
  8225. * @type {number}
  8226. * @memberof AssetApiGetAllAssets
  8227. */
  8228. readonly take?: number
  8229. /**
  8230. *
  8231. * @type {string}
  8232. * @memberof AssetApiGetAllAssets
  8233. */
  8234. readonly userId?: string
  8235. /**
  8236. *
  8237. * @type {boolean}
  8238. * @memberof AssetApiGetAllAssets
  8239. */
  8240. readonly isFavorite?: boolean
  8241. /**
  8242. *
  8243. * @type {boolean}
  8244. * @memberof AssetApiGetAllAssets
  8245. */
  8246. readonly isArchived?: boolean
  8247. /**
  8248. *
  8249. * @type {string}
  8250. * @memberof AssetApiGetAllAssets
  8251. */
  8252. readonly updatedAfter?: string
  8253. /**
  8254. *
  8255. * @type {string}
  8256. * @memberof AssetApiGetAllAssets
  8257. */
  8258. readonly updatedBefore?: string
  8259. /**
  8260. * ETag of data already cached on the client
  8261. * @type {string}
  8262. * @memberof AssetApiGetAllAssets
  8263. */
  8264. readonly ifNoneMatch?: string
  8265. }
  8266. /**
  8267. * Request parameters for getAssetById operation in AssetApi.
  8268. * @export
  8269. * @interface AssetApiGetAssetByIdRequest
  8270. */
  8271. export interface AssetApiGetAssetByIdRequest {
  8272. /**
  8273. *
  8274. * @type {string}
  8275. * @memberof AssetApiGetAssetById
  8276. */
  8277. readonly id: string
  8278. /**
  8279. *
  8280. * @type {string}
  8281. * @memberof AssetApiGetAssetById
  8282. */
  8283. readonly key?: string
  8284. }
  8285. /**
  8286. * Request parameters for getAssetStatistics operation in AssetApi.
  8287. * @export
  8288. * @interface AssetApiGetAssetStatisticsRequest
  8289. */
  8290. export interface AssetApiGetAssetStatisticsRequest {
  8291. /**
  8292. *
  8293. * @type {boolean}
  8294. * @memberof AssetApiGetAssetStatistics
  8295. */
  8296. readonly isArchived?: boolean
  8297. /**
  8298. *
  8299. * @type {boolean}
  8300. * @memberof AssetApiGetAssetStatistics
  8301. */
  8302. readonly isFavorite?: boolean
  8303. /**
  8304. *
  8305. * @type {boolean}
  8306. * @memberof AssetApiGetAssetStatistics
  8307. */
  8308. readonly isTrashed?: boolean
  8309. }
  8310. /**
  8311. * Request parameters for getAssetThumbnail operation in AssetApi.
  8312. * @export
  8313. * @interface AssetApiGetAssetThumbnailRequest
  8314. */
  8315. export interface AssetApiGetAssetThumbnailRequest {
  8316. /**
  8317. *
  8318. * @type {string}
  8319. * @memberof AssetApiGetAssetThumbnail
  8320. */
  8321. readonly id: string
  8322. /**
  8323. *
  8324. * @type {ThumbnailFormat}
  8325. * @memberof AssetApiGetAssetThumbnail
  8326. */
  8327. readonly format?: ThumbnailFormat
  8328. /**
  8329. *
  8330. * @type {string}
  8331. * @memberof AssetApiGetAssetThumbnail
  8332. */
  8333. readonly key?: string
  8334. }
  8335. /**
  8336. * Request parameters for getDownloadInfo operation in AssetApi.
  8337. * @export
  8338. * @interface AssetApiGetDownloadInfoRequest
  8339. */
  8340. export interface AssetApiGetDownloadInfoRequest {
  8341. /**
  8342. *
  8343. * @type {DownloadInfoDto}
  8344. * @memberof AssetApiGetDownloadInfo
  8345. */
  8346. readonly downloadInfoDto: DownloadInfoDto
  8347. /**
  8348. *
  8349. * @type {string}
  8350. * @memberof AssetApiGetDownloadInfo
  8351. */
  8352. readonly key?: string
  8353. }
  8354. /**
  8355. * Request parameters for getMapMarkers operation in AssetApi.
  8356. * @export
  8357. * @interface AssetApiGetMapMarkersRequest
  8358. */
  8359. export interface AssetApiGetMapMarkersRequest {
  8360. /**
  8361. *
  8362. * @type {boolean}
  8363. * @memberof AssetApiGetMapMarkers
  8364. */
  8365. readonly isArchived?: boolean
  8366. /**
  8367. *
  8368. * @type {boolean}
  8369. * @memberof AssetApiGetMapMarkers
  8370. */
  8371. readonly isFavorite?: boolean
  8372. /**
  8373. *
  8374. * @type {string}
  8375. * @memberof AssetApiGetMapMarkers
  8376. */
  8377. readonly fileCreatedAfter?: string
  8378. /**
  8379. *
  8380. * @type {string}
  8381. * @memberof AssetApiGetMapMarkers
  8382. */
  8383. readonly fileCreatedBefore?: string
  8384. }
  8385. /**
  8386. * Request parameters for getMemoryLane operation in AssetApi.
  8387. * @export
  8388. * @interface AssetApiGetMemoryLaneRequest
  8389. */
  8390. export interface AssetApiGetMemoryLaneRequest {
  8391. /**
  8392. *
  8393. * @type {number}
  8394. * @memberof AssetApiGetMemoryLane
  8395. */
  8396. readonly day: number
  8397. /**
  8398. *
  8399. * @type {number}
  8400. * @memberof AssetApiGetMemoryLane
  8401. */
  8402. readonly month: number
  8403. }
  8404. /**
  8405. * Request parameters for getRandom operation in AssetApi.
  8406. * @export
  8407. * @interface AssetApiGetRandomRequest
  8408. */
  8409. export interface AssetApiGetRandomRequest {
  8410. /**
  8411. *
  8412. * @type {number}
  8413. * @memberof AssetApiGetRandom
  8414. */
  8415. readonly count?: number
  8416. }
  8417. /**
  8418. * Request parameters for getTimeBucket operation in AssetApi.
  8419. * @export
  8420. * @interface AssetApiGetTimeBucketRequest
  8421. */
  8422. export interface AssetApiGetTimeBucketRequest {
  8423. /**
  8424. *
  8425. * @type {TimeBucketSize}
  8426. * @memberof AssetApiGetTimeBucket
  8427. */
  8428. readonly size: TimeBucketSize
  8429. /**
  8430. *
  8431. * @type {string}
  8432. * @memberof AssetApiGetTimeBucket
  8433. */
  8434. readonly timeBucket: string
  8435. /**
  8436. *
  8437. * @type {string}
  8438. * @memberof AssetApiGetTimeBucket
  8439. */
  8440. readonly userId?: string
  8441. /**
  8442. *
  8443. * @type {string}
  8444. * @memberof AssetApiGetTimeBucket
  8445. */
  8446. readonly albumId?: string
  8447. /**
  8448. *
  8449. * @type {string}
  8450. * @memberof AssetApiGetTimeBucket
  8451. */
  8452. readonly personId?: string
  8453. /**
  8454. *
  8455. * @type {boolean}
  8456. * @memberof AssetApiGetTimeBucket
  8457. */
  8458. readonly isArchived?: boolean
  8459. /**
  8460. *
  8461. * @type {boolean}
  8462. * @memberof AssetApiGetTimeBucket
  8463. */
  8464. readonly isFavorite?: boolean
  8465. /**
  8466. *
  8467. * @type {boolean}
  8468. * @memberof AssetApiGetTimeBucket
  8469. */
  8470. readonly isTrashed?: boolean
  8471. /**
  8472. *
  8473. * @type {boolean}
  8474. * @memberof AssetApiGetTimeBucket
  8475. */
  8476. readonly withStacked?: boolean
  8477. /**
  8478. *
  8479. * @type {boolean}
  8480. * @memberof AssetApiGetTimeBucket
  8481. */
  8482. readonly withPartners?: boolean
  8483. /**
  8484. *
  8485. * @type {string}
  8486. * @memberof AssetApiGetTimeBucket
  8487. */
  8488. readonly key?: string
  8489. }
  8490. /**
  8491. * Request parameters for getTimeBuckets operation in AssetApi.
  8492. * @export
  8493. * @interface AssetApiGetTimeBucketsRequest
  8494. */
  8495. export interface AssetApiGetTimeBucketsRequest {
  8496. /**
  8497. *
  8498. * @type {TimeBucketSize}
  8499. * @memberof AssetApiGetTimeBuckets
  8500. */
  8501. readonly size: TimeBucketSize
  8502. /**
  8503. *
  8504. * @type {string}
  8505. * @memberof AssetApiGetTimeBuckets
  8506. */
  8507. readonly userId?: string
  8508. /**
  8509. *
  8510. * @type {string}
  8511. * @memberof AssetApiGetTimeBuckets
  8512. */
  8513. readonly albumId?: string
  8514. /**
  8515. *
  8516. * @type {string}
  8517. * @memberof AssetApiGetTimeBuckets
  8518. */
  8519. readonly personId?: string
  8520. /**
  8521. *
  8522. * @type {boolean}
  8523. * @memberof AssetApiGetTimeBuckets
  8524. */
  8525. readonly isArchived?: boolean
  8526. /**
  8527. *
  8528. * @type {boolean}
  8529. * @memberof AssetApiGetTimeBuckets
  8530. */
  8531. readonly isFavorite?: boolean
  8532. /**
  8533. *
  8534. * @type {boolean}
  8535. * @memberof AssetApiGetTimeBuckets
  8536. */
  8537. readonly isTrashed?: boolean
  8538. /**
  8539. *
  8540. * @type {boolean}
  8541. * @memberof AssetApiGetTimeBuckets
  8542. */
  8543. readonly withStacked?: boolean
  8544. /**
  8545. *
  8546. * @type {boolean}
  8547. * @memberof AssetApiGetTimeBuckets
  8548. */
  8549. readonly withPartners?: boolean
  8550. /**
  8551. *
  8552. * @type {string}
  8553. * @memberof AssetApiGetTimeBuckets
  8554. */
  8555. readonly key?: string
  8556. }
  8557. /**
  8558. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  8559. * @export
  8560. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  8561. */
  8562. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  8563. /**
  8564. *
  8565. * @type {string}
  8566. * @memberof AssetApiGetUserAssetsByDeviceId
  8567. */
  8568. readonly deviceId: string
  8569. }
  8570. /**
  8571. * Request parameters for restoreAssets operation in AssetApi.
  8572. * @export
  8573. * @interface AssetApiRestoreAssetsRequest
  8574. */
  8575. export interface AssetApiRestoreAssetsRequest {
  8576. /**
  8577. *
  8578. * @type {BulkIdsDto}
  8579. * @memberof AssetApiRestoreAssets
  8580. */
  8581. readonly bulkIdsDto: BulkIdsDto
  8582. }
  8583. /**
  8584. * Request parameters for runAssetJobs operation in AssetApi.
  8585. * @export
  8586. * @interface AssetApiRunAssetJobsRequest
  8587. */
  8588. export interface AssetApiRunAssetJobsRequest {
  8589. /**
  8590. *
  8591. * @type {AssetJobsDto}
  8592. * @memberof AssetApiRunAssetJobs
  8593. */
  8594. readonly assetJobsDto: AssetJobsDto
  8595. }
  8596. /**
  8597. * Request parameters for searchAssets operation in AssetApi.
  8598. * @export
  8599. * @interface AssetApiSearchAssetsRequest
  8600. */
  8601. export interface AssetApiSearchAssetsRequest {
  8602. /**
  8603. *
  8604. * @type {string}
  8605. * @memberof AssetApiSearchAssets
  8606. */
  8607. readonly id?: string
  8608. /**
  8609. *
  8610. * @type {string}
  8611. * @memberof AssetApiSearchAssets
  8612. */
  8613. readonly libraryId?: string
  8614. /**
  8615. *
  8616. * @type {AssetTypeEnum}
  8617. * @memberof AssetApiSearchAssets
  8618. */
  8619. readonly type?: AssetTypeEnum
  8620. /**
  8621. *
  8622. * @type {AssetOrder}
  8623. * @memberof AssetApiSearchAssets
  8624. */
  8625. readonly order?: AssetOrder
  8626. /**
  8627. *
  8628. * @type {string}
  8629. * @memberof AssetApiSearchAssets
  8630. */
  8631. readonly deviceAssetId?: string
  8632. /**
  8633. *
  8634. * @type {string}
  8635. * @memberof AssetApiSearchAssets
  8636. */
  8637. readonly deviceId?: string
  8638. /**
  8639. *
  8640. * @type {string}
  8641. * @memberof AssetApiSearchAssets
  8642. */
  8643. readonly checksum?: string
  8644. /**
  8645. *
  8646. * @type {boolean}
  8647. * @memberof AssetApiSearchAssets
  8648. */
  8649. readonly isArchived?: boolean
  8650. /**
  8651. *
  8652. * @type {boolean}
  8653. * @memberof AssetApiSearchAssets
  8654. */
  8655. readonly isEncoded?: boolean
  8656. /**
  8657. *
  8658. * @type {boolean}
  8659. * @memberof AssetApiSearchAssets
  8660. */
  8661. readonly isExternal?: boolean
  8662. /**
  8663. *
  8664. * @type {boolean}
  8665. * @memberof AssetApiSearchAssets
  8666. */
  8667. readonly isFavorite?: boolean
  8668. /**
  8669. *
  8670. * @type {boolean}
  8671. * @memberof AssetApiSearchAssets
  8672. */
  8673. readonly isMotion?: boolean
  8674. /**
  8675. *
  8676. * @type {boolean}
  8677. * @memberof AssetApiSearchAssets
  8678. */
  8679. readonly isOffline?: boolean
  8680. /**
  8681. *
  8682. * @type {boolean}
  8683. * @memberof AssetApiSearchAssets
  8684. */
  8685. readonly isReadOnly?: boolean
  8686. /**
  8687. *
  8688. * @type {boolean}
  8689. * @memberof AssetApiSearchAssets
  8690. */
  8691. readonly isVisible?: boolean
  8692. /**
  8693. *
  8694. * @type {boolean}
  8695. * @memberof AssetApiSearchAssets
  8696. */
  8697. readonly withDeleted?: boolean
  8698. /**
  8699. *
  8700. * @type {boolean}
  8701. * @memberof AssetApiSearchAssets
  8702. */
  8703. readonly withStacked?: boolean
  8704. /**
  8705. *
  8706. * @type {boolean}
  8707. * @memberof AssetApiSearchAssets
  8708. */
  8709. readonly withExif?: boolean
  8710. /**
  8711. *
  8712. * @type {boolean}
  8713. * @memberof AssetApiSearchAssets
  8714. */
  8715. readonly withPeople?: boolean
  8716. /**
  8717. *
  8718. * @type {string}
  8719. * @memberof AssetApiSearchAssets
  8720. */
  8721. readonly createdBefore?: string
  8722. /**
  8723. *
  8724. * @type {string}
  8725. * @memberof AssetApiSearchAssets
  8726. */
  8727. readonly createdAfter?: string
  8728. /**
  8729. *
  8730. * @type {string}
  8731. * @memberof AssetApiSearchAssets
  8732. */
  8733. readonly updatedBefore?: string
  8734. /**
  8735. *
  8736. * @type {string}
  8737. * @memberof AssetApiSearchAssets
  8738. */
  8739. readonly updatedAfter?: string
  8740. /**
  8741. *
  8742. * @type {string}
  8743. * @memberof AssetApiSearchAssets
  8744. */
  8745. readonly trashedBefore?: string
  8746. /**
  8747. *
  8748. * @type {string}
  8749. * @memberof AssetApiSearchAssets
  8750. */
  8751. readonly trashedAfter?: string
  8752. /**
  8753. *
  8754. * @type {string}
  8755. * @memberof AssetApiSearchAssets
  8756. */
  8757. readonly takenBefore?: string
  8758. /**
  8759. *
  8760. * @type {string}
  8761. * @memberof AssetApiSearchAssets
  8762. */
  8763. readonly takenAfter?: string
  8764. /**
  8765. *
  8766. * @type {string}
  8767. * @memberof AssetApiSearchAssets
  8768. */
  8769. readonly originalFileName?: string
  8770. /**
  8771. *
  8772. * @type {string}
  8773. * @memberof AssetApiSearchAssets
  8774. */
  8775. readonly originalPath?: string
  8776. /**
  8777. *
  8778. * @type {string}
  8779. * @memberof AssetApiSearchAssets
  8780. */
  8781. readonly resizePath?: string
  8782. /**
  8783. *
  8784. * @type {string}
  8785. * @memberof AssetApiSearchAssets
  8786. */
  8787. readonly webpPath?: string
  8788. /**
  8789. *
  8790. * @type {string}
  8791. * @memberof AssetApiSearchAssets
  8792. */
  8793. readonly encodedVideoPath?: string
  8794. /**
  8795. *
  8796. * @type {string}
  8797. * @memberof AssetApiSearchAssets
  8798. */
  8799. readonly city?: string
  8800. /**
  8801. *
  8802. * @type {string}
  8803. * @memberof AssetApiSearchAssets
  8804. */
  8805. readonly state?: string
  8806. /**
  8807. *
  8808. * @type {string}
  8809. * @memberof AssetApiSearchAssets
  8810. */
  8811. readonly country?: string
  8812. /**
  8813. *
  8814. * @type {string}
  8815. * @memberof AssetApiSearchAssets
  8816. */
  8817. readonly make?: string
  8818. /**
  8819. *
  8820. * @type {string}
  8821. * @memberof AssetApiSearchAssets
  8822. */
  8823. readonly model?: string
  8824. /**
  8825. *
  8826. * @type {string}
  8827. * @memberof AssetApiSearchAssets
  8828. */
  8829. readonly lensModel?: string
  8830. /**
  8831. *
  8832. * @type {number}
  8833. * @memberof AssetApiSearchAssets
  8834. */
  8835. readonly page?: number
  8836. /**
  8837. *
  8838. * @type {number}
  8839. * @memberof AssetApiSearchAssets
  8840. */
  8841. readonly size?: number
  8842. }
  8843. /**
  8844. * Request parameters for serveFile operation in AssetApi.
  8845. * @export
  8846. * @interface AssetApiServeFileRequest
  8847. */
  8848. export interface AssetApiServeFileRequest {
  8849. /**
  8850. *
  8851. * @type {string}
  8852. * @memberof AssetApiServeFile
  8853. */
  8854. readonly id: string
  8855. /**
  8856. *
  8857. * @type {boolean}
  8858. * @memberof AssetApiServeFile
  8859. */
  8860. readonly isThumb?: boolean
  8861. /**
  8862. *
  8863. * @type {boolean}
  8864. * @memberof AssetApiServeFile
  8865. */
  8866. readonly isWeb?: boolean
  8867. /**
  8868. *
  8869. * @type {string}
  8870. * @memberof AssetApiServeFile
  8871. */
  8872. readonly key?: string
  8873. }
  8874. /**
  8875. * Request parameters for updateAsset operation in AssetApi.
  8876. * @export
  8877. * @interface AssetApiUpdateAssetRequest
  8878. */
  8879. export interface AssetApiUpdateAssetRequest {
  8880. /**
  8881. *
  8882. * @type {string}
  8883. * @memberof AssetApiUpdateAsset
  8884. */
  8885. readonly id: string
  8886. /**
  8887. *
  8888. * @type {UpdateAssetDto}
  8889. * @memberof AssetApiUpdateAsset
  8890. */
  8891. readonly updateAssetDto: UpdateAssetDto
  8892. }
  8893. /**
  8894. * Request parameters for updateAssets operation in AssetApi.
  8895. * @export
  8896. * @interface AssetApiUpdateAssetsRequest
  8897. */
  8898. export interface AssetApiUpdateAssetsRequest {
  8899. /**
  8900. *
  8901. * @type {AssetBulkUpdateDto}
  8902. * @memberof AssetApiUpdateAssets
  8903. */
  8904. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  8905. }
  8906. /**
  8907. * Request parameters for updateStackParent operation in AssetApi.
  8908. * @export
  8909. * @interface AssetApiUpdateStackParentRequest
  8910. */
  8911. export interface AssetApiUpdateStackParentRequest {
  8912. /**
  8913. *
  8914. * @type {UpdateStackParentDto}
  8915. * @memberof AssetApiUpdateStackParent
  8916. */
  8917. readonly updateStackParentDto: UpdateStackParentDto
  8918. }
  8919. /**
  8920. * Request parameters for uploadFile operation in AssetApi.
  8921. * @export
  8922. * @interface AssetApiUploadFileRequest
  8923. */
  8924. export interface AssetApiUploadFileRequest {
  8925. /**
  8926. *
  8927. * @type {File}
  8928. * @memberof AssetApiUploadFile
  8929. */
  8930. readonly assetData: File
  8931. /**
  8932. *
  8933. * @type {string}
  8934. * @memberof AssetApiUploadFile
  8935. */
  8936. readonly deviceAssetId: string
  8937. /**
  8938. *
  8939. * @type {string}
  8940. * @memberof AssetApiUploadFile
  8941. */
  8942. readonly deviceId: string
  8943. /**
  8944. *
  8945. * @type {string}
  8946. * @memberof AssetApiUploadFile
  8947. */
  8948. readonly fileCreatedAt: string
  8949. /**
  8950. *
  8951. * @type {string}
  8952. * @memberof AssetApiUploadFile
  8953. */
  8954. readonly fileModifiedAt: string
  8955. /**
  8956. *
  8957. * @type {string}
  8958. * @memberof AssetApiUploadFile
  8959. */
  8960. readonly key?: string
  8961. /**
  8962. *
  8963. * @type {string}
  8964. * @memberof AssetApiUploadFile
  8965. */
  8966. readonly duration?: string
  8967. /**
  8968. *
  8969. * @type {boolean}
  8970. * @memberof AssetApiUploadFile
  8971. */
  8972. readonly isArchived?: boolean
  8973. /**
  8974. *
  8975. * @type {boolean}
  8976. * @memberof AssetApiUploadFile
  8977. */
  8978. readonly isExternal?: boolean
  8979. /**
  8980. *
  8981. * @type {boolean}
  8982. * @memberof AssetApiUploadFile
  8983. */
  8984. readonly isFavorite?: boolean
  8985. /**
  8986. *
  8987. * @type {boolean}
  8988. * @memberof AssetApiUploadFile
  8989. */
  8990. readonly isOffline?: boolean
  8991. /**
  8992. *
  8993. * @type {boolean}
  8994. * @memberof AssetApiUploadFile
  8995. */
  8996. readonly isReadOnly?: boolean
  8997. /**
  8998. *
  8999. * @type {boolean}
  9000. * @memberof AssetApiUploadFile
  9001. */
  9002. readonly isVisible?: boolean
  9003. /**
  9004. *
  9005. * @type {string}
  9006. * @memberof AssetApiUploadFile
  9007. */
  9008. readonly libraryId?: string
  9009. /**
  9010. *
  9011. * @type {File}
  9012. * @memberof AssetApiUploadFile
  9013. */
  9014. readonly livePhotoData?: File
  9015. /**
  9016. *
  9017. * @type {File}
  9018. * @memberof AssetApiUploadFile
  9019. */
  9020. readonly sidecarData?: File
  9021. }
  9022. /**
  9023. * AssetApi - object-oriented interface
  9024. * @export
  9025. * @class AssetApi
  9026. * @extends {BaseAPI}
  9027. */
  9028. export class AssetApi extends BaseAPI {
  9029. /**
  9030. * Checks if assets exist by checksums
  9031. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  9032. * @param {*} [options] Override http request option.
  9033. * @throws {RequiredError}
  9034. * @memberof AssetApi
  9035. */
  9036. public checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig) {
  9037. return AssetApiFp(this.configuration).checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  9038. }
  9039. /**
  9040. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  9041. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  9042. * @param {*} [options] Override http request option.
  9043. * @throws {RequiredError}
  9044. * @memberof AssetApi
  9045. */
  9046. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  9047. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  9048. }
  9049. /**
  9050. *
  9051. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  9052. * @param {*} [options] Override http request option.
  9053. * @throws {RequiredError}
  9054. * @memberof AssetApi
  9055. */
  9056. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  9057. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  9058. }
  9059. /**
  9060. *
  9061. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  9062. * @param {*} [options] Override http request option.
  9063. * @throws {RequiredError}
  9064. * @memberof AssetApi
  9065. */
  9066. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  9067. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9068. }
  9069. /**
  9070. *
  9071. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  9072. * @param {*} [options] Override http request option.
  9073. * @throws {RequiredError}
  9074. * @memberof AssetApi
  9075. */
  9076. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  9077. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9078. }
  9079. /**
  9080. *
  9081. * @param {*} [options] Override http request option.
  9082. * @throws {RequiredError}
  9083. * @memberof AssetApi
  9084. */
  9085. public emptyTrash(options?: AxiosRequestConfig) {
  9086. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  9087. }
  9088. /**
  9089. * Get all AssetEntity belong to the user
  9090. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  9091. * @param {*} [options] Override http request option.
  9092. * @throws {RequiredError}
  9093. * @memberof AssetApi
  9094. */
  9095. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  9096. 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));
  9097. }
  9098. /**
  9099. * Get a single asset\'s information
  9100. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  9101. * @param {*} [options] Override http request option.
  9102. * @throws {RequiredError}
  9103. * @memberof AssetApi
  9104. */
  9105. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  9106. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9107. }
  9108. /**
  9109. *
  9110. * @param {*} [options] Override http request option.
  9111. * @throws {RequiredError}
  9112. * @memberof AssetApi
  9113. */
  9114. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  9115. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  9116. }
  9117. /**
  9118. *
  9119. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  9120. * @param {*} [options] Override http request option.
  9121. * @throws {RequiredError}
  9122. * @memberof AssetApi
  9123. */
  9124. public getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig) {
  9125. return AssetApiFp(this.configuration).getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  9126. }
  9127. /**
  9128. *
  9129. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  9130. * @param {*} [options] Override http request option.
  9131. * @throws {RequiredError}
  9132. * @memberof AssetApi
  9133. */
  9134. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  9135. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9136. }
  9137. /**
  9138. *
  9139. * @param {*} [options] Override http request option.
  9140. * @throws {RequiredError}
  9141. * @memberof AssetApi
  9142. */
  9143. public getCuratedLocations(options?: AxiosRequestConfig) {
  9144. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  9145. }
  9146. /**
  9147. *
  9148. * @param {*} [options] Override http request option.
  9149. * @throws {RequiredError}
  9150. * @memberof AssetApi
  9151. */
  9152. public getCuratedObjects(options?: AxiosRequestConfig) {
  9153. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  9154. }
  9155. /**
  9156. *
  9157. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  9158. * @param {*} [options] Override http request option.
  9159. * @throws {RequiredError}
  9160. * @memberof AssetApi
  9161. */
  9162. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  9163. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9164. }
  9165. /**
  9166. *
  9167. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  9168. * @param {*} [options] Override http request option.
  9169. * @throws {RequiredError}
  9170. * @memberof AssetApi
  9171. */
  9172. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  9173. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  9174. }
  9175. /**
  9176. *
  9177. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  9178. * @param {*} [options] Override http request option.
  9179. * @throws {RequiredError}
  9180. * @memberof AssetApi
  9181. */
  9182. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  9183. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  9184. }
  9185. /**
  9186. *
  9187. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  9188. * @param {*} [options] Override http request option.
  9189. * @throws {RequiredError}
  9190. * @memberof AssetApi
  9191. */
  9192. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  9193. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  9194. }
  9195. /**
  9196. *
  9197. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  9198. * @param {*} [options] Override http request option.
  9199. * @throws {RequiredError}
  9200. * @memberof AssetApi
  9201. */
  9202. public getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig) {
  9203. return AssetApiFp(this.configuration).getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9204. }
  9205. /**
  9206. *
  9207. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  9208. * @param {*} [options] Override http request option.
  9209. * @throws {RequiredError}
  9210. * @memberof AssetApi
  9211. */
  9212. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  9213. return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9214. }
  9215. /**
  9216. * Get all asset of a device that are in the database, ID only.
  9217. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  9218. * @param {*} [options] Override http request option.
  9219. * @throws {RequiredError}
  9220. * @memberof AssetApi
  9221. */
  9222. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  9223. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  9224. }
  9225. /**
  9226. *
  9227. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  9228. * @param {*} [options] Override http request option.
  9229. * @throws {RequiredError}
  9230. * @memberof AssetApi
  9231. */
  9232. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  9233. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  9234. }
  9235. /**
  9236. *
  9237. * @param {*} [options] Override http request option.
  9238. * @throws {RequiredError}
  9239. * @memberof AssetApi
  9240. */
  9241. public restoreTrash(options?: AxiosRequestConfig) {
  9242. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  9243. }
  9244. /**
  9245. *
  9246. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  9247. * @param {*} [options] Override http request option.
  9248. * @throws {RequiredError}
  9249. * @memberof AssetApi
  9250. */
  9251. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  9252. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  9253. }
  9254. /**
  9255. *
  9256. * @param {AssetApiSearchAssetsRequest} requestParameters Request parameters.
  9257. * @param {*} [options] Override http request option.
  9258. * @throws {RequiredError}
  9259. * @memberof AssetApi
  9260. */
  9261. public searchAssets(requestParameters: AssetApiSearchAssetsRequest = {}, options?: AxiosRequestConfig) {
  9262. return AssetApiFp(this.configuration).searchAssets(requestParameters.id, requestParameters.libraryId, requestParameters.type, requestParameters.order, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.checksum, requestParameters.isArchived, requestParameters.isEncoded, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isMotion, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.withDeleted, requestParameters.withStacked, requestParameters.withExif, requestParameters.withPeople, requestParameters.createdBefore, requestParameters.createdAfter, requestParameters.updatedBefore, requestParameters.updatedAfter, requestParameters.trashedBefore, requestParameters.trashedAfter, requestParameters.takenBefore, requestParameters.takenAfter, requestParameters.originalFileName, requestParameters.originalPath, requestParameters.resizePath, requestParameters.webpPath, requestParameters.encodedVideoPath, requestParameters.city, requestParameters.state, requestParameters.country, requestParameters.make, requestParameters.model, requestParameters.lensModel, requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
  9263. }
  9264. /**
  9265. *
  9266. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  9267. * @param {*} [options] Override http request option.
  9268. * @throws {RequiredError}
  9269. * @memberof AssetApi
  9270. */
  9271. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  9272. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9273. }
  9274. /**
  9275. *
  9276. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  9277. * @param {*} [options] Override http request option.
  9278. * @throws {RequiredError}
  9279. * @memberof AssetApi
  9280. */
  9281. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  9282. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  9283. }
  9284. /**
  9285. *
  9286. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  9287. * @param {*} [options] Override http request option.
  9288. * @throws {RequiredError}
  9289. * @memberof AssetApi
  9290. */
  9291. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  9292. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  9293. }
  9294. /**
  9295. *
  9296. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  9297. * @param {*} [options] Override http request option.
  9298. * @throws {RequiredError}
  9299. * @memberof AssetApi
  9300. */
  9301. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  9302. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  9303. }
  9304. /**
  9305. *
  9306. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  9307. * @param {*} [options] Override http request option.
  9308. * @throws {RequiredError}
  9309. * @memberof AssetApi
  9310. */
  9311. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  9312. 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));
  9313. }
  9314. }
  9315. /**
  9316. * AuditApi - axios parameter creator
  9317. * @export
  9318. */
  9319. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  9320. return {
  9321. /**
  9322. *
  9323. * @param {FileReportFixDto} fileReportFixDto
  9324. * @param {*} [options] Override http request option.
  9325. * @throws {RequiredError}
  9326. */
  9327. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9328. // verify required parameter 'fileReportFixDto' is not null or undefined
  9329. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  9330. const localVarPath = `/audit/file-report/fix`;
  9331. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9332. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9333. let baseOptions;
  9334. if (configuration) {
  9335. baseOptions = configuration.baseOptions;
  9336. }
  9337. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9338. const localVarHeaderParameter = {} as any;
  9339. const localVarQueryParameter = {} as any;
  9340. // authentication cookie required
  9341. // authentication api_key required
  9342. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9343. // authentication bearer required
  9344. // http bearer authentication required
  9345. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9346. localVarHeaderParameter['Content-Type'] = 'application/json';
  9347. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9348. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9349. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9350. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  9351. return {
  9352. url: toPathString(localVarUrlObj),
  9353. options: localVarRequestOptions,
  9354. };
  9355. },
  9356. /**
  9357. *
  9358. * @param {EntityType} entityType
  9359. * @param {string} after
  9360. * @param {string} [userId]
  9361. * @param {*} [options] Override http request option.
  9362. * @throws {RequiredError}
  9363. */
  9364. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9365. // verify required parameter 'entityType' is not null or undefined
  9366. assertParamExists('getAuditDeletes', 'entityType', entityType)
  9367. // verify required parameter 'after' is not null or undefined
  9368. assertParamExists('getAuditDeletes', 'after', after)
  9369. const localVarPath = `/audit/deletes`;
  9370. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9371. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9372. let baseOptions;
  9373. if (configuration) {
  9374. baseOptions = configuration.baseOptions;
  9375. }
  9376. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9377. const localVarHeaderParameter = {} as any;
  9378. const localVarQueryParameter = {} as any;
  9379. // authentication cookie required
  9380. // authentication api_key required
  9381. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9382. // authentication bearer required
  9383. // http bearer authentication required
  9384. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9385. if (entityType !== undefined) {
  9386. localVarQueryParameter['entityType'] = entityType;
  9387. }
  9388. if (userId !== undefined) {
  9389. localVarQueryParameter['userId'] = userId;
  9390. }
  9391. if (after !== undefined) {
  9392. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  9393. (after as any).toISOString() :
  9394. after;
  9395. }
  9396. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9397. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9398. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9399. return {
  9400. url: toPathString(localVarUrlObj),
  9401. options: localVarRequestOptions,
  9402. };
  9403. },
  9404. /**
  9405. *
  9406. * @param {*} [options] Override http request option.
  9407. * @throws {RequiredError}
  9408. */
  9409. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9410. const localVarPath = `/audit/file-report`;
  9411. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9412. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9413. let baseOptions;
  9414. if (configuration) {
  9415. baseOptions = configuration.baseOptions;
  9416. }
  9417. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9418. const localVarHeaderParameter = {} as any;
  9419. const localVarQueryParameter = {} as any;
  9420. // authentication cookie required
  9421. // authentication api_key required
  9422. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9423. // authentication bearer required
  9424. // http bearer authentication required
  9425. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9426. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9427. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9428. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9429. return {
  9430. url: toPathString(localVarUrlObj),
  9431. options: localVarRequestOptions,
  9432. };
  9433. },
  9434. /**
  9435. *
  9436. * @param {FileChecksumDto} fileChecksumDto
  9437. * @param {*} [options] Override http request option.
  9438. * @throws {RequiredError}
  9439. */
  9440. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9441. // verify required parameter 'fileChecksumDto' is not null or undefined
  9442. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  9443. const localVarPath = `/audit/file-report/checksum`;
  9444. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9445. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9446. let baseOptions;
  9447. if (configuration) {
  9448. baseOptions = configuration.baseOptions;
  9449. }
  9450. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9451. const localVarHeaderParameter = {} as any;
  9452. const localVarQueryParameter = {} as any;
  9453. // authentication cookie required
  9454. // authentication api_key required
  9455. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9456. // authentication bearer required
  9457. // http bearer authentication required
  9458. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9459. localVarHeaderParameter['Content-Type'] = 'application/json';
  9460. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9461. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9462. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9463. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  9464. return {
  9465. url: toPathString(localVarUrlObj),
  9466. options: localVarRequestOptions,
  9467. };
  9468. },
  9469. }
  9470. };
  9471. /**
  9472. * AuditApi - functional programming interface
  9473. * @export
  9474. */
  9475. export const AuditApiFp = function(configuration?: Configuration) {
  9476. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  9477. return {
  9478. /**
  9479. *
  9480. * @param {FileReportFixDto} fileReportFixDto
  9481. * @param {*} [options] Override http request option.
  9482. * @throws {RequiredError}
  9483. */
  9484. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9485. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  9486. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9487. },
  9488. /**
  9489. *
  9490. * @param {EntityType} entityType
  9491. * @param {string} after
  9492. * @param {string} [userId]
  9493. * @param {*} [options] Override http request option.
  9494. * @throws {RequiredError}
  9495. */
  9496. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  9497. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  9498. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9499. },
  9500. /**
  9501. *
  9502. * @param {*} [options] Override http request option.
  9503. * @throws {RequiredError}
  9504. */
  9505. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  9506. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  9507. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9508. },
  9509. /**
  9510. *
  9511. * @param {FileChecksumDto} fileChecksumDto
  9512. * @param {*} [options] Override http request option.
  9513. * @throws {RequiredError}
  9514. */
  9515. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  9516. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  9517. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9518. },
  9519. }
  9520. };
  9521. /**
  9522. * AuditApi - factory interface
  9523. * @export
  9524. */
  9525. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9526. const localVarFp = AuditApiFp(configuration)
  9527. return {
  9528. /**
  9529. *
  9530. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9531. * @param {*} [options] Override http request option.
  9532. * @throws {RequiredError}
  9533. */
  9534. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9535. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  9536. },
  9537. /**
  9538. *
  9539. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9540. * @param {*} [options] Override http request option.
  9541. * @throws {RequiredError}
  9542. */
  9543. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  9544. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  9545. },
  9546. /**
  9547. *
  9548. * @param {*} [options] Override http request option.
  9549. * @throws {RequiredError}
  9550. */
  9551. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  9552. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  9553. },
  9554. /**
  9555. *
  9556. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9557. * @param {*} [options] Override http request option.
  9558. * @throws {RequiredError}
  9559. */
  9560. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  9561. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  9562. },
  9563. };
  9564. };
  9565. /**
  9566. * Request parameters for fixAuditFiles operation in AuditApi.
  9567. * @export
  9568. * @interface AuditApiFixAuditFilesRequest
  9569. */
  9570. export interface AuditApiFixAuditFilesRequest {
  9571. /**
  9572. *
  9573. * @type {FileReportFixDto}
  9574. * @memberof AuditApiFixAuditFiles
  9575. */
  9576. readonly fileReportFixDto: FileReportFixDto
  9577. }
  9578. /**
  9579. * Request parameters for getAuditDeletes operation in AuditApi.
  9580. * @export
  9581. * @interface AuditApiGetAuditDeletesRequest
  9582. */
  9583. export interface AuditApiGetAuditDeletesRequest {
  9584. /**
  9585. *
  9586. * @type {EntityType}
  9587. * @memberof AuditApiGetAuditDeletes
  9588. */
  9589. readonly entityType: EntityType
  9590. /**
  9591. *
  9592. * @type {string}
  9593. * @memberof AuditApiGetAuditDeletes
  9594. */
  9595. readonly after: string
  9596. /**
  9597. *
  9598. * @type {string}
  9599. * @memberof AuditApiGetAuditDeletes
  9600. */
  9601. readonly userId?: string
  9602. }
  9603. /**
  9604. * Request parameters for getFileChecksums operation in AuditApi.
  9605. * @export
  9606. * @interface AuditApiGetFileChecksumsRequest
  9607. */
  9608. export interface AuditApiGetFileChecksumsRequest {
  9609. /**
  9610. *
  9611. * @type {FileChecksumDto}
  9612. * @memberof AuditApiGetFileChecksums
  9613. */
  9614. readonly fileChecksumDto: FileChecksumDto
  9615. }
  9616. /**
  9617. * AuditApi - object-oriented interface
  9618. * @export
  9619. * @class AuditApi
  9620. * @extends {BaseAPI}
  9621. */
  9622. export class AuditApi extends BaseAPI {
  9623. /**
  9624. *
  9625. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9626. * @param {*} [options] Override http request option.
  9627. * @throws {RequiredError}
  9628. * @memberof AuditApi
  9629. */
  9630. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  9631. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  9632. }
  9633. /**
  9634. *
  9635. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9636. * @param {*} [options] Override http request option.
  9637. * @throws {RequiredError}
  9638. * @memberof AuditApi
  9639. */
  9640. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  9641. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  9642. }
  9643. /**
  9644. *
  9645. * @param {*} [options] Override http request option.
  9646. * @throws {RequiredError}
  9647. * @memberof AuditApi
  9648. */
  9649. public getAuditFiles(options?: AxiosRequestConfig) {
  9650. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  9651. }
  9652. /**
  9653. *
  9654. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9655. * @param {*} [options] Override http request option.
  9656. * @throws {RequiredError}
  9657. * @memberof AuditApi
  9658. */
  9659. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  9660. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  9661. }
  9662. }
  9663. /**
  9664. * AuthenticationApi - axios parameter creator
  9665. * @export
  9666. */
  9667. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  9668. return {
  9669. /**
  9670. *
  9671. * @param {ChangePasswordDto} changePasswordDto
  9672. * @param {*} [options] Override http request option.
  9673. * @throws {RequiredError}
  9674. */
  9675. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9676. // verify required parameter 'changePasswordDto' is not null or undefined
  9677. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  9678. const localVarPath = `/auth/change-password`;
  9679. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9680. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9681. let baseOptions;
  9682. if (configuration) {
  9683. baseOptions = configuration.baseOptions;
  9684. }
  9685. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9686. const localVarHeaderParameter = {} as any;
  9687. const localVarQueryParameter = {} as any;
  9688. // authentication cookie required
  9689. // authentication api_key required
  9690. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9691. // authentication bearer required
  9692. // http bearer authentication required
  9693. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9694. localVarHeaderParameter['Content-Type'] = 'application/json';
  9695. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9696. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9697. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9698. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  9699. return {
  9700. url: toPathString(localVarUrlObj),
  9701. options: localVarRequestOptions,
  9702. };
  9703. },
  9704. /**
  9705. *
  9706. * @param {*} [options] Override http request option.
  9707. * @throws {RequiredError}
  9708. */
  9709. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9710. const localVarPath = `/auth/devices`;
  9711. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9712. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9713. let baseOptions;
  9714. if (configuration) {
  9715. baseOptions = configuration.baseOptions;
  9716. }
  9717. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9718. const localVarHeaderParameter = {} as any;
  9719. const localVarQueryParameter = {} as any;
  9720. // authentication cookie required
  9721. // authentication api_key required
  9722. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9723. // authentication bearer required
  9724. // http bearer authentication required
  9725. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9726. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9727. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9728. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9729. return {
  9730. url: toPathString(localVarUrlObj),
  9731. options: localVarRequestOptions,
  9732. };
  9733. },
  9734. /**
  9735. *
  9736. * @param {LoginCredentialDto} loginCredentialDto
  9737. * @param {*} [options] Override http request option.
  9738. * @throws {RequiredError}
  9739. */
  9740. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9741. // verify required parameter 'loginCredentialDto' is not null or undefined
  9742. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  9743. const localVarPath = `/auth/login`;
  9744. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9745. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9746. let baseOptions;
  9747. if (configuration) {
  9748. baseOptions = configuration.baseOptions;
  9749. }
  9750. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9751. const localVarHeaderParameter = {} as any;
  9752. const localVarQueryParameter = {} as any;
  9753. localVarHeaderParameter['Content-Type'] = 'application/json';
  9754. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9755. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9756. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9757. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  9758. return {
  9759. url: toPathString(localVarUrlObj),
  9760. options: localVarRequestOptions,
  9761. };
  9762. },
  9763. /**
  9764. *
  9765. * @param {*} [options] Override http request option.
  9766. * @throws {RequiredError}
  9767. */
  9768. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9769. const localVarPath = `/auth/logout`;
  9770. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9771. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9772. let baseOptions;
  9773. if (configuration) {
  9774. baseOptions = configuration.baseOptions;
  9775. }
  9776. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9777. const localVarHeaderParameter = {} as any;
  9778. const localVarQueryParameter = {} as any;
  9779. // authentication cookie required
  9780. // authentication api_key required
  9781. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9782. // authentication bearer required
  9783. // http bearer authentication required
  9784. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9785. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9786. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9787. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9788. return {
  9789. url: toPathString(localVarUrlObj),
  9790. options: localVarRequestOptions,
  9791. };
  9792. },
  9793. /**
  9794. *
  9795. * @param {string} id
  9796. * @param {*} [options] Override http request option.
  9797. * @throws {RequiredError}
  9798. */
  9799. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9800. // verify required parameter 'id' is not null or undefined
  9801. assertParamExists('logoutAuthDevice', 'id', id)
  9802. const localVarPath = `/auth/devices/{id}`
  9803. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9804. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9805. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9806. let baseOptions;
  9807. if (configuration) {
  9808. baseOptions = configuration.baseOptions;
  9809. }
  9810. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9811. const localVarHeaderParameter = {} as any;
  9812. const localVarQueryParameter = {} as any;
  9813. // authentication cookie required
  9814. // authentication api_key required
  9815. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9816. // authentication bearer required
  9817. // http bearer authentication required
  9818. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9819. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9820. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9821. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9822. return {
  9823. url: toPathString(localVarUrlObj),
  9824. options: localVarRequestOptions,
  9825. };
  9826. },
  9827. /**
  9828. *
  9829. * @param {*} [options] Override http request option.
  9830. * @throws {RequiredError}
  9831. */
  9832. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9833. const localVarPath = `/auth/devices`;
  9834. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9835. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9836. let baseOptions;
  9837. if (configuration) {
  9838. baseOptions = configuration.baseOptions;
  9839. }
  9840. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9841. const localVarHeaderParameter = {} as any;
  9842. const localVarQueryParameter = {} as any;
  9843. // authentication cookie required
  9844. // authentication api_key required
  9845. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9846. // authentication bearer required
  9847. // http bearer authentication required
  9848. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9849. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9850. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9851. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9852. return {
  9853. url: toPathString(localVarUrlObj),
  9854. options: localVarRequestOptions,
  9855. };
  9856. },
  9857. /**
  9858. *
  9859. * @param {SignUpDto} signUpDto
  9860. * @param {*} [options] Override http request option.
  9861. * @throws {RequiredError}
  9862. */
  9863. signUpAdmin: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9864. // verify required parameter 'signUpDto' is not null or undefined
  9865. assertParamExists('signUpAdmin', 'signUpDto', signUpDto)
  9866. const localVarPath = `/auth/admin-sign-up`;
  9867. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9868. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9869. let baseOptions;
  9870. if (configuration) {
  9871. baseOptions = configuration.baseOptions;
  9872. }
  9873. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9874. const localVarHeaderParameter = {} as any;
  9875. const localVarQueryParameter = {} as any;
  9876. localVarHeaderParameter['Content-Type'] = 'application/json';
  9877. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9878. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9879. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9880. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  9881. return {
  9882. url: toPathString(localVarUrlObj),
  9883. options: localVarRequestOptions,
  9884. };
  9885. },
  9886. /**
  9887. *
  9888. * @param {*} [options] Override http request option.
  9889. * @throws {RequiredError}
  9890. */
  9891. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9892. const localVarPath = `/auth/validateToken`;
  9893. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9894. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9895. let baseOptions;
  9896. if (configuration) {
  9897. baseOptions = configuration.baseOptions;
  9898. }
  9899. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9900. const localVarHeaderParameter = {} as any;
  9901. const localVarQueryParameter = {} as any;
  9902. // authentication cookie required
  9903. // authentication api_key required
  9904. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9905. // authentication bearer required
  9906. // http bearer authentication required
  9907. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9908. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9909. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9910. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9911. return {
  9912. url: toPathString(localVarUrlObj),
  9913. options: localVarRequestOptions,
  9914. };
  9915. },
  9916. }
  9917. };
  9918. /**
  9919. * AuthenticationApi - functional programming interface
  9920. * @export
  9921. */
  9922. export const AuthenticationApiFp = function(configuration?: Configuration) {
  9923. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  9924. return {
  9925. /**
  9926. *
  9927. * @param {ChangePasswordDto} changePasswordDto
  9928. * @param {*} [options] Override http request option.
  9929. * @throws {RequiredError}
  9930. */
  9931. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9932. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  9933. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9934. },
  9935. /**
  9936. *
  9937. * @param {*} [options] Override http request option.
  9938. * @throws {RequiredError}
  9939. */
  9940. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  9941. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  9942. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9943. },
  9944. /**
  9945. *
  9946. * @param {LoginCredentialDto} loginCredentialDto
  9947. * @param {*} [options] Override http request option.
  9948. * @throws {RequiredError}
  9949. */
  9950. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  9951. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  9952. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9953. },
  9954. /**
  9955. *
  9956. * @param {*} [options] Override http request option.
  9957. * @throws {RequiredError}
  9958. */
  9959. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  9960. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  9961. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9962. },
  9963. /**
  9964. *
  9965. * @param {string} id
  9966. * @param {*} [options] Override http request option.
  9967. * @throws {RequiredError}
  9968. */
  9969. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9970. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  9971. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9972. },
  9973. /**
  9974. *
  9975. * @param {*} [options] Override http request option.
  9976. * @throws {RequiredError}
  9977. */
  9978. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9979. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  9980. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9981. },
  9982. /**
  9983. *
  9984. * @param {SignUpDto} signUpDto
  9985. * @param {*} [options] Override http request option.
  9986. * @throws {RequiredError}
  9987. */
  9988. async signUpAdmin(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9989. const localVarAxiosArgs = await localVarAxiosParamCreator.signUpAdmin(signUpDto, options);
  9990. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9991. },
  9992. /**
  9993. *
  9994. * @param {*} [options] Override http request option.
  9995. * @throws {RequiredError}
  9996. */
  9997. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  9998. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  9999. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10000. },
  10001. }
  10002. };
  10003. /**
  10004. * AuthenticationApi - factory interface
  10005. * @export
  10006. */
  10007. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10008. const localVarFp = AuthenticationApiFp(configuration)
  10009. return {
  10010. /**
  10011. *
  10012. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  10013. * @param {*} [options] Override http request option.
  10014. * @throws {RequiredError}
  10015. */
  10016. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10017. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  10018. },
  10019. /**
  10020. *
  10021. * @param {*} [options] Override http request option.
  10022. * @throws {RequiredError}
  10023. */
  10024. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  10025. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  10026. },
  10027. /**
  10028. *
  10029. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  10030. * @param {*} [options] Override http request option.
  10031. * @throws {RequiredError}
  10032. */
  10033. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10034. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  10035. },
  10036. /**
  10037. *
  10038. * @param {*} [options] Override http request option.
  10039. * @throws {RequiredError}
  10040. */
  10041. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  10042. return localVarFp.logout(options).then((request) => request(axios, basePath));
  10043. },
  10044. /**
  10045. *
  10046. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  10047. * @param {*} [options] Override http request option.
  10048. * @throws {RequiredError}
  10049. */
  10050. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10051. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  10052. },
  10053. /**
  10054. *
  10055. * @param {*} [options] Override http request option.
  10056. * @throws {RequiredError}
  10057. */
  10058. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  10059. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  10060. },
  10061. /**
  10062. *
  10063. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  10064. * @param {*} [options] Override http request option.
  10065. * @throws {RequiredError}
  10066. */
  10067. signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10068. return localVarFp.signUpAdmin(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  10069. },
  10070. /**
  10071. *
  10072. * @param {*} [options] Override http request option.
  10073. * @throws {RequiredError}
  10074. */
  10075. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  10076. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  10077. },
  10078. };
  10079. };
  10080. /**
  10081. * Request parameters for changePassword operation in AuthenticationApi.
  10082. * @export
  10083. * @interface AuthenticationApiChangePasswordRequest
  10084. */
  10085. export interface AuthenticationApiChangePasswordRequest {
  10086. /**
  10087. *
  10088. * @type {ChangePasswordDto}
  10089. * @memberof AuthenticationApiChangePassword
  10090. */
  10091. readonly changePasswordDto: ChangePasswordDto
  10092. }
  10093. /**
  10094. * Request parameters for login operation in AuthenticationApi.
  10095. * @export
  10096. * @interface AuthenticationApiLoginRequest
  10097. */
  10098. export interface AuthenticationApiLoginRequest {
  10099. /**
  10100. *
  10101. * @type {LoginCredentialDto}
  10102. * @memberof AuthenticationApiLogin
  10103. */
  10104. readonly loginCredentialDto: LoginCredentialDto
  10105. }
  10106. /**
  10107. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  10108. * @export
  10109. * @interface AuthenticationApiLogoutAuthDeviceRequest
  10110. */
  10111. export interface AuthenticationApiLogoutAuthDeviceRequest {
  10112. /**
  10113. *
  10114. * @type {string}
  10115. * @memberof AuthenticationApiLogoutAuthDevice
  10116. */
  10117. readonly id: string
  10118. }
  10119. /**
  10120. * Request parameters for signUpAdmin operation in AuthenticationApi.
  10121. * @export
  10122. * @interface AuthenticationApiSignUpAdminRequest
  10123. */
  10124. export interface AuthenticationApiSignUpAdminRequest {
  10125. /**
  10126. *
  10127. * @type {SignUpDto}
  10128. * @memberof AuthenticationApiSignUpAdmin
  10129. */
  10130. readonly signUpDto: SignUpDto
  10131. }
  10132. /**
  10133. * AuthenticationApi - object-oriented interface
  10134. * @export
  10135. * @class AuthenticationApi
  10136. * @extends {BaseAPI}
  10137. */
  10138. export class AuthenticationApi extends BaseAPI {
  10139. /**
  10140. *
  10141. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  10142. * @param {*} [options] Override http request option.
  10143. * @throws {RequiredError}
  10144. * @memberof AuthenticationApi
  10145. */
  10146. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  10147. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  10148. }
  10149. /**
  10150. *
  10151. * @param {*} [options] Override http request option.
  10152. * @throws {RequiredError}
  10153. * @memberof AuthenticationApi
  10154. */
  10155. public getAuthDevices(options?: AxiosRequestConfig) {
  10156. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  10157. }
  10158. /**
  10159. *
  10160. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  10161. * @param {*} [options] Override http request option.
  10162. * @throws {RequiredError}
  10163. * @memberof AuthenticationApi
  10164. */
  10165. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  10166. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  10167. }
  10168. /**
  10169. *
  10170. * @param {*} [options] Override http request option.
  10171. * @throws {RequiredError}
  10172. * @memberof AuthenticationApi
  10173. */
  10174. public logout(options?: AxiosRequestConfig) {
  10175. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  10176. }
  10177. /**
  10178. *
  10179. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  10180. * @param {*} [options] Override http request option.
  10181. * @throws {RequiredError}
  10182. * @memberof AuthenticationApi
  10183. */
  10184. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  10185. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10186. }
  10187. /**
  10188. *
  10189. * @param {*} [options] Override http request option.
  10190. * @throws {RequiredError}
  10191. * @memberof AuthenticationApi
  10192. */
  10193. public logoutAuthDevices(options?: AxiosRequestConfig) {
  10194. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  10195. }
  10196. /**
  10197. *
  10198. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  10199. * @param {*} [options] Override http request option.
  10200. * @throws {RequiredError}
  10201. * @memberof AuthenticationApi
  10202. */
  10203. public signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig) {
  10204. return AuthenticationApiFp(this.configuration).signUpAdmin(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  10205. }
  10206. /**
  10207. *
  10208. * @param {*} [options] Override http request option.
  10209. * @throws {RequiredError}
  10210. * @memberof AuthenticationApi
  10211. */
  10212. public validateAccessToken(options?: AxiosRequestConfig) {
  10213. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  10214. }
  10215. }
  10216. /**
  10217. * JobApi - axios parameter creator
  10218. * @export
  10219. */
  10220. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  10221. return {
  10222. /**
  10223. *
  10224. * @param {*} [options] Override http request option.
  10225. * @throws {RequiredError}
  10226. */
  10227. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10228. const localVarPath = `/jobs`;
  10229. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10230. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10231. let baseOptions;
  10232. if (configuration) {
  10233. baseOptions = configuration.baseOptions;
  10234. }
  10235. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10236. const localVarHeaderParameter = {} as any;
  10237. const localVarQueryParameter = {} as any;
  10238. // authentication cookie required
  10239. // authentication api_key required
  10240. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10241. // authentication bearer required
  10242. // http bearer authentication required
  10243. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10244. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10245. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10246. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10247. return {
  10248. url: toPathString(localVarUrlObj),
  10249. options: localVarRequestOptions,
  10250. };
  10251. },
  10252. /**
  10253. *
  10254. * @param {JobName} id
  10255. * @param {JobCommandDto} jobCommandDto
  10256. * @param {*} [options] Override http request option.
  10257. * @throws {RequiredError}
  10258. */
  10259. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10260. // verify required parameter 'id' is not null or undefined
  10261. assertParamExists('sendJobCommand', 'id', id)
  10262. // verify required parameter 'jobCommandDto' is not null or undefined
  10263. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  10264. const localVarPath = `/jobs/{id}`
  10265. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10266. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10267. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10268. let baseOptions;
  10269. if (configuration) {
  10270. baseOptions = configuration.baseOptions;
  10271. }
  10272. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10273. const localVarHeaderParameter = {} as any;
  10274. const localVarQueryParameter = {} as any;
  10275. // authentication cookie required
  10276. // authentication api_key required
  10277. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10278. // authentication bearer required
  10279. // http bearer authentication required
  10280. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10281. localVarHeaderParameter['Content-Type'] = 'application/json';
  10282. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10283. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10284. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10285. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  10286. return {
  10287. url: toPathString(localVarUrlObj),
  10288. options: localVarRequestOptions,
  10289. };
  10290. },
  10291. }
  10292. };
  10293. /**
  10294. * JobApi - functional programming interface
  10295. * @export
  10296. */
  10297. export const JobApiFp = function(configuration?: Configuration) {
  10298. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  10299. return {
  10300. /**
  10301. *
  10302. * @param {*} [options] Override http request option.
  10303. * @throws {RequiredError}
  10304. */
  10305. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  10306. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  10307. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10308. },
  10309. /**
  10310. *
  10311. * @param {JobName} id
  10312. * @param {JobCommandDto} jobCommandDto
  10313. * @param {*} [options] Override http request option.
  10314. * @throws {RequiredError}
  10315. */
  10316. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  10317. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  10318. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10319. },
  10320. }
  10321. };
  10322. /**
  10323. * JobApi - factory interface
  10324. * @export
  10325. */
  10326. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10327. const localVarFp = JobApiFp(configuration)
  10328. return {
  10329. /**
  10330. *
  10331. * @param {*} [options] Override http request option.
  10332. * @throws {RequiredError}
  10333. */
  10334. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  10335. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  10336. },
  10337. /**
  10338. *
  10339. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  10340. * @param {*} [options] Override http request option.
  10341. * @throws {RequiredError}
  10342. */
  10343. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  10344. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  10345. },
  10346. };
  10347. };
  10348. /**
  10349. * Request parameters for sendJobCommand operation in JobApi.
  10350. * @export
  10351. * @interface JobApiSendJobCommandRequest
  10352. */
  10353. export interface JobApiSendJobCommandRequest {
  10354. /**
  10355. *
  10356. * @type {JobName}
  10357. * @memberof JobApiSendJobCommand
  10358. */
  10359. readonly id: JobName
  10360. /**
  10361. *
  10362. * @type {JobCommandDto}
  10363. * @memberof JobApiSendJobCommand
  10364. */
  10365. readonly jobCommandDto: JobCommandDto
  10366. }
  10367. /**
  10368. * JobApi - object-oriented interface
  10369. * @export
  10370. * @class JobApi
  10371. * @extends {BaseAPI}
  10372. */
  10373. export class JobApi extends BaseAPI {
  10374. /**
  10375. *
  10376. * @param {*} [options] Override http request option.
  10377. * @throws {RequiredError}
  10378. * @memberof JobApi
  10379. */
  10380. public getAllJobsStatus(options?: AxiosRequestConfig) {
  10381. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  10382. }
  10383. /**
  10384. *
  10385. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  10386. * @param {*} [options] Override http request option.
  10387. * @throws {RequiredError}
  10388. * @memberof JobApi
  10389. */
  10390. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  10391. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  10392. }
  10393. }
  10394. /**
  10395. * LibraryApi - axios parameter creator
  10396. * @export
  10397. */
  10398. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  10399. return {
  10400. /**
  10401. *
  10402. * @param {CreateLibraryDto} createLibraryDto
  10403. * @param {*} [options] Override http request option.
  10404. * @throws {RequiredError}
  10405. */
  10406. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10407. // verify required parameter 'createLibraryDto' is not null or undefined
  10408. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  10409. const localVarPath = `/library`;
  10410. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10411. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10412. let baseOptions;
  10413. if (configuration) {
  10414. baseOptions = configuration.baseOptions;
  10415. }
  10416. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10417. const localVarHeaderParameter = {} as any;
  10418. const localVarQueryParameter = {} as any;
  10419. // authentication cookie required
  10420. // authentication api_key required
  10421. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10422. // authentication bearer required
  10423. // http bearer authentication required
  10424. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10425. localVarHeaderParameter['Content-Type'] = 'application/json';
  10426. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10427. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10428. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10429. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  10430. return {
  10431. url: toPathString(localVarUrlObj),
  10432. options: localVarRequestOptions,
  10433. };
  10434. },
  10435. /**
  10436. *
  10437. * @param {string} id
  10438. * @param {*} [options] Override http request option.
  10439. * @throws {RequiredError}
  10440. */
  10441. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10442. // verify required parameter 'id' is not null or undefined
  10443. assertParamExists('deleteLibrary', 'id', id)
  10444. const localVarPath = `/library/{id}`
  10445. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10446. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10447. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10448. let baseOptions;
  10449. if (configuration) {
  10450. baseOptions = configuration.baseOptions;
  10451. }
  10452. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10453. const localVarHeaderParameter = {} as any;
  10454. const localVarQueryParameter = {} as any;
  10455. // authentication cookie required
  10456. // authentication api_key required
  10457. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10458. // authentication bearer required
  10459. // http bearer authentication required
  10460. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10461. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10462. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10463. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10464. return {
  10465. url: toPathString(localVarUrlObj),
  10466. options: localVarRequestOptions,
  10467. };
  10468. },
  10469. /**
  10470. *
  10471. * @param {*} [options] Override http request option.
  10472. * @throws {RequiredError}
  10473. */
  10474. getLibraries: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10475. const localVarPath = `/library`;
  10476. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10477. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10478. let baseOptions;
  10479. if (configuration) {
  10480. baseOptions = configuration.baseOptions;
  10481. }
  10482. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10483. const localVarHeaderParameter = {} as any;
  10484. const localVarQueryParameter = {} as any;
  10485. // authentication cookie required
  10486. // authentication api_key required
  10487. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10488. // authentication bearer required
  10489. // http bearer authentication required
  10490. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10491. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10492. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10493. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10494. return {
  10495. url: toPathString(localVarUrlObj),
  10496. options: localVarRequestOptions,
  10497. };
  10498. },
  10499. /**
  10500. *
  10501. * @param {string} id
  10502. * @param {*} [options] Override http request option.
  10503. * @throws {RequiredError}
  10504. */
  10505. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10506. // verify required parameter 'id' is not null or undefined
  10507. assertParamExists('getLibraryInfo', 'id', id)
  10508. const localVarPath = `/library/{id}`
  10509. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10510. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10511. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10512. let baseOptions;
  10513. if (configuration) {
  10514. baseOptions = configuration.baseOptions;
  10515. }
  10516. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10517. const localVarHeaderParameter = {} as any;
  10518. const localVarQueryParameter = {} as any;
  10519. // authentication cookie required
  10520. // authentication api_key required
  10521. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10522. // authentication bearer required
  10523. // http bearer authentication required
  10524. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10525. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10526. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10527. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10528. return {
  10529. url: toPathString(localVarUrlObj),
  10530. options: localVarRequestOptions,
  10531. };
  10532. },
  10533. /**
  10534. *
  10535. * @param {string} id
  10536. * @param {*} [options] Override http request option.
  10537. * @throws {RequiredError}
  10538. */
  10539. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10540. // verify required parameter 'id' is not null or undefined
  10541. assertParamExists('getLibraryStatistics', 'id', id)
  10542. const localVarPath = `/library/{id}/statistics`
  10543. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10544. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10545. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10546. let baseOptions;
  10547. if (configuration) {
  10548. baseOptions = configuration.baseOptions;
  10549. }
  10550. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10551. const localVarHeaderParameter = {} as any;
  10552. const localVarQueryParameter = {} as any;
  10553. // authentication cookie required
  10554. // authentication api_key required
  10555. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10556. // authentication bearer required
  10557. // http bearer authentication required
  10558. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10559. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10560. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10561. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10562. return {
  10563. url: toPathString(localVarUrlObj),
  10564. options: localVarRequestOptions,
  10565. };
  10566. },
  10567. /**
  10568. *
  10569. * @param {string} id
  10570. * @param {*} [options] Override http request option.
  10571. * @throws {RequiredError}
  10572. */
  10573. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10574. // verify required parameter 'id' is not null or undefined
  10575. assertParamExists('removeOfflineFiles', 'id', id)
  10576. const localVarPath = `/library/{id}/removeOffline`
  10577. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10578. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10579. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10580. let baseOptions;
  10581. if (configuration) {
  10582. baseOptions = configuration.baseOptions;
  10583. }
  10584. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10585. const localVarHeaderParameter = {} as any;
  10586. const localVarQueryParameter = {} as any;
  10587. // authentication cookie required
  10588. // authentication api_key required
  10589. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10590. // authentication bearer required
  10591. // http bearer authentication required
  10592. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10593. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10594. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10595. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10596. return {
  10597. url: toPathString(localVarUrlObj),
  10598. options: localVarRequestOptions,
  10599. };
  10600. },
  10601. /**
  10602. *
  10603. * @param {string} id
  10604. * @param {ScanLibraryDto} scanLibraryDto
  10605. * @param {*} [options] Override http request option.
  10606. * @throws {RequiredError}
  10607. */
  10608. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10609. // verify required parameter 'id' is not null or undefined
  10610. assertParamExists('scanLibrary', 'id', id)
  10611. // verify required parameter 'scanLibraryDto' is not null or undefined
  10612. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  10613. const localVarPath = `/library/{id}/scan`
  10614. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10615. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10616. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10617. let baseOptions;
  10618. if (configuration) {
  10619. baseOptions = configuration.baseOptions;
  10620. }
  10621. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10622. const localVarHeaderParameter = {} as any;
  10623. const localVarQueryParameter = {} as any;
  10624. // authentication cookie required
  10625. // authentication api_key required
  10626. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10627. // authentication bearer required
  10628. // http bearer authentication required
  10629. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10630. localVarHeaderParameter['Content-Type'] = 'application/json';
  10631. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10632. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10633. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10634. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  10635. return {
  10636. url: toPathString(localVarUrlObj),
  10637. options: localVarRequestOptions,
  10638. };
  10639. },
  10640. /**
  10641. *
  10642. * @param {string} id
  10643. * @param {UpdateLibraryDto} updateLibraryDto
  10644. * @param {*} [options] Override http request option.
  10645. * @throws {RequiredError}
  10646. */
  10647. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10648. // verify required parameter 'id' is not null or undefined
  10649. assertParamExists('updateLibrary', 'id', id)
  10650. // verify required parameter 'updateLibraryDto' is not null or undefined
  10651. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  10652. const localVarPath = `/library/{id}`
  10653. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10654. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10655. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10656. let baseOptions;
  10657. if (configuration) {
  10658. baseOptions = configuration.baseOptions;
  10659. }
  10660. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10661. const localVarHeaderParameter = {} as any;
  10662. const localVarQueryParameter = {} as any;
  10663. // authentication cookie required
  10664. // authentication api_key required
  10665. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10666. // authentication bearer required
  10667. // http bearer authentication required
  10668. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10669. localVarHeaderParameter['Content-Type'] = 'application/json';
  10670. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10671. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10672. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10673. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  10674. return {
  10675. url: toPathString(localVarUrlObj),
  10676. options: localVarRequestOptions,
  10677. };
  10678. },
  10679. }
  10680. };
  10681. /**
  10682. * LibraryApi - functional programming interface
  10683. * @export
  10684. */
  10685. export const LibraryApiFp = function(configuration?: Configuration) {
  10686. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  10687. return {
  10688. /**
  10689. *
  10690. * @param {CreateLibraryDto} createLibraryDto
  10691. * @param {*} [options] Override http request option.
  10692. * @throws {RequiredError}
  10693. */
  10694. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10695. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  10696. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10697. },
  10698. /**
  10699. *
  10700. * @param {string} id
  10701. * @param {*} [options] Override http request option.
  10702. * @throws {RequiredError}
  10703. */
  10704. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10705. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  10706. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10707. },
  10708. /**
  10709. *
  10710. * @param {*} [options] Override http request option.
  10711. * @throws {RequiredError}
  10712. */
  10713. async getLibraries(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  10714. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraries(options);
  10715. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10716. },
  10717. /**
  10718. *
  10719. * @param {string} id
  10720. * @param {*} [options] Override http request option.
  10721. * @throws {RequiredError}
  10722. */
  10723. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10724. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  10725. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10726. },
  10727. /**
  10728. *
  10729. * @param {string} id
  10730. * @param {*} [options] Override http request option.
  10731. * @throws {RequiredError}
  10732. */
  10733. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  10734. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  10735. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10736. },
  10737. /**
  10738. *
  10739. * @param {string} id
  10740. * @param {*} [options] Override http request option.
  10741. * @throws {RequiredError}
  10742. */
  10743. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10744. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  10745. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10746. },
  10747. /**
  10748. *
  10749. * @param {string} id
  10750. * @param {ScanLibraryDto} scanLibraryDto
  10751. * @param {*} [options] Override http request option.
  10752. * @throws {RequiredError}
  10753. */
  10754. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10755. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  10756. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10757. },
  10758. /**
  10759. *
  10760. * @param {string} id
  10761. * @param {UpdateLibraryDto} updateLibraryDto
  10762. * @param {*} [options] Override http request option.
  10763. * @throws {RequiredError}
  10764. */
  10765. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10766. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  10767. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10768. },
  10769. }
  10770. };
  10771. /**
  10772. * LibraryApi - factory interface
  10773. * @export
  10774. */
  10775. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10776. const localVarFp = LibraryApiFp(configuration)
  10777. return {
  10778. /**
  10779. *
  10780. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10781. * @param {*} [options] Override http request option.
  10782. * @throws {RequiredError}
  10783. */
  10784. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10785. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  10786. },
  10787. /**
  10788. *
  10789. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10790. * @param {*} [options] Override http request option.
  10791. * @throws {RequiredError}
  10792. */
  10793. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10794. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  10795. },
  10796. /**
  10797. *
  10798. * @param {*} [options] Override http request option.
  10799. * @throws {RequiredError}
  10800. */
  10801. getLibraries(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  10802. return localVarFp.getLibraries(options).then((request) => request(axios, basePath));
  10803. },
  10804. /**
  10805. *
  10806. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10807. * @param {*} [options] Override http request option.
  10808. * @throws {RequiredError}
  10809. */
  10810. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10811. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  10812. },
  10813. /**
  10814. *
  10815. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10816. * @param {*} [options] Override http request option.
  10817. * @throws {RequiredError}
  10818. */
  10819. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  10820. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  10821. },
  10822. /**
  10823. *
  10824. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10825. * @param {*} [options] Override http request option.
  10826. * @throws {RequiredError}
  10827. */
  10828. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10829. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  10830. },
  10831. /**
  10832. *
  10833. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10834. * @param {*} [options] Override http request option.
  10835. * @throws {RequiredError}
  10836. */
  10837. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10838. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  10839. },
  10840. /**
  10841. *
  10842. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10843. * @param {*} [options] Override http request option.
  10844. * @throws {RequiredError}
  10845. */
  10846. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10847. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  10848. },
  10849. };
  10850. };
  10851. /**
  10852. * Request parameters for createLibrary operation in LibraryApi.
  10853. * @export
  10854. * @interface LibraryApiCreateLibraryRequest
  10855. */
  10856. export interface LibraryApiCreateLibraryRequest {
  10857. /**
  10858. *
  10859. * @type {CreateLibraryDto}
  10860. * @memberof LibraryApiCreateLibrary
  10861. */
  10862. readonly createLibraryDto: CreateLibraryDto
  10863. }
  10864. /**
  10865. * Request parameters for deleteLibrary operation in LibraryApi.
  10866. * @export
  10867. * @interface LibraryApiDeleteLibraryRequest
  10868. */
  10869. export interface LibraryApiDeleteLibraryRequest {
  10870. /**
  10871. *
  10872. * @type {string}
  10873. * @memberof LibraryApiDeleteLibrary
  10874. */
  10875. readonly id: string
  10876. }
  10877. /**
  10878. * Request parameters for getLibraryInfo operation in LibraryApi.
  10879. * @export
  10880. * @interface LibraryApiGetLibraryInfoRequest
  10881. */
  10882. export interface LibraryApiGetLibraryInfoRequest {
  10883. /**
  10884. *
  10885. * @type {string}
  10886. * @memberof LibraryApiGetLibraryInfo
  10887. */
  10888. readonly id: string
  10889. }
  10890. /**
  10891. * Request parameters for getLibraryStatistics operation in LibraryApi.
  10892. * @export
  10893. * @interface LibraryApiGetLibraryStatisticsRequest
  10894. */
  10895. export interface LibraryApiGetLibraryStatisticsRequest {
  10896. /**
  10897. *
  10898. * @type {string}
  10899. * @memberof LibraryApiGetLibraryStatistics
  10900. */
  10901. readonly id: string
  10902. }
  10903. /**
  10904. * Request parameters for removeOfflineFiles operation in LibraryApi.
  10905. * @export
  10906. * @interface LibraryApiRemoveOfflineFilesRequest
  10907. */
  10908. export interface LibraryApiRemoveOfflineFilesRequest {
  10909. /**
  10910. *
  10911. * @type {string}
  10912. * @memberof LibraryApiRemoveOfflineFiles
  10913. */
  10914. readonly id: string
  10915. }
  10916. /**
  10917. * Request parameters for scanLibrary operation in LibraryApi.
  10918. * @export
  10919. * @interface LibraryApiScanLibraryRequest
  10920. */
  10921. export interface LibraryApiScanLibraryRequest {
  10922. /**
  10923. *
  10924. * @type {string}
  10925. * @memberof LibraryApiScanLibrary
  10926. */
  10927. readonly id: string
  10928. /**
  10929. *
  10930. * @type {ScanLibraryDto}
  10931. * @memberof LibraryApiScanLibrary
  10932. */
  10933. readonly scanLibraryDto: ScanLibraryDto
  10934. }
  10935. /**
  10936. * Request parameters for updateLibrary operation in LibraryApi.
  10937. * @export
  10938. * @interface LibraryApiUpdateLibraryRequest
  10939. */
  10940. export interface LibraryApiUpdateLibraryRequest {
  10941. /**
  10942. *
  10943. * @type {string}
  10944. * @memberof LibraryApiUpdateLibrary
  10945. */
  10946. readonly id: string
  10947. /**
  10948. *
  10949. * @type {UpdateLibraryDto}
  10950. * @memberof LibraryApiUpdateLibrary
  10951. */
  10952. readonly updateLibraryDto: UpdateLibraryDto
  10953. }
  10954. /**
  10955. * LibraryApi - object-oriented interface
  10956. * @export
  10957. * @class LibraryApi
  10958. * @extends {BaseAPI}
  10959. */
  10960. export class LibraryApi extends BaseAPI {
  10961. /**
  10962. *
  10963. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10964. * @param {*} [options] Override http request option.
  10965. * @throws {RequiredError}
  10966. * @memberof LibraryApi
  10967. */
  10968. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  10969. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10970. }
  10971. /**
  10972. *
  10973. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10974. * @param {*} [options] Override http request option.
  10975. * @throws {RequiredError}
  10976. * @memberof LibraryApi
  10977. */
  10978. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  10979. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10980. }
  10981. /**
  10982. *
  10983. * @param {*} [options] Override http request option.
  10984. * @throws {RequiredError}
  10985. * @memberof LibraryApi
  10986. */
  10987. public getLibraries(options?: AxiosRequestConfig) {
  10988. return LibraryApiFp(this.configuration).getLibraries(options).then((request) => request(this.axios, this.basePath));
  10989. }
  10990. /**
  10991. *
  10992. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10993. * @param {*} [options] Override http request option.
  10994. * @throws {RequiredError}
  10995. * @memberof LibraryApi
  10996. */
  10997. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  10998. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10999. }
  11000. /**
  11001. *
  11002. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  11003. * @param {*} [options] Override http request option.
  11004. * @throws {RequiredError}
  11005. * @memberof LibraryApi
  11006. */
  11007. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  11008. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11009. }
  11010. /**
  11011. *
  11012. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  11013. * @param {*} [options] Override http request option.
  11014. * @throws {RequiredError}
  11015. * @memberof LibraryApi
  11016. */
  11017. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  11018. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11019. }
  11020. /**
  11021. *
  11022. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  11023. * @param {*} [options] Override http request option.
  11024. * @throws {RequiredError}
  11025. * @memberof LibraryApi
  11026. */
  11027. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  11028. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  11029. }
  11030. /**
  11031. *
  11032. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  11033. * @param {*} [options] Override http request option.
  11034. * @throws {RequiredError}
  11035. * @memberof LibraryApi
  11036. */
  11037. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  11038. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  11039. }
  11040. }
  11041. /**
  11042. * OAuthApi - axios parameter creator
  11043. * @export
  11044. */
  11045. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  11046. return {
  11047. /**
  11048. *
  11049. * @param {OAuthCallbackDto} oAuthCallbackDto
  11050. * @param {*} [options] Override http request option.
  11051. * @throws {RequiredError}
  11052. */
  11053. finishOAuth: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11054. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  11055. assertParamExists('finishOAuth', 'oAuthCallbackDto', oAuthCallbackDto)
  11056. const localVarPath = `/oauth/callback`;
  11057. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11058. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11059. let baseOptions;
  11060. if (configuration) {
  11061. baseOptions = configuration.baseOptions;
  11062. }
  11063. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11064. const localVarHeaderParameter = {} as any;
  11065. const localVarQueryParameter = {} as any;
  11066. localVarHeaderParameter['Content-Type'] = 'application/json';
  11067. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11068. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11069. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11070. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  11071. return {
  11072. url: toPathString(localVarUrlObj),
  11073. options: localVarRequestOptions,
  11074. };
  11075. },
  11076. /**
  11077. * @deprecated use feature flags and /oauth/authorize
  11078. * @param {OAuthConfigDto} oAuthConfigDto
  11079. * @param {*} [options] Override http request option.
  11080. * @deprecated
  11081. * @throws {RequiredError}
  11082. */
  11083. generateOAuthConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11084. // verify required parameter 'oAuthConfigDto' is not null or undefined
  11085. assertParamExists('generateOAuthConfig', 'oAuthConfigDto', oAuthConfigDto)
  11086. const localVarPath = `/oauth/config`;
  11087. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11088. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11089. let baseOptions;
  11090. if (configuration) {
  11091. baseOptions = configuration.baseOptions;
  11092. }
  11093. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11094. const localVarHeaderParameter = {} as any;
  11095. const localVarQueryParameter = {} as any;
  11096. localVarHeaderParameter['Content-Type'] = 'application/json';
  11097. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11098. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11099. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11100. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  11101. return {
  11102. url: toPathString(localVarUrlObj),
  11103. options: localVarRequestOptions,
  11104. };
  11105. },
  11106. /**
  11107. *
  11108. * @param {OAuthCallbackDto} oAuthCallbackDto
  11109. * @param {*} [options] Override http request option.
  11110. * @throws {RequiredError}
  11111. */
  11112. linkOAuthAccount: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11113. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  11114. assertParamExists('linkOAuthAccount', 'oAuthCallbackDto', oAuthCallbackDto)
  11115. const localVarPath = `/oauth/link`;
  11116. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11117. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11118. let baseOptions;
  11119. if (configuration) {
  11120. baseOptions = configuration.baseOptions;
  11121. }
  11122. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11123. const localVarHeaderParameter = {} as any;
  11124. const localVarQueryParameter = {} as any;
  11125. // authentication cookie required
  11126. // authentication api_key required
  11127. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11128. // authentication bearer required
  11129. // http bearer authentication required
  11130. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11131. localVarHeaderParameter['Content-Type'] = 'application/json';
  11132. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11133. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11134. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11135. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  11136. return {
  11137. url: toPathString(localVarUrlObj),
  11138. options: localVarRequestOptions,
  11139. };
  11140. },
  11141. /**
  11142. *
  11143. * @param {*} [options] Override http request option.
  11144. * @throws {RequiredError}
  11145. */
  11146. redirectOAuthToMobile: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11147. const localVarPath = `/oauth/mobile-redirect`;
  11148. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11149. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11150. let baseOptions;
  11151. if (configuration) {
  11152. baseOptions = configuration.baseOptions;
  11153. }
  11154. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11155. const localVarHeaderParameter = {} as any;
  11156. const localVarQueryParameter = {} as any;
  11157. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11158. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11159. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11160. return {
  11161. url: toPathString(localVarUrlObj),
  11162. options: localVarRequestOptions,
  11163. };
  11164. },
  11165. /**
  11166. *
  11167. * @param {OAuthConfigDto} oAuthConfigDto
  11168. * @param {*} [options] Override http request option.
  11169. * @throws {RequiredError}
  11170. */
  11171. startOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11172. // verify required parameter 'oAuthConfigDto' is not null or undefined
  11173. assertParamExists('startOAuth', 'oAuthConfigDto', oAuthConfigDto)
  11174. const localVarPath = `/oauth/authorize`;
  11175. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11176. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11177. let baseOptions;
  11178. if (configuration) {
  11179. baseOptions = configuration.baseOptions;
  11180. }
  11181. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11182. const localVarHeaderParameter = {} as any;
  11183. const localVarQueryParameter = {} as any;
  11184. localVarHeaderParameter['Content-Type'] = 'application/json';
  11185. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11186. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11187. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11188. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  11189. return {
  11190. url: toPathString(localVarUrlObj),
  11191. options: localVarRequestOptions,
  11192. };
  11193. },
  11194. /**
  11195. *
  11196. * @param {*} [options] Override http request option.
  11197. * @throws {RequiredError}
  11198. */
  11199. unlinkOAuthAccount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11200. const localVarPath = `/oauth/unlink`;
  11201. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11202. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11203. let baseOptions;
  11204. if (configuration) {
  11205. baseOptions = configuration.baseOptions;
  11206. }
  11207. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11208. const localVarHeaderParameter = {} as any;
  11209. const localVarQueryParameter = {} as any;
  11210. // authentication cookie required
  11211. // authentication api_key required
  11212. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11213. // authentication bearer required
  11214. // http bearer authentication required
  11215. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11216. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11217. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11218. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11219. return {
  11220. url: toPathString(localVarUrlObj),
  11221. options: localVarRequestOptions,
  11222. };
  11223. },
  11224. }
  11225. };
  11226. /**
  11227. * OAuthApi - functional programming interface
  11228. * @export
  11229. */
  11230. export const OAuthApiFp = function(configuration?: Configuration) {
  11231. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  11232. return {
  11233. /**
  11234. *
  11235. * @param {OAuthCallbackDto} oAuthCallbackDto
  11236. * @param {*} [options] Override http request option.
  11237. * @throws {RequiredError}
  11238. */
  11239. async finishOAuth(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  11240. const localVarAxiosArgs = await localVarAxiosParamCreator.finishOAuth(oAuthCallbackDto, options);
  11241. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11242. },
  11243. /**
  11244. * @deprecated use feature flags and /oauth/authorize
  11245. * @param {OAuthConfigDto} oAuthConfigDto
  11246. * @param {*} [options] Override http request option.
  11247. * @deprecated
  11248. * @throws {RequiredError}
  11249. */
  11250. async generateOAuthConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  11251. const localVarAxiosArgs = await localVarAxiosParamCreator.generateOAuthConfig(oAuthConfigDto, options);
  11252. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11253. },
  11254. /**
  11255. *
  11256. * @param {OAuthCallbackDto} oAuthCallbackDto
  11257. * @param {*} [options] Override http request option.
  11258. * @throws {RequiredError}
  11259. */
  11260. async linkOAuthAccount(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11261. const localVarAxiosArgs = await localVarAxiosParamCreator.linkOAuthAccount(oAuthCallbackDto, options);
  11262. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11263. },
  11264. /**
  11265. *
  11266. * @param {*} [options] Override http request option.
  11267. * @throws {RequiredError}
  11268. */
  11269. async redirectOAuthToMobile(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  11270. const localVarAxiosArgs = await localVarAxiosParamCreator.redirectOAuthToMobile(options);
  11271. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11272. },
  11273. /**
  11274. *
  11275. * @param {OAuthConfigDto} oAuthConfigDto
  11276. * @param {*} [options] Override http request option.
  11277. * @throws {RequiredError}
  11278. */
  11279. async startOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  11280. const localVarAxiosArgs = await localVarAxiosParamCreator.startOAuth(oAuthConfigDto, options);
  11281. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11282. },
  11283. /**
  11284. *
  11285. * @param {*} [options] Override http request option.
  11286. * @throws {RequiredError}
  11287. */
  11288. async unlinkOAuthAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11289. const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkOAuthAccount(options);
  11290. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11291. },
  11292. }
  11293. };
  11294. /**
  11295. * OAuthApi - factory interface
  11296. * @export
  11297. */
  11298. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11299. const localVarFp = OAuthApiFp(configuration)
  11300. return {
  11301. /**
  11302. *
  11303. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  11304. * @param {*} [options] Override http request option.
  11305. * @throws {RequiredError}
  11306. */
  11307. finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  11308. return localVarFp.finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  11309. },
  11310. /**
  11311. * @deprecated use feature flags and /oauth/authorize
  11312. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  11313. * @param {*} [options] Override http request option.
  11314. * @deprecated
  11315. * @throws {RequiredError}
  11316. */
  11317. generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  11318. return localVarFp.generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  11319. },
  11320. /**
  11321. *
  11322. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11323. * @param {*} [options] Override http request option.
  11324. * @throws {RequiredError}
  11325. */
  11326. linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11327. return localVarFp.linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  11328. },
  11329. /**
  11330. *
  11331. * @param {*} [options] Override http request option.
  11332. * @throws {RequiredError}
  11333. */
  11334. redirectOAuthToMobile(options?: AxiosRequestConfig): AxiosPromise<void> {
  11335. return localVarFp.redirectOAuthToMobile(options).then((request) => request(axios, basePath));
  11336. },
  11337. /**
  11338. *
  11339. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11340. * @param {*} [options] Override http request option.
  11341. * @throws {RequiredError}
  11342. */
  11343. startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  11344. return localVarFp.startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  11345. },
  11346. /**
  11347. *
  11348. * @param {*} [options] Override http request option.
  11349. * @throws {RequiredError}
  11350. */
  11351. unlinkOAuthAccount(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11352. return localVarFp.unlinkOAuthAccount(options).then((request) => request(axios, basePath));
  11353. },
  11354. };
  11355. };
  11356. /**
  11357. * Request parameters for finishOAuth operation in OAuthApi.
  11358. * @export
  11359. * @interface OAuthApiFinishOAuthRequest
  11360. */
  11361. export interface OAuthApiFinishOAuthRequest {
  11362. /**
  11363. *
  11364. * @type {OAuthCallbackDto}
  11365. * @memberof OAuthApiFinishOAuth
  11366. */
  11367. readonly oAuthCallbackDto: OAuthCallbackDto
  11368. }
  11369. /**
  11370. * Request parameters for generateOAuthConfig operation in OAuthApi.
  11371. * @export
  11372. * @interface OAuthApiGenerateOAuthConfigRequest
  11373. */
  11374. export interface OAuthApiGenerateOAuthConfigRequest {
  11375. /**
  11376. *
  11377. * @type {OAuthConfigDto}
  11378. * @memberof OAuthApiGenerateOAuthConfig
  11379. */
  11380. readonly oAuthConfigDto: OAuthConfigDto
  11381. }
  11382. /**
  11383. * Request parameters for linkOAuthAccount operation in OAuthApi.
  11384. * @export
  11385. * @interface OAuthApiLinkOAuthAccountRequest
  11386. */
  11387. export interface OAuthApiLinkOAuthAccountRequest {
  11388. /**
  11389. *
  11390. * @type {OAuthCallbackDto}
  11391. * @memberof OAuthApiLinkOAuthAccount
  11392. */
  11393. readonly oAuthCallbackDto: OAuthCallbackDto
  11394. }
  11395. /**
  11396. * Request parameters for startOAuth operation in OAuthApi.
  11397. * @export
  11398. * @interface OAuthApiStartOAuthRequest
  11399. */
  11400. export interface OAuthApiStartOAuthRequest {
  11401. /**
  11402. *
  11403. * @type {OAuthConfigDto}
  11404. * @memberof OAuthApiStartOAuth
  11405. */
  11406. readonly oAuthConfigDto: OAuthConfigDto
  11407. }
  11408. /**
  11409. * OAuthApi - object-oriented interface
  11410. * @export
  11411. * @class OAuthApi
  11412. * @extends {BaseAPI}
  11413. */
  11414. export class OAuthApi extends BaseAPI {
  11415. /**
  11416. *
  11417. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  11418. * @param {*} [options] Override http request option.
  11419. * @throws {RequiredError}
  11420. * @memberof OAuthApi
  11421. */
  11422. public finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig) {
  11423. return OAuthApiFp(this.configuration).finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11424. }
  11425. /**
  11426. * @deprecated use feature flags and /oauth/authorize
  11427. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  11428. * @param {*} [options] Override http request option.
  11429. * @deprecated
  11430. * @throws {RequiredError}
  11431. * @memberof OAuthApi
  11432. */
  11433. public generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig) {
  11434. return OAuthApiFp(this.configuration).generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11435. }
  11436. /**
  11437. *
  11438. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11439. * @param {*} [options] Override http request option.
  11440. * @throws {RequiredError}
  11441. * @memberof OAuthApi
  11442. */
  11443. public linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig) {
  11444. return OAuthApiFp(this.configuration).linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11445. }
  11446. /**
  11447. *
  11448. * @param {*} [options] Override http request option.
  11449. * @throws {RequiredError}
  11450. * @memberof OAuthApi
  11451. */
  11452. public redirectOAuthToMobile(options?: AxiosRequestConfig) {
  11453. return OAuthApiFp(this.configuration).redirectOAuthToMobile(options).then((request) => request(this.axios, this.basePath));
  11454. }
  11455. /**
  11456. *
  11457. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11458. * @param {*} [options] Override http request option.
  11459. * @throws {RequiredError}
  11460. * @memberof OAuthApi
  11461. */
  11462. public startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig) {
  11463. return OAuthApiFp(this.configuration).startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11464. }
  11465. /**
  11466. *
  11467. * @param {*} [options] Override http request option.
  11468. * @throws {RequiredError}
  11469. * @memberof OAuthApi
  11470. */
  11471. public unlinkOAuthAccount(options?: AxiosRequestConfig) {
  11472. return OAuthApiFp(this.configuration).unlinkOAuthAccount(options).then((request) => request(this.axios, this.basePath));
  11473. }
  11474. }
  11475. /**
  11476. * PartnerApi - axios parameter creator
  11477. * @export
  11478. */
  11479. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  11480. return {
  11481. /**
  11482. *
  11483. * @param {string} id
  11484. * @param {*} [options] Override http request option.
  11485. * @throws {RequiredError}
  11486. */
  11487. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11488. // verify required parameter 'id' is not null or undefined
  11489. assertParamExists('createPartner', 'id', id)
  11490. const localVarPath = `/partner/{id}`
  11491. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11492. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11493. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11494. let baseOptions;
  11495. if (configuration) {
  11496. baseOptions = configuration.baseOptions;
  11497. }
  11498. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11499. const localVarHeaderParameter = {} as any;
  11500. const localVarQueryParameter = {} as any;
  11501. // authentication cookie required
  11502. // authentication api_key required
  11503. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11504. // authentication bearer required
  11505. // http bearer authentication required
  11506. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11507. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11508. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11509. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11510. return {
  11511. url: toPathString(localVarUrlObj),
  11512. options: localVarRequestOptions,
  11513. };
  11514. },
  11515. /**
  11516. *
  11517. * @param {'shared-by' | 'shared-with'} direction
  11518. * @param {*} [options] Override http request option.
  11519. * @throws {RequiredError}
  11520. */
  11521. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11522. // verify required parameter 'direction' is not null or undefined
  11523. assertParamExists('getPartners', 'direction', direction)
  11524. const localVarPath = `/partner`;
  11525. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11526. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11527. let baseOptions;
  11528. if (configuration) {
  11529. baseOptions = configuration.baseOptions;
  11530. }
  11531. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11532. const localVarHeaderParameter = {} as any;
  11533. const localVarQueryParameter = {} as any;
  11534. // authentication cookie required
  11535. // authentication api_key required
  11536. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11537. // authentication bearer required
  11538. // http bearer authentication required
  11539. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11540. if (direction !== undefined) {
  11541. localVarQueryParameter['direction'] = direction;
  11542. }
  11543. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11544. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11545. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11546. return {
  11547. url: toPathString(localVarUrlObj),
  11548. options: localVarRequestOptions,
  11549. };
  11550. },
  11551. /**
  11552. *
  11553. * @param {string} id
  11554. * @param {*} [options] Override http request option.
  11555. * @throws {RequiredError}
  11556. */
  11557. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11558. // verify required parameter 'id' is not null or undefined
  11559. assertParamExists('removePartner', 'id', id)
  11560. const localVarPath = `/partner/{id}`
  11561. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11562. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11563. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11564. let baseOptions;
  11565. if (configuration) {
  11566. baseOptions = configuration.baseOptions;
  11567. }
  11568. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  11569. const localVarHeaderParameter = {} as any;
  11570. const localVarQueryParameter = {} as any;
  11571. // authentication cookie required
  11572. // authentication api_key required
  11573. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11574. // authentication bearer required
  11575. // http bearer authentication required
  11576. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11577. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11578. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11579. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11580. return {
  11581. url: toPathString(localVarUrlObj),
  11582. options: localVarRequestOptions,
  11583. };
  11584. },
  11585. /**
  11586. *
  11587. * @param {string} id
  11588. * @param {UpdatePartnerDto} updatePartnerDto
  11589. * @param {*} [options] Override http request option.
  11590. * @throws {RequiredError}
  11591. */
  11592. updatePartner: async (id: string, updatePartnerDto: UpdatePartnerDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11593. // verify required parameter 'id' is not null or undefined
  11594. assertParamExists('updatePartner', 'id', id)
  11595. // verify required parameter 'updatePartnerDto' is not null or undefined
  11596. assertParamExists('updatePartner', 'updatePartnerDto', updatePartnerDto)
  11597. const localVarPath = `/partner/{id}`
  11598. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11599. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11600. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11601. let baseOptions;
  11602. if (configuration) {
  11603. baseOptions = configuration.baseOptions;
  11604. }
  11605. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11606. const localVarHeaderParameter = {} as any;
  11607. const localVarQueryParameter = {} as any;
  11608. // authentication cookie required
  11609. // authentication api_key required
  11610. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11611. // authentication bearer required
  11612. // http bearer authentication required
  11613. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11614. localVarHeaderParameter['Content-Type'] = 'application/json';
  11615. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11616. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11617. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11618. localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerDto, localVarRequestOptions, configuration)
  11619. return {
  11620. url: toPathString(localVarUrlObj),
  11621. options: localVarRequestOptions,
  11622. };
  11623. },
  11624. }
  11625. };
  11626. /**
  11627. * PartnerApi - functional programming interface
  11628. * @export
  11629. */
  11630. export const PartnerApiFp = function(configuration?: Configuration) {
  11631. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  11632. return {
  11633. /**
  11634. *
  11635. * @param {string} id
  11636. * @param {*} [options] Override http request option.
  11637. * @throws {RequiredError}
  11638. */
  11639. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerResponseDto>> {
  11640. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  11641. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11642. },
  11643. /**
  11644. *
  11645. * @param {'shared-by' | 'shared-with'} direction
  11646. * @param {*} [options] Override http request option.
  11647. * @throws {RequiredError}
  11648. */
  11649. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PartnerResponseDto>>> {
  11650. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  11651. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11652. },
  11653. /**
  11654. *
  11655. * @param {string} id
  11656. * @param {*} [options] Override http request option.
  11657. * @throws {RequiredError}
  11658. */
  11659. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  11660. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  11661. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11662. },
  11663. /**
  11664. *
  11665. * @param {string} id
  11666. * @param {UpdatePartnerDto} updatePartnerDto
  11667. * @param {*} [options] Override http request option.
  11668. * @throws {RequiredError}
  11669. */
  11670. async updatePartner(id: string, updatePartnerDto: UpdatePartnerDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerResponseDto>> {
  11671. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartner(id, updatePartnerDto, options);
  11672. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11673. },
  11674. }
  11675. };
  11676. /**
  11677. * PartnerApi - factory interface
  11678. * @export
  11679. */
  11680. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11681. const localVarFp = PartnerApiFp(configuration)
  11682. return {
  11683. /**
  11684. *
  11685. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11686. * @param {*} [options] Override http request option.
  11687. * @throws {RequiredError}
  11688. */
  11689. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<PartnerResponseDto> {
  11690. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11691. },
  11692. /**
  11693. *
  11694. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11695. * @param {*} [options] Override http request option.
  11696. * @throws {RequiredError}
  11697. */
  11698. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PartnerResponseDto>> {
  11699. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  11700. },
  11701. /**
  11702. *
  11703. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11704. * @param {*} [options] Override http request option.
  11705. * @throws {RequiredError}
  11706. */
  11707. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  11708. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11709. },
  11710. /**
  11711. *
  11712. * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
  11713. * @param {*} [options] Override http request option.
  11714. * @throws {RequiredError}
  11715. */
  11716. updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<PartnerResponseDto> {
  11717. return localVarFp.updatePartner(requestParameters.id, requestParameters.updatePartnerDto, options).then((request) => request(axios, basePath));
  11718. },
  11719. };
  11720. };
  11721. /**
  11722. * Request parameters for createPartner operation in PartnerApi.
  11723. * @export
  11724. * @interface PartnerApiCreatePartnerRequest
  11725. */
  11726. export interface PartnerApiCreatePartnerRequest {
  11727. /**
  11728. *
  11729. * @type {string}
  11730. * @memberof PartnerApiCreatePartner
  11731. */
  11732. readonly id: string
  11733. }
  11734. /**
  11735. * Request parameters for getPartners operation in PartnerApi.
  11736. * @export
  11737. * @interface PartnerApiGetPartnersRequest
  11738. */
  11739. export interface PartnerApiGetPartnersRequest {
  11740. /**
  11741. *
  11742. * @type {'shared-by' | 'shared-with'}
  11743. * @memberof PartnerApiGetPartners
  11744. */
  11745. readonly direction: 'shared-by' | 'shared-with'
  11746. }
  11747. /**
  11748. * Request parameters for removePartner operation in PartnerApi.
  11749. * @export
  11750. * @interface PartnerApiRemovePartnerRequest
  11751. */
  11752. export interface PartnerApiRemovePartnerRequest {
  11753. /**
  11754. *
  11755. * @type {string}
  11756. * @memberof PartnerApiRemovePartner
  11757. */
  11758. readonly id: string
  11759. }
  11760. /**
  11761. * Request parameters for updatePartner operation in PartnerApi.
  11762. * @export
  11763. * @interface PartnerApiUpdatePartnerRequest
  11764. */
  11765. export interface PartnerApiUpdatePartnerRequest {
  11766. /**
  11767. *
  11768. * @type {string}
  11769. * @memberof PartnerApiUpdatePartner
  11770. */
  11771. readonly id: string
  11772. /**
  11773. *
  11774. * @type {UpdatePartnerDto}
  11775. * @memberof PartnerApiUpdatePartner
  11776. */
  11777. readonly updatePartnerDto: UpdatePartnerDto
  11778. }
  11779. /**
  11780. * PartnerApi - object-oriented interface
  11781. * @export
  11782. * @class PartnerApi
  11783. * @extends {BaseAPI}
  11784. */
  11785. export class PartnerApi extends BaseAPI {
  11786. /**
  11787. *
  11788. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11789. * @param {*} [options] Override http request option.
  11790. * @throws {RequiredError}
  11791. * @memberof PartnerApi
  11792. */
  11793. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  11794. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11795. }
  11796. /**
  11797. *
  11798. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11799. * @param {*} [options] Override http request option.
  11800. * @throws {RequiredError}
  11801. * @memberof PartnerApi
  11802. */
  11803. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  11804. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  11805. }
  11806. /**
  11807. *
  11808. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11809. * @param {*} [options] Override http request option.
  11810. * @throws {RequiredError}
  11811. * @memberof PartnerApi
  11812. */
  11813. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  11814. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11815. }
  11816. /**
  11817. *
  11818. * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
  11819. * @param {*} [options] Override http request option.
  11820. * @throws {RequiredError}
  11821. * @memberof PartnerApi
  11822. */
  11823. public updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
  11824. return PartnerApiFp(this.configuration).updatePartner(requestParameters.id, requestParameters.updatePartnerDto, options).then((request) => request(this.axios, this.basePath));
  11825. }
  11826. }
  11827. /**
  11828. * PersonApi - axios parameter creator
  11829. * @export
  11830. */
  11831. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  11832. return {
  11833. /**
  11834. *
  11835. * @param {boolean} [withHidden]
  11836. * @param {*} [options] Override http request option.
  11837. * @throws {RequiredError}
  11838. */
  11839. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11840. const localVarPath = `/person`;
  11841. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11842. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11843. let baseOptions;
  11844. if (configuration) {
  11845. baseOptions = configuration.baseOptions;
  11846. }
  11847. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11848. const localVarHeaderParameter = {} as any;
  11849. const localVarQueryParameter = {} as any;
  11850. // authentication cookie required
  11851. // authentication api_key required
  11852. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11853. // authentication bearer required
  11854. // http bearer authentication required
  11855. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11856. if (withHidden !== undefined) {
  11857. localVarQueryParameter['withHidden'] = withHidden;
  11858. }
  11859. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11860. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11861. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11862. return {
  11863. url: toPathString(localVarUrlObj),
  11864. options: localVarRequestOptions,
  11865. };
  11866. },
  11867. /**
  11868. *
  11869. * @param {string} id
  11870. * @param {*} [options] Override http request option.
  11871. * @throws {RequiredError}
  11872. */
  11873. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11874. // verify required parameter 'id' is not null or undefined
  11875. assertParamExists('getPerson', 'id', id)
  11876. const localVarPath = `/person/{id}`
  11877. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11878. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11879. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11880. let baseOptions;
  11881. if (configuration) {
  11882. baseOptions = configuration.baseOptions;
  11883. }
  11884. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11885. const localVarHeaderParameter = {} as any;
  11886. const localVarQueryParameter = {} as any;
  11887. // authentication cookie required
  11888. // authentication api_key required
  11889. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11890. // authentication bearer required
  11891. // http bearer authentication required
  11892. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11893. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11894. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11895. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11896. return {
  11897. url: toPathString(localVarUrlObj),
  11898. options: localVarRequestOptions,
  11899. };
  11900. },
  11901. /**
  11902. *
  11903. * @param {string} id
  11904. * @param {*} [options] Override http request option.
  11905. * @throws {RequiredError}
  11906. */
  11907. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11908. // verify required parameter 'id' is not null or undefined
  11909. assertParamExists('getPersonAssets', 'id', id)
  11910. const localVarPath = `/person/{id}/assets`
  11911. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11912. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11913. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11914. let baseOptions;
  11915. if (configuration) {
  11916. baseOptions = configuration.baseOptions;
  11917. }
  11918. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11919. const localVarHeaderParameter = {} as any;
  11920. const localVarQueryParameter = {} as any;
  11921. // authentication cookie required
  11922. // authentication api_key required
  11923. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11924. // authentication bearer required
  11925. // http bearer authentication required
  11926. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11927. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11928. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11929. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11930. return {
  11931. url: toPathString(localVarUrlObj),
  11932. options: localVarRequestOptions,
  11933. };
  11934. },
  11935. /**
  11936. *
  11937. * @param {string} id
  11938. * @param {*} [options] Override http request option.
  11939. * @throws {RequiredError}
  11940. */
  11941. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11942. // verify required parameter 'id' is not null or undefined
  11943. assertParamExists('getPersonStatistics', 'id', id)
  11944. const localVarPath = `/person/{id}/statistics`
  11945. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11946. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11947. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11948. let baseOptions;
  11949. if (configuration) {
  11950. baseOptions = configuration.baseOptions;
  11951. }
  11952. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11953. const localVarHeaderParameter = {} as any;
  11954. const localVarQueryParameter = {} as any;
  11955. // authentication cookie required
  11956. // authentication api_key required
  11957. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11958. // authentication bearer required
  11959. // http bearer authentication required
  11960. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11961. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11962. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11963. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11964. return {
  11965. url: toPathString(localVarUrlObj),
  11966. options: localVarRequestOptions,
  11967. };
  11968. },
  11969. /**
  11970. *
  11971. * @param {string} id
  11972. * @param {*} [options] Override http request option.
  11973. * @throws {RequiredError}
  11974. */
  11975. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11976. // verify required parameter 'id' is not null or undefined
  11977. assertParamExists('getPersonThumbnail', 'id', id)
  11978. const localVarPath = `/person/{id}/thumbnail`
  11979. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11980. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11981. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11982. let baseOptions;
  11983. if (configuration) {
  11984. baseOptions = configuration.baseOptions;
  11985. }
  11986. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11987. const localVarHeaderParameter = {} as any;
  11988. const localVarQueryParameter = {} as any;
  11989. // authentication cookie required
  11990. // authentication api_key required
  11991. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11992. // authentication bearer required
  11993. // http bearer authentication required
  11994. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11995. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11996. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11997. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11998. return {
  11999. url: toPathString(localVarUrlObj),
  12000. options: localVarRequestOptions,
  12001. };
  12002. },
  12003. /**
  12004. *
  12005. * @param {string} id
  12006. * @param {MergePersonDto} mergePersonDto
  12007. * @param {*} [options] Override http request option.
  12008. * @throws {RequiredError}
  12009. */
  12010. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12011. // verify required parameter 'id' is not null or undefined
  12012. assertParamExists('mergePerson', 'id', id)
  12013. // verify required parameter 'mergePersonDto' is not null or undefined
  12014. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  12015. const localVarPath = `/person/{id}/merge`
  12016. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12017. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12018. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12019. let baseOptions;
  12020. if (configuration) {
  12021. baseOptions = configuration.baseOptions;
  12022. }
  12023. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12024. const localVarHeaderParameter = {} as any;
  12025. const localVarQueryParameter = {} as any;
  12026. // authentication cookie required
  12027. // authentication api_key required
  12028. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12029. // authentication bearer required
  12030. // http bearer authentication required
  12031. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12032. localVarHeaderParameter['Content-Type'] = 'application/json';
  12033. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12034. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12035. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12036. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  12037. return {
  12038. url: toPathString(localVarUrlObj),
  12039. options: localVarRequestOptions,
  12040. };
  12041. },
  12042. /**
  12043. *
  12044. * @param {PeopleUpdateDto} peopleUpdateDto
  12045. * @param {*} [options] Override http request option.
  12046. * @throws {RequiredError}
  12047. */
  12048. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12049. // verify required parameter 'peopleUpdateDto' is not null or undefined
  12050. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  12051. const localVarPath = `/person`;
  12052. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12053. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12054. let baseOptions;
  12055. if (configuration) {
  12056. baseOptions = configuration.baseOptions;
  12057. }
  12058. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12059. const localVarHeaderParameter = {} as any;
  12060. const localVarQueryParameter = {} as any;
  12061. // authentication cookie required
  12062. // authentication api_key required
  12063. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12064. // authentication bearer required
  12065. // http bearer authentication required
  12066. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12067. localVarHeaderParameter['Content-Type'] = 'application/json';
  12068. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12069. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12070. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12071. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  12072. return {
  12073. url: toPathString(localVarUrlObj),
  12074. options: localVarRequestOptions,
  12075. };
  12076. },
  12077. /**
  12078. *
  12079. * @param {string} id
  12080. * @param {PersonUpdateDto} personUpdateDto
  12081. * @param {*} [options] Override http request option.
  12082. * @throws {RequiredError}
  12083. */
  12084. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12085. // verify required parameter 'id' is not null or undefined
  12086. assertParamExists('updatePerson', 'id', id)
  12087. // verify required parameter 'personUpdateDto' is not null or undefined
  12088. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  12089. const localVarPath = `/person/{id}`
  12090. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12091. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12092. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12093. let baseOptions;
  12094. if (configuration) {
  12095. baseOptions = configuration.baseOptions;
  12096. }
  12097. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12098. const localVarHeaderParameter = {} as any;
  12099. const localVarQueryParameter = {} as any;
  12100. // authentication cookie required
  12101. // authentication api_key required
  12102. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12103. // authentication bearer required
  12104. // http bearer authentication required
  12105. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12106. localVarHeaderParameter['Content-Type'] = 'application/json';
  12107. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12108. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12109. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12110. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  12111. return {
  12112. url: toPathString(localVarUrlObj),
  12113. options: localVarRequestOptions,
  12114. };
  12115. },
  12116. }
  12117. };
  12118. /**
  12119. * PersonApi - functional programming interface
  12120. * @export
  12121. */
  12122. export const PersonApiFp = function(configuration?: Configuration) {
  12123. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  12124. return {
  12125. /**
  12126. *
  12127. * @param {boolean} [withHidden]
  12128. * @param {*} [options] Override http request option.
  12129. * @throws {RequiredError}
  12130. */
  12131. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  12132. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  12133. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12134. },
  12135. /**
  12136. *
  12137. * @param {string} id
  12138. * @param {*} [options] Override http request option.
  12139. * @throws {RequiredError}
  12140. */
  12141. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  12142. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  12143. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12144. },
  12145. /**
  12146. *
  12147. * @param {string} id
  12148. * @param {*} [options] Override http request option.
  12149. * @throws {RequiredError}
  12150. */
  12151. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  12152. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  12153. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12154. },
  12155. /**
  12156. *
  12157. * @param {string} id
  12158. * @param {*} [options] Override http request option.
  12159. * @throws {RequiredError}
  12160. */
  12161. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  12162. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  12163. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12164. },
  12165. /**
  12166. *
  12167. * @param {string} id
  12168. * @param {*} [options] Override http request option.
  12169. * @throws {RequiredError}
  12170. */
  12171. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  12172. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  12173. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12174. },
  12175. /**
  12176. *
  12177. * @param {string} id
  12178. * @param {MergePersonDto} mergePersonDto
  12179. * @param {*} [options] Override http request option.
  12180. * @throws {RequiredError}
  12181. */
  12182. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  12183. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  12184. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12185. },
  12186. /**
  12187. *
  12188. * @param {PeopleUpdateDto} peopleUpdateDto
  12189. * @param {*} [options] Override http request option.
  12190. * @throws {RequiredError}
  12191. */
  12192. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  12193. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  12194. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12195. },
  12196. /**
  12197. *
  12198. * @param {string} id
  12199. * @param {PersonUpdateDto} personUpdateDto
  12200. * @param {*} [options] Override http request option.
  12201. * @throws {RequiredError}
  12202. */
  12203. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  12204. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  12205. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12206. },
  12207. }
  12208. };
  12209. /**
  12210. * PersonApi - factory interface
  12211. * @export
  12212. */
  12213. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12214. const localVarFp = PersonApiFp(configuration)
  12215. return {
  12216. /**
  12217. *
  12218. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  12219. * @param {*} [options] Override http request option.
  12220. * @throws {RequiredError}
  12221. */
  12222. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  12223. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  12224. },
  12225. /**
  12226. *
  12227. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  12228. * @param {*} [options] Override http request option.
  12229. * @throws {RequiredError}
  12230. */
  12231. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  12232. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  12233. },
  12234. /**
  12235. *
  12236. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  12237. * @param {*} [options] Override http request option.
  12238. * @throws {RequiredError}
  12239. */
  12240. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  12241. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  12242. },
  12243. /**
  12244. *
  12245. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  12246. * @param {*} [options] Override http request option.
  12247. * @throws {RequiredError}
  12248. */
  12249. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  12250. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  12251. },
  12252. /**
  12253. *
  12254. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  12255. * @param {*} [options] Override http request option.
  12256. * @throws {RequiredError}
  12257. */
  12258. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  12259. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  12260. },
  12261. /**
  12262. *
  12263. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  12264. * @param {*} [options] Override http request option.
  12265. * @throws {RequiredError}
  12266. */
  12267. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  12268. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  12269. },
  12270. /**
  12271. *
  12272. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  12273. * @param {*} [options] Override http request option.
  12274. * @throws {RequiredError}
  12275. */
  12276. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  12277. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  12278. },
  12279. /**
  12280. *
  12281. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  12282. * @param {*} [options] Override http request option.
  12283. * @throws {RequiredError}
  12284. */
  12285. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  12286. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  12287. },
  12288. };
  12289. };
  12290. /**
  12291. * Request parameters for getAllPeople operation in PersonApi.
  12292. * @export
  12293. * @interface PersonApiGetAllPeopleRequest
  12294. */
  12295. export interface PersonApiGetAllPeopleRequest {
  12296. /**
  12297. *
  12298. * @type {boolean}
  12299. * @memberof PersonApiGetAllPeople
  12300. */
  12301. readonly withHidden?: boolean
  12302. }
  12303. /**
  12304. * Request parameters for getPerson operation in PersonApi.
  12305. * @export
  12306. * @interface PersonApiGetPersonRequest
  12307. */
  12308. export interface PersonApiGetPersonRequest {
  12309. /**
  12310. *
  12311. * @type {string}
  12312. * @memberof PersonApiGetPerson
  12313. */
  12314. readonly id: string
  12315. }
  12316. /**
  12317. * Request parameters for getPersonAssets operation in PersonApi.
  12318. * @export
  12319. * @interface PersonApiGetPersonAssetsRequest
  12320. */
  12321. export interface PersonApiGetPersonAssetsRequest {
  12322. /**
  12323. *
  12324. * @type {string}
  12325. * @memberof PersonApiGetPersonAssets
  12326. */
  12327. readonly id: string
  12328. }
  12329. /**
  12330. * Request parameters for getPersonStatistics operation in PersonApi.
  12331. * @export
  12332. * @interface PersonApiGetPersonStatisticsRequest
  12333. */
  12334. export interface PersonApiGetPersonStatisticsRequest {
  12335. /**
  12336. *
  12337. * @type {string}
  12338. * @memberof PersonApiGetPersonStatistics
  12339. */
  12340. readonly id: string
  12341. }
  12342. /**
  12343. * Request parameters for getPersonThumbnail operation in PersonApi.
  12344. * @export
  12345. * @interface PersonApiGetPersonThumbnailRequest
  12346. */
  12347. export interface PersonApiGetPersonThumbnailRequest {
  12348. /**
  12349. *
  12350. * @type {string}
  12351. * @memberof PersonApiGetPersonThumbnail
  12352. */
  12353. readonly id: string
  12354. }
  12355. /**
  12356. * Request parameters for mergePerson operation in PersonApi.
  12357. * @export
  12358. * @interface PersonApiMergePersonRequest
  12359. */
  12360. export interface PersonApiMergePersonRequest {
  12361. /**
  12362. *
  12363. * @type {string}
  12364. * @memberof PersonApiMergePerson
  12365. */
  12366. readonly id: string
  12367. /**
  12368. *
  12369. * @type {MergePersonDto}
  12370. * @memberof PersonApiMergePerson
  12371. */
  12372. readonly mergePersonDto: MergePersonDto
  12373. }
  12374. /**
  12375. * Request parameters for updatePeople operation in PersonApi.
  12376. * @export
  12377. * @interface PersonApiUpdatePeopleRequest
  12378. */
  12379. export interface PersonApiUpdatePeopleRequest {
  12380. /**
  12381. *
  12382. * @type {PeopleUpdateDto}
  12383. * @memberof PersonApiUpdatePeople
  12384. */
  12385. readonly peopleUpdateDto: PeopleUpdateDto
  12386. }
  12387. /**
  12388. * Request parameters for updatePerson operation in PersonApi.
  12389. * @export
  12390. * @interface PersonApiUpdatePersonRequest
  12391. */
  12392. export interface PersonApiUpdatePersonRequest {
  12393. /**
  12394. *
  12395. * @type {string}
  12396. * @memberof PersonApiUpdatePerson
  12397. */
  12398. readonly id: string
  12399. /**
  12400. *
  12401. * @type {PersonUpdateDto}
  12402. * @memberof PersonApiUpdatePerson
  12403. */
  12404. readonly personUpdateDto: PersonUpdateDto
  12405. }
  12406. /**
  12407. * PersonApi - object-oriented interface
  12408. * @export
  12409. * @class PersonApi
  12410. * @extends {BaseAPI}
  12411. */
  12412. export class PersonApi extends BaseAPI {
  12413. /**
  12414. *
  12415. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  12416. * @param {*} [options] Override http request option.
  12417. * @throws {RequiredError}
  12418. * @memberof PersonApi
  12419. */
  12420. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  12421. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12422. }
  12423. /**
  12424. *
  12425. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  12426. * @param {*} [options] Override http request option.
  12427. * @throws {RequiredError}
  12428. * @memberof PersonApi
  12429. */
  12430. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  12431. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12432. }
  12433. /**
  12434. *
  12435. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  12436. * @param {*} [options] Override http request option.
  12437. * @throws {RequiredError}
  12438. * @memberof PersonApi
  12439. */
  12440. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  12441. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12442. }
  12443. /**
  12444. *
  12445. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  12446. * @param {*} [options] Override http request option.
  12447. * @throws {RequiredError}
  12448. * @memberof PersonApi
  12449. */
  12450. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  12451. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12452. }
  12453. /**
  12454. *
  12455. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  12456. * @param {*} [options] Override http request option.
  12457. * @throws {RequiredError}
  12458. * @memberof PersonApi
  12459. */
  12460. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  12461. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12462. }
  12463. /**
  12464. *
  12465. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  12466. * @param {*} [options] Override http request option.
  12467. * @throws {RequiredError}
  12468. * @memberof PersonApi
  12469. */
  12470. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  12471. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  12472. }
  12473. /**
  12474. *
  12475. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  12476. * @param {*} [options] Override http request option.
  12477. * @throws {RequiredError}
  12478. * @memberof PersonApi
  12479. */
  12480. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  12481. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  12482. }
  12483. /**
  12484. *
  12485. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  12486. * @param {*} [options] Override http request option.
  12487. * @throws {RequiredError}
  12488. * @memberof PersonApi
  12489. */
  12490. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  12491. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  12492. }
  12493. }
  12494. /**
  12495. * SearchApi - axios parameter creator
  12496. * @export
  12497. */
  12498. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  12499. return {
  12500. /**
  12501. *
  12502. * @param {*} [options] Override http request option.
  12503. * @throws {RequiredError}
  12504. */
  12505. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12506. const localVarPath = `/search/explore`;
  12507. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12508. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12509. let baseOptions;
  12510. if (configuration) {
  12511. baseOptions = configuration.baseOptions;
  12512. }
  12513. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12514. const localVarHeaderParameter = {} as any;
  12515. const localVarQueryParameter = {} as any;
  12516. // authentication cookie required
  12517. // authentication api_key required
  12518. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12519. // authentication bearer required
  12520. // http bearer authentication required
  12521. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12522. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12523. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12524. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12525. return {
  12526. url: toPathString(localVarUrlObj),
  12527. options: localVarRequestOptions,
  12528. };
  12529. },
  12530. /**
  12531. *
  12532. * @param {string} [q]
  12533. * @param {string} [query]
  12534. * @param {boolean} [clip]
  12535. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12536. * @param {boolean} [isFavorite]
  12537. * @param {boolean} [isArchived]
  12538. * @param {string} [exifInfoCity]
  12539. * @param {string} [exifInfoState]
  12540. * @param {string} [exifInfoCountry]
  12541. * @param {string} [exifInfoMake]
  12542. * @param {string} [exifInfoModel]
  12543. * @param {string} [exifInfoProjectionType]
  12544. * @param {Array<string>} [smartInfoObjects]
  12545. * @param {Array<string>} [smartInfoTags]
  12546. * @param {boolean} [recent]
  12547. * @param {boolean} [motion]
  12548. * @param {*} [options] Override http request option.
  12549. * @throws {RequiredError}
  12550. */
  12551. 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> => {
  12552. const localVarPath = `/search`;
  12553. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12554. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12555. let baseOptions;
  12556. if (configuration) {
  12557. baseOptions = configuration.baseOptions;
  12558. }
  12559. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12560. const localVarHeaderParameter = {} as any;
  12561. const localVarQueryParameter = {} as any;
  12562. // authentication cookie required
  12563. // authentication api_key required
  12564. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12565. // authentication bearer required
  12566. // http bearer authentication required
  12567. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12568. if (q !== undefined) {
  12569. localVarQueryParameter['q'] = q;
  12570. }
  12571. if (query !== undefined) {
  12572. localVarQueryParameter['query'] = query;
  12573. }
  12574. if (clip !== undefined) {
  12575. localVarQueryParameter['clip'] = clip;
  12576. }
  12577. if (type !== undefined) {
  12578. localVarQueryParameter['type'] = type;
  12579. }
  12580. if (isFavorite !== undefined) {
  12581. localVarQueryParameter['isFavorite'] = isFavorite;
  12582. }
  12583. if (isArchived !== undefined) {
  12584. localVarQueryParameter['isArchived'] = isArchived;
  12585. }
  12586. if (exifInfoCity !== undefined) {
  12587. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  12588. }
  12589. if (exifInfoState !== undefined) {
  12590. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  12591. }
  12592. if (exifInfoCountry !== undefined) {
  12593. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  12594. }
  12595. if (exifInfoMake !== undefined) {
  12596. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  12597. }
  12598. if (exifInfoModel !== undefined) {
  12599. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  12600. }
  12601. if (exifInfoProjectionType !== undefined) {
  12602. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  12603. }
  12604. if (smartInfoObjects) {
  12605. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  12606. }
  12607. if (smartInfoTags) {
  12608. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  12609. }
  12610. if (recent !== undefined) {
  12611. localVarQueryParameter['recent'] = recent;
  12612. }
  12613. if (motion !== undefined) {
  12614. localVarQueryParameter['motion'] = motion;
  12615. }
  12616. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12617. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12618. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12619. return {
  12620. url: toPathString(localVarUrlObj),
  12621. options: localVarRequestOptions,
  12622. };
  12623. },
  12624. /**
  12625. *
  12626. * @param {string} name
  12627. * @param {boolean} [withHidden]
  12628. * @param {*} [options] Override http request option.
  12629. * @throws {RequiredError}
  12630. */
  12631. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12632. // verify required parameter 'name' is not null or undefined
  12633. assertParamExists('searchPerson', 'name', name)
  12634. const localVarPath = `/search/person`;
  12635. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12636. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12637. let baseOptions;
  12638. if (configuration) {
  12639. baseOptions = configuration.baseOptions;
  12640. }
  12641. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12642. const localVarHeaderParameter = {} as any;
  12643. const localVarQueryParameter = {} as any;
  12644. // authentication cookie required
  12645. // authentication api_key required
  12646. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12647. // authentication bearer required
  12648. // http bearer authentication required
  12649. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12650. if (name !== undefined) {
  12651. localVarQueryParameter['name'] = name;
  12652. }
  12653. if (withHidden !== undefined) {
  12654. localVarQueryParameter['withHidden'] = withHidden;
  12655. }
  12656. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12657. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12658. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12659. return {
  12660. url: toPathString(localVarUrlObj),
  12661. options: localVarRequestOptions,
  12662. };
  12663. },
  12664. }
  12665. };
  12666. /**
  12667. * SearchApi - functional programming interface
  12668. * @export
  12669. */
  12670. export const SearchApiFp = function(configuration?: Configuration) {
  12671. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  12672. return {
  12673. /**
  12674. *
  12675. * @param {*} [options] Override http request option.
  12676. * @throws {RequiredError}
  12677. */
  12678. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  12679. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  12680. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12681. },
  12682. /**
  12683. *
  12684. * @param {string} [q]
  12685. * @param {string} [query]
  12686. * @param {boolean} [clip]
  12687. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12688. * @param {boolean} [isFavorite]
  12689. * @param {boolean} [isArchived]
  12690. * @param {string} [exifInfoCity]
  12691. * @param {string} [exifInfoState]
  12692. * @param {string} [exifInfoCountry]
  12693. * @param {string} [exifInfoMake]
  12694. * @param {string} [exifInfoModel]
  12695. * @param {string} [exifInfoProjectionType]
  12696. * @param {Array<string>} [smartInfoObjects]
  12697. * @param {Array<string>} [smartInfoTags]
  12698. * @param {boolean} [recent]
  12699. * @param {boolean} [motion]
  12700. * @param {*} [options] Override http request option.
  12701. * @throws {RequiredError}
  12702. */
  12703. 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>> {
  12704. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  12705. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12706. },
  12707. /**
  12708. *
  12709. * @param {string} name
  12710. * @param {boolean} [withHidden]
  12711. * @param {*} [options] Override http request option.
  12712. * @throws {RequiredError}
  12713. */
  12714. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  12715. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  12716. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12717. },
  12718. }
  12719. };
  12720. /**
  12721. * SearchApi - factory interface
  12722. * @export
  12723. */
  12724. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12725. const localVarFp = SearchApiFp(configuration)
  12726. return {
  12727. /**
  12728. *
  12729. * @param {*} [options] Override http request option.
  12730. * @throws {RequiredError}
  12731. */
  12732. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  12733. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  12734. },
  12735. /**
  12736. *
  12737. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12738. * @param {*} [options] Override http request option.
  12739. * @throws {RequiredError}
  12740. */
  12741. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  12742. 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));
  12743. },
  12744. /**
  12745. *
  12746. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12747. * @param {*} [options] Override http request option.
  12748. * @throws {RequiredError}
  12749. */
  12750. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  12751. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  12752. },
  12753. };
  12754. };
  12755. /**
  12756. * Request parameters for search operation in SearchApi.
  12757. * @export
  12758. * @interface SearchApiSearchRequest
  12759. */
  12760. export interface SearchApiSearchRequest {
  12761. /**
  12762. *
  12763. * @type {string}
  12764. * @memberof SearchApiSearch
  12765. */
  12766. readonly q?: string
  12767. /**
  12768. *
  12769. * @type {string}
  12770. * @memberof SearchApiSearch
  12771. */
  12772. readonly query?: string
  12773. /**
  12774. *
  12775. * @type {boolean}
  12776. * @memberof SearchApiSearch
  12777. */
  12778. readonly clip?: boolean
  12779. /**
  12780. *
  12781. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  12782. * @memberof SearchApiSearch
  12783. */
  12784. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  12785. /**
  12786. *
  12787. * @type {boolean}
  12788. * @memberof SearchApiSearch
  12789. */
  12790. readonly isFavorite?: boolean
  12791. /**
  12792. *
  12793. * @type {boolean}
  12794. * @memberof SearchApiSearch
  12795. */
  12796. readonly isArchived?: boolean
  12797. /**
  12798. *
  12799. * @type {string}
  12800. * @memberof SearchApiSearch
  12801. */
  12802. readonly exifInfoCity?: string
  12803. /**
  12804. *
  12805. * @type {string}
  12806. * @memberof SearchApiSearch
  12807. */
  12808. readonly exifInfoState?: string
  12809. /**
  12810. *
  12811. * @type {string}
  12812. * @memberof SearchApiSearch
  12813. */
  12814. readonly exifInfoCountry?: string
  12815. /**
  12816. *
  12817. * @type {string}
  12818. * @memberof SearchApiSearch
  12819. */
  12820. readonly exifInfoMake?: string
  12821. /**
  12822. *
  12823. * @type {string}
  12824. * @memberof SearchApiSearch
  12825. */
  12826. readonly exifInfoModel?: string
  12827. /**
  12828. *
  12829. * @type {string}
  12830. * @memberof SearchApiSearch
  12831. */
  12832. readonly exifInfoProjectionType?: string
  12833. /**
  12834. *
  12835. * @type {Array<string>}
  12836. * @memberof SearchApiSearch
  12837. */
  12838. readonly smartInfoObjects?: Array<string>
  12839. /**
  12840. *
  12841. * @type {Array<string>}
  12842. * @memberof SearchApiSearch
  12843. */
  12844. readonly smartInfoTags?: Array<string>
  12845. /**
  12846. *
  12847. * @type {boolean}
  12848. * @memberof SearchApiSearch
  12849. */
  12850. readonly recent?: boolean
  12851. /**
  12852. *
  12853. * @type {boolean}
  12854. * @memberof SearchApiSearch
  12855. */
  12856. readonly motion?: boolean
  12857. }
  12858. /**
  12859. * Request parameters for searchPerson operation in SearchApi.
  12860. * @export
  12861. * @interface SearchApiSearchPersonRequest
  12862. */
  12863. export interface SearchApiSearchPersonRequest {
  12864. /**
  12865. *
  12866. * @type {string}
  12867. * @memberof SearchApiSearchPerson
  12868. */
  12869. readonly name: string
  12870. /**
  12871. *
  12872. * @type {boolean}
  12873. * @memberof SearchApiSearchPerson
  12874. */
  12875. readonly withHidden?: boolean
  12876. }
  12877. /**
  12878. * SearchApi - object-oriented interface
  12879. * @export
  12880. * @class SearchApi
  12881. * @extends {BaseAPI}
  12882. */
  12883. export class SearchApi extends BaseAPI {
  12884. /**
  12885. *
  12886. * @param {*} [options] Override http request option.
  12887. * @throws {RequiredError}
  12888. * @memberof SearchApi
  12889. */
  12890. public getExploreData(options?: AxiosRequestConfig) {
  12891. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  12892. }
  12893. /**
  12894. *
  12895. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12896. * @param {*} [options] Override http request option.
  12897. * @throws {RequiredError}
  12898. * @memberof SearchApi
  12899. */
  12900. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  12901. 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));
  12902. }
  12903. /**
  12904. *
  12905. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12906. * @param {*} [options] Override http request option.
  12907. * @throws {RequiredError}
  12908. * @memberof SearchApi
  12909. */
  12910. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  12911. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12912. }
  12913. }
  12914. /**
  12915. * ServerInfoApi - axios parameter creator
  12916. * @export
  12917. */
  12918. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  12919. return {
  12920. /**
  12921. *
  12922. * @param {*} [options] Override http request option.
  12923. * @throws {RequiredError}
  12924. */
  12925. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12926. const localVarPath = `/server-info/config`;
  12927. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12928. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12929. let baseOptions;
  12930. if (configuration) {
  12931. baseOptions = configuration.baseOptions;
  12932. }
  12933. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12934. const localVarHeaderParameter = {} as any;
  12935. const localVarQueryParameter = {} as any;
  12936. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12937. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12938. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12939. return {
  12940. url: toPathString(localVarUrlObj),
  12941. options: localVarRequestOptions,
  12942. };
  12943. },
  12944. /**
  12945. *
  12946. * @param {*} [options] Override http request option.
  12947. * @throws {RequiredError}
  12948. */
  12949. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12950. const localVarPath = `/server-info/features`;
  12951. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12952. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12953. let baseOptions;
  12954. if (configuration) {
  12955. baseOptions = configuration.baseOptions;
  12956. }
  12957. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12958. const localVarHeaderParameter = {} as any;
  12959. const localVarQueryParameter = {} as any;
  12960. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12961. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12962. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12963. return {
  12964. url: toPathString(localVarUrlObj),
  12965. options: localVarRequestOptions,
  12966. };
  12967. },
  12968. /**
  12969. *
  12970. * @param {*} [options] Override http request option.
  12971. * @throws {RequiredError}
  12972. */
  12973. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12974. const localVarPath = `/server-info`;
  12975. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12976. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12977. let baseOptions;
  12978. if (configuration) {
  12979. baseOptions = configuration.baseOptions;
  12980. }
  12981. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12982. const localVarHeaderParameter = {} as any;
  12983. const localVarQueryParameter = {} as any;
  12984. // authentication cookie required
  12985. // authentication api_key required
  12986. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12987. // authentication bearer required
  12988. // http bearer authentication required
  12989. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  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 {*} [options] Override http request option.
  13001. * @throws {RequiredError}
  13002. */
  13003. getServerStatistics: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13004. const localVarPath = `/server-info/statistics`;
  13005. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13006. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13007. let baseOptions;
  13008. if (configuration) {
  13009. baseOptions = configuration.baseOptions;
  13010. }
  13011. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13012. const localVarHeaderParameter = {} as any;
  13013. const localVarQueryParameter = {} as any;
  13014. // authentication cookie required
  13015. // authentication api_key required
  13016. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13017. // authentication bearer required
  13018. // http bearer authentication required
  13019. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13020. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13021. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13022. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13023. return {
  13024. url: toPathString(localVarUrlObj),
  13025. options: localVarRequestOptions,
  13026. };
  13027. },
  13028. /**
  13029. *
  13030. * @param {*} [options] Override http request option.
  13031. * @throws {RequiredError}
  13032. */
  13033. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13034. const localVarPath = `/server-info/version`;
  13035. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13036. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13037. let baseOptions;
  13038. if (configuration) {
  13039. baseOptions = configuration.baseOptions;
  13040. }
  13041. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13042. const localVarHeaderParameter = {} as any;
  13043. const localVarQueryParameter = {} as any;
  13044. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13045. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13046. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13047. return {
  13048. url: toPathString(localVarUrlObj),
  13049. options: localVarRequestOptions,
  13050. };
  13051. },
  13052. /**
  13053. *
  13054. * @param {*} [options] Override http request option.
  13055. * @throws {RequiredError}
  13056. */
  13057. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13058. const localVarPath = `/server-info/media-types`;
  13059. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13060. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13061. let baseOptions;
  13062. if (configuration) {
  13063. baseOptions = configuration.baseOptions;
  13064. }
  13065. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13066. const localVarHeaderParameter = {} as any;
  13067. const localVarQueryParameter = {} as any;
  13068. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13069. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13070. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13071. return {
  13072. url: toPathString(localVarUrlObj),
  13073. options: localVarRequestOptions,
  13074. };
  13075. },
  13076. /**
  13077. *
  13078. * @param {*} [options] Override http request option.
  13079. * @throws {RequiredError}
  13080. */
  13081. getTheme: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13082. const localVarPath = `/server-info/theme`;
  13083. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13084. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13085. let baseOptions;
  13086. if (configuration) {
  13087. baseOptions = configuration.baseOptions;
  13088. }
  13089. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13090. const localVarHeaderParameter = {} as any;
  13091. const localVarQueryParameter = {} as any;
  13092. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13093. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13094. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13095. return {
  13096. url: toPathString(localVarUrlObj),
  13097. options: localVarRequestOptions,
  13098. };
  13099. },
  13100. /**
  13101. *
  13102. * @param {*} [options] Override http request option.
  13103. * @throws {RequiredError}
  13104. */
  13105. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13106. const localVarPath = `/server-info/ping`;
  13107. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13108. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13109. let baseOptions;
  13110. if (configuration) {
  13111. baseOptions = configuration.baseOptions;
  13112. }
  13113. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13114. const localVarHeaderParameter = {} as any;
  13115. const localVarQueryParameter = {} as any;
  13116. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13117. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13118. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13119. return {
  13120. url: toPathString(localVarUrlObj),
  13121. options: localVarRequestOptions,
  13122. };
  13123. },
  13124. }
  13125. };
  13126. /**
  13127. * ServerInfoApi - functional programming interface
  13128. * @export
  13129. */
  13130. export const ServerInfoApiFp = function(configuration?: Configuration) {
  13131. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  13132. return {
  13133. /**
  13134. *
  13135. * @param {*} [options] Override http request option.
  13136. * @throws {RequiredError}
  13137. */
  13138. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  13139. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  13140. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13141. },
  13142. /**
  13143. *
  13144. * @param {*} [options] Override http request option.
  13145. * @throws {RequiredError}
  13146. */
  13147. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  13148. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  13149. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13150. },
  13151. /**
  13152. *
  13153. * @param {*} [options] Override http request option.
  13154. * @throws {RequiredError}
  13155. */
  13156. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  13157. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  13158. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13159. },
  13160. /**
  13161. *
  13162. * @param {*} [options] Override http request option.
  13163. * @throws {RequiredError}
  13164. */
  13165. async getServerStatistics(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  13166. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerStatistics(options);
  13167. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13168. },
  13169. /**
  13170. *
  13171. * @param {*} [options] Override http request option.
  13172. * @throws {RequiredError}
  13173. */
  13174. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  13175. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  13176. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13177. },
  13178. /**
  13179. *
  13180. * @param {*} [options] Override http request option.
  13181. * @throws {RequiredError}
  13182. */
  13183. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  13184. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  13185. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13186. },
  13187. /**
  13188. *
  13189. * @param {*} [options] Override http request option.
  13190. * @throws {RequiredError}
  13191. */
  13192. async getTheme(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerThemeDto>> {
  13193. const localVarAxiosArgs = await localVarAxiosParamCreator.getTheme(options);
  13194. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13195. },
  13196. /**
  13197. *
  13198. * @param {*} [options] Override http request option.
  13199. * @throws {RequiredError}
  13200. */
  13201. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  13202. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  13203. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13204. },
  13205. }
  13206. };
  13207. /**
  13208. * ServerInfoApi - factory interface
  13209. * @export
  13210. */
  13211. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13212. const localVarFp = ServerInfoApiFp(configuration)
  13213. return {
  13214. /**
  13215. *
  13216. * @param {*} [options] Override http request option.
  13217. * @throws {RequiredError}
  13218. */
  13219. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  13220. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  13221. },
  13222. /**
  13223. *
  13224. * @param {*} [options] Override http request option.
  13225. * @throws {RequiredError}
  13226. */
  13227. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  13228. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  13229. },
  13230. /**
  13231. *
  13232. * @param {*} [options] Override http request option.
  13233. * @throws {RequiredError}
  13234. */
  13235. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  13236. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  13237. },
  13238. /**
  13239. *
  13240. * @param {*} [options] Override http request option.
  13241. * @throws {RequiredError}
  13242. */
  13243. getServerStatistics(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  13244. return localVarFp.getServerStatistics(options).then((request) => request(axios, basePath));
  13245. },
  13246. /**
  13247. *
  13248. * @param {*} [options] Override http request option.
  13249. * @throws {RequiredError}
  13250. */
  13251. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  13252. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  13253. },
  13254. /**
  13255. *
  13256. * @param {*} [options] Override http request option.
  13257. * @throws {RequiredError}
  13258. */
  13259. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  13260. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  13261. },
  13262. /**
  13263. *
  13264. * @param {*} [options] Override http request option.
  13265. * @throws {RequiredError}
  13266. */
  13267. getTheme(options?: AxiosRequestConfig): AxiosPromise<ServerThemeDto> {
  13268. return localVarFp.getTheme(options).then((request) => request(axios, basePath));
  13269. },
  13270. /**
  13271. *
  13272. * @param {*} [options] Override http request option.
  13273. * @throws {RequiredError}
  13274. */
  13275. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  13276. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  13277. },
  13278. };
  13279. };
  13280. /**
  13281. * ServerInfoApi - object-oriented interface
  13282. * @export
  13283. * @class ServerInfoApi
  13284. * @extends {BaseAPI}
  13285. */
  13286. export class ServerInfoApi extends BaseAPI {
  13287. /**
  13288. *
  13289. * @param {*} [options] Override http request option.
  13290. * @throws {RequiredError}
  13291. * @memberof ServerInfoApi
  13292. */
  13293. public getServerConfig(options?: AxiosRequestConfig) {
  13294. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  13295. }
  13296. /**
  13297. *
  13298. * @param {*} [options] Override http request option.
  13299. * @throws {RequiredError}
  13300. * @memberof ServerInfoApi
  13301. */
  13302. public getServerFeatures(options?: AxiosRequestConfig) {
  13303. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  13304. }
  13305. /**
  13306. *
  13307. * @param {*} [options] Override http request option.
  13308. * @throws {RequiredError}
  13309. * @memberof ServerInfoApi
  13310. */
  13311. public getServerInfo(options?: AxiosRequestConfig) {
  13312. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  13313. }
  13314. /**
  13315. *
  13316. * @param {*} [options] Override http request option.
  13317. * @throws {RequiredError}
  13318. * @memberof ServerInfoApi
  13319. */
  13320. public getServerStatistics(options?: AxiosRequestConfig) {
  13321. return ServerInfoApiFp(this.configuration).getServerStatistics(options).then((request) => request(this.axios, this.basePath));
  13322. }
  13323. /**
  13324. *
  13325. * @param {*} [options] Override http request option.
  13326. * @throws {RequiredError}
  13327. * @memberof ServerInfoApi
  13328. */
  13329. public getServerVersion(options?: AxiosRequestConfig) {
  13330. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  13331. }
  13332. /**
  13333. *
  13334. * @param {*} [options] Override http request option.
  13335. * @throws {RequiredError}
  13336. * @memberof ServerInfoApi
  13337. */
  13338. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  13339. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  13340. }
  13341. /**
  13342. *
  13343. * @param {*} [options] Override http request option.
  13344. * @throws {RequiredError}
  13345. * @memberof ServerInfoApi
  13346. */
  13347. public getTheme(options?: AxiosRequestConfig) {
  13348. return ServerInfoApiFp(this.configuration).getTheme(options).then((request) => request(this.axios, this.basePath));
  13349. }
  13350. /**
  13351. *
  13352. * @param {*} [options] Override http request option.
  13353. * @throws {RequiredError}
  13354. * @memberof ServerInfoApi
  13355. */
  13356. public pingServer(options?: AxiosRequestConfig) {
  13357. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  13358. }
  13359. }
  13360. /**
  13361. * SharedLinkApi - axios parameter creator
  13362. * @export
  13363. */
  13364. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  13365. return {
  13366. /**
  13367. *
  13368. * @param {string} id
  13369. * @param {AssetIdsDto} assetIdsDto
  13370. * @param {string} [key]
  13371. * @param {*} [options] Override http request option.
  13372. * @throws {RequiredError}
  13373. */
  13374. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13375. // verify required parameter 'id' is not null or undefined
  13376. assertParamExists('addSharedLinkAssets', 'id', id)
  13377. // verify required parameter 'assetIdsDto' is not null or undefined
  13378. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13379. const localVarPath = `/shared-link/{id}/assets`
  13380. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13381. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13382. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13383. let baseOptions;
  13384. if (configuration) {
  13385. baseOptions = configuration.baseOptions;
  13386. }
  13387. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13388. const localVarHeaderParameter = {} as any;
  13389. const localVarQueryParameter = {} as any;
  13390. // authentication cookie required
  13391. // authentication api_key required
  13392. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13393. // authentication bearer required
  13394. // http bearer authentication required
  13395. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13396. if (key !== undefined) {
  13397. localVarQueryParameter['key'] = key;
  13398. }
  13399. localVarHeaderParameter['Content-Type'] = 'application/json';
  13400. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13401. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13402. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13403. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13404. return {
  13405. url: toPathString(localVarUrlObj),
  13406. options: localVarRequestOptions,
  13407. };
  13408. },
  13409. /**
  13410. *
  13411. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13412. * @param {*} [options] Override http request option.
  13413. * @throws {RequiredError}
  13414. */
  13415. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13416. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  13417. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  13418. const localVarPath = `/shared-link`;
  13419. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13420. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13421. let baseOptions;
  13422. if (configuration) {
  13423. baseOptions = configuration.baseOptions;
  13424. }
  13425. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13426. const localVarHeaderParameter = {} as any;
  13427. const localVarQueryParameter = {} as any;
  13428. // authentication cookie required
  13429. // authentication api_key required
  13430. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13431. // authentication bearer required
  13432. // http bearer authentication required
  13433. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13434. localVarHeaderParameter['Content-Type'] = 'application/json';
  13435. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13436. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13437. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13438. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  13439. return {
  13440. url: toPathString(localVarUrlObj),
  13441. options: localVarRequestOptions,
  13442. };
  13443. },
  13444. /**
  13445. *
  13446. * @param {*} [options] Override http request option.
  13447. * @throws {RequiredError}
  13448. */
  13449. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13450. const localVarPath = `/shared-link`;
  13451. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13452. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13453. let baseOptions;
  13454. if (configuration) {
  13455. baseOptions = configuration.baseOptions;
  13456. }
  13457. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13458. const localVarHeaderParameter = {} as any;
  13459. const localVarQueryParameter = {} as any;
  13460. // authentication cookie required
  13461. // authentication api_key required
  13462. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13463. // authentication bearer required
  13464. // http bearer authentication required
  13465. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13466. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13467. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13468. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13469. return {
  13470. url: toPathString(localVarUrlObj),
  13471. options: localVarRequestOptions,
  13472. };
  13473. },
  13474. /**
  13475. *
  13476. * @param {string} [password]
  13477. * @param {string} [token]
  13478. * @param {string} [key]
  13479. * @param {*} [options] Override http request option.
  13480. * @throws {RequiredError}
  13481. */
  13482. getMySharedLink: async (password?: string, token?: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13483. const localVarPath = `/shared-link/me`;
  13484. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13485. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13486. let baseOptions;
  13487. if (configuration) {
  13488. baseOptions = configuration.baseOptions;
  13489. }
  13490. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13491. const localVarHeaderParameter = {} as any;
  13492. const localVarQueryParameter = {} as any;
  13493. // authentication cookie required
  13494. // authentication api_key required
  13495. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13496. // authentication bearer required
  13497. // http bearer authentication required
  13498. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13499. if (password !== undefined) {
  13500. localVarQueryParameter['password'] = password;
  13501. }
  13502. if (token !== undefined) {
  13503. localVarQueryParameter['token'] = token;
  13504. }
  13505. if (key !== undefined) {
  13506. localVarQueryParameter['key'] = key;
  13507. }
  13508. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13509. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13510. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13511. return {
  13512. url: toPathString(localVarUrlObj),
  13513. options: localVarRequestOptions,
  13514. };
  13515. },
  13516. /**
  13517. *
  13518. * @param {string} id
  13519. * @param {*} [options] Override http request option.
  13520. * @throws {RequiredError}
  13521. */
  13522. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13523. // verify required parameter 'id' is not null or undefined
  13524. assertParamExists('getSharedLinkById', 'id', id)
  13525. const localVarPath = `/shared-link/{id}`
  13526. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13527. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13528. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13529. let baseOptions;
  13530. if (configuration) {
  13531. baseOptions = configuration.baseOptions;
  13532. }
  13533. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13534. const localVarHeaderParameter = {} as any;
  13535. const localVarQueryParameter = {} as any;
  13536. // authentication cookie required
  13537. // authentication api_key required
  13538. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13539. // authentication bearer required
  13540. // http bearer authentication required
  13541. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13542. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13543. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13544. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13545. return {
  13546. url: toPathString(localVarUrlObj),
  13547. options: localVarRequestOptions,
  13548. };
  13549. },
  13550. /**
  13551. *
  13552. * @param {string} id
  13553. * @param {*} [options] Override http request option.
  13554. * @throws {RequiredError}
  13555. */
  13556. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13557. // verify required parameter 'id' is not null or undefined
  13558. assertParamExists('removeSharedLink', 'id', id)
  13559. const localVarPath = `/shared-link/{id}`
  13560. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13561. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13562. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13563. let baseOptions;
  13564. if (configuration) {
  13565. baseOptions = configuration.baseOptions;
  13566. }
  13567. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13568. const localVarHeaderParameter = {} as any;
  13569. const localVarQueryParameter = {} as any;
  13570. // authentication cookie required
  13571. // authentication api_key required
  13572. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13573. // authentication bearer required
  13574. // http bearer authentication required
  13575. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13576. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13577. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13578. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13579. return {
  13580. url: toPathString(localVarUrlObj),
  13581. options: localVarRequestOptions,
  13582. };
  13583. },
  13584. /**
  13585. *
  13586. * @param {string} id
  13587. * @param {AssetIdsDto} assetIdsDto
  13588. * @param {string} [key]
  13589. * @param {*} [options] Override http request option.
  13590. * @throws {RequiredError}
  13591. */
  13592. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13593. // verify required parameter 'id' is not null or undefined
  13594. assertParamExists('removeSharedLinkAssets', 'id', id)
  13595. // verify required parameter 'assetIdsDto' is not null or undefined
  13596. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13597. const localVarPath = `/shared-link/{id}/assets`
  13598. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13599. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13600. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13601. let baseOptions;
  13602. if (configuration) {
  13603. baseOptions = configuration.baseOptions;
  13604. }
  13605. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13606. const localVarHeaderParameter = {} as any;
  13607. const localVarQueryParameter = {} as any;
  13608. // authentication cookie required
  13609. // authentication api_key required
  13610. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13611. // authentication bearer required
  13612. // http bearer authentication required
  13613. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13614. if (key !== undefined) {
  13615. localVarQueryParameter['key'] = key;
  13616. }
  13617. localVarHeaderParameter['Content-Type'] = 'application/json';
  13618. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13619. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13620. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13621. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13622. return {
  13623. url: toPathString(localVarUrlObj),
  13624. options: localVarRequestOptions,
  13625. };
  13626. },
  13627. /**
  13628. *
  13629. * @param {string} id
  13630. * @param {SharedLinkEditDto} sharedLinkEditDto
  13631. * @param {*} [options] Override http request option.
  13632. * @throws {RequiredError}
  13633. */
  13634. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13635. // verify required parameter 'id' is not null or undefined
  13636. assertParamExists('updateSharedLink', 'id', id)
  13637. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  13638. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  13639. const localVarPath = `/shared-link/{id}`
  13640. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13641. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13642. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13643. let baseOptions;
  13644. if (configuration) {
  13645. baseOptions = configuration.baseOptions;
  13646. }
  13647. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13648. const localVarHeaderParameter = {} as any;
  13649. const localVarQueryParameter = {} as any;
  13650. // authentication cookie required
  13651. // authentication api_key required
  13652. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13653. // authentication bearer required
  13654. // http bearer authentication required
  13655. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13656. localVarHeaderParameter['Content-Type'] = 'application/json';
  13657. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13658. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13659. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13660. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  13661. return {
  13662. url: toPathString(localVarUrlObj),
  13663. options: localVarRequestOptions,
  13664. };
  13665. },
  13666. }
  13667. };
  13668. /**
  13669. * SharedLinkApi - functional programming interface
  13670. * @export
  13671. */
  13672. export const SharedLinkApiFp = function(configuration?: Configuration) {
  13673. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  13674. return {
  13675. /**
  13676. *
  13677. * @param {string} id
  13678. * @param {AssetIdsDto} assetIdsDto
  13679. * @param {string} [key]
  13680. * @param {*} [options] Override http request option.
  13681. * @throws {RequiredError}
  13682. */
  13683. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13684. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  13685. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13686. },
  13687. /**
  13688. *
  13689. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13690. * @param {*} [options] Override http request option.
  13691. * @throws {RequiredError}
  13692. */
  13693. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13694. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  13695. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13696. },
  13697. /**
  13698. *
  13699. * @param {*} [options] Override http request option.
  13700. * @throws {RequiredError}
  13701. */
  13702. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  13703. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  13704. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13705. },
  13706. /**
  13707. *
  13708. * @param {string} [password]
  13709. * @param {string} [token]
  13710. * @param {string} [key]
  13711. * @param {*} [options] Override http request option.
  13712. * @throws {RequiredError}
  13713. */
  13714. async getMySharedLink(password?: string, token?: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13715. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(password, token, key, options);
  13716. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13717. },
  13718. /**
  13719. *
  13720. * @param {string} id
  13721. * @param {*} [options] Override http request option.
  13722. * @throws {RequiredError}
  13723. */
  13724. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13725. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  13726. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13727. },
  13728. /**
  13729. *
  13730. * @param {string} id
  13731. * @param {*} [options] Override http request option.
  13732. * @throws {RequiredError}
  13733. */
  13734. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13735. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  13736. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13737. },
  13738. /**
  13739. *
  13740. * @param {string} id
  13741. * @param {AssetIdsDto} assetIdsDto
  13742. * @param {string} [key]
  13743. * @param {*} [options] Override http request option.
  13744. * @throws {RequiredError}
  13745. */
  13746. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13747. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  13748. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13749. },
  13750. /**
  13751. *
  13752. * @param {string} id
  13753. * @param {SharedLinkEditDto} sharedLinkEditDto
  13754. * @param {*} [options] Override http request option.
  13755. * @throws {RequiredError}
  13756. */
  13757. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13758. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  13759. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13760. },
  13761. }
  13762. };
  13763. /**
  13764. * SharedLinkApi - factory interface
  13765. * @export
  13766. */
  13767. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13768. const localVarFp = SharedLinkApiFp(configuration)
  13769. return {
  13770. /**
  13771. *
  13772. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13773. * @param {*} [options] Override http request option.
  13774. * @throws {RequiredError}
  13775. */
  13776. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13777. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13778. },
  13779. /**
  13780. *
  13781. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13782. * @param {*} [options] Override http request option.
  13783. * @throws {RequiredError}
  13784. */
  13785. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13786. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  13787. },
  13788. /**
  13789. *
  13790. * @param {*} [options] Override http request option.
  13791. * @throws {RequiredError}
  13792. */
  13793. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  13794. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  13795. },
  13796. /**
  13797. *
  13798. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13799. * @param {*} [options] Override http request option.
  13800. * @throws {RequiredError}
  13801. */
  13802. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13803. return localVarFp.getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(axios, basePath));
  13804. },
  13805. /**
  13806. *
  13807. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13808. * @param {*} [options] Override http request option.
  13809. * @throws {RequiredError}
  13810. */
  13811. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13812. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  13813. },
  13814. /**
  13815. *
  13816. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13817. * @param {*} [options] Override http request option.
  13818. * @throws {RequiredError}
  13819. */
  13820. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13821. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  13822. },
  13823. /**
  13824. *
  13825. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13826. * @param {*} [options] Override http request option.
  13827. * @throws {RequiredError}
  13828. */
  13829. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13830. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13831. },
  13832. /**
  13833. *
  13834. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13835. * @param {*} [options] Override http request option.
  13836. * @throws {RequiredError}
  13837. */
  13838. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13839. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  13840. },
  13841. };
  13842. };
  13843. /**
  13844. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  13845. * @export
  13846. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  13847. */
  13848. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  13849. /**
  13850. *
  13851. * @type {string}
  13852. * @memberof SharedLinkApiAddSharedLinkAssets
  13853. */
  13854. readonly id: string
  13855. /**
  13856. *
  13857. * @type {AssetIdsDto}
  13858. * @memberof SharedLinkApiAddSharedLinkAssets
  13859. */
  13860. readonly assetIdsDto: AssetIdsDto
  13861. /**
  13862. *
  13863. * @type {string}
  13864. * @memberof SharedLinkApiAddSharedLinkAssets
  13865. */
  13866. readonly key?: string
  13867. }
  13868. /**
  13869. * Request parameters for createSharedLink operation in SharedLinkApi.
  13870. * @export
  13871. * @interface SharedLinkApiCreateSharedLinkRequest
  13872. */
  13873. export interface SharedLinkApiCreateSharedLinkRequest {
  13874. /**
  13875. *
  13876. * @type {SharedLinkCreateDto}
  13877. * @memberof SharedLinkApiCreateSharedLink
  13878. */
  13879. readonly sharedLinkCreateDto: SharedLinkCreateDto
  13880. }
  13881. /**
  13882. * Request parameters for getMySharedLink operation in SharedLinkApi.
  13883. * @export
  13884. * @interface SharedLinkApiGetMySharedLinkRequest
  13885. */
  13886. export interface SharedLinkApiGetMySharedLinkRequest {
  13887. /**
  13888. *
  13889. * @type {string}
  13890. * @memberof SharedLinkApiGetMySharedLink
  13891. */
  13892. readonly password?: string
  13893. /**
  13894. *
  13895. * @type {string}
  13896. * @memberof SharedLinkApiGetMySharedLink
  13897. */
  13898. readonly token?: string
  13899. /**
  13900. *
  13901. * @type {string}
  13902. * @memberof SharedLinkApiGetMySharedLink
  13903. */
  13904. readonly key?: string
  13905. }
  13906. /**
  13907. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  13908. * @export
  13909. * @interface SharedLinkApiGetSharedLinkByIdRequest
  13910. */
  13911. export interface SharedLinkApiGetSharedLinkByIdRequest {
  13912. /**
  13913. *
  13914. * @type {string}
  13915. * @memberof SharedLinkApiGetSharedLinkById
  13916. */
  13917. readonly id: string
  13918. }
  13919. /**
  13920. * Request parameters for removeSharedLink operation in SharedLinkApi.
  13921. * @export
  13922. * @interface SharedLinkApiRemoveSharedLinkRequest
  13923. */
  13924. export interface SharedLinkApiRemoveSharedLinkRequest {
  13925. /**
  13926. *
  13927. * @type {string}
  13928. * @memberof SharedLinkApiRemoveSharedLink
  13929. */
  13930. readonly id: string
  13931. }
  13932. /**
  13933. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  13934. * @export
  13935. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  13936. */
  13937. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  13938. /**
  13939. *
  13940. * @type {string}
  13941. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13942. */
  13943. readonly id: string
  13944. /**
  13945. *
  13946. * @type {AssetIdsDto}
  13947. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13948. */
  13949. readonly assetIdsDto: AssetIdsDto
  13950. /**
  13951. *
  13952. * @type {string}
  13953. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13954. */
  13955. readonly key?: string
  13956. }
  13957. /**
  13958. * Request parameters for updateSharedLink operation in SharedLinkApi.
  13959. * @export
  13960. * @interface SharedLinkApiUpdateSharedLinkRequest
  13961. */
  13962. export interface SharedLinkApiUpdateSharedLinkRequest {
  13963. /**
  13964. *
  13965. * @type {string}
  13966. * @memberof SharedLinkApiUpdateSharedLink
  13967. */
  13968. readonly id: string
  13969. /**
  13970. *
  13971. * @type {SharedLinkEditDto}
  13972. * @memberof SharedLinkApiUpdateSharedLink
  13973. */
  13974. readonly sharedLinkEditDto: SharedLinkEditDto
  13975. }
  13976. /**
  13977. * SharedLinkApi - object-oriented interface
  13978. * @export
  13979. * @class SharedLinkApi
  13980. * @extends {BaseAPI}
  13981. */
  13982. export class SharedLinkApi extends BaseAPI {
  13983. /**
  13984. *
  13985. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13986. * @param {*} [options] Override http request option.
  13987. * @throws {RequiredError}
  13988. * @memberof SharedLinkApi
  13989. */
  13990. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  13991. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13992. }
  13993. /**
  13994. *
  13995. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13996. * @param {*} [options] Override http request option.
  13997. * @throws {RequiredError}
  13998. * @memberof SharedLinkApi
  13999. */
  14000. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  14001. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  14002. }
  14003. /**
  14004. *
  14005. * @param {*} [options] Override http request option.
  14006. * @throws {RequiredError}
  14007. * @memberof SharedLinkApi
  14008. */
  14009. public getAllSharedLinks(options?: AxiosRequestConfig) {
  14010. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  14011. }
  14012. /**
  14013. *
  14014. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  14015. * @param {*} [options] Override http request option.
  14016. * @throws {RequiredError}
  14017. * @memberof SharedLinkApi
  14018. */
  14019. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  14020. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  14021. }
  14022. /**
  14023. *
  14024. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  14025. * @param {*} [options] Override http request option.
  14026. * @throws {RequiredError}
  14027. * @memberof SharedLinkApi
  14028. */
  14029. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  14030. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14031. }
  14032. /**
  14033. *
  14034. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  14035. * @param {*} [options] Override http request option.
  14036. * @throws {RequiredError}
  14037. * @memberof SharedLinkApi
  14038. */
  14039. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  14040. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14041. }
  14042. /**
  14043. *
  14044. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  14045. * @param {*} [options] Override http request option.
  14046. * @throws {RequiredError}
  14047. * @memberof SharedLinkApi
  14048. */
  14049. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  14050. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  14051. }
  14052. /**
  14053. *
  14054. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  14055. * @param {*} [options] Override http request option.
  14056. * @throws {RequiredError}
  14057. * @memberof SharedLinkApi
  14058. */
  14059. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  14060. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  14061. }
  14062. }
  14063. /**
  14064. * SystemConfigApi - axios parameter creator
  14065. * @export
  14066. */
  14067. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  14068. return {
  14069. /**
  14070. *
  14071. * @param {*} [options] Override http request option.
  14072. * @throws {RequiredError}
  14073. */
  14074. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14075. const localVarPath = `/system-config`;
  14076. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14077. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14078. let baseOptions;
  14079. if (configuration) {
  14080. baseOptions = configuration.baseOptions;
  14081. }
  14082. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14083. const localVarHeaderParameter = {} as any;
  14084. const localVarQueryParameter = {} as any;
  14085. // authentication cookie required
  14086. // authentication api_key required
  14087. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14088. // authentication bearer required
  14089. // http bearer authentication required
  14090. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14091. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14092. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14093. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14094. return {
  14095. url: toPathString(localVarUrlObj),
  14096. options: localVarRequestOptions,
  14097. };
  14098. },
  14099. /**
  14100. *
  14101. * @param {*} [options] Override http request option.
  14102. * @throws {RequiredError}
  14103. */
  14104. getConfigDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14105. const localVarPath = `/system-config/defaults`;
  14106. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14107. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14108. let baseOptions;
  14109. if (configuration) {
  14110. baseOptions = configuration.baseOptions;
  14111. }
  14112. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14113. const localVarHeaderParameter = {} as any;
  14114. const localVarQueryParameter = {} as any;
  14115. // authentication cookie required
  14116. // authentication api_key required
  14117. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14118. // authentication bearer required
  14119. // http bearer authentication required
  14120. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14121. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14122. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14123. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14124. return {
  14125. url: toPathString(localVarUrlObj),
  14126. options: localVarRequestOptions,
  14127. };
  14128. },
  14129. /**
  14130. *
  14131. * @param {MapTheme} theme
  14132. * @param {*} [options] Override http request option.
  14133. * @throws {RequiredError}
  14134. */
  14135. getMapStyle: async (theme: MapTheme, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14136. // verify required parameter 'theme' is not null or undefined
  14137. assertParamExists('getMapStyle', 'theme', theme)
  14138. const localVarPath = `/system-config/map/style.json`;
  14139. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14140. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14141. let baseOptions;
  14142. if (configuration) {
  14143. baseOptions = configuration.baseOptions;
  14144. }
  14145. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14146. const localVarHeaderParameter = {} as any;
  14147. const localVarQueryParameter = {} as any;
  14148. // authentication cookie required
  14149. // authentication api_key required
  14150. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14151. // authentication bearer required
  14152. // http bearer authentication required
  14153. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14154. if (theme !== undefined) {
  14155. localVarQueryParameter['theme'] = theme;
  14156. }
  14157. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14158. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14159. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14160. return {
  14161. url: toPathString(localVarUrlObj),
  14162. options: localVarRequestOptions,
  14163. };
  14164. },
  14165. /**
  14166. *
  14167. * @param {*} [options] Override http request option.
  14168. * @throws {RequiredError}
  14169. */
  14170. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14171. const localVarPath = `/system-config/storage-template-options`;
  14172. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14173. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14174. let baseOptions;
  14175. if (configuration) {
  14176. baseOptions = configuration.baseOptions;
  14177. }
  14178. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14179. const localVarHeaderParameter = {} as any;
  14180. const localVarQueryParameter = {} as any;
  14181. // authentication cookie required
  14182. // authentication api_key required
  14183. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14184. // authentication bearer required
  14185. // http bearer authentication required
  14186. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14187. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14188. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14189. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14190. return {
  14191. url: toPathString(localVarUrlObj),
  14192. options: localVarRequestOptions,
  14193. };
  14194. },
  14195. /**
  14196. *
  14197. * @param {SystemConfigDto} systemConfigDto
  14198. * @param {*} [options] Override http request option.
  14199. * @throws {RequiredError}
  14200. */
  14201. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14202. // verify required parameter 'systemConfigDto' is not null or undefined
  14203. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  14204. const localVarPath = `/system-config`;
  14205. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14206. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14207. let baseOptions;
  14208. if (configuration) {
  14209. baseOptions = configuration.baseOptions;
  14210. }
  14211. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14212. const localVarHeaderParameter = {} as any;
  14213. const localVarQueryParameter = {} as any;
  14214. // authentication cookie required
  14215. // authentication api_key required
  14216. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14217. // authentication bearer required
  14218. // http bearer authentication required
  14219. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14220. localVarHeaderParameter['Content-Type'] = 'application/json';
  14221. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14222. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14223. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14224. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  14225. return {
  14226. url: toPathString(localVarUrlObj),
  14227. options: localVarRequestOptions,
  14228. };
  14229. },
  14230. }
  14231. };
  14232. /**
  14233. * SystemConfigApi - functional programming interface
  14234. * @export
  14235. */
  14236. export const SystemConfigApiFp = function(configuration?: Configuration) {
  14237. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  14238. return {
  14239. /**
  14240. *
  14241. * @param {*} [options] Override http request option.
  14242. * @throws {RequiredError}
  14243. */
  14244. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  14245. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  14246. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14247. },
  14248. /**
  14249. *
  14250. * @param {*} [options] Override http request option.
  14251. * @throws {RequiredError}
  14252. */
  14253. async getConfigDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  14254. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfigDefaults(options);
  14255. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14256. },
  14257. /**
  14258. *
  14259. * @param {MapTheme} theme
  14260. * @param {*} [options] Override http request option.
  14261. * @throws {RequiredError}
  14262. */
  14263. async getMapStyle(theme: MapTheme, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14264. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapStyle(theme, options);
  14265. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14266. },
  14267. /**
  14268. *
  14269. * @param {*} [options] Override http request option.
  14270. * @throws {RequiredError}
  14271. */
  14272. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  14273. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  14274. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14275. },
  14276. /**
  14277. *
  14278. * @param {SystemConfigDto} systemConfigDto
  14279. * @param {*} [options] Override http request option.
  14280. * @throws {RequiredError}
  14281. */
  14282. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  14283. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  14284. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14285. },
  14286. }
  14287. };
  14288. /**
  14289. * SystemConfigApi - factory interface
  14290. * @export
  14291. */
  14292. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14293. const localVarFp = SystemConfigApiFp(configuration)
  14294. return {
  14295. /**
  14296. *
  14297. * @param {*} [options] Override http request option.
  14298. * @throws {RequiredError}
  14299. */
  14300. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14301. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  14302. },
  14303. /**
  14304. *
  14305. * @param {*} [options] Override http request option.
  14306. * @throws {RequiredError}
  14307. */
  14308. getConfigDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14309. return localVarFp.getConfigDefaults(options).then((request) => request(axios, basePath));
  14310. },
  14311. /**
  14312. *
  14313. * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
  14314. * @param {*} [options] Override http request option.
  14315. * @throws {RequiredError}
  14316. */
  14317. getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14318. return localVarFp.getMapStyle(requestParameters.theme, options).then((request) => request(axios, basePath));
  14319. },
  14320. /**
  14321. *
  14322. * @param {*} [options] Override http request option.
  14323. * @throws {RequiredError}
  14324. */
  14325. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  14326. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  14327. },
  14328. /**
  14329. *
  14330. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  14331. * @param {*} [options] Override http request option.
  14332. * @throws {RequiredError}
  14333. */
  14334. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14335. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  14336. },
  14337. };
  14338. };
  14339. /**
  14340. * Request parameters for getMapStyle operation in SystemConfigApi.
  14341. * @export
  14342. * @interface SystemConfigApiGetMapStyleRequest
  14343. */
  14344. export interface SystemConfigApiGetMapStyleRequest {
  14345. /**
  14346. *
  14347. * @type {MapTheme}
  14348. * @memberof SystemConfigApiGetMapStyle
  14349. */
  14350. readonly theme: MapTheme
  14351. }
  14352. /**
  14353. * Request parameters for updateConfig operation in SystemConfigApi.
  14354. * @export
  14355. * @interface SystemConfigApiUpdateConfigRequest
  14356. */
  14357. export interface SystemConfigApiUpdateConfigRequest {
  14358. /**
  14359. *
  14360. * @type {SystemConfigDto}
  14361. * @memberof SystemConfigApiUpdateConfig
  14362. */
  14363. readonly systemConfigDto: SystemConfigDto
  14364. }
  14365. /**
  14366. * SystemConfigApi - object-oriented interface
  14367. * @export
  14368. * @class SystemConfigApi
  14369. * @extends {BaseAPI}
  14370. */
  14371. export class SystemConfigApi extends BaseAPI {
  14372. /**
  14373. *
  14374. * @param {*} [options] Override http request option.
  14375. * @throws {RequiredError}
  14376. * @memberof SystemConfigApi
  14377. */
  14378. public getConfig(options?: AxiosRequestConfig) {
  14379. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  14380. }
  14381. /**
  14382. *
  14383. * @param {*} [options] Override http request option.
  14384. * @throws {RequiredError}
  14385. * @memberof SystemConfigApi
  14386. */
  14387. public getConfigDefaults(options?: AxiosRequestConfig) {
  14388. return SystemConfigApiFp(this.configuration).getConfigDefaults(options).then((request) => request(this.axios, this.basePath));
  14389. }
  14390. /**
  14391. *
  14392. * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
  14393. * @param {*} [options] Override http request option.
  14394. * @throws {RequiredError}
  14395. * @memberof SystemConfigApi
  14396. */
  14397. public getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig) {
  14398. return SystemConfigApiFp(this.configuration).getMapStyle(requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
  14399. }
  14400. /**
  14401. *
  14402. * @param {*} [options] Override http request option.
  14403. * @throws {RequiredError}
  14404. * @memberof SystemConfigApi
  14405. */
  14406. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  14407. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  14408. }
  14409. /**
  14410. *
  14411. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  14412. * @param {*} [options] Override http request option.
  14413. * @throws {RequiredError}
  14414. * @memberof SystemConfigApi
  14415. */
  14416. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  14417. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  14418. }
  14419. }
  14420. /**
  14421. * TagApi - axios parameter creator
  14422. * @export
  14423. */
  14424. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  14425. return {
  14426. /**
  14427. *
  14428. * @param {CreateTagDto} createTagDto
  14429. * @param {*} [options] Override http request option.
  14430. * @throws {RequiredError}
  14431. */
  14432. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14433. // verify required parameter 'createTagDto' is not null or undefined
  14434. assertParamExists('createTag', 'createTagDto', createTagDto)
  14435. const localVarPath = `/tag`;
  14436. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14437. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14438. let baseOptions;
  14439. if (configuration) {
  14440. baseOptions = configuration.baseOptions;
  14441. }
  14442. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14443. const localVarHeaderParameter = {} as any;
  14444. const localVarQueryParameter = {} as any;
  14445. // authentication cookie required
  14446. // authentication api_key required
  14447. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14448. // authentication bearer required
  14449. // http bearer authentication required
  14450. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14451. localVarHeaderParameter['Content-Type'] = 'application/json';
  14452. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14453. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14454. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14455. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  14456. return {
  14457. url: toPathString(localVarUrlObj),
  14458. options: localVarRequestOptions,
  14459. };
  14460. },
  14461. /**
  14462. *
  14463. * @param {string} id
  14464. * @param {*} [options] Override http request option.
  14465. * @throws {RequiredError}
  14466. */
  14467. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14468. // verify required parameter 'id' is not null or undefined
  14469. assertParamExists('deleteTag', 'id', id)
  14470. const localVarPath = `/tag/{id}`
  14471. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14472. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14473. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14474. let baseOptions;
  14475. if (configuration) {
  14476. baseOptions = configuration.baseOptions;
  14477. }
  14478. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14479. const localVarHeaderParameter = {} as any;
  14480. const localVarQueryParameter = {} as any;
  14481. // authentication cookie required
  14482. // authentication api_key required
  14483. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14484. // authentication bearer required
  14485. // http bearer authentication required
  14486. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14487. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14488. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14489. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14490. return {
  14491. url: toPathString(localVarUrlObj),
  14492. options: localVarRequestOptions,
  14493. };
  14494. },
  14495. /**
  14496. *
  14497. * @param {*} [options] Override http request option.
  14498. * @throws {RequiredError}
  14499. */
  14500. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14501. const localVarPath = `/tag`;
  14502. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14503. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14504. let baseOptions;
  14505. if (configuration) {
  14506. baseOptions = configuration.baseOptions;
  14507. }
  14508. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14509. const localVarHeaderParameter = {} as any;
  14510. const localVarQueryParameter = {} as any;
  14511. // authentication cookie required
  14512. // authentication api_key required
  14513. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14514. // authentication bearer required
  14515. // http bearer authentication required
  14516. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14517. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14518. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14519. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14520. return {
  14521. url: toPathString(localVarUrlObj),
  14522. options: localVarRequestOptions,
  14523. };
  14524. },
  14525. /**
  14526. *
  14527. * @param {string} id
  14528. * @param {*} [options] Override http request option.
  14529. * @throws {RequiredError}
  14530. */
  14531. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14532. // verify required parameter 'id' is not null or undefined
  14533. assertParamExists('getTagAssets', 'id', id)
  14534. const localVarPath = `/tag/{id}/assets`
  14535. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14536. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14537. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14538. let baseOptions;
  14539. if (configuration) {
  14540. baseOptions = configuration.baseOptions;
  14541. }
  14542. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14543. const localVarHeaderParameter = {} as any;
  14544. const localVarQueryParameter = {} as any;
  14545. // authentication cookie required
  14546. // authentication api_key required
  14547. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14548. // authentication bearer required
  14549. // http bearer authentication required
  14550. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14551. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14552. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14553. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14554. return {
  14555. url: toPathString(localVarUrlObj),
  14556. options: localVarRequestOptions,
  14557. };
  14558. },
  14559. /**
  14560. *
  14561. * @param {string} id
  14562. * @param {*} [options] Override http request option.
  14563. * @throws {RequiredError}
  14564. */
  14565. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14566. // verify required parameter 'id' is not null or undefined
  14567. assertParamExists('getTagById', 'id', id)
  14568. const localVarPath = `/tag/{id}`
  14569. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14570. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14571. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14572. let baseOptions;
  14573. if (configuration) {
  14574. baseOptions = configuration.baseOptions;
  14575. }
  14576. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14577. const localVarHeaderParameter = {} as any;
  14578. const localVarQueryParameter = {} as any;
  14579. // authentication cookie required
  14580. // authentication api_key required
  14581. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14582. // authentication bearer required
  14583. // http bearer authentication required
  14584. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14585. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14586. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14587. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14588. return {
  14589. url: toPathString(localVarUrlObj),
  14590. options: localVarRequestOptions,
  14591. };
  14592. },
  14593. /**
  14594. *
  14595. * @param {string} id
  14596. * @param {AssetIdsDto} assetIdsDto
  14597. * @param {*} [options] Override http request option.
  14598. * @throws {RequiredError}
  14599. */
  14600. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14601. // verify required parameter 'id' is not null or undefined
  14602. assertParamExists('tagAssets', 'id', id)
  14603. // verify required parameter 'assetIdsDto' is not null or undefined
  14604. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  14605. const localVarPath = `/tag/{id}/assets`
  14606. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  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: 'PUT', ...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. localVarHeaderParameter['Content-Type'] = 'application/json';
  14623. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14624. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14625. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14626. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14627. return {
  14628. url: toPathString(localVarUrlObj),
  14629. options: localVarRequestOptions,
  14630. };
  14631. },
  14632. /**
  14633. *
  14634. * @param {string} id
  14635. * @param {AssetIdsDto} assetIdsDto
  14636. * @param {*} [options] Override http request option.
  14637. * @throws {RequiredError}
  14638. */
  14639. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14640. // verify required parameter 'id' is not null or undefined
  14641. assertParamExists('untagAssets', 'id', id)
  14642. // verify required parameter 'assetIdsDto' is not null or undefined
  14643. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  14644. const localVarPath = `/tag/{id}/assets`
  14645. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14646. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14647. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14648. let baseOptions;
  14649. if (configuration) {
  14650. baseOptions = configuration.baseOptions;
  14651. }
  14652. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14653. const localVarHeaderParameter = {} as any;
  14654. const localVarQueryParameter = {} as any;
  14655. // authentication cookie required
  14656. // authentication api_key required
  14657. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14658. // authentication bearer required
  14659. // http bearer authentication required
  14660. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14661. localVarHeaderParameter['Content-Type'] = 'application/json';
  14662. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14663. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14664. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14665. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14666. return {
  14667. url: toPathString(localVarUrlObj),
  14668. options: localVarRequestOptions,
  14669. };
  14670. },
  14671. /**
  14672. *
  14673. * @param {string} id
  14674. * @param {UpdateTagDto} updateTagDto
  14675. * @param {*} [options] Override http request option.
  14676. * @throws {RequiredError}
  14677. */
  14678. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14679. // verify required parameter 'id' is not null or undefined
  14680. assertParamExists('updateTag', 'id', id)
  14681. // verify required parameter 'updateTagDto' is not null or undefined
  14682. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  14683. const localVarPath = `/tag/{id}`
  14684. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14685. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14686. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14687. let baseOptions;
  14688. if (configuration) {
  14689. baseOptions = configuration.baseOptions;
  14690. }
  14691. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  14692. const localVarHeaderParameter = {} as any;
  14693. const localVarQueryParameter = {} as any;
  14694. // authentication cookie required
  14695. // authentication api_key required
  14696. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14697. // authentication bearer required
  14698. // http bearer authentication required
  14699. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14700. localVarHeaderParameter['Content-Type'] = 'application/json';
  14701. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14702. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14703. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14704. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  14705. return {
  14706. url: toPathString(localVarUrlObj),
  14707. options: localVarRequestOptions,
  14708. };
  14709. },
  14710. }
  14711. };
  14712. /**
  14713. * TagApi - functional programming interface
  14714. * @export
  14715. */
  14716. export const TagApiFp = function(configuration?: Configuration) {
  14717. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  14718. return {
  14719. /**
  14720. *
  14721. * @param {CreateTagDto} createTagDto
  14722. * @param {*} [options] Override http request option.
  14723. * @throws {RequiredError}
  14724. */
  14725. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14726. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  14727. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14728. },
  14729. /**
  14730. *
  14731. * @param {string} id
  14732. * @param {*} [options] Override http request option.
  14733. * @throws {RequiredError}
  14734. */
  14735. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  14736. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  14737. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14738. },
  14739. /**
  14740. *
  14741. * @param {*} [options] Override http request option.
  14742. * @throws {RequiredError}
  14743. */
  14744. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  14745. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  14746. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14747. },
  14748. /**
  14749. *
  14750. * @param {string} id
  14751. * @param {*} [options] Override http request option.
  14752. * @throws {RequiredError}
  14753. */
  14754. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  14755. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  14756. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14757. },
  14758. /**
  14759. *
  14760. * @param {string} id
  14761. * @param {*} [options] Override http request option.
  14762. * @throws {RequiredError}
  14763. */
  14764. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14765. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  14766. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14767. },
  14768. /**
  14769. *
  14770. * @param {string} id
  14771. * @param {AssetIdsDto} assetIdsDto
  14772. * @param {*} [options] Override http request option.
  14773. * @throws {RequiredError}
  14774. */
  14775. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14776. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  14777. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14778. },
  14779. /**
  14780. *
  14781. * @param {string} id
  14782. * @param {AssetIdsDto} assetIdsDto
  14783. * @param {*} [options] Override http request option.
  14784. * @throws {RequiredError}
  14785. */
  14786. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14787. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  14788. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14789. },
  14790. /**
  14791. *
  14792. * @param {string} id
  14793. * @param {UpdateTagDto} updateTagDto
  14794. * @param {*} [options] Override http request option.
  14795. * @throws {RequiredError}
  14796. */
  14797. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14798. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  14799. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14800. },
  14801. }
  14802. };
  14803. /**
  14804. * TagApi - factory interface
  14805. * @export
  14806. */
  14807. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14808. const localVarFp = TagApiFp(configuration)
  14809. return {
  14810. /**
  14811. *
  14812. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14813. * @param {*} [options] Override http request option.
  14814. * @throws {RequiredError}
  14815. */
  14816. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14817. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  14818. },
  14819. /**
  14820. *
  14821. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14822. * @param {*} [options] Override http request option.
  14823. * @throws {RequiredError}
  14824. */
  14825. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  14826. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  14827. },
  14828. /**
  14829. *
  14830. * @param {*} [options] Override http request option.
  14831. * @throws {RequiredError}
  14832. */
  14833. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  14834. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  14835. },
  14836. /**
  14837. *
  14838. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14839. * @param {*} [options] Override http request option.
  14840. * @throws {RequiredError}
  14841. */
  14842. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  14843. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  14844. },
  14845. /**
  14846. *
  14847. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14848. * @param {*} [options] Override http request option.
  14849. * @throws {RequiredError}
  14850. */
  14851. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14852. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  14853. },
  14854. /**
  14855. *
  14856. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14857. * @param {*} [options] Override http request option.
  14858. * @throws {RequiredError}
  14859. */
  14860. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14861. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14862. },
  14863. /**
  14864. *
  14865. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14866. * @param {*} [options] Override http request option.
  14867. * @throws {RequiredError}
  14868. */
  14869. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14870. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14871. },
  14872. /**
  14873. *
  14874. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14875. * @param {*} [options] Override http request option.
  14876. * @throws {RequiredError}
  14877. */
  14878. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14879. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  14880. },
  14881. };
  14882. };
  14883. /**
  14884. * Request parameters for createTag operation in TagApi.
  14885. * @export
  14886. * @interface TagApiCreateTagRequest
  14887. */
  14888. export interface TagApiCreateTagRequest {
  14889. /**
  14890. *
  14891. * @type {CreateTagDto}
  14892. * @memberof TagApiCreateTag
  14893. */
  14894. readonly createTagDto: CreateTagDto
  14895. }
  14896. /**
  14897. * Request parameters for deleteTag operation in TagApi.
  14898. * @export
  14899. * @interface TagApiDeleteTagRequest
  14900. */
  14901. export interface TagApiDeleteTagRequest {
  14902. /**
  14903. *
  14904. * @type {string}
  14905. * @memberof TagApiDeleteTag
  14906. */
  14907. readonly id: string
  14908. }
  14909. /**
  14910. * Request parameters for getTagAssets operation in TagApi.
  14911. * @export
  14912. * @interface TagApiGetTagAssetsRequest
  14913. */
  14914. export interface TagApiGetTagAssetsRequest {
  14915. /**
  14916. *
  14917. * @type {string}
  14918. * @memberof TagApiGetTagAssets
  14919. */
  14920. readonly id: string
  14921. }
  14922. /**
  14923. * Request parameters for getTagById operation in TagApi.
  14924. * @export
  14925. * @interface TagApiGetTagByIdRequest
  14926. */
  14927. export interface TagApiGetTagByIdRequest {
  14928. /**
  14929. *
  14930. * @type {string}
  14931. * @memberof TagApiGetTagById
  14932. */
  14933. readonly id: string
  14934. }
  14935. /**
  14936. * Request parameters for tagAssets operation in TagApi.
  14937. * @export
  14938. * @interface TagApiTagAssetsRequest
  14939. */
  14940. export interface TagApiTagAssetsRequest {
  14941. /**
  14942. *
  14943. * @type {string}
  14944. * @memberof TagApiTagAssets
  14945. */
  14946. readonly id: string
  14947. /**
  14948. *
  14949. * @type {AssetIdsDto}
  14950. * @memberof TagApiTagAssets
  14951. */
  14952. readonly assetIdsDto: AssetIdsDto
  14953. }
  14954. /**
  14955. * Request parameters for untagAssets operation in TagApi.
  14956. * @export
  14957. * @interface TagApiUntagAssetsRequest
  14958. */
  14959. export interface TagApiUntagAssetsRequest {
  14960. /**
  14961. *
  14962. * @type {string}
  14963. * @memberof TagApiUntagAssets
  14964. */
  14965. readonly id: string
  14966. /**
  14967. *
  14968. * @type {AssetIdsDto}
  14969. * @memberof TagApiUntagAssets
  14970. */
  14971. readonly assetIdsDto: AssetIdsDto
  14972. }
  14973. /**
  14974. * Request parameters for updateTag operation in TagApi.
  14975. * @export
  14976. * @interface TagApiUpdateTagRequest
  14977. */
  14978. export interface TagApiUpdateTagRequest {
  14979. /**
  14980. *
  14981. * @type {string}
  14982. * @memberof TagApiUpdateTag
  14983. */
  14984. readonly id: string
  14985. /**
  14986. *
  14987. * @type {UpdateTagDto}
  14988. * @memberof TagApiUpdateTag
  14989. */
  14990. readonly updateTagDto: UpdateTagDto
  14991. }
  14992. /**
  14993. * TagApi - object-oriented interface
  14994. * @export
  14995. * @class TagApi
  14996. * @extends {BaseAPI}
  14997. */
  14998. export class TagApi extends BaseAPI {
  14999. /**
  15000. *
  15001. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  15002. * @param {*} [options] Override http request option.
  15003. * @throws {RequiredError}
  15004. * @memberof TagApi
  15005. */
  15006. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  15007. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  15008. }
  15009. /**
  15010. *
  15011. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  15012. * @param {*} [options] Override http request option.
  15013. * @throws {RequiredError}
  15014. * @memberof TagApi
  15015. */
  15016. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  15017. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15018. }
  15019. /**
  15020. *
  15021. * @param {*} [options] Override http request option.
  15022. * @throws {RequiredError}
  15023. * @memberof TagApi
  15024. */
  15025. public getAllTags(options?: AxiosRequestConfig) {
  15026. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  15027. }
  15028. /**
  15029. *
  15030. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  15031. * @param {*} [options] Override http request option.
  15032. * @throws {RequiredError}
  15033. * @memberof TagApi
  15034. */
  15035. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  15036. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15037. }
  15038. /**
  15039. *
  15040. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  15041. * @param {*} [options] Override http request option.
  15042. * @throws {RequiredError}
  15043. * @memberof TagApi
  15044. */
  15045. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  15046. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15047. }
  15048. /**
  15049. *
  15050. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  15051. * @param {*} [options] Override http request option.
  15052. * @throws {RequiredError}
  15053. * @memberof TagApi
  15054. */
  15055. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  15056. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  15057. }
  15058. /**
  15059. *
  15060. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  15061. * @param {*} [options] Override http request option.
  15062. * @throws {RequiredError}
  15063. * @memberof TagApi
  15064. */
  15065. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  15066. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  15067. }
  15068. /**
  15069. *
  15070. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  15071. * @param {*} [options] Override http request option.
  15072. * @throws {RequiredError}
  15073. * @memberof TagApi
  15074. */
  15075. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  15076. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  15077. }
  15078. }
  15079. /**
  15080. * UserApi - axios parameter creator
  15081. * @export
  15082. */
  15083. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  15084. return {
  15085. /**
  15086. *
  15087. * @param {File} file
  15088. * @param {*} [options] Override http request option.
  15089. * @throws {RequiredError}
  15090. */
  15091. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15092. // verify required parameter 'file' is not null or undefined
  15093. assertParamExists('createProfileImage', 'file', file)
  15094. const localVarPath = `/user/profile-image`;
  15095. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15096. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15097. let baseOptions;
  15098. if (configuration) {
  15099. baseOptions = configuration.baseOptions;
  15100. }
  15101. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15102. const localVarHeaderParameter = {} as any;
  15103. const localVarQueryParameter = {} as any;
  15104. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  15105. // authentication cookie required
  15106. // authentication api_key required
  15107. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15108. // authentication bearer required
  15109. // http bearer authentication required
  15110. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15111. if (file !== undefined) {
  15112. localVarFormParams.append('file', file as any);
  15113. }
  15114. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  15115. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15116. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15117. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15118. localVarRequestOptions.data = localVarFormParams;
  15119. return {
  15120. url: toPathString(localVarUrlObj),
  15121. options: localVarRequestOptions,
  15122. };
  15123. },
  15124. /**
  15125. *
  15126. * @param {CreateUserDto} createUserDto
  15127. * @param {*} [options] Override http request option.
  15128. * @throws {RequiredError}
  15129. */
  15130. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15131. // verify required parameter 'createUserDto' is not null or undefined
  15132. assertParamExists('createUser', 'createUserDto', createUserDto)
  15133. const localVarPath = `/user`;
  15134. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15135. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15136. let baseOptions;
  15137. if (configuration) {
  15138. baseOptions = configuration.baseOptions;
  15139. }
  15140. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15141. const localVarHeaderParameter = {} as any;
  15142. const localVarQueryParameter = {} as any;
  15143. // authentication cookie required
  15144. // authentication api_key required
  15145. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15146. // authentication bearer required
  15147. // http bearer authentication required
  15148. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15149. localVarHeaderParameter['Content-Type'] = 'application/json';
  15150. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15151. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15152. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15153. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  15154. return {
  15155. url: toPathString(localVarUrlObj),
  15156. options: localVarRequestOptions,
  15157. };
  15158. },
  15159. /**
  15160. *
  15161. * @param {*} [options] Override http request option.
  15162. * @throws {RequiredError}
  15163. */
  15164. deleteProfileImage: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15165. const localVarPath = `/user/profile-image`;
  15166. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15167. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15168. let baseOptions;
  15169. if (configuration) {
  15170. baseOptions = configuration.baseOptions;
  15171. }
  15172. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  15173. const localVarHeaderParameter = {} as any;
  15174. const localVarQueryParameter = {} as any;
  15175. // authentication cookie required
  15176. // authentication api_key required
  15177. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15178. // authentication bearer required
  15179. // http bearer authentication required
  15180. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15181. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15182. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15183. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15184. return {
  15185. url: toPathString(localVarUrlObj),
  15186. options: localVarRequestOptions,
  15187. };
  15188. },
  15189. /**
  15190. *
  15191. * @param {string} id
  15192. * @param {*} [options] Override http request option.
  15193. * @throws {RequiredError}
  15194. */
  15195. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15196. // verify required parameter 'id' is not null or undefined
  15197. assertParamExists('deleteUser', 'id', id)
  15198. const localVarPath = `/user/{id}`
  15199. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15200. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15201. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15202. let baseOptions;
  15203. if (configuration) {
  15204. baseOptions = configuration.baseOptions;
  15205. }
  15206. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  15207. const localVarHeaderParameter = {} as any;
  15208. const localVarQueryParameter = {} as any;
  15209. // authentication cookie required
  15210. // authentication api_key required
  15211. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15212. // authentication bearer required
  15213. // http bearer authentication required
  15214. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15215. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15216. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15217. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15218. return {
  15219. url: toPathString(localVarUrlObj),
  15220. options: localVarRequestOptions,
  15221. };
  15222. },
  15223. /**
  15224. *
  15225. * @param {boolean} isAll
  15226. * @param {*} [options] Override http request option.
  15227. * @throws {RequiredError}
  15228. */
  15229. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15230. // verify required parameter 'isAll' is not null or undefined
  15231. assertParamExists('getAllUsers', 'isAll', isAll)
  15232. const localVarPath = `/user`;
  15233. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15234. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15235. let baseOptions;
  15236. if (configuration) {
  15237. baseOptions = configuration.baseOptions;
  15238. }
  15239. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15240. const localVarHeaderParameter = {} as any;
  15241. const localVarQueryParameter = {} as any;
  15242. // authentication cookie required
  15243. // authentication api_key required
  15244. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15245. // authentication bearer required
  15246. // http bearer authentication required
  15247. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15248. if (isAll !== undefined) {
  15249. localVarQueryParameter['isAll'] = isAll;
  15250. }
  15251. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15252. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15253. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15254. return {
  15255. url: toPathString(localVarUrlObj),
  15256. options: localVarRequestOptions,
  15257. };
  15258. },
  15259. /**
  15260. *
  15261. * @param {*} [options] Override http request option.
  15262. * @throws {RequiredError}
  15263. */
  15264. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15265. const localVarPath = `/user/me`;
  15266. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15267. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15268. let baseOptions;
  15269. if (configuration) {
  15270. baseOptions = configuration.baseOptions;
  15271. }
  15272. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15273. const localVarHeaderParameter = {} as any;
  15274. const localVarQueryParameter = {} as any;
  15275. // authentication cookie required
  15276. // authentication api_key required
  15277. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15278. // authentication bearer required
  15279. // http bearer authentication required
  15280. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15281. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15282. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15283. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15284. return {
  15285. url: toPathString(localVarUrlObj),
  15286. options: localVarRequestOptions,
  15287. };
  15288. },
  15289. /**
  15290. *
  15291. * @param {string} id
  15292. * @param {*} [options] Override http request option.
  15293. * @throws {RequiredError}
  15294. */
  15295. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15296. // verify required parameter 'id' is not null or undefined
  15297. assertParamExists('getProfileImage', 'id', id)
  15298. const localVarPath = `/user/profile-image/{id}`
  15299. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15300. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15301. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15302. let baseOptions;
  15303. if (configuration) {
  15304. baseOptions = configuration.baseOptions;
  15305. }
  15306. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15307. const localVarHeaderParameter = {} as any;
  15308. const localVarQueryParameter = {} as any;
  15309. // authentication cookie required
  15310. // authentication api_key required
  15311. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15312. // authentication bearer required
  15313. // http bearer authentication required
  15314. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15315. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15316. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15317. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15318. return {
  15319. url: toPathString(localVarUrlObj),
  15320. options: localVarRequestOptions,
  15321. };
  15322. },
  15323. /**
  15324. *
  15325. * @param {string} id
  15326. * @param {*} [options] Override http request option.
  15327. * @throws {RequiredError}
  15328. */
  15329. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15330. // verify required parameter 'id' is not null or undefined
  15331. assertParamExists('getUserById', 'id', id)
  15332. const localVarPath = `/user/info/{id}`
  15333. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15334. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15335. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15336. let baseOptions;
  15337. if (configuration) {
  15338. baseOptions = configuration.baseOptions;
  15339. }
  15340. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15341. const localVarHeaderParameter = {} as any;
  15342. const localVarQueryParameter = {} as any;
  15343. // authentication cookie required
  15344. // authentication api_key required
  15345. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15346. // authentication bearer required
  15347. // http bearer authentication required
  15348. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15349. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15350. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15351. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15352. return {
  15353. url: toPathString(localVarUrlObj),
  15354. options: localVarRequestOptions,
  15355. };
  15356. },
  15357. /**
  15358. *
  15359. * @param {string} id
  15360. * @param {*} [options] Override http request option.
  15361. * @throws {RequiredError}
  15362. */
  15363. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15364. // verify required parameter 'id' is not null or undefined
  15365. assertParamExists('restoreUser', 'id', id)
  15366. const localVarPath = `/user/{id}/restore`
  15367. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15368. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15369. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15370. let baseOptions;
  15371. if (configuration) {
  15372. baseOptions = configuration.baseOptions;
  15373. }
  15374. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15375. const localVarHeaderParameter = {} as any;
  15376. const localVarQueryParameter = {} as any;
  15377. // authentication cookie required
  15378. // authentication api_key required
  15379. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15380. // authentication bearer required
  15381. // http bearer authentication required
  15382. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15383. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15384. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15385. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15386. return {
  15387. url: toPathString(localVarUrlObj),
  15388. options: localVarRequestOptions,
  15389. };
  15390. },
  15391. /**
  15392. *
  15393. * @param {UpdateUserDto} updateUserDto
  15394. * @param {*} [options] Override http request option.
  15395. * @throws {RequiredError}
  15396. */
  15397. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15398. // verify required parameter 'updateUserDto' is not null or undefined
  15399. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  15400. const localVarPath = `/user`;
  15401. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15402. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15403. let baseOptions;
  15404. if (configuration) {
  15405. baseOptions = configuration.baseOptions;
  15406. }
  15407. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  15408. const localVarHeaderParameter = {} as any;
  15409. const localVarQueryParameter = {} as any;
  15410. // authentication cookie required
  15411. // authentication api_key required
  15412. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15413. // authentication bearer required
  15414. // http bearer authentication required
  15415. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15416. localVarHeaderParameter['Content-Type'] = 'application/json';
  15417. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15418. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15419. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15420. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  15421. return {
  15422. url: toPathString(localVarUrlObj),
  15423. options: localVarRequestOptions,
  15424. };
  15425. },
  15426. }
  15427. };
  15428. /**
  15429. * UserApi - functional programming interface
  15430. * @export
  15431. */
  15432. export const UserApiFp = function(configuration?: Configuration) {
  15433. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  15434. return {
  15435. /**
  15436. *
  15437. * @param {File} file
  15438. * @param {*} [options] Override http request option.
  15439. * @throws {RequiredError}
  15440. */
  15441. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  15442. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  15443. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15444. },
  15445. /**
  15446. *
  15447. * @param {CreateUserDto} createUserDto
  15448. * @param {*} [options] Override http request option.
  15449. * @throws {RequiredError}
  15450. */
  15451. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15452. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  15453. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15454. },
  15455. /**
  15456. *
  15457. * @param {*} [options] Override http request option.
  15458. * @throws {RequiredError}
  15459. */
  15460. async deleteProfileImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  15461. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProfileImage(options);
  15462. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15463. },
  15464. /**
  15465. *
  15466. * @param {string} id
  15467. * @param {*} [options] Override http request option.
  15468. * @throws {RequiredError}
  15469. */
  15470. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15471. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  15472. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15473. },
  15474. /**
  15475. *
  15476. * @param {boolean} isAll
  15477. * @param {*} [options] Override http request option.
  15478. * @throws {RequiredError}
  15479. */
  15480. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  15481. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  15482. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15483. },
  15484. /**
  15485. *
  15486. * @param {*} [options] Override http request option.
  15487. * @throws {RequiredError}
  15488. */
  15489. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15490. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  15491. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15492. },
  15493. /**
  15494. *
  15495. * @param {string} id
  15496. * @param {*} [options] Override http request option.
  15497. * @throws {RequiredError}
  15498. */
  15499. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  15500. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  15501. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15502. },
  15503. /**
  15504. *
  15505. * @param {string} id
  15506. * @param {*} [options] Override http request option.
  15507. * @throws {RequiredError}
  15508. */
  15509. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15510. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  15511. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15512. },
  15513. /**
  15514. *
  15515. * @param {string} id
  15516. * @param {*} [options] Override http request option.
  15517. * @throws {RequiredError}
  15518. */
  15519. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15520. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  15521. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15522. },
  15523. /**
  15524. *
  15525. * @param {UpdateUserDto} updateUserDto
  15526. * @param {*} [options] Override http request option.
  15527. * @throws {RequiredError}
  15528. */
  15529. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15530. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  15531. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15532. },
  15533. }
  15534. };
  15535. /**
  15536. * UserApi - factory interface
  15537. * @export
  15538. */
  15539. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  15540. const localVarFp = UserApiFp(configuration)
  15541. return {
  15542. /**
  15543. *
  15544. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15545. * @param {*} [options] Override http request option.
  15546. * @throws {RequiredError}
  15547. */
  15548. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  15549. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  15550. },
  15551. /**
  15552. *
  15553. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15554. * @param {*} [options] Override http request option.
  15555. * @throws {RequiredError}
  15556. */
  15557. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15558. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  15559. },
  15560. /**
  15561. *
  15562. * @param {*} [options] Override http request option.
  15563. * @throws {RequiredError}
  15564. */
  15565. deleteProfileImage(options?: AxiosRequestConfig): AxiosPromise<void> {
  15566. return localVarFp.deleteProfileImage(options).then((request) => request(axios, basePath));
  15567. },
  15568. /**
  15569. *
  15570. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15571. * @param {*} [options] Override http request option.
  15572. * @throws {RequiredError}
  15573. */
  15574. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15575. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  15576. },
  15577. /**
  15578. *
  15579. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15580. * @param {*} [options] Override http request option.
  15581. * @throws {RequiredError}
  15582. */
  15583. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  15584. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  15585. },
  15586. /**
  15587. *
  15588. * @param {*} [options] Override http request option.
  15589. * @throws {RequiredError}
  15590. */
  15591. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15592. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  15593. },
  15594. /**
  15595. *
  15596. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15597. * @param {*} [options] Override http request option.
  15598. * @throws {RequiredError}
  15599. */
  15600. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  15601. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  15602. },
  15603. /**
  15604. *
  15605. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15606. * @param {*} [options] Override http request option.
  15607. * @throws {RequiredError}
  15608. */
  15609. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15610. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  15611. },
  15612. /**
  15613. *
  15614. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15615. * @param {*} [options] Override http request option.
  15616. * @throws {RequiredError}
  15617. */
  15618. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15619. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  15620. },
  15621. /**
  15622. *
  15623. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15624. * @param {*} [options] Override http request option.
  15625. * @throws {RequiredError}
  15626. */
  15627. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15628. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  15629. },
  15630. };
  15631. };
  15632. /**
  15633. * Request parameters for createProfileImage operation in UserApi.
  15634. * @export
  15635. * @interface UserApiCreateProfileImageRequest
  15636. */
  15637. export interface UserApiCreateProfileImageRequest {
  15638. /**
  15639. *
  15640. * @type {File}
  15641. * @memberof UserApiCreateProfileImage
  15642. */
  15643. readonly file: File
  15644. }
  15645. /**
  15646. * Request parameters for createUser operation in UserApi.
  15647. * @export
  15648. * @interface UserApiCreateUserRequest
  15649. */
  15650. export interface UserApiCreateUserRequest {
  15651. /**
  15652. *
  15653. * @type {CreateUserDto}
  15654. * @memberof UserApiCreateUser
  15655. */
  15656. readonly createUserDto: CreateUserDto
  15657. }
  15658. /**
  15659. * Request parameters for deleteUser operation in UserApi.
  15660. * @export
  15661. * @interface UserApiDeleteUserRequest
  15662. */
  15663. export interface UserApiDeleteUserRequest {
  15664. /**
  15665. *
  15666. * @type {string}
  15667. * @memberof UserApiDeleteUser
  15668. */
  15669. readonly id: string
  15670. }
  15671. /**
  15672. * Request parameters for getAllUsers operation in UserApi.
  15673. * @export
  15674. * @interface UserApiGetAllUsersRequest
  15675. */
  15676. export interface UserApiGetAllUsersRequest {
  15677. /**
  15678. *
  15679. * @type {boolean}
  15680. * @memberof UserApiGetAllUsers
  15681. */
  15682. readonly isAll: boolean
  15683. }
  15684. /**
  15685. * Request parameters for getProfileImage operation in UserApi.
  15686. * @export
  15687. * @interface UserApiGetProfileImageRequest
  15688. */
  15689. export interface UserApiGetProfileImageRequest {
  15690. /**
  15691. *
  15692. * @type {string}
  15693. * @memberof UserApiGetProfileImage
  15694. */
  15695. readonly id: string
  15696. }
  15697. /**
  15698. * Request parameters for getUserById operation in UserApi.
  15699. * @export
  15700. * @interface UserApiGetUserByIdRequest
  15701. */
  15702. export interface UserApiGetUserByIdRequest {
  15703. /**
  15704. *
  15705. * @type {string}
  15706. * @memberof UserApiGetUserById
  15707. */
  15708. readonly id: string
  15709. }
  15710. /**
  15711. * Request parameters for restoreUser operation in UserApi.
  15712. * @export
  15713. * @interface UserApiRestoreUserRequest
  15714. */
  15715. export interface UserApiRestoreUserRequest {
  15716. /**
  15717. *
  15718. * @type {string}
  15719. * @memberof UserApiRestoreUser
  15720. */
  15721. readonly id: string
  15722. }
  15723. /**
  15724. * Request parameters for updateUser operation in UserApi.
  15725. * @export
  15726. * @interface UserApiUpdateUserRequest
  15727. */
  15728. export interface UserApiUpdateUserRequest {
  15729. /**
  15730. *
  15731. * @type {UpdateUserDto}
  15732. * @memberof UserApiUpdateUser
  15733. */
  15734. readonly updateUserDto: UpdateUserDto
  15735. }
  15736. /**
  15737. * UserApi - object-oriented interface
  15738. * @export
  15739. * @class UserApi
  15740. * @extends {BaseAPI}
  15741. */
  15742. export class UserApi extends BaseAPI {
  15743. /**
  15744. *
  15745. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15746. * @param {*} [options] Override http request option.
  15747. * @throws {RequiredError}
  15748. * @memberof UserApi
  15749. */
  15750. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  15751. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  15752. }
  15753. /**
  15754. *
  15755. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15756. * @param {*} [options] Override http request option.
  15757. * @throws {RequiredError}
  15758. * @memberof UserApi
  15759. */
  15760. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  15761. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  15762. }
  15763. /**
  15764. *
  15765. * @param {*} [options] Override http request option.
  15766. * @throws {RequiredError}
  15767. * @memberof UserApi
  15768. */
  15769. public deleteProfileImage(options?: AxiosRequestConfig) {
  15770. return UserApiFp(this.configuration).deleteProfileImage(options).then((request) => request(this.axios, this.basePath));
  15771. }
  15772. /**
  15773. *
  15774. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15775. * @param {*} [options] Override http request option.
  15776. * @throws {RequiredError}
  15777. * @memberof UserApi
  15778. */
  15779. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  15780. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15781. }
  15782. /**
  15783. *
  15784. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15785. * @param {*} [options] Override http request option.
  15786. * @throws {RequiredError}
  15787. * @memberof UserApi
  15788. */
  15789. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  15790. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  15791. }
  15792. /**
  15793. *
  15794. * @param {*} [options] Override http request option.
  15795. * @throws {RequiredError}
  15796. * @memberof UserApi
  15797. */
  15798. public getMyUserInfo(options?: AxiosRequestConfig) {
  15799. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  15800. }
  15801. /**
  15802. *
  15803. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15804. * @param {*} [options] Override http request option.
  15805. * @throws {RequiredError}
  15806. * @memberof UserApi
  15807. */
  15808. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  15809. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15810. }
  15811. /**
  15812. *
  15813. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15814. * @param {*} [options] Override http request option.
  15815. * @throws {RequiredError}
  15816. * @memberof UserApi
  15817. */
  15818. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  15819. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15820. }
  15821. /**
  15822. *
  15823. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15824. * @param {*} [options] Override http request option.
  15825. * @throws {RequiredError}
  15826. * @memberof UserApi
  15827. */
  15828. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  15829. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15830. }
  15831. /**
  15832. *
  15833. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15834. * @param {*} [options] Override http request option.
  15835. * @throws {RequiredError}
  15836. * @memberof UserApi
  15837. */
  15838. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  15839. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  15840. }
  15841. }