api.ts 555 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.82.1
  8. *
  9. *
  10. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  11. * https://openapi-generator.tech
  12. * Do not edit the class manually.
  13. */
  14. import type { Configuration } from './configuration';
  15. import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
  16. import globalAxios from 'axios';
  17. // Some imports not used depending on template conditions
  18. // @ts-ignore
  19. import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
  20. import type { RequestArgs } from './base';
  21. // @ts-ignore
  22. import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
  23. /**
  24. *
  25. * @export
  26. * @interface APIKeyCreateDto
  27. */
  28. export interface APIKeyCreateDto {
  29. /**
  30. *
  31. * @type {string}
  32. * @memberof APIKeyCreateDto
  33. */
  34. 'name'?: string;
  35. }
  36. /**
  37. *
  38. * @export
  39. * @interface APIKeyCreateResponseDto
  40. */
  41. export interface APIKeyCreateResponseDto {
  42. /**
  43. *
  44. * @type {APIKeyResponseDto}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'apiKey': APIKeyResponseDto;
  48. /**
  49. *
  50. * @type {string}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'secret': string;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'createdAt': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'id': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'name': string;
  79. /**
  80. *
  81. * @type {string}
  82. * @memberof APIKeyResponseDto
  83. */
  84. 'updatedAt': string;
  85. }
  86. /**
  87. *
  88. * @export
  89. * @interface APIKeyUpdateDto
  90. */
  91. export interface APIKeyUpdateDto {
  92. /**
  93. *
  94. * @type {string}
  95. * @memberof APIKeyUpdateDto
  96. */
  97. 'name': string;
  98. }
  99. /**
  100. *
  101. * @export
  102. * @interface AddUsersDto
  103. */
  104. export interface AddUsersDto {
  105. /**
  106. *
  107. * @type {Array<string>}
  108. * @memberof AddUsersDto
  109. */
  110. 'sharedUserIds': Array<string>;
  111. }
  112. /**
  113. *
  114. * @export
  115. * @interface AdminSignupResponseDto
  116. */
  117. export interface AdminSignupResponseDto {
  118. /**
  119. *
  120. * @type {string}
  121. * @memberof AdminSignupResponseDto
  122. */
  123. 'createdAt': string;
  124. /**
  125. *
  126. * @type {string}
  127. * @memberof AdminSignupResponseDto
  128. */
  129. 'email': string;
  130. /**
  131. *
  132. * @type {string}
  133. * @memberof AdminSignupResponseDto
  134. */
  135. 'firstName': string;
  136. /**
  137. *
  138. * @type {string}
  139. * @memberof AdminSignupResponseDto
  140. */
  141. 'id': string;
  142. /**
  143. *
  144. * @type {string}
  145. * @memberof AdminSignupResponseDto
  146. */
  147. 'lastName': string;
  148. }
  149. /**
  150. *
  151. * @export
  152. * @interface AlbumCountResponseDto
  153. */
  154. export interface AlbumCountResponseDto {
  155. /**
  156. *
  157. * @type {number}
  158. * @memberof AlbumCountResponseDto
  159. */
  160. 'notShared': number;
  161. /**
  162. *
  163. * @type {number}
  164. * @memberof AlbumCountResponseDto
  165. */
  166. 'owned': number;
  167. /**
  168. *
  169. * @type {number}
  170. * @memberof AlbumCountResponseDto
  171. */
  172. 'shared': number;
  173. }
  174. /**
  175. *
  176. * @export
  177. * @interface AlbumResponseDto
  178. */
  179. export interface AlbumResponseDto {
  180. /**
  181. *
  182. * @type {string}
  183. * @memberof AlbumResponseDto
  184. */
  185. 'albumName': string;
  186. /**
  187. *
  188. * @type {string}
  189. * @memberof AlbumResponseDto
  190. */
  191. 'albumThumbnailAssetId': string | null;
  192. /**
  193. *
  194. * @type {number}
  195. * @memberof AlbumResponseDto
  196. */
  197. 'assetCount': number;
  198. /**
  199. *
  200. * @type {Array<AssetResponseDto>}
  201. * @memberof AlbumResponseDto
  202. */
  203. 'assets': Array<AssetResponseDto>;
  204. /**
  205. *
  206. * @type {string}
  207. * @memberof AlbumResponseDto
  208. */
  209. 'createdAt': string;
  210. /**
  211. *
  212. * @type {string}
  213. * @memberof AlbumResponseDto
  214. */
  215. 'description': string;
  216. /**
  217. *
  218. * @type {string}
  219. * @memberof AlbumResponseDto
  220. */
  221. 'endDate'?: string;
  222. /**
  223. *
  224. * @type {boolean}
  225. * @memberof AlbumResponseDto
  226. */
  227. 'hasSharedLink': boolean;
  228. /**
  229. *
  230. * @type {string}
  231. * @memberof AlbumResponseDto
  232. */
  233. 'id': string;
  234. /**
  235. *
  236. * @type {string}
  237. * @memberof AlbumResponseDto
  238. */
  239. 'lastModifiedAssetTimestamp'?: string;
  240. /**
  241. *
  242. * @type {UserResponseDto}
  243. * @memberof AlbumResponseDto
  244. */
  245. 'owner': UserResponseDto;
  246. /**
  247. *
  248. * @type {string}
  249. * @memberof AlbumResponseDto
  250. */
  251. 'ownerId': string;
  252. /**
  253. *
  254. * @type {boolean}
  255. * @memberof AlbumResponseDto
  256. */
  257. 'shared': boolean;
  258. /**
  259. *
  260. * @type {Array<UserResponseDto>}
  261. * @memberof AlbumResponseDto
  262. */
  263. 'sharedUsers': Array<UserResponseDto>;
  264. /**
  265. *
  266. * @type {string}
  267. * @memberof AlbumResponseDto
  268. */
  269. 'startDate'?: string;
  270. /**
  271. *
  272. * @type {string}
  273. * @memberof AlbumResponseDto
  274. */
  275. 'updatedAt': string;
  276. }
  277. /**
  278. *
  279. * @export
  280. * @interface AllJobStatusResponseDto
  281. */
  282. export interface AllJobStatusResponseDto {
  283. /**
  284. *
  285. * @type {JobStatusDto}
  286. * @memberof AllJobStatusResponseDto
  287. */
  288. 'backgroundTask': JobStatusDto;
  289. /**
  290. *
  291. * @type {JobStatusDto}
  292. * @memberof AllJobStatusResponseDto
  293. */
  294. 'clipEncoding': JobStatusDto;
  295. /**
  296. *
  297. * @type {JobStatusDto}
  298. * @memberof AllJobStatusResponseDto
  299. */
  300. 'library': JobStatusDto;
  301. /**
  302. *
  303. * @type {JobStatusDto}
  304. * @memberof AllJobStatusResponseDto
  305. */
  306. 'metadataExtraction': JobStatusDto;
  307. /**
  308. *
  309. * @type {JobStatusDto}
  310. * @memberof AllJobStatusResponseDto
  311. */
  312. 'migration': JobStatusDto;
  313. /**
  314. *
  315. * @type {JobStatusDto}
  316. * @memberof AllJobStatusResponseDto
  317. */
  318. 'objectTagging': JobStatusDto;
  319. /**
  320. *
  321. * @type {JobStatusDto}
  322. * @memberof AllJobStatusResponseDto
  323. */
  324. 'recognizeFaces': JobStatusDto;
  325. /**
  326. *
  327. * @type {JobStatusDto}
  328. * @memberof AllJobStatusResponseDto
  329. */
  330. 'search': JobStatusDto;
  331. /**
  332. *
  333. * @type {JobStatusDto}
  334. * @memberof AllJobStatusResponseDto
  335. */
  336. 'sidecar': JobStatusDto;
  337. /**
  338. *
  339. * @type {JobStatusDto}
  340. * @memberof AllJobStatusResponseDto
  341. */
  342. 'storageTemplateMigration': JobStatusDto;
  343. /**
  344. *
  345. * @type {JobStatusDto}
  346. * @memberof AllJobStatusResponseDto
  347. */
  348. 'thumbnailGeneration': JobStatusDto;
  349. /**
  350. *
  351. * @type {JobStatusDto}
  352. * @memberof AllJobStatusResponseDto
  353. */
  354. 'videoConversion': JobStatusDto;
  355. }
  356. /**
  357. *
  358. * @export
  359. * @interface AssetBulkDeleteDto
  360. */
  361. export interface AssetBulkDeleteDto {
  362. /**
  363. *
  364. * @type {boolean}
  365. * @memberof AssetBulkDeleteDto
  366. */
  367. 'force'?: boolean;
  368. /**
  369. *
  370. * @type {Array<string>}
  371. * @memberof AssetBulkDeleteDto
  372. */
  373. 'ids': Array<string>;
  374. }
  375. /**
  376. *
  377. * @export
  378. * @interface AssetBulkUpdateDto
  379. */
  380. export interface AssetBulkUpdateDto {
  381. /**
  382. *
  383. * @type {Array<string>}
  384. * @memberof AssetBulkUpdateDto
  385. */
  386. 'ids': Array<string>;
  387. /**
  388. *
  389. * @type {boolean}
  390. * @memberof AssetBulkUpdateDto
  391. */
  392. 'isArchived'?: boolean;
  393. /**
  394. *
  395. * @type {boolean}
  396. * @memberof AssetBulkUpdateDto
  397. */
  398. 'isFavorite'?: boolean;
  399. /**
  400. *
  401. * @type {boolean}
  402. * @memberof AssetBulkUpdateDto
  403. */
  404. 'removeParent'?: boolean;
  405. /**
  406. *
  407. * @type {string}
  408. * @memberof AssetBulkUpdateDto
  409. */
  410. 'stackParentId'?: string;
  411. }
  412. /**
  413. *
  414. * @export
  415. * @interface AssetBulkUploadCheckDto
  416. */
  417. export interface AssetBulkUploadCheckDto {
  418. /**
  419. *
  420. * @type {Array<AssetBulkUploadCheckItem>}
  421. * @memberof AssetBulkUploadCheckDto
  422. */
  423. 'assets': Array<AssetBulkUploadCheckItem>;
  424. }
  425. /**
  426. *
  427. * @export
  428. * @interface AssetBulkUploadCheckItem
  429. */
  430. export interface AssetBulkUploadCheckItem {
  431. /**
  432. * base64 or hex encoded sha1 hash
  433. * @type {string}
  434. * @memberof AssetBulkUploadCheckItem
  435. */
  436. 'checksum': string;
  437. /**
  438. *
  439. * @type {string}
  440. * @memberof AssetBulkUploadCheckItem
  441. */
  442. 'id': string;
  443. }
  444. /**
  445. *
  446. * @export
  447. * @interface AssetBulkUploadCheckResponseDto
  448. */
  449. export interface AssetBulkUploadCheckResponseDto {
  450. /**
  451. *
  452. * @type {Array<AssetBulkUploadCheckResult>}
  453. * @memberof AssetBulkUploadCheckResponseDto
  454. */
  455. 'results': Array<AssetBulkUploadCheckResult>;
  456. }
  457. /**
  458. *
  459. * @export
  460. * @interface AssetBulkUploadCheckResult
  461. */
  462. export interface AssetBulkUploadCheckResult {
  463. /**
  464. *
  465. * @type {string}
  466. * @memberof AssetBulkUploadCheckResult
  467. */
  468. 'action': AssetBulkUploadCheckResultActionEnum;
  469. /**
  470. *
  471. * @type {string}
  472. * @memberof AssetBulkUploadCheckResult
  473. */
  474. 'assetId'?: string;
  475. /**
  476. *
  477. * @type {string}
  478. * @memberof AssetBulkUploadCheckResult
  479. */
  480. 'id': string;
  481. /**
  482. *
  483. * @type {string}
  484. * @memberof AssetBulkUploadCheckResult
  485. */
  486. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  487. }
  488. export const AssetBulkUploadCheckResultActionEnum = {
  489. Accept: 'accept',
  490. Reject: 'reject'
  491. } as const;
  492. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  493. export const AssetBulkUploadCheckResultReasonEnum = {
  494. Duplicate: 'duplicate',
  495. UnsupportedFormat: 'unsupported-format'
  496. } as const;
  497. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  498. /**
  499. *
  500. * @export
  501. * @interface AssetFileUploadResponseDto
  502. */
  503. export interface AssetFileUploadResponseDto {
  504. /**
  505. *
  506. * @type {boolean}
  507. * @memberof AssetFileUploadResponseDto
  508. */
  509. 'duplicate': boolean;
  510. /**
  511. *
  512. * @type {string}
  513. * @memberof AssetFileUploadResponseDto
  514. */
  515. 'id': string;
  516. }
  517. /**
  518. *
  519. * @export
  520. * @interface AssetIdsDto
  521. */
  522. export interface AssetIdsDto {
  523. /**
  524. *
  525. * @type {Array<string>}
  526. * @memberof AssetIdsDto
  527. */
  528. 'assetIds': Array<string>;
  529. }
  530. /**
  531. *
  532. * @export
  533. * @interface AssetIdsResponseDto
  534. */
  535. export interface AssetIdsResponseDto {
  536. /**
  537. *
  538. * @type {string}
  539. * @memberof AssetIdsResponseDto
  540. */
  541. 'assetId': string;
  542. /**
  543. *
  544. * @type {string}
  545. * @memberof AssetIdsResponseDto
  546. */
  547. 'error'?: AssetIdsResponseDtoErrorEnum;
  548. /**
  549. *
  550. * @type {boolean}
  551. * @memberof AssetIdsResponseDto
  552. */
  553. 'success': boolean;
  554. }
  555. export const AssetIdsResponseDtoErrorEnum = {
  556. Duplicate: 'duplicate',
  557. NoPermission: 'no_permission',
  558. NotFound: 'not_found'
  559. } as const;
  560. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  561. /**
  562. *
  563. * @export
  564. * @enum {string}
  565. */
  566. export const AssetJobName = {
  567. RegenerateThumbnail: 'regenerate-thumbnail',
  568. RefreshMetadata: 'refresh-metadata',
  569. TranscodeVideo: 'transcode-video'
  570. } as const;
  571. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  572. /**
  573. *
  574. * @export
  575. * @interface AssetJobsDto
  576. */
  577. export interface AssetJobsDto {
  578. /**
  579. *
  580. * @type {Array<string>}
  581. * @memberof AssetJobsDto
  582. */
  583. 'assetIds': Array<string>;
  584. /**
  585. *
  586. * @type {AssetJobName}
  587. * @memberof AssetJobsDto
  588. */
  589. 'name': AssetJobName;
  590. }
  591. /**
  592. *
  593. * @export
  594. * @interface AssetResponseDto
  595. */
  596. export interface AssetResponseDto {
  597. /**
  598. * base64 encoded sha1 hash
  599. * @type {string}
  600. * @memberof AssetResponseDto
  601. */
  602. 'checksum': string;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof AssetResponseDto
  607. */
  608. 'deviceAssetId': string;
  609. /**
  610. *
  611. * @type {string}
  612. * @memberof AssetResponseDto
  613. */
  614. 'deviceId': string;
  615. /**
  616. *
  617. * @type {string}
  618. * @memberof AssetResponseDto
  619. */
  620. 'duration': string;
  621. /**
  622. *
  623. * @type {ExifResponseDto}
  624. * @memberof AssetResponseDto
  625. */
  626. 'exifInfo'?: ExifResponseDto;
  627. /**
  628. *
  629. * @type {string}
  630. * @memberof AssetResponseDto
  631. */
  632. 'fileCreatedAt': string;
  633. /**
  634. *
  635. * @type {string}
  636. * @memberof AssetResponseDto
  637. */
  638. 'fileModifiedAt': string;
  639. /**
  640. *
  641. * @type {boolean}
  642. * @memberof AssetResponseDto
  643. */
  644. 'hasMetadata': boolean;
  645. /**
  646. *
  647. * @type {string}
  648. * @memberof AssetResponseDto
  649. */
  650. 'id': string;
  651. /**
  652. *
  653. * @type {boolean}
  654. * @memberof AssetResponseDto
  655. */
  656. 'isArchived': boolean;
  657. /**
  658. *
  659. * @type {boolean}
  660. * @memberof AssetResponseDto
  661. */
  662. 'isExternal': boolean;
  663. /**
  664. *
  665. * @type {boolean}
  666. * @memberof AssetResponseDto
  667. */
  668. 'isFavorite': boolean;
  669. /**
  670. *
  671. * @type {boolean}
  672. * @memberof AssetResponseDto
  673. */
  674. 'isOffline': boolean;
  675. /**
  676. *
  677. * @type {boolean}
  678. * @memberof AssetResponseDto
  679. */
  680. 'isReadOnly': boolean;
  681. /**
  682. *
  683. * @type {boolean}
  684. * @memberof AssetResponseDto
  685. */
  686. 'isTrashed': boolean;
  687. /**
  688. *
  689. * @type {string}
  690. * @memberof AssetResponseDto
  691. */
  692. 'libraryId': string;
  693. /**
  694. *
  695. * @type {string}
  696. * @memberof AssetResponseDto
  697. */
  698. 'livePhotoVideoId'?: string | null;
  699. /**
  700. *
  701. * @type {string}
  702. * @memberof AssetResponseDto
  703. */
  704. 'localDateTime': string;
  705. /**
  706. *
  707. * @type {string}
  708. * @memberof AssetResponseDto
  709. */
  710. 'originalFileName': string;
  711. /**
  712. *
  713. * @type {string}
  714. * @memberof AssetResponseDto
  715. */
  716. 'originalPath': string;
  717. /**
  718. *
  719. * @type {UserResponseDto}
  720. * @memberof AssetResponseDto
  721. */
  722. 'owner'?: UserResponseDto;
  723. /**
  724. *
  725. * @type {string}
  726. * @memberof AssetResponseDto
  727. */
  728. 'ownerId': string;
  729. /**
  730. *
  731. * @type {Array<PersonResponseDto>}
  732. * @memberof AssetResponseDto
  733. */
  734. 'people'?: Array<PersonResponseDto>;
  735. /**
  736. *
  737. * @type {boolean}
  738. * @memberof AssetResponseDto
  739. */
  740. 'resized': boolean;
  741. /**
  742. *
  743. * @type {SmartInfoResponseDto}
  744. * @memberof AssetResponseDto
  745. */
  746. 'smartInfo'?: SmartInfoResponseDto;
  747. /**
  748. *
  749. * @type {Array<AssetResponseDto>}
  750. * @memberof AssetResponseDto
  751. */
  752. 'stack'?: Array<AssetResponseDto>;
  753. /**
  754. *
  755. * @type {number}
  756. * @memberof AssetResponseDto
  757. */
  758. 'stackCount': number;
  759. /**
  760. *
  761. * @type {string}
  762. * @memberof AssetResponseDto
  763. */
  764. 'stackParentId'?: string | null;
  765. /**
  766. *
  767. * @type {Array<TagResponseDto>}
  768. * @memberof AssetResponseDto
  769. */
  770. 'tags'?: Array<TagResponseDto>;
  771. /**
  772. *
  773. * @type {string}
  774. * @memberof AssetResponseDto
  775. */
  776. 'thumbhash': string | null;
  777. /**
  778. *
  779. * @type {AssetTypeEnum}
  780. * @memberof AssetResponseDto
  781. */
  782. 'type': AssetTypeEnum;
  783. /**
  784. *
  785. * @type {string}
  786. * @memberof AssetResponseDto
  787. */
  788. 'updatedAt': string;
  789. }
  790. /**
  791. *
  792. * @export
  793. * @interface AssetStatsResponseDto
  794. */
  795. export interface AssetStatsResponseDto {
  796. /**
  797. *
  798. * @type {number}
  799. * @memberof AssetStatsResponseDto
  800. */
  801. 'images': number;
  802. /**
  803. *
  804. * @type {number}
  805. * @memberof AssetStatsResponseDto
  806. */
  807. 'total': number;
  808. /**
  809. *
  810. * @type {number}
  811. * @memberof AssetStatsResponseDto
  812. */
  813. 'videos': number;
  814. }
  815. /**
  816. *
  817. * @export
  818. * @enum {string}
  819. */
  820. export const AssetTypeEnum = {
  821. Image: 'IMAGE',
  822. Video: 'VIDEO',
  823. Audio: 'AUDIO',
  824. Other: 'OTHER'
  825. } as const;
  826. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  827. /**
  828. *
  829. * @export
  830. * @enum {string}
  831. */
  832. export const AudioCodec = {
  833. Mp3: 'mp3',
  834. Aac: 'aac',
  835. Libopus: 'libopus'
  836. } as const;
  837. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  838. /**
  839. *
  840. * @export
  841. * @interface AuditDeletesResponseDto
  842. */
  843. export interface AuditDeletesResponseDto {
  844. /**
  845. *
  846. * @type {Array<string>}
  847. * @memberof AuditDeletesResponseDto
  848. */
  849. 'ids': Array<string>;
  850. /**
  851. *
  852. * @type {boolean}
  853. * @memberof AuditDeletesResponseDto
  854. */
  855. 'needsFullSync': boolean;
  856. }
  857. /**
  858. *
  859. * @export
  860. * @interface AuthDeviceResponseDto
  861. */
  862. export interface AuthDeviceResponseDto {
  863. /**
  864. *
  865. * @type {string}
  866. * @memberof AuthDeviceResponseDto
  867. */
  868. 'createdAt': string;
  869. /**
  870. *
  871. * @type {boolean}
  872. * @memberof AuthDeviceResponseDto
  873. */
  874. 'current': boolean;
  875. /**
  876. *
  877. * @type {string}
  878. * @memberof AuthDeviceResponseDto
  879. */
  880. 'deviceOS': string;
  881. /**
  882. *
  883. * @type {string}
  884. * @memberof AuthDeviceResponseDto
  885. */
  886. 'deviceType': string;
  887. /**
  888. *
  889. * @type {string}
  890. * @memberof AuthDeviceResponseDto
  891. */
  892. 'id': string;
  893. /**
  894. *
  895. * @type {string}
  896. * @memberof AuthDeviceResponseDto
  897. */
  898. 'updatedAt': string;
  899. }
  900. /**
  901. *
  902. * @export
  903. * @interface BulkIdResponseDto
  904. */
  905. export interface BulkIdResponseDto {
  906. /**
  907. *
  908. * @type {string}
  909. * @memberof BulkIdResponseDto
  910. */
  911. 'error'?: BulkIdResponseDtoErrorEnum;
  912. /**
  913. *
  914. * @type {string}
  915. * @memberof BulkIdResponseDto
  916. */
  917. 'id': string;
  918. /**
  919. *
  920. * @type {boolean}
  921. * @memberof BulkIdResponseDto
  922. */
  923. 'success': boolean;
  924. }
  925. export const BulkIdResponseDtoErrorEnum = {
  926. Duplicate: 'duplicate',
  927. NoPermission: 'no_permission',
  928. NotFound: 'not_found',
  929. Unknown: 'unknown'
  930. } as const;
  931. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  932. /**
  933. *
  934. * @export
  935. * @interface BulkIdsDto
  936. */
  937. export interface BulkIdsDto {
  938. /**
  939. *
  940. * @type {Array<string>}
  941. * @memberof BulkIdsDto
  942. */
  943. 'ids': Array<string>;
  944. }
  945. /**
  946. *
  947. * @export
  948. * @interface CLIPConfig
  949. */
  950. export interface CLIPConfig {
  951. /**
  952. *
  953. * @type {boolean}
  954. * @memberof CLIPConfig
  955. */
  956. 'enabled': boolean;
  957. /**
  958. *
  959. * @type {CLIPMode}
  960. * @memberof CLIPConfig
  961. */
  962. 'mode'?: CLIPMode;
  963. /**
  964. *
  965. * @type {string}
  966. * @memberof CLIPConfig
  967. */
  968. 'modelName': string;
  969. /**
  970. *
  971. * @type {ModelType}
  972. * @memberof CLIPConfig
  973. */
  974. 'modelType'?: ModelType;
  975. }
  976. /**
  977. *
  978. * @export
  979. * @enum {string}
  980. */
  981. export const CLIPMode = {
  982. Vision: 'vision',
  983. Text: 'text'
  984. } as const;
  985. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  986. /**
  987. *
  988. * @export
  989. * @enum {string}
  990. */
  991. export const CQMode = {
  992. Auto: 'auto',
  993. Cqp: 'cqp',
  994. Icq: 'icq'
  995. } as const;
  996. export type CQMode = typeof CQMode[keyof typeof CQMode];
  997. /**
  998. *
  999. * @export
  1000. * @interface ChangePasswordDto
  1001. */
  1002. export interface ChangePasswordDto {
  1003. /**
  1004. *
  1005. * @type {string}
  1006. * @memberof ChangePasswordDto
  1007. */
  1008. 'newPassword': string;
  1009. /**
  1010. *
  1011. * @type {string}
  1012. * @memberof ChangePasswordDto
  1013. */
  1014. 'password': string;
  1015. }
  1016. /**
  1017. *
  1018. * @export
  1019. * @interface CheckExistingAssetsDto
  1020. */
  1021. export interface CheckExistingAssetsDto {
  1022. /**
  1023. *
  1024. * @type {Array<string>}
  1025. * @memberof CheckExistingAssetsDto
  1026. */
  1027. 'deviceAssetIds': Array<string>;
  1028. /**
  1029. *
  1030. * @type {string}
  1031. * @memberof CheckExistingAssetsDto
  1032. */
  1033. 'deviceId': string;
  1034. }
  1035. /**
  1036. *
  1037. * @export
  1038. * @interface CheckExistingAssetsResponseDto
  1039. */
  1040. export interface CheckExistingAssetsResponseDto {
  1041. /**
  1042. *
  1043. * @type {Array<string>}
  1044. * @memberof CheckExistingAssetsResponseDto
  1045. */
  1046. 'existingIds': Array<string>;
  1047. }
  1048. /**
  1049. *
  1050. * @export
  1051. * @enum {string}
  1052. */
  1053. export const CitiesFile = {
  1054. Cities15000: 'cities15000',
  1055. Cities5000: 'cities5000',
  1056. Cities1000: 'cities1000',
  1057. Cities500: 'cities500'
  1058. } as const;
  1059. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1060. /**
  1061. *
  1062. * @export
  1063. * @interface ClassificationConfig
  1064. */
  1065. export interface ClassificationConfig {
  1066. /**
  1067. *
  1068. * @type {boolean}
  1069. * @memberof ClassificationConfig
  1070. */
  1071. 'enabled': boolean;
  1072. /**
  1073. *
  1074. * @type {number}
  1075. * @memberof ClassificationConfig
  1076. */
  1077. 'minScore': number;
  1078. /**
  1079. *
  1080. * @type {string}
  1081. * @memberof ClassificationConfig
  1082. */
  1083. 'modelName': string;
  1084. /**
  1085. *
  1086. * @type {ModelType}
  1087. * @memberof ClassificationConfig
  1088. */
  1089. 'modelType'?: ModelType;
  1090. }
  1091. /**
  1092. *
  1093. * @export
  1094. * @enum {string}
  1095. */
  1096. export const Colorspace = {
  1097. Srgb: 'srgb',
  1098. P3: 'p3'
  1099. } as const;
  1100. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1101. /**
  1102. *
  1103. * @export
  1104. * @interface CreateAlbumDto
  1105. */
  1106. export interface CreateAlbumDto {
  1107. /**
  1108. *
  1109. * @type {string}
  1110. * @memberof CreateAlbumDto
  1111. */
  1112. 'albumName': string;
  1113. /**
  1114. *
  1115. * @type {Array<string>}
  1116. * @memberof CreateAlbumDto
  1117. */
  1118. 'assetIds'?: Array<string>;
  1119. /**
  1120. *
  1121. * @type {string}
  1122. * @memberof CreateAlbumDto
  1123. */
  1124. 'description'?: string;
  1125. /**
  1126. *
  1127. * @type {Array<string>}
  1128. * @memberof CreateAlbumDto
  1129. */
  1130. 'sharedWithUserIds'?: Array<string>;
  1131. }
  1132. /**
  1133. *
  1134. * @export
  1135. * @interface CreateLibraryDto
  1136. */
  1137. export interface CreateLibraryDto {
  1138. /**
  1139. *
  1140. * @type {Array<string>}
  1141. * @memberof CreateLibraryDto
  1142. */
  1143. 'exclusionPatterns'?: Array<string>;
  1144. /**
  1145. *
  1146. * @type {Array<string>}
  1147. * @memberof CreateLibraryDto
  1148. */
  1149. 'importPaths'?: Array<string>;
  1150. /**
  1151. *
  1152. * @type {boolean}
  1153. * @memberof CreateLibraryDto
  1154. */
  1155. 'isVisible'?: boolean;
  1156. /**
  1157. *
  1158. * @type {string}
  1159. * @memberof CreateLibraryDto
  1160. */
  1161. 'name'?: string;
  1162. /**
  1163. *
  1164. * @type {LibraryType}
  1165. * @memberof CreateLibraryDto
  1166. */
  1167. 'type': LibraryType;
  1168. }
  1169. /**
  1170. *
  1171. * @export
  1172. * @interface CreateProfileImageResponseDto
  1173. */
  1174. export interface CreateProfileImageResponseDto {
  1175. /**
  1176. *
  1177. * @type {string}
  1178. * @memberof CreateProfileImageResponseDto
  1179. */
  1180. 'profileImagePath': string;
  1181. /**
  1182. *
  1183. * @type {string}
  1184. * @memberof CreateProfileImageResponseDto
  1185. */
  1186. 'userId': string;
  1187. }
  1188. /**
  1189. *
  1190. * @export
  1191. * @interface CreateTagDto
  1192. */
  1193. export interface CreateTagDto {
  1194. /**
  1195. *
  1196. * @type {string}
  1197. * @memberof CreateTagDto
  1198. */
  1199. 'name': string;
  1200. /**
  1201. *
  1202. * @type {TagTypeEnum}
  1203. * @memberof CreateTagDto
  1204. */
  1205. 'type': TagTypeEnum;
  1206. }
  1207. /**
  1208. *
  1209. * @export
  1210. * @interface CreateUserDto
  1211. */
  1212. export interface CreateUserDto {
  1213. /**
  1214. *
  1215. * @type {string}
  1216. * @memberof CreateUserDto
  1217. */
  1218. 'email': string;
  1219. /**
  1220. *
  1221. * @type {string}
  1222. * @memberof CreateUserDto
  1223. */
  1224. 'externalPath'?: string | null;
  1225. /**
  1226. *
  1227. * @type {string}
  1228. * @memberof CreateUserDto
  1229. */
  1230. 'firstName': string;
  1231. /**
  1232. *
  1233. * @type {string}
  1234. * @memberof CreateUserDto
  1235. */
  1236. 'lastName': string;
  1237. /**
  1238. *
  1239. * @type {boolean}
  1240. * @memberof CreateUserDto
  1241. */
  1242. 'memoriesEnabled'?: boolean;
  1243. /**
  1244. *
  1245. * @type {string}
  1246. * @memberof CreateUserDto
  1247. */
  1248. 'password': string;
  1249. /**
  1250. *
  1251. * @type {string}
  1252. * @memberof CreateUserDto
  1253. */
  1254. 'storageLabel'?: string | null;
  1255. }
  1256. /**
  1257. *
  1258. * @export
  1259. * @interface CuratedLocationsResponseDto
  1260. */
  1261. export interface CuratedLocationsResponseDto {
  1262. /**
  1263. *
  1264. * @type {string}
  1265. * @memberof CuratedLocationsResponseDto
  1266. */
  1267. 'city': string;
  1268. /**
  1269. *
  1270. * @type {string}
  1271. * @memberof CuratedLocationsResponseDto
  1272. */
  1273. 'deviceAssetId': string;
  1274. /**
  1275. *
  1276. * @type {string}
  1277. * @memberof CuratedLocationsResponseDto
  1278. */
  1279. 'deviceId': string;
  1280. /**
  1281. *
  1282. * @type {string}
  1283. * @memberof CuratedLocationsResponseDto
  1284. */
  1285. 'id': string;
  1286. /**
  1287. *
  1288. * @type {string}
  1289. * @memberof CuratedLocationsResponseDto
  1290. */
  1291. 'resizePath': string;
  1292. }
  1293. /**
  1294. *
  1295. * @export
  1296. * @interface CuratedObjectsResponseDto
  1297. */
  1298. export interface CuratedObjectsResponseDto {
  1299. /**
  1300. *
  1301. * @type {string}
  1302. * @memberof CuratedObjectsResponseDto
  1303. */
  1304. 'deviceAssetId': string;
  1305. /**
  1306. *
  1307. * @type {string}
  1308. * @memberof CuratedObjectsResponseDto
  1309. */
  1310. 'deviceId': string;
  1311. /**
  1312. *
  1313. * @type {string}
  1314. * @memberof CuratedObjectsResponseDto
  1315. */
  1316. 'id': string;
  1317. /**
  1318. *
  1319. * @type {string}
  1320. * @memberof CuratedObjectsResponseDto
  1321. */
  1322. 'object': string;
  1323. /**
  1324. *
  1325. * @type {string}
  1326. * @memberof CuratedObjectsResponseDto
  1327. */
  1328. 'resizePath': string;
  1329. }
  1330. /**
  1331. *
  1332. * @export
  1333. * @interface DownloadArchiveInfo
  1334. */
  1335. export interface DownloadArchiveInfo {
  1336. /**
  1337. *
  1338. * @type {Array<string>}
  1339. * @memberof DownloadArchiveInfo
  1340. */
  1341. 'assetIds': Array<string>;
  1342. /**
  1343. *
  1344. * @type {number}
  1345. * @memberof DownloadArchiveInfo
  1346. */
  1347. 'size': number;
  1348. }
  1349. /**
  1350. *
  1351. * @export
  1352. * @interface DownloadInfoDto
  1353. */
  1354. export interface DownloadInfoDto {
  1355. /**
  1356. *
  1357. * @type {string}
  1358. * @memberof DownloadInfoDto
  1359. */
  1360. 'albumId'?: string;
  1361. /**
  1362. *
  1363. * @type {number}
  1364. * @memberof DownloadInfoDto
  1365. */
  1366. 'archiveSize'?: number;
  1367. /**
  1368. *
  1369. * @type {Array<string>}
  1370. * @memberof DownloadInfoDto
  1371. */
  1372. 'assetIds'?: Array<string>;
  1373. /**
  1374. *
  1375. * @type {string}
  1376. * @memberof DownloadInfoDto
  1377. */
  1378. 'userId'?: string;
  1379. }
  1380. /**
  1381. *
  1382. * @export
  1383. * @interface DownloadResponseDto
  1384. */
  1385. export interface DownloadResponseDto {
  1386. /**
  1387. *
  1388. * @type {Array<DownloadArchiveInfo>}
  1389. * @memberof DownloadResponseDto
  1390. */
  1391. 'archives': Array<DownloadArchiveInfo>;
  1392. /**
  1393. *
  1394. * @type {number}
  1395. * @memberof DownloadResponseDto
  1396. */
  1397. 'totalSize': number;
  1398. }
  1399. /**
  1400. *
  1401. * @export
  1402. * @enum {string}
  1403. */
  1404. export const EntityType = {
  1405. Asset: 'ASSET',
  1406. Album: 'ALBUM'
  1407. } as const;
  1408. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1409. /**
  1410. *
  1411. * @export
  1412. * @interface ExifResponseDto
  1413. */
  1414. export interface ExifResponseDto {
  1415. /**
  1416. *
  1417. * @type {string}
  1418. * @memberof ExifResponseDto
  1419. */
  1420. 'city'?: string | null;
  1421. /**
  1422. *
  1423. * @type {string}
  1424. * @memberof ExifResponseDto
  1425. */
  1426. 'country'?: string | null;
  1427. /**
  1428. *
  1429. * @type {string}
  1430. * @memberof ExifResponseDto
  1431. */
  1432. 'dateTimeOriginal'?: string | null;
  1433. /**
  1434. *
  1435. * @type {string}
  1436. * @memberof ExifResponseDto
  1437. */
  1438. 'description'?: string | null;
  1439. /**
  1440. *
  1441. * @type {number}
  1442. * @memberof ExifResponseDto
  1443. */
  1444. 'exifImageHeight'?: number | null;
  1445. /**
  1446. *
  1447. * @type {number}
  1448. * @memberof ExifResponseDto
  1449. */
  1450. 'exifImageWidth'?: number | null;
  1451. /**
  1452. *
  1453. * @type {string}
  1454. * @memberof ExifResponseDto
  1455. */
  1456. 'exposureTime'?: string | null;
  1457. /**
  1458. *
  1459. * @type {number}
  1460. * @memberof ExifResponseDto
  1461. */
  1462. 'fNumber'?: number | null;
  1463. /**
  1464. *
  1465. * @type {number}
  1466. * @memberof ExifResponseDto
  1467. */
  1468. 'fileSizeInByte'?: number | null;
  1469. /**
  1470. *
  1471. * @type {number}
  1472. * @memberof ExifResponseDto
  1473. */
  1474. 'focalLength'?: number | null;
  1475. /**
  1476. *
  1477. * @type {number}
  1478. * @memberof ExifResponseDto
  1479. */
  1480. 'iso'?: number | null;
  1481. /**
  1482. *
  1483. * @type {number}
  1484. * @memberof ExifResponseDto
  1485. */
  1486. 'latitude'?: number | null;
  1487. /**
  1488. *
  1489. * @type {string}
  1490. * @memberof ExifResponseDto
  1491. */
  1492. 'lensModel'?: string | null;
  1493. /**
  1494. *
  1495. * @type {number}
  1496. * @memberof ExifResponseDto
  1497. */
  1498. 'longitude'?: number | null;
  1499. /**
  1500. *
  1501. * @type {string}
  1502. * @memberof ExifResponseDto
  1503. */
  1504. 'make'?: string | null;
  1505. /**
  1506. *
  1507. * @type {string}
  1508. * @memberof ExifResponseDto
  1509. */
  1510. 'model'?: string | null;
  1511. /**
  1512. *
  1513. * @type {string}
  1514. * @memberof ExifResponseDto
  1515. */
  1516. 'modifyDate'?: string | null;
  1517. /**
  1518. *
  1519. * @type {string}
  1520. * @memberof ExifResponseDto
  1521. */
  1522. 'orientation'?: string | null;
  1523. /**
  1524. *
  1525. * @type {string}
  1526. * @memberof ExifResponseDto
  1527. */
  1528. 'projectionType'?: string | null;
  1529. /**
  1530. *
  1531. * @type {string}
  1532. * @memberof ExifResponseDto
  1533. */
  1534. 'state'?: string | null;
  1535. /**
  1536. *
  1537. * @type {string}
  1538. * @memberof ExifResponseDto
  1539. */
  1540. 'timeZone'?: string | null;
  1541. }
  1542. /**
  1543. *
  1544. * @export
  1545. * @interface FileChecksumDto
  1546. */
  1547. export interface FileChecksumDto {
  1548. /**
  1549. *
  1550. * @type {Array<string>}
  1551. * @memberof FileChecksumDto
  1552. */
  1553. 'filenames': Array<string>;
  1554. }
  1555. /**
  1556. *
  1557. * @export
  1558. * @interface FileChecksumResponseDto
  1559. */
  1560. export interface FileChecksumResponseDto {
  1561. /**
  1562. *
  1563. * @type {string}
  1564. * @memberof FileChecksumResponseDto
  1565. */
  1566. 'checksum': string;
  1567. /**
  1568. *
  1569. * @type {string}
  1570. * @memberof FileChecksumResponseDto
  1571. */
  1572. 'filename': string;
  1573. }
  1574. /**
  1575. *
  1576. * @export
  1577. * @interface FileReportDto
  1578. */
  1579. export interface FileReportDto {
  1580. /**
  1581. *
  1582. * @type {Array<string>}
  1583. * @memberof FileReportDto
  1584. */
  1585. 'extras': Array<string>;
  1586. /**
  1587. *
  1588. * @type {Array<FileReportItemDto>}
  1589. * @memberof FileReportDto
  1590. */
  1591. 'orphans': Array<FileReportItemDto>;
  1592. }
  1593. /**
  1594. *
  1595. * @export
  1596. * @interface FileReportFixDto
  1597. */
  1598. export interface FileReportFixDto {
  1599. /**
  1600. *
  1601. * @type {Array<FileReportItemDto>}
  1602. * @memberof FileReportFixDto
  1603. */
  1604. 'items': Array<FileReportItemDto>;
  1605. }
  1606. /**
  1607. *
  1608. * @export
  1609. * @interface FileReportItemDto
  1610. */
  1611. export interface FileReportItemDto {
  1612. /**
  1613. *
  1614. * @type {string}
  1615. * @memberof FileReportItemDto
  1616. */
  1617. 'checksum'?: string;
  1618. /**
  1619. *
  1620. * @type {string}
  1621. * @memberof FileReportItemDto
  1622. */
  1623. 'entityId': string;
  1624. /**
  1625. *
  1626. * @type {PathEntityType}
  1627. * @memberof FileReportItemDto
  1628. */
  1629. 'entityType': PathEntityType;
  1630. /**
  1631. *
  1632. * @type {PathType}
  1633. * @memberof FileReportItemDto
  1634. */
  1635. 'pathType': PathType;
  1636. /**
  1637. *
  1638. * @type {string}
  1639. * @memberof FileReportItemDto
  1640. */
  1641. 'pathValue': string;
  1642. }
  1643. /**
  1644. *
  1645. * @export
  1646. * @interface ImportAssetDto
  1647. */
  1648. export interface ImportAssetDto {
  1649. /**
  1650. *
  1651. * @type {string}
  1652. * @memberof ImportAssetDto
  1653. */
  1654. 'assetPath': string;
  1655. /**
  1656. *
  1657. * @type {string}
  1658. * @memberof ImportAssetDto
  1659. */
  1660. 'deviceAssetId': string;
  1661. /**
  1662. *
  1663. * @type {string}
  1664. * @memberof ImportAssetDto
  1665. */
  1666. 'deviceId': string;
  1667. /**
  1668. *
  1669. * @type {string}
  1670. * @memberof ImportAssetDto
  1671. */
  1672. 'duration'?: string;
  1673. /**
  1674. *
  1675. * @type {string}
  1676. * @memberof ImportAssetDto
  1677. */
  1678. 'fileCreatedAt': string;
  1679. /**
  1680. *
  1681. * @type {string}
  1682. * @memberof ImportAssetDto
  1683. */
  1684. 'fileModifiedAt': string;
  1685. /**
  1686. *
  1687. * @type {boolean}
  1688. * @memberof ImportAssetDto
  1689. */
  1690. 'isArchived'?: boolean;
  1691. /**
  1692. *
  1693. * @type {boolean}
  1694. * @memberof ImportAssetDto
  1695. */
  1696. 'isExternal'?: boolean;
  1697. /**
  1698. *
  1699. * @type {boolean}
  1700. * @memberof ImportAssetDto
  1701. */
  1702. 'isFavorite': boolean;
  1703. /**
  1704. *
  1705. * @type {boolean}
  1706. * @memberof ImportAssetDto
  1707. */
  1708. 'isOffline'?: boolean;
  1709. /**
  1710. *
  1711. * @type {boolean}
  1712. * @memberof ImportAssetDto
  1713. */
  1714. 'isReadOnly'?: boolean;
  1715. /**
  1716. *
  1717. * @type {boolean}
  1718. * @memberof ImportAssetDto
  1719. */
  1720. 'isVisible'?: boolean;
  1721. /**
  1722. *
  1723. * @type {string}
  1724. * @memberof ImportAssetDto
  1725. */
  1726. 'libraryId'?: string;
  1727. /**
  1728. *
  1729. * @type {string}
  1730. * @memberof ImportAssetDto
  1731. */
  1732. 'sidecarPath'?: string;
  1733. }
  1734. /**
  1735. *
  1736. * @export
  1737. * @enum {string}
  1738. */
  1739. export const JobCommand = {
  1740. Start: 'start',
  1741. Pause: 'pause',
  1742. Resume: 'resume',
  1743. Empty: 'empty'
  1744. } as const;
  1745. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1746. /**
  1747. *
  1748. * @export
  1749. * @interface JobCommandDto
  1750. */
  1751. export interface JobCommandDto {
  1752. /**
  1753. *
  1754. * @type {JobCommand}
  1755. * @memberof JobCommandDto
  1756. */
  1757. 'command': JobCommand;
  1758. /**
  1759. *
  1760. * @type {boolean}
  1761. * @memberof JobCommandDto
  1762. */
  1763. 'force': boolean;
  1764. }
  1765. /**
  1766. *
  1767. * @export
  1768. * @interface JobCountsDto
  1769. */
  1770. export interface JobCountsDto {
  1771. /**
  1772. *
  1773. * @type {number}
  1774. * @memberof JobCountsDto
  1775. */
  1776. 'active': number;
  1777. /**
  1778. *
  1779. * @type {number}
  1780. * @memberof JobCountsDto
  1781. */
  1782. 'completed': number;
  1783. /**
  1784. *
  1785. * @type {number}
  1786. * @memberof JobCountsDto
  1787. */
  1788. 'delayed': number;
  1789. /**
  1790. *
  1791. * @type {number}
  1792. * @memberof JobCountsDto
  1793. */
  1794. 'failed': number;
  1795. /**
  1796. *
  1797. * @type {number}
  1798. * @memberof JobCountsDto
  1799. */
  1800. 'paused': number;
  1801. /**
  1802. *
  1803. * @type {number}
  1804. * @memberof JobCountsDto
  1805. */
  1806. 'waiting': number;
  1807. }
  1808. /**
  1809. *
  1810. * @export
  1811. * @enum {string}
  1812. */
  1813. export const JobName = {
  1814. ThumbnailGeneration: 'thumbnailGeneration',
  1815. MetadataExtraction: 'metadataExtraction',
  1816. VideoConversion: 'videoConversion',
  1817. ObjectTagging: 'objectTagging',
  1818. RecognizeFaces: 'recognizeFaces',
  1819. ClipEncoding: 'clipEncoding',
  1820. BackgroundTask: 'backgroundTask',
  1821. StorageTemplateMigration: 'storageTemplateMigration',
  1822. Migration: 'migration',
  1823. Search: 'search',
  1824. Sidecar: 'sidecar',
  1825. Library: 'library'
  1826. } as const;
  1827. export type JobName = typeof JobName[keyof typeof JobName];
  1828. /**
  1829. *
  1830. * @export
  1831. * @interface JobSettingsDto
  1832. */
  1833. export interface JobSettingsDto {
  1834. /**
  1835. *
  1836. * @type {number}
  1837. * @memberof JobSettingsDto
  1838. */
  1839. 'concurrency': number;
  1840. }
  1841. /**
  1842. *
  1843. * @export
  1844. * @interface JobStatusDto
  1845. */
  1846. export interface JobStatusDto {
  1847. /**
  1848. *
  1849. * @type {JobCountsDto}
  1850. * @memberof JobStatusDto
  1851. */
  1852. 'jobCounts': JobCountsDto;
  1853. /**
  1854. *
  1855. * @type {QueueStatusDto}
  1856. * @memberof JobStatusDto
  1857. */
  1858. 'queueStatus': QueueStatusDto;
  1859. }
  1860. /**
  1861. *
  1862. * @export
  1863. * @interface LibraryResponseDto
  1864. */
  1865. export interface LibraryResponseDto {
  1866. /**
  1867. *
  1868. * @type {number}
  1869. * @memberof LibraryResponseDto
  1870. */
  1871. 'assetCount': number;
  1872. /**
  1873. *
  1874. * @type {string}
  1875. * @memberof LibraryResponseDto
  1876. */
  1877. 'createdAt': string;
  1878. /**
  1879. *
  1880. * @type {Array<string>}
  1881. * @memberof LibraryResponseDto
  1882. */
  1883. 'exclusionPatterns': Array<string>;
  1884. /**
  1885. *
  1886. * @type {string}
  1887. * @memberof LibraryResponseDto
  1888. */
  1889. 'id': string;
  1890. /**
  1891. *
  1892. * @type {Array<string>}
  1893. * @memberof LibraryResponseDto
  1894. */
  1895. 'importPaths': Array<string>;
  1896. /**
  1897. *
  1898. * @type {string}
  1899. * @memberof LibraryResponseDto
  1900. */
  1901. 'name': string;
  1902. /**
  1903. *
  1904. * @type {string}
  1905. * @memberof LibraryResponseDto
  1906. */
  1907. 'ownerId': string;
  1908. /**
  1909. *
  1910. * @type {string}
  1911. * @memberof LibraryResponseDto
  1912. */
  1913. 'refreshedAt': string | null;
  1914. /**
  1915. *
  1916. * @type {LibraryType}
  1917. * @memberof LibraryResponseDto
  1918. */
  1919. 'type': LibraryType;
  1920. /**
  1921. *
  1922. * @type {string}
  1923. * @memberof LibraryResponseDto
  1924. */
  1925. 'updatedAt': string;
  1926. }
  1927. /**
  1928. *
  1929. * @export
  1930. * @interface LibraryStatsResponseDto
  1931. */
  1932. export interface LibraryStatsResponseDto {
  1933. /**
  1934. *
  1935. * @type {number}
  1936. * @memberof LibraryStatsResponseDto
  1937. */
  1938. 'photos': number;
  1939. /**
  1940. *
  1941. * @type {number}
  1942. * @memberof LibraryStatsResponseDto
  1943. */
  1944. 'total': number;
  1945. /**
  1946. *
  1947. * @type {number}
  1948. * @memberof LibraryStatsResponseDto
  1949. */
  1950. 'usage': number;
  1951. /**
  1952. *
  1953. * @type {number}
  1954. * @memberof LibraryStatsResponseDto
  1955. */
  1956. 'videos': number;
  1957. }
  1958. /**
  1959. *
  1960. * @export
  1961. * @enum {string}
  1962. */
  1963. export const LibraryType = {
  1964. Upload: 'UPLOAD',
  1965. External: 'EXTERNAL'
  1966. } as const;
  1967. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  1968. /**
  1969. *
  1970. * @export
  1971. * @interface LoginCredentialDto
  1972. */
  1973. export interface LoginCredentialDto {
  1974. /**
  1975. *
  1976. * @type {string}
  1977. * @memberof LoginCredentialDto
  1978. */
  1979. 'email': string;
  1980. /**
  1981. *
  1982. * @type {string}
  1983. * @memberof LoginCredentialDto
  1984. */
  1985. 'password': string;
  1986. }
  1987. /**
  1988. *
  1989. * @export
  1990. * @interface LoginResponseDto
  1991. */
  1992. export interface LoginResponseDto {
  1993. /**
  1994. *
  1995. * @type {string}
  1996. * @memberof LoginResponseDto
  1997. */
  1998. 'accessToken': string;
  1999. /**
  2000. *
  2001. * @type {string}
  2002. * @memberof LoginResponseDto
  2003. */
  2004. 'firstName': string;
  2005. /**
  2006. *
  2007. * @type {boolean}
  2008. * @memberof LoginResponseDto
  2009. */
  2010. 'isAdmin': boolean;
  2011. /**
  2012. *
  2013. * @type {string}
  2014. * @memberof LoginResponseDto
  2015. */
  2016. 'lastName': string;
  2017. /**
  2018. *
  2019. * @type {string}
  2020. * @memberof LoginResponseDto
  2021. */
  2022. 'profileImagePath': string;
  2023. /**
  2024. *
  2025. * @type {boolean}
  2026. * @memberof LoginResponseDto
  2027. */
  2028. 'shouldChangePassword': boolean;
  2029. /**
  2030. *
  2031. * @type {string}
  2032. * @memberof LoginResponseDto
  2033. */
  2034. 'userEmail': string;
  2035. /**
  2036. *
  2037. * @type {string}
  2038. * @memberof LoginResponseDto
  2039. */
  2040. 'userId': string;
  2041. }
  2042. /**
  2043. *
  2044. * @export
  2045. * @interface LogoutResponseDto
  2046. */
  2047. export interface LogoutResponseDto {
  2048. /**
  2049. *
  2050. * @type {string}
  2051. * @memberof LogoutResponseDto
  2052. */
  2053. 'redirectUri': string;
  2054. /**
  2055. *
  2056. * @type {boolean}
  2057. * @memberof LogoutResponseDto
  2058. */
  2059. 'successful': boolean;
  2060. }
  2061. /**
  2062. *
  2063. * @export
  2064. * @interface MapMarkerResponseDto
  2065. */
  2066. export interface MapMarkerResponseDto {
  2067. /**
  2068. *
  2069. * @type {string}
  2070. * @memberof MapMarkerResponseDto
  2071. */
  2072. 'id': string;
  2073. /**
  2074. *
  2075. * @type {number}
  2076. * @memberof MapMarkerResponseDto
  2077. */
  2078. 'lat': number;
  2079. /**
  2080. *
  2081. * @type {number}
  2082. * @memberof MapMarkerResponseDto
  2083. */
  2084. 'lon': number;
  2085. }
  2086. /**
  2087. *
  2088. * @export
  2089. * @interface MemoryLaneResponseDto
  2090. */
  2091. export interface MemoryLaneResponseDto {
  2092. /**
  2093. *
  2094. * @type {Array<AssetResponseDto>}
  2095. * @memberof MemoryLaneResponseDto
  2096. */
  2097. 'assets': Array<AssetResponseDto>;
  2098. /**
  2099. *
  2100. * @type {string}
  2101. * @memberof MemoryLaneResponseDto
  2102. */
  2103. 'title': string;
  2104. }
  2105. /**
  2106. *
  2107. * @export
  2108. * @interface MergePersonDto
  2109. */
  2110. export interface MergePersonDto {
  2111. /**
  2112. *
  2113. * @type {Array<string>}
  2114. * @memberof MergePersonDto
  2115. */
  2116. 'ids': Array<string>;
  2117. }
  2118. /**
  2119. *
  2120. * @export
  2121. * @enum {string}
  2122. */
  2123. export const ModelType = {
  2124. ImageClassification: 'image-classification',
  2125. FacialRecognition: 'facial-recognition',
  2126. Clip: 'clip'
  2127. } as const;
  2128. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2129. /**
  2130. *
  2131. * @export
  2132. * @interface OAuthAuthorizeResponseDto
  2133. */
  2134. export interface OAuthAuthorizeResponseDto {
  2135. /**
  2136. *
  2137. * @type {string}
  2138. * @memberof OAuthAuthorizeResponseDto
  2139. */
  2140. 'url': string;
  2141. }
  2142. /**
  2143. *
  2144. * @export
  2145. * @interface OAuthCallbackDto
  2146. */
  2147. export interface OAuthCallbackDto {
  2148. /**
  2149. *
  2150. * @type {string}
  2151. * @memberof OAuthCallbackDto
  2152. */
  2153. 'url': string;
  2154. }
  2155. /**
  2156. *
  2157. * @export
  2158. * @interface OAuthConfigDto
  2159. */
  2160. export interface OAuthConfigDto {
  2161. /**
  2162. *
  2163. * @type {string}
  2164. * @memberof OAuthConfigDto
  2165. */
  2166. 'redirectUri': string;
  2167. }
  2168. /**
  2169. *
  2170. * @export
  2171. * @interface OAuthConfigResponseDto
  2172. */
  2173. export interface OAuthConfigResponseDto {
  2174. /**
  2175. *
  2176. * @type {boolean}
  2177. * @memberof OAuthConfigResponseDto
  2178. */
  2179. 'autoLaunch'?: boolean;
  2180. /**
  2181. *
  2182. * @type {string}
  2183. * @memberof OAuthConfigResponseDto
  2184. */
  2185. 'buttonText'?: string;
  2186. /**
  2187. *
  2188. * @type {boolean}
  2189. * @memberof OAuthConfigResponseDto
  2190. */
  2191. 'enabled': boolean;
  2192. /**
  2193. *
  2194. * @type {boolean}
  2195. * @memberof OAuthConfigResponseDto
  2196. */
  2197. 'passwordLoginEnabled': boolean;
  2198. /**
  2199. *
  2200. * @type {string}
  2201. * @memberof OAuthConfigResponseDto
  2202. */
  2203. 'url'?: string;
  2204. }
  2205. /**
  2206. *
  2207. * @export
  2208. * @enum {string}
  2209. */
  2210. export const PathEntityType = {
  2211. Asset: 'asset',
  2212. Person: 'person',
  2213. User: 'user'
  2214. } as const;
  2215. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2216. /**
  2217. *
  2218. * @export
  2219. * @enum {string}
  2220. */
  2221. export const PathType = {
  2222. Original: 'original',
  2223. JpegThumbnail: 'jpeg_thumbnail',
  2224. WebpThumbnail: 'webp_thumbnail',
  2225. EncodedVideo: 'encoded_video',
  2226. Sidecar: 'sidecar',
  2227. Face: 'face',
  2228. Profile: 'profile'
  2229. } as const;
  2230. export type PathType = typeof PathType[keyof typeof PathType];
  2231. /**
  2232. *
  2233. * @export
  2234. * @interface PeopleResponseDto
  2235. */
  2236. export interface PeopleResponseDto {
  2237. /**
  2238. *
  2239. * @type {Array<PersonResponseDto>}
  2240. * @memberof PeopleResponseDto
  2241. */
  2242. 'people': Array<PersonResponseDto>;
  2243. /**
  2244. *
  2245. * @type {number}
  2246. * @memberof PeopleResponseDto
  2247. */
  2248. 'total': number;
  2249. /**
  2250. *
  2251. * @type {number}
  2252. * @memberof PeopleResponseDto
  2253. */
  2254. 'visible': number;
  2255. }
  2256. /**
  2257. *
  2258. * @export
  2259. * @interface PeopleUpdateDto
  2260. */
  2261. export interface PeopleUpdateDto {
  2262. /**
  2263. *
  2264. * @type {Array<PeopleUpdateItem>}
  2265. * @memberof PeopleUpdateDto
  2266. */
  2267. 'people': Array<PeopleUpdateItem>;
  2268. }
  2269. /**
  2270. *
  2271. * @export
  2272. * @interface PeopleUpdateItem
  2273. */
  2274. export interface PeopleUpdateItem {
  2275. /**
  2276. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2277. * @type {string}
  2278. * @memberof PeopleUpdateItem
  2279. */
  2280. 'birthDate'?: string | null;
  2281. /**
  2282. * Asset is used to get the feature face thumbnail.
  2283. * @type {string}
  2284. * @memberof PeopleUpdateItem
  2285. */
  2286. 'featureFaceAssetId'?: string;
  2287. /**
  2288. * Person id.
  2289. * @type {string}
  2290. * @memberof PeopleUpdateItem
  2291. */
  2292. 'id': string;
  2293. /**
  2294. * Person visibility
  2295. * @type {boolean}
  2296. * @memberof PeopleUpdateItem
  2297. */
  2298. 'isHidden'?: boolean;
  2299. /**
  2300. * Person name.
  2301. * @type {string}
  2302. * @memberof PeopleUpdateItem
  2303. */
  2304. 'name'?: string;
  2305. }
  2306. /**
  2307. *
  2308. * @export
  2309. * @interface PersonResponseDto
  2310. */
  2311. export interface PersonResponseDto {
  2312. /**
  2313. *
  2314. * @type {string}
  2315. * @memberof PersonResponseDto
  2316. */
  2317. 'birthDate': string | null;
  2318. /**
  2319. *
  2320. * @type {string}
  2321. * @memberof PersonResponseDto
  2322. */
  2323. 'id': string;
  2324. /**
  2325. *
  2326. * @type {boolean}
  2327. * @memberof PersonResponseDto
  2328. */
  2329. 'isHidden': boolean;
  2330. /**
  2331. *
  2332. * @type {string}
  2333. * @memberof PersonResponseDto
  2334. */
  2335. 'name': string;
  2336. /**
  2337. *
  2338. * @type {string}
  2339. * @memberof PersonResponseDto
  2340. */
  2341. 'thumbnailPath': string;
  2342. }
  2343. /**
  2344. *
  2345. * @export
  2346. * @interface PersonStatisticsResponseDto
  2347. */
  2348. export interface PersonStatisticsResponseDto {
  2349. /**
  2350. *
  2351. * @type {number}
  2352. * @memberof PersonStatisticsResponseDto
  2353. */
  2354. 'assets': number;
  2355. }
  2356. /**
  2357. *
  2358. * @export
  2359. * @interface PersonUpdateDto
  2360. */
  2361. export interface PersonUpdateDto {
  2362. /**
  2363. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2364. * @type {string}
  2365. * @memberof PersonUpdateDto
  2366. */
  2367. 'birthDate'?: string | null;
  2368. /**
  2369. * Asset is used to get the feature face thumbnail.
  2370. * @type {string}
  2371. * @memberof PersonUpdateDto
  2372. */
  2373. 'featureFaceAssetId'?: string;
  2374. /**
  2375. * Person visibility
  2376. * @type {boolean}
  2377. * @memberof PersonUpdateDto
  2378. */
  2379. 'isHidden'?: boolean;
  2380. /**
  2381. * Person name.
  2382. * @type {string}
  2383. * @memberof PersonUpdateDto
  2384. */
  2385. 'name'?: string;
  2386. }
  2387. /**
  2388. *
  2389. * @export
  2390. * @interface QueueStatusDto
  2391. */
  2392. export interface QueueStatusDto {
  2393. /**
  2394. *
  2395. * @type {boolean}
  2396. * @memberof QueueStatusDto
  2397. */
  2398. 'isActive': boolean;
  2399. /**
  2400. *
  2401. * @type {boolean}
  2402. * @memberof QueueStatusDto
  2403. */
  2404. 'isPaused': boolean;
  2405. }
  2406. /**
  2407. *
  2408. * @export
  2409. * @interface RecognitionConfig
  2410. */
  2411. export interface RecognitionConfig {
  2412. /**
  2413. *
  2414. * @type {boolean}
  2415. * @memberof RecognitionConfig
  2416. */
  2417. 'enabled': boolean;
  2418. /**
  2419. *
  2420. * @type {number}
  2421. * @memberof RecognitionConfig
  2422. */
  2423. 'maxDistance': number;
  2424. /**
  2425. *
  2426. * @type {number}
  2427. * @memberof RecognitionConfig
  2428. */
  2429. 'minFaces': number;
  2430. /**
  2431. *
  2432. * @type {number}
  2433. * @memberof RecognitionConfig
  2434. */
  2435. 'minScore': number;
  2436. /**
  2437. *
  2438. * @type {string}
  2439. * @memberof RecognitionConfig
  2440. */
  2441. 'modelName': string;
  2442. /**
  2443. *
  2444. * @type {ModelType}
  2445. * @memberof RecognitionConfig
  2446. */
  2447. 'modelType'?: ModelType;
  2448. }
  2449. /**
  2450. *
  2451. * @export
  2452. * @interface ScanLibraryDto
  2453. */
  2454. export interface ScanLibraryDto {
  2455. /**
  2456. *
  2457. * @type {boolean}
  2458. * @memberof ScanLibraryDto
  2459. */
  2460. 'refreshAllFiles'?: boolean;
  2461. /**
  2462. *
  2463. * @type {boolean}
  2464. * @memberof ScanLibraryDto
  2465. */
  2466. 'refreshModifiedFiles'?: boolean;
  2467. }
  2468. /**
  2469. *
  2470. * @export
  2471. * @interface SearchAlbumResponseDto
  2472. */
  2473. export interface SearchAlbumResponseDto {
  2474. /**
  2475. *
  2476. * @type {number}
  2477. * @memberof SearchAlbumResponseDto
  2478. */
  2479. 'count': number;
  2480. /**
  2481. *
  2482. * @type {Array<SearchFacetResponseDto>}
  2483. * @memberof SearchAlbumResponseDto
  2484. */
  2485. 'facets': Array<SearchFacetResponseDto>;
  2486. /**
  2487. *
  2488. * @type {Array<AlbumResponseDto>}
  2489. * @memberof SearchAlbumResponseDto
  2490. */
  2491. 'items': Array<AlbumResponseDto>;
  2492. /**
  2493. *
  2494. * @type {number}
  2495. * @memberof SearchAlbumResponseDto
  2496. */
  2497. 'total': number;
  2498. }
  2499. /**
  2500. *
  2501. * @export
  2502. * @interface SearchAssetDto
  2503. */
  2504. export interface SearchAssetDto {
  2505. /**
  2506. *
  2507. * @type {string}
  2508. * @memberof SearchAssetDto
  2509. */
  2510. 'searchTerm': string;
  2511. }
  2512. /**
  2513. *
  2514. * @export
  2515. * @interface SearchAssetResponseDto
  2516. */
  2517. export interface SearchAssetResponseDto {
  2518. /**
  2519. *
  2520. * @type {number}
  2521. * @memberof SearchAssetResponseDto
  2522. */
  2523. 'count': number;
  2524. /**
  2525. *
  2526. * @type {Array<SearchFacetResponseDto>}
  2527. * @memberof SearchAssetResponseDto
  2528. */
  2529. 'facets': Array<SearchFacetResponseDto>;
  2530. /**
  2531. *
  2532. * @type {Array<AssetResponseDto>}
  2533. * @memberof SearchAssetResponseDto
  2534. */
  2535. 'items': Array<AssetResponseDto>;
  2536. /**
  2537. *
  2538. * @type {number}
  2539. * @memberof SearchAssetResponseDto
  2540. */
  2541. 'total': number;
  2542. }
  2543. /**
  2544. *
  2545. * @export
  2546. * @interface SearchExploreItem
  2547. */
  2548. export interface SearchExploreItem {
  2549. /**
  2550. *
  2551. * @type {AssetResponseDto}
  2552. * @memberof SearchExploreItem
  2553. */
  2554. 'data': AssetResponseDto;
  2555. /**
  2556. *
  2557. * @type {string}
  2558. * @memberof SearchExploreItem
  2559. */
  2560. 'value': string;
  2561. }
  2562. /**
  2563. *
  2564. * @export
  2565. * @interface SearchExploreResponseDto
  2566. */
  2567. export interface SearchExploreResponseDto {
  2568. /**
  2569. *
  2570. * @type {string}
  2571. * @memberof SearchExploreResponseDto
  2572. */
  2573. 'fieldName': string;
  2574. /**
  2575. *
  2576. * @type {Array<SearchExploreItem>}
  2577. * @memberof SearchExploreResponseDto
  2578. */
  2579. 'items': Array<SearchExploreItem>;
  2580. }
  2581. /**
  2582. *
  2583. * @export
  2584. * @interface SearchFacetCountResponseDto
  2585. */
  2586. export interface SearchFacetCountResponseDto {
  2587. /**
  2588. *
  2589. * @type {number}
  2590. * @memberof SearchFacetCountResponseDto
  2591. */
  2592. 'count': number;
  2593. /**
  2594. *
  2595. * @type {string}
  2596. * @memberof SearchFacetCountResponseDto
  2597. */
  2598. 'value': string;
  2599. }
  2600. /**
  2601. *
  2602. * @export
  2603. * @interface SearchFacetResponseDto
  2604. */
  2605. export interface SearchFacetResponseDto {
  2606. /**
  2607. *
  2608. * @type {Array<SearchFacetCountResponseDto>}
  2609. * @memberof SearchFacetResponseDto
  2610. */
  2611. 'counts': Array<SearchFacetCountResponseDto>;
  2612. /**
  2613. *
  2614. * @type {string}
  2615. * @memberof SearchFacetResponseDto
  2616. */
  2617. 'fieldName': string;
  2618. }
  2619. /**
  2620. *
  2621. * @export
  2622. * @interface SearchResponseDto
  2623. */
  2624. export interface SearchResponseDto {
  2625. /**
  2626. *
  2627. * @type {SearchAlbumResponseDto}
  2628. * @memberof SearchResponseDto
  2629. */
  2630. 'albums': SearchAlbumResponseDto;
  2631. /**
  2632. *
  2633. * @type {SearchAssetResponseDto}
  2634. * @memberof SearchResponseDto
  2635. */
  2636. 'assets': SearchAssetResponseDto;
  2637. }
  2638. /**
  2639. *
  2640. * @export
  2641. * @interface ServerConfigDto
  2642. */
  2643. export interface ServerConfigDto {
  2644. /**
  2645. *
  2646. * @type {boolean}
  2647. * @memberof ServerConfigDto
  2648. */
  2649. 'isInitialized': boolean;
  2650. /**
  2651. *
  2652. * @type {string}
  2653. * @memberof ServerConfigDto
  2654. */
  2655. 'loginPageMessage': string;
  2656. /**
  2657. *
  2658. * @type {string}
  2659. * @memberof ServerConfigDto
  2660. */
  2661. 'mapTileUrl': string;
  2662. /**
  2663. *
  2664. * @type {string}
  2665. * @memberof ServerConfigDto
  2666. */
  2667. 'oauthButtonText': string;
  2668. /**
  2669. *
  2670. * @type {number}
  2671. * @memberof ServerConfigDto
  2672. */
  2673. 'trashDays': number;
  2674. }
  2675. /**
  2676. *
  2677. * @export
  2678. * @interface ServerFeaturesDto
  2679. */
  2680. export interface ServerFeaturesDto {
  2681. /**
  2682. *
  2683. * @type {boolean}
  2684. * @memberof ServerFeaturesDto
  2685. */
  2686. 'clipEncode': boolean;
  2687. /**
  2688. *
  2689. * @type {boolean}
  2690. * @memberof ServerFeaturesDto
  2691. */
  2692. 'configFile': boolean;
  2693. /**
  2694. *
  2695. * @type {boolean}
  2696. * @memberof ServerFeaturesDto
  2697. */
  2698. 'facialRecognition': boolean;
  2699. /**
  2700. *
  2701. * @type {boolean}
  2702. * @memberof ServerFeaturesDto
  2703. */
  2704. 'map': boolean;
  2705. /**
  2706. *
  2707. * @type {boolean}
  2708. * @memberof ServerFeaturesDto
  2709. */
  2710. 'oauth': boolean;
  2711. /**
  2712. *
  2713. * @type {boolean}
  2714. * @memberof ServerFeaturesDto
  2715. */
  2716. 'oauthAutoLaunch': boolean;
  2717. /**
  2718. *
  2719. * @type {boolean}
  2720. * @memberof ServerFeaturesDto
  2721. */
  2722. 'passwordLogin': boolean;
  2723. /**
  2724. *
  2725. * @type {boolean}
  2726. * @memberof ServerFeaturesDto
  2727. */
  2728. 'reverseGeocoding': boolean;
  2729. /**
  2730. *
  2731. * @type {boolean}
  2732. * @memberof ServerFeaturesDto
  2733. */
  2734. 'search': boolean;
  2735. /**
  2736. *
  2737. * @type {boolean}
  2738. * @memberof ServerFeaturesDto
  2739. */
  2740. 'sidecar': boolean;
  2741. /**
  2742. *
  2743. * @type {boolean}
  2744. * @memberof ServerFeaturesDto
  2745. */
  2746. 'tagImage': boolean;
  2747. /**
  2748. *
  2749. * @type {boolean}
  2750. * @memberof ServerFeaturesDto
  2751. */
  2752. 'trash': boolean;
  2753. }
  2754. /**
  2755. *
  2756. * @export
  2757. * @interface ServerInfoResponseDto
  2758. */
  2759. export interface ServerInfoResponseDto {
  2760. /**
  2761. *
  2762. * @type {string}
  2763. * @memberof ServerInfoResponseDto
  2764. */
  2765. 'diskAvailable': string;
  2766. /**
  2767. *
  2768. * @type {number}
  2769. * @memberof ServerInfoResponseDto
  2770. */
  2771. 'diskAvailableRaw': number;
  2772. /**
  2773. *
  2774. * @type {string}
  2775. * @memberof ServerInfoResponseDto
  2776. */
  2777. 'diskSize': string;
  2778. /**
  2779. *
  2780. * @type {number}
  2781. * @memberof ServerInfoResponseDto
  2782. */
  2783. 'diskSizeRaw': number;
  2784. /**
  2785. *
  2786. * @type {number}
  2787. * @memberof ServerInfoResponseDto
  2788. */
  2789. 'diskUsagePercentage': number;
  2790. /**
  2791. *
  2792. * @type {string}
  2793. * @memberof ServerInfoResponseDto
  2794. */
  2795. 'diskUse': string;
  2796. /**
  2797. *
  2798. * @type {number}
  2799. * @memberof ServerInfoResponseDto
  2800. */
  2801. 'diskUseRaw': number;
  2802. }
  2803. /**
  2804. *
  2805. * @export
  2806. * @interface ServerMediaTypesResponseDto
  2807. */
  2808. export interface ServerMediaTypesResponseDto {
  2809. /**
  2810. *
  2811. * @type {Array<string>}
  2812. * @memberof ServerMediaTypesResponseDto
  2813. */
  2814. 'image': Array<string>;
  2815. /**
  2816. *
  2817. * @type {Array<string>}
  2818. * @memberof ServerMediaTypesResponseDto
  2819. */
  2820. 'sidecar': Array<string>;
  2821. /**
  2822. *
  2823. * @type {Array<string>}
  2824. * @memberof ServerMediaTypesResponseDto
  2825. */
  2826. 'video': Array<string>;
  2827. }
  2828. /**
  2829. *
  2830. * @export
  2831. * @interface ServerPingResponse
  2832. */
  2833. export interface ServerPingResponse {
  2834. /**
  2835. *
  2836. * @type {string}
  2837. * @memberof ServerPingResponse
  2838. */
  2839. 'res': string;
  2840. }
  2841. /**
  2842. *
  2843. * @export
  2844. * @interface ServerStatsResponseDto
  2845. */
  2846. export interface ServerStatsResponseDto {
  2847. /**
  2848. *
  2849. * @type {number}
  2850. * @memberof ServerStatsResponseDto
  2851. */
  2852. 'photos': number;
  2853. /**
  2854. *
  2855. * @type {number}
  2856. * @memberof ServerStatsResponseDto
  2857. */
  2858. 'usage': number;
  2859. /**
  2860. *
  2861. * @type {Array<UsageByUserDto>}
  2862. * @memberof ServerStatsResponseDto
  2863. */
  2864. 'usageByUser': Array<UsageByUserDto>;
  2865. /**
  2866. *
  2867. * @type {number}
  2868. * @memberof ServerStatsResponseDto
  2869. */
  2870. 'videos': number;
  2871. }
  2872. /**
  2873. *
  2874. * @export
  2875. * @interface ServerVersionResponseDto
  2876. */
  2877. export interface ServerVersionResponseDto {
  2878. /**
  2879. *
  2880. * @type {number}
  2881. * @memberof ServerVersionResponseDto
  2882. */
  2883. 'major': number;
  2884. /**
  2885. *
  2886. * @type {number}
  2887. * @memberof ServerVersionResponseDto
  2888. */
  2889. 'minor': number;
  2890. /**
  2891. *
  2892. * @type {number}
  2893. * @memberof ServerVersionResponseDto
  2894. */
  2895. 'patch': number;
  2896. }
  2897. /**
  2898. *
  2899. * @export
  2900. * @interface SharedLinkCreateDto
  2901. */
  2902. export interface SharedLinkCreateDto {
  2903. /**
  2904. *
  2905. * @type {string}
  2906. * @memberof SharedLinkCreateDto
  2907. */
  2908. 'albumId'?: string;
  2909. /**
  2910. *
  2911. * @type {boolean}
  2912. * @memberof SharedLinkCreateDto
  2913. */
  2914. 'allowDownload'?: boolean;
  2915. /**
  2916. *
  2917. * @type {boolean}
  2918. * @memberof SharedLinkCreateDto
  2919. */
  2920. 'allowUpload'?: boolean;
  2921. /**
  2922. *
  2923. * @type {Array<string>}
  2924. * @memberof SharedLinkCreateDto
  2925. */
  2926. 'assetIds'?: Array<string>;
  2927. /**
  2928. *
  2929. * @type {string}
  2930. * @memberof SharedLinkCreateDto
  2931. */
  2932. 'description'?: string;
  2933. /**
  2934. *
  2935. * @type {string}
  2936. * @memberof SharedLinkCreateDto
  2937. */
  2938. 'expiresAt'?: string | null;
  2939. /**
  2940. *
  2941. * @type {boolean}
  2942. * @memberof SharedLinkCreateDto
  2943. */
  2944. 'showMetadata'?: boolean;
  2945. /**
  2946. *
  2947. * @type {SharedLinkType}
  2948. * @memberof SharedLinkCreateDto
  2949. */
  2950. 'type': SharedLinkType;
  2951. }
  2952. /**
  2953. *
  2954. * @export
  2955. * @interface SharedLinkEditDto
  2956. */
  2957. export interface SharedLinkEditDto {
  2958. /**
  2959. *
  2960. * @type {boolean}
  2961. * @memberof SharedLinkEditDto
  2962. */
  2963. 'allowDownload'?: boolean;
  2964. /**
  2965. *
  2966. * @type {boolean}
  2967. * @memberof SharedLinkEditDto
  2968. */
  2969. 'allowUpload'?: boolean;
  2970. /**
  2971. * 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.
  2972. * @type {boolean}
  2973. * @memberof SharedLinkEditDto
  2974. */
  2975. 'changeExpiryTime'?: boolean;
  2976. /**
  2977. *
  2978. * @type {string}
  2979. * @memberof SharedLinkEditDto
  2980. */
  2981. 'description'?: string;
  2982. /**
  2983. *
  2984. * @type {string}
  2985. * @memberof SharedLinkEditDto
  2986. */
  2987. 'expiresAt'?: string | null;
  2988. /**
  2989. *
  2990. * @type {boolean}
  2991. * @memberof SharedLinkEditDto
  2992. */
  2993. 'showMetadata'?: boolean;
  2994. }
  2995. /**
  2996. *
  2997. * @export
  2998. * @interface SharedLinkResponseDto
  2999. */
  3000. export interface SharedLinkResponseDto {
  3001. /**
  3002. *
  3003. * @type {AlbumResponseDto}
  3004. * @memberof SharedLinkResponseDto
  3005. */
  3006. 'album'?: AlbumResponseDto;
  3007. /**
  3008. *
  3009. * @type {boolean}
  3010. * @memberof SharedLinkResponseDto
  3011. */
  3012. 'allowDownload': boolean;
  3013. /**
  3014. *
  3015. * @type {boolean}
  3016. * @memberof SharedLinkResponseDto
  3017. */
  3018. 'allowUpload': boolean;
  3019. /**
  3020. *
  3021. * @type {Array<AssetResponseDto>}
  3022. * @memberof SharedLinkResponseDto
  3023. */
  3024. 'assets': Array<AssetResponseDto>;
  3025. /**
  3026. *
  3027. * @type {string}
  3028. * @memberof SharedLinkResponseDto
  3029. */
  3030. 'createdAt': string;
  3031. /**
  3032. *
  3033. * @type {string}
  3034. * @memberof SharedLinkResponseDto
  3035. */
  3036. 'description': string | null;
  3037. /**
  3038. *
  3039. * @type {string}
  3040. * @memberof SharedLinkResponseDto
  3041. */
  3042. 'expiresAt': string | null;
  3043. /**
  3044. *
  3045. * @type {string}
  3046. * @memberof SharedLinkResponseDto
  3047. */
  3048. 'id': string;
  3049. /**
  3050. *
  3051. * @type {string}
  3052. * @memberof SharedLinkResponseDto
  3053. */
  3054. 'key': string;
  3055. /**
  3056. *
  3057. * @type {boolean}
  3058. * @memberof SharedLinkResponseDto
  3059. */
  3060. 'showMetadata': boolean;
  3061. /**
  3062. *
  3063. * @type {SharedLinkType}
  3064. * @memberof SharedLinkResponseDto
  3065. */
  3066. 'type': SharedLinkType;
  3067. /**
  3068. *
  3069. * @type {string}
  3070. * @memberof SharedLinkResponseDto
  3071. */
  3072. 'userId': string;
  3073. }
  3074. /**
  3075. *
  3076. * @export
  3077. * @enum {string}
  3078. */
  3079. export const SharedLinkType = {
  3080. Album: 'ALBUM',
  3081. Individual: 'INDIVIDUAL'
  3082. } as const;
  3083. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3084. /**
  3085. *
  3086. * @export
  3087. * @interface SignUpDto
  3088. */
  3089. export interface SignUpDto {
  3090. /**
  3091. *
  3092. * @type {string}
  3093. * @memberof SignUpDto
  3094. */
  3095. 'email': string;
  3096. /**
  3097. *
  3098. * @type {string}
  3099. * @memberof SignUpDto
  3100. */
  3101. 'firstName': string;
  3102. /**
  3103. *
  3104. * @type {string}
  3105. * @memberof SignUpDto
  3106. */
  3107. 'lastName': string;
  3108. /**
  3109. *
  3110. * @type {string}
  3111. * @memberof SignUpDto
  3112. */
  3113. 'password': string;
  3114. }
  3115. /**
  3116. *
  3117. * @export
  3118. * @interface SmartInfoResponseDto
  3119. */
  3120. export interface SmartInfoResponseDto {
  3121. /**
  3122. *
  3123. * @type {Array<string>}
  3124. * @memberof SmartInfoResponseDto
  3125. */
  3126. 'objects'?: Array<string> | null;
  3127. /**
  3128. *
  3129. * @type {Array<string>}
  3130. * @memberof SmartInfoResponseDto
  3131. */
  3132. 'tags'?: Array<string> | null;
  3133. }
  3134. /**
  3135. *
  3136. * @export
  3137. * @interface SystemConfigDto
  3138. */
  3139. export interface SystemConfigDto {
  3140. /**
  3141. *
  3142. * @type {SystemConfigFFmpegDto}
  3143. * @memberof SystemConfigDto
  3144. */
  3145. 'ffmpeg': SystemConfigFFmpegDto;
  3146. /**
  3147. *
  3148. * @type {SystemConfigJobDto}
  3149. * @memberof SystemConfigDto
  3150. */
  3151. 'job': SystemConfigJobDto;
  3152. /**
  3153. *
  3154. * @type {SystemConfigMachineLearningDto}
  3155. * @memberof SystemConfigDto
  3156. */
  3157. 'machineLearning': SystemConfigMachineLearningDto;
  3158. /**
  3159. *
  3160. * @type {SystemConfigMapDto}
  3161. * @memberof SystemConfigDto
  3162. */
  3163. 'map': SystemConfigMapDto;
  3164. /**
  3165. *
  3166. * @type {SystemConfigNewVersionCheckDto}
  3167. * @memberof SystemConfigDto
  3168. */
  3169. 'newVersionCheck': SystemConfigNewVersionCheckDto;
  3170. /**
  3171. *
  3172. * @type {SystemConfigOAuthDto}
  3173. * @memberof SystemConfigDto
  3174. */
  3175. 'oauth': SystemConfigOAuthDto;
  3176. /**
  3177. *
  3178. * @type {SystemConfigPasswordLoginDto}
  3179. * @memberof SystemConfigDto
  3180. */
  3181. 'passwordLogin': SystemConfigPasswordLoginDto;
  3182. /**
  3183. *
  3184. * @type {SystemConfigReverseGeocodingDto}
  3185. * @memberof SystemConfigDto
  3186. */
  3187. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3188. /**
  3189. *
  3190. * @type {SystemConfigStorageTemplateDto}
  3191. * @memberof SystemConfigDto
  3192. */
  3193. 'storageTemplate': SystemConfigStorageTemplateDto;
  3194. /**
  3195. *
  3196. * @type {SystemConfigThemeDto}
  3197. * @memberof SystemConfigDto
  3198. */
  3199. 'theme': SystemConfigThemeDto;
  3200. /**
  3201. *
  3202. * @type {SystemConfigThumbnailDto}
  3203. * @memberof SystemConfigDto
  3204. */
  3205. 'thumbnail': SystemConfigThumbnailDto;
  3206. /**
  3207. *
  3208. * @type {SystemConfigTrashDto}
  3209. * @memberof SystemConfigDto
  3210. */
  3211. 'trash': SystemConfigTrashDto;
  3212. }
  3213. /**
  3214. *
  3215. * @export
  3216. * @interface SystemConfigFFmpegDto
  3217. */
  3218. export interface SystemConfigFFmpegDto {
  3219. /**
  3220. *
  3221. * @type {TranscodeHWAccel}
  3222. * @memberof SystemConfigFFmpegDto
  3223. */
  3224. 'accel': TranscodeHWAccel;
  3225. /**
  3226. *
  3227. * @type {number}
  3228. * @memberof SystemConfigFFmpegDto
  3229. */
  3230. 'bframes': number;
  3231. /**
  3232. *
  3233. * @type {CQMode}
  3234. * @memberof SystemConfigFFmpegDto
  3235. */
  3236. 'cqMode': CQMode;
  3237. /**
  3238. *
  3239. * @type {number}
  3240. * @memberof SystemConfigFFmpegDto
  3241. */
  3242. 'crf': number;
  3243. /**
  3244. *
  3245. * @type {number}
  3246. * @memberof SystemConfigFFmpegDto
  3247. */
  3248. 'gopSize': number;
  3249. /**
  3250. *
  3251. * @type {string}
  3252. * @memberof SystemConfigFFmpegDto
  3253. */
  3254. 'maxBitrate': string;
  3255. /**
  3256. *
  3257. * @type {number}
  3258. * @memberof SystemConfigFFmpegDto
  3259. */
  3260. 'npl': number;
  3261. /**
  3262. *
  3263. * @type {string}
  3264. * @memberof SystemConfigFFmpegDto
  3265. */
  3266. 'preset': string;
  3267. /**
  3268. *
  3269. * @type {number}
  3270. * @memberof SystemConfigFFmpegDto
  3271. */
  3272. 'refs': number;
  3273. /**
  3274. *
  3275. * @type {AudioCodec}
  3276. * @memberof SystemConfigFFmpegDto
  3277. */
  3278. 'targetAudioCodec': AudioCodec;
  3279. /**
  3280. *
  3281. * @type {string}
  3282. * @memberof SystemConfigFFmpegDto
  3283. */
  3284. 'targetResolution': string;
  3285. /**
  3286. *
  3287. * @type {VideoCodec}
  3288. * @memberof SystemConfigFFmpegDto
  3289. */
  3290. 'targetVideoCodec': VideoCodec;
  3291. /**
  3292. *
  3293. * @type {boolean}
  3294. * @memberof SystemConfigFFmpegDto
  3295. */
  3296. 'temporalAQ': boolean;
  3297. /**
  3298. *
  3299. * @type {number}
  3300. * @memberof SystemConfigFFmpegDto
  3301. */
  3302. 'threads': number;
  3303. /**
  3304. *
  3305. * @type {ToneMapping}
  3306. * @memberof SystemConfigFFmpegDto
  3307. */
  3308. 'tonemap': ToneMapping;
  3309. /**
  3310. *
  3311. * @type {TranscodePolicy}
  3312. * @memberof SystemConfigFFmpegDto
  3313. */
  3314. 'transcode': TranscodePolicy;
  3315. /**
  3316. *
  3317. * @type {boolean}
  3318. * @memberof SystemConfigFFmpegDto
  3319. */
  3320. 'twoPass': boolean;
  3321. }
  3322. /**
  3323. *
  3324. * @export
  3325. * @interface SystemConfigJobDto
  3326. */
  3327. export interface SystemConfigJobDto {
  3328. /**
  3329. *
  3330. * @type {JobSettingsDto}
  3331. * @memberof SystemConfigJobDto
  3332. */
  3333. 'backgroundTask': JobSettingsDto;
  3334. /**
  3335. *
  3336. * @type {JobSettingsDto}
  3337. * @memberof SystemConfigJobDto
  3338. */
  3339. 'clipEncoding': JobSettingsDto;
  3340. /**
  3341. *
  3342. * @type {JobSettingsDto}
  3343. * @memberof SystemConfigJobDto
  3344. */
  3345. 'library': JobSettingsDto;
  3346. /**
  3347. *
  3348. * @type {JobSettingsDto}
  3349. * @memberof SystemConfigJobDto
  3350. */
  3351. 'metadataExtraction': JobSettingsDto;
  3352. /**
  3353. *
  3354. * @type {JobSettingsDto}
  3355. * @memberof SystemConfigJobDto
  3356. */
  3357. 'migration': JobSettingsDto;
  3358. /**
  3359. *
  3360. * @type {JobSettingsDto}
  3361. * @memberof SystemConfigJobDto
  3362. */
  3363. 'objectTagging': JobSettingsDto;
  3364. /**
  3365. *
  3366. * @type {JobSettingsDto}
  3367. * @memberof SystemConfigJobDto
  3368. */
  3369. 'recognizeFaces': JobSettingsDto;
  3370. /**
  3371. *
  3372. * @type {JobSettingsDto}
  3373. * @memberof SystemConfigJobDto
  3374. */
  3375. 'search': JobSettingsDto;
  3376. /**
  3377. *
  3378. * @type {JobSettingsDto}
  3379. * @memberof SystemConfigJobDto
  3380. */
  3381. 'sidecar': JobSettingsDto;
  3382. /**
  3383. *
  3384. * @type {JobSettingsDto}
  3385. * @memberof SystemConfigJobDto
  3386. */
  3387. 'storageTemplateMigration': JobSettingsDto;
  3388. /**
  3389. *
  3390. * @type {JobSettingsDto}
  3391. * @memberof SystemConfigJobDto
  3392. */
  3393. 'thumbnailGeneration': JobSettingsDto;
  3394. /**
  3395. *
  3396. * @type {JobSettingsDto}
  3397. * @memberof SystemConfigJobDto
  3398. */
  3399. 'videoConversion': JobSettingsDto;
  3400. }
  3401. /**
  3402. *
  3403. * @export
  3404. * @interface SystemConfigMachineLearningDto
  3405. */
  3406. export interface SystemConfigMachineLearningDto {
  3407. /**
  3408. *
  3409. * @type {ClassificationConfig}
  3410. * @memberof SystemConfigMachineLearningDto
  3411. */
  3412. 'classification': ClassificationConfig;
  3413. /**
  3414. *
  3415. * @type {CLIPConfig}
  3416. * @memberof SystemConfigMachineLearningDto
  3417. */
  3418. 'clip': CLIPConfig;
  3419. /**
  3420. *
  3421. * @type {boolean}
  3422. * @memberof SystemConfigMachineLearningDto
  3423. */
  3424. 'enabled': boolean;
  3425. /**
  3426. *
  3427. * @type {RecognitionConfig}
  3428. * @memberof SystemConfigMachineLearningDto
  3429. */
  3430. 'facialRecognition': RecognitionConfig;
  3431. /**
  3432. *
  3433. * @type {string}
  3434. * @memberof SystemConfigMachineLearningDto
  3435. */
  3436. 'url': string;
  3437. }
  3438. /**
  3439. *
  3440. * @export
  3441. * @interface SystemConfigMapDto
  3442. */
  3443. export interface SystemConfigMapDto {
  3444. /**
  3445. *
  3446. * @type {boolean}
  3447. * @memberof SystemConfigMapDto
  3448. */
  3449. 'enabled': boolean;
  3450. /**
  3451. *
  3452. * @type {string}
  3453. * @memberof SystemConfigMapDto
  3454. */
  3455. 'tileUrl': string;
  3456. }
  3457. /**
  3458. *
  3459. * @export
  3460. * @interface SystemConfigNewVersionCheckDto
  3461. */
  3462. export interface SystemConfigNewVersionCheckDto {
  3463. /**
  3464. *
  3465. * @type {boolean}
  3466. * @memberof SystemConfigNewVersionCheckDto
  3467. */
  3468. 'enabled': boolean;
  3469. }
  3470. /**
  3471. *
  3472. * @export
  3473. * @interface SystemConfigOAuthDto
  3474. */
  3475. export interface SystemConfigOAuthDto {
  3476. /**
  3477. *
  3478. * @type {boolean}
  3479. * @memberof SystemConfigOAuthDto
  3480. */
  3481. 'autoLaunch': boolean;
  3482. /**
  3483. *
  3484. * @type {boolean}
  3485. * @memberof SystemConfigOAuthDto
  3486. */
  3487. 'autoRegister': boolean;
  3488. /**
  3489. *
  3490. * @type {string}
  3491. * @memberof SystemConfigOAuthDto
  3492. */
  3493. 'buttonText': string;
  3494. /**
  3495. *
  3496. * @type {string}
  3497. * @memberof SystemConfigOAuthDto
  3498. */
  3499. 'clientId': string;
  3500. /**
  3501. *
  3502. * @type {string}
  3503. * @memberof SystemConfigOAuthDto
  3504. */
  3505. 'clientSecret': string;
  3506. /**
  3507. *
  3508. * @type {boolean}
  3509. * @memberof SystemConfigOAuthDto
  3510. */
  3511. 'enabled': boolean;
  3512. /**
  3513. *
  3514. * @type {string}
  3515. * @memberof SystemConfigOAuthDto
  3516. */
  3517. 'issuerUrl': string;
  3518. /**
  3519. *
  3520. * @type {boolean}
  3521. * @memberof SystemConfigOAuthDto
  3522. */
  3523. 'mobileOverrideEnabled': boolean;
  3524. /**
  3525. *
  3526. * @type {string}
  3527. * @memberof SystemConfigOAuthDto
  3528. */
  3529. 'mobileRedirectUri': string;
  3530. /**
  3531. *
  3532. * @type {string}
  3533. * @memberof SystemConfigOAuthDto
  3534. */
  3535. 'scope': string;
  3536. /**
  3537. *
  3538. * @type {string}
  3539. * @memberof SystemConfigOAuthDto
  3540. */
  3541. 'storageLabelClaim': string;
  3542. }
  3543. /**
  3544. *
  3545. * @export
  3546. * @interface SystemConfigPasswordLoginDto
  3547. */
  3548. export interface SystemConfigPasswordLoginDto {
  3549. /**
  3550. *
  3551. * @type {boolean}
  3552. * @memberof SystemConfigPasswordLoginDto
  3553. */
  3554. 'enabled': boolean;
  3555. }
  3556. /**
  3557. *
  3558. * @export
  3559. * @interface SystemConfigReverseGeocodingDto
  3560. */
  3561. export interface SystemConfigReverseGeocodingDto {
  3562. /**
  3563. *
  3564. * @type {CitiesFile}
  3565. * @memberof SystemConfigReverseGeocodingDto
  3566. */
  3567. 'citiesFileOverride': CitiesFile;
  3568. /**
  3569. *
  3570. * @type {boolean}
  3571. * @memberof SystemConfigReverseGeocodingDto
  3572. */
  3573. 'enabled': boolean;
  3574. }
  3575. /**
  3576. *
  3577. * @export
  3578. * @interface SystemConfigStorageTemplateDto
  3579. */
  3580. export interface SystemConfigStorageTemplateDto {
  3581. /**
  3582. *
  3583. * @type {string}
  3584. * @memberof SystemConfigStorageTemplateDto
  3585. */
  3586. 'template': string;
  3587. }
  3588. /**
  3589. *
  3590. * @export
  3591. * @interface SystemConfigTemplateStorageOptionDto
  3592. */
  3593. export interface SystemConfigTemplateStorageOptionDto {
  3594. /**
  3595. *
  3596. * @type {Array<string>}
  3597. * @memberof SystemConfigTemplateStorageOptionDto
  3598. */
  3599. 'dayOptions': Array<string>;
  3600. /**
  3601. *
  3602. * @type {Array<string>}
  3603. * @memberof SystemConfigTemplateStorageOptionDto
  3604. */
  3605. 'hourOptions': Array<string>;
  3606. /**
  3607. *
  3608. * @type {Array<string>}
  3609. * @memberof SystemConfigTemplateStorageOptionDto
  3610. */
  3611. 'minuteOptions': Array<string>;
  3612. /**
  3613. *
  3614. * @type {Array<string>}
  3615. * @memberof SystemConfigTemplateStorageOptionDto
  3616. */
  3617. 'monthOptions': Array<string>;
  3618. /**
  3619. *
  3620. * @type {Array<string>}
  3621. * @memberof SystemConfigTemplateStorageOptionDto
  3622. */
  3623. 'presetOptions': Array<string>;
  3624. /**
  3625. *
  3626. * @type {Array<string>}
  3627. * @memberof SystemConfigTemplateStorageOptionDto
  3628. */
  3629. 'secondOptions': Array<string>;
  3630. /**
  3631. *
  3632. * @type {Array<string>}
  3633. * @memberof SystemConfigTemplateStorageOptionDto
  3634. */
  3635. 'weekOptions': Array<string>;
  3636. /**
  3637. *
  3638. * @type {Array<string>}
  3639. * @memberof SystemConfigTemplateStorageOptionDto
  3640. */
  3641. 'yearOptions': Array<string>;
  3642. }
  3643. /**
  3644. *
  3645. * @export
  3646. * @interface SystemConfigThemeDto
  3647. */
  3648. export interface SystemConfigThemeDto {
  3649. /**
  3650. *
  3651. * @type {string}
  3652. * @memberof SystemConfigThemeDto
  3653. */
  3654. 'customCss': string;
  3655. }
  3656. /**
  3657. *
  3658. * @export
  3659. * @interface SystemConfigThumbnailDto
  3660. */
  3661. export interface SystemConfigThumbnailDto {
  3662. /**
  3663. *
  3664. * @type {Colorspace}
  3665. * @memberof SystemConfigThumbnailDto
  3666. */
  3667. 'colorspace': Colorspace;
  3668. /**
  3669. *
  3670. * @type {number}
  3671. * @memberof SystemConfigThumbnailDto
  3672. */
  3673. 'jpegSize': number;
  3674. /**
  3675. *
  3676. * @type {number}
  3677. * @memberof SystemConfigThumbnailDto
  3678. */
  3679. 'quality': number;
  3680. /**
  3681. *
  3682. * @type {number}
  3683. * @memberof SystemConfigThumbnailDto
  3684. */
  3685. 'webpSize': number;
  3686. }
  3687. /**
  3688. *
  3689. * @export
  3690. * @interface SystemConfigTrashDto
  3691. */
  3692. export interface SystemConfigTrashDto {
  3693. /**
  3694. *
  3695. * @type {number}
  3696. * @memberof SystemConfigTrashDto
  3697. */
  3698. 'days': number;
  3699. /**
  3700. *
  3701. * @type {boolean}
  3702. * @memberof SystemConfigTrashDto
  3703. */
  3704. 'enabled': boolean;
  3705. }
  3706. /**
  3707. *
  3708. * @export
  3709. * @interface TagResponseDto
  3710. */
  3711. export interface TagResponseDto {
  3712. /**
  3713. *
  3714. * @type {string}
  3715. * @memberof TagResponseDto
  3716. */
  3717. 'id': string;
  3718. /**
  3719. *
  3720. * @type {string}
  3721. * @memberof TagResponseDto
  3722. */
  3723. 'name': string;
  3724. /**
  3725. *
  3726. * @type {TagTypeEnum}
  3727. * @memberof TagResponseDto
  3728. */
  3729. 'type': TagTypeEnum;
  3730. /**
  3731. *
  3732. * @type {string}
  3733. * @memberof TagResponseDto
  3734. */
  3735. 'userId': string;
  3736. }
  3737. /**
  3738. *
  3739. * @export
  3740. * @enum {string}
  3741. */
  3742. export const TagTypeEnum = {
  3743. Object: 'OBJECT',
  3744. Face: 'FACE',
  3745. Custom: 'CUSTOM'
  3746. } as const;
  3747. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3748. /**
  3749. *
  3750. * @export
  3751. * @enum {string}
  3752. */
  3753. export const ThumbnailFormat = {
  3754. Jpeg: 'JPEG',
  3755. Webp: 'WEBP'
  3756. } as const;
  3757. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3758. /**
  3759. *
  3760. * @export
  3761. * @interface TimeBucketResponseDto
  3762. */
  3763. export interface TimeBucketResponseDto {
  3764. /**
  3765. *
  3766. * @type {number}
  3767. * @memberof TimeBucketResponseDto
  3768. */
  3769. 'count': number;
  3770. /**
  3771. *
  3772. * @type {string}
  3773. * @memberof TimeBucketResponseDto
  3774. */
  3775. 'timeBucket': string;
  3776. }
  3777. /**
  3778. *
  3779. * @export
  3780. * @enum {string}
  3781. */
  3782. export const TimeBucketSize = {
  3783. Day: 'DAY',
  3784. Month: 'MONTH'
  3785. } as const;
  3786. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3787. /**
  3788. *
  3789. * @export
  3790. * @enum {string}
  3791. */
  3792. export const ToneMapping = {
  3793. Hable: 'hable',
  3794. Mobius: 'mobius',
  3795. Reinhard: 'reinhard',
  3796. Disabled: 'disabled'
  3797. } as const;
  3798. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3799. /**
  3800. *
  3801. * @export
  3802. * @enum {string}
  3803. */
  3804. export const TranscodeHWAccel = {
  3805. Nvenc: 'nvenc',
  3806. Qsv: 'qsv',
  3807. Vaapi: 'vaapi',
  3808. Disabled: 'disabled'
  3809. } as const;
  3810. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3811. /**
  3812. *
  3813. * @export
  3814. * @enum {string}
  3815. */
  3816. export const TranscodePolicy = {
  3817. All: 'all',
  3818. Optimal: 'optimal',
  3819. Required: 'required',
  3820. Disabled: 'disabled'
  3821. } as const;
  3822. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3823. /**
  3824. *
  3825. * @export
  3826. * @interface UpdateAlbumDto
  3827. */
  3828. export interface UpdateAlbumDto {
  3829. /**
  3830. *
  3831. * @type {string}
  3832. * @memberof UpdateAlbumDto
  3833. */
  3834. 'albumName'?: string;
  3835. /**
  3836. *
  3837. * @type {string}
  3838. * @memberof UpdateAlbumDto
  3839. */
  3840. 'albumThumbnailAssetId'?: string;
  3841. /**
  3842. *
  3843. * @type {string}
  3844. * @memberof UpdateAlbumDto
  3845. */
  3846. 'description'?: string;
  3847. }
  3848. /**
  3849. *
  3850. * @export
  3851. * @interface UpdateAssetDto
  3852. */
  3853. export interface UpdateAssetDto {
  3854. /**
  3855. *
  3856. * @type {string}
  3857. * @memberof UpdateAssetDto
  3858. */
  3859. 'description'?: string;
  3860. /**
  3861. *
  3862. * @type {boolean}
  3863. * @memberof UpdateAssetDto
  3864. */
  3865. 'isArchived'?: boolean;
  3866. /**
  3867. *
  3868. * @type {boolean}
  3869. * @memberof UpdateAssetDto
  3870. */
  3871. 'isFavorite'?: boolean;
  3872. }
  3873. /**
  3874. *
  3875. * @export
  3876. * @interface UpdateLibraryDto
  3877. */
  3878. export interface UpdateLibraryDto {
  3879. /**
  3880. *
  3881. * @type {Array<string>}
  3882. * @memberof UpdateLibraryDto
  3883. */
  3884. 'exclusionPatterns'?: Array<string>;
  3885. /**
  3886. *
  3887. * @type {Array<string>}
  3888. * @memberof UpdateLibraryDto
  3889. */
  3890. 'importPaths'?: Array<string>;
  3891. /**
  3892. *
  3893. * @type {boolean}
  3894. * @memberof UpdateLibraryDto
  3895. */
  3896. 'isVisible'?: boolean;
  3897. /**
  3898. *
  3899. * @type {string}
  3900. * @memberof UpdateLibraryDto
  3901. */
  3902. 'name'?: string;
  3903. }
  3904. /**
  3905. *
  3906. * @export
  3907. * @interface UpdateStackParentDto
  3908. */
  3909. export interface UpdateStackParentDto {
  3910. /**
  3911. *
  3912. * @type {string}
  3913. * @memberof UpdateStackParentDto
  3914. */
  3915. 'newParentId': string;
  3916. /**
  3917. *
  3918. * @type {string}
  3919. * @memberof UpdateStackParentDto
  3920. */
  3921. 'oldParentId': string;
  3922. }
  3923. /**
  3924. *
  3925. * @export
  3926. * @interface UpdateTagDto
  3927. */
  3928. export interface UpdateTagDto {
  3929. /**
  3930. *
  3931. * @type {string}
  3932. * @memberof UpdateTagDto
  3933. */
  3934. 'name'?: string;
  3935. }
  3936. /**
  3937. *
  3938. * @export
  3939. * @interface UpdateUserDto
  3940. */
  3941. export interface UpdateUserDto {
  3942. /**
  3943. *
  3944. * @type {string}
  3945. * @memberof UpdateUserDto
  3946. */
  3947. 'email'?: string;
  3948. /**
  3949. *
  3950. * @type {string}
  3951. * @memberof UpdateUserDto
  3952. */
  3953. 'externalPath'?: string;
  3954. /**
  3955. *
  3956. * @type {string}
  3957. * @memberof UpdateUserDto
  3958. */
  3959. 'firstName'?: string;
  3960. /**
  3961. *
  3962. * @type {string}
  3963. * @memberof UpdateUserDto
  3964. */
  3965. 'id': string;
  3966. /**
  3967. *
  3968. * @type {boolean}
  3969. * @memberof UpdateUserDto
  3970. */
  3971. 'isAdmin'?: boolean;
  3972. /**
  3973. *
  3974. * @type {string}
  3975. * @memberof UpdateUserDto
  3976. */
  3977. 'lastName'?: string;
  3978. /**
  3979. *
  3980. * @type {boolean}
  3981. * @memberof UpdateUserDto
  3982. */
  3983. 'memoriesEnabled'?: boolean;
  3984. /**
  3985. *
  3986. * @type {string}
  3987. * @memberof UpdateUserDto
  3988. */
  3989. 'password'?: string;
  3990. /**
  3991. *
  3992. * @type {boolean}
  3993. * @memberof UpdateUserDto
  3994. */
  3995. 'shouldChangePassword'?: boolean;
  3996. /**
  3997. *
  3998. * @type {string}
  3999. * @memberof UpdateUserDto
  4000. */
  4001. 'storageLabel'?: string;
  4002. }
  4003. /**
  4004. *
  4005. * @export
  4006. * @interface UsageByUserDto
  4007. */
  4008. export interface UsageByUserDto {
  4009. /**
  4010. *
  4011. * @type {number}
  4012. * @memberof UsageByUserDto
  4013. */
  4014. 'photos': number;
  4015. /**
  4016. *
  4017. * @type {number}
  4018. * @memberof UsageByUserDto
  4019. */
  4020. 'usage': number;
  4021. /**
  4022. *
  4023. * @type {string}
  4024. * @memberof UsageByUserDto
  4025. */
  4026. 'userFirstName': string;
  4027. /**
  4028. *
  4029. * @type {string}
  4030. * @memberof UsageByUserDto
  4031. */
  4032. 'userId': string;
  4033. /**
  4034. *
  4035. * @type {string}
  4036. * @memberof UsageByUserDto
  4037. */
  4038. 'userLastName': string;
  4039. /**
  4040. *
  4041. * @type {number}
  4042. * @memberof UsageByUserDto
  4043. */
  4044. 'videos': number;
  4045. }
  4046. /**
  4047. *
  4048. * @export
  4049. * @interface UserCountResponseDto
  4050. */
  4051. export interface UserCountResponseDto {
  4052. /**
  4053. *
  4054. * @type {number}
  4055. * @memberof UserCountResponseDto
  4056. */
  4057. 'userCount': number;
  4058. }
  4059. /**
  4060. *
  4061. * @export
  4062. * @interface UserResponseDto
  4063. */
  4064. export interface UserResponseDto {
  4065. /**
  4066. *
  4067. * @type {string}
  4068. * @memberof UserResponseDto
  4069. */
  4070. 'createdAt': string;
  4071. /**
  4072. *
  4073. * @type {string}
  4074. * @memberof UserResponseDto
  4075. */
  4076. 'deletedAt': string | null;
  4077. /**
  4078. *
  4079. * @type {string}
  4080. * @memberof UserResponseDto
  4081. */
  4082. 'email': string;
  4083. /**
  4084. *
  4085. * @type {string}
  4086. * @memberof UserResponseDto
  4087. */
  4088. 'externalPath': string | null;
  4089. /**
  4090. *
  4091. * @type {string}
  4092. * @memberof UserResponseDto
  4093. */
  4094. 'firstName': string;
  4095. /**
  4096. *
  4097. * @type {string}
  4098. * @memberof UserResponseDto
  4099. */
  4100. 'id': string;
  4101. /**
  4102. *
  4103. * @type {boolean}
  4104. * @memberof UserResponseDto
  4105. */
  4106. 'isAdmin': boolean;
  4107. /**
  4108. *
  4109. * @type {string}
  4110. * @memberof UserResponseDto
  4111. */
  4112. 'lastName': string;
  4113. /**
  4114. *
  4115. * @type {boolean}
  4116. * @memberof UserResponseDto
  4117. */
  4118. 'memoriesEnabled'?: boolean;
  4119. /**
  4120. *
  4121. * @type {string}
  4122. * @memberof UserResponseDto
  4123. */
  4124. 'oauthId': string;
  4125. /**
  4126. *
  4127. * @type {string}
  4128. * @memberof UserResponseDto
  4129. */
  4130. 'profileImagePath': string;
  4131. /**
  4132. *
  4133. * @type {boolean}
  4134. * @memberof UserResponseDto
  4135. */
  4136. 'shouldChangePassword': boolean;
  4137. /**
  4138. *
  4139. * @type {string}
  4140. * @memberof UserResponseDto
  4141. */
  4142. 'storageLabel': string | null;
  4143. /**
  4144. *
  4145. * @type {string}
  4146. * @memberof UserResponseDto
  4147. */
  4148. 'updatedAt': string;
  4149. }
  4150. /**
  4151. *
  4152. * @export
  4153. * @interface ValidateAccessTokenResponseDto
  4154. */
  4155. export interface ValidateAccessTokenResponseDto {
  4156. /**
  4157. *
  4158. * @type {boolean}
  4159. * @memberof ValidateAccessTokenResponseDto
  4160. */
  4161. 'authStatus': boolean;
  4162. }
  4163. /**
  4164. *
  4165. * @export
  4166. * @enum {string}
  4167. */
  4168. export const VideoCodec = {
  4169. H264: 'h264',
  4170. Hevc: 'hevc',
  4171. Vp9: 'vp9'
  4172. } as const;
  4173. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4174. /**
  4175. * APIKeyApi - axios parameter creator
  4176. * @export
  4177. */
  4178. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4179. return {
  4180. /**
  4181. *
  4182. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4183. * @param {*} [options] Override http request option.
  4184. * @throws {RequiredError}
  4185. */
  4186. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4187. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4188. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4189. const localVarPath = `/api-key`;
  4190. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4191. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4192. let baseOptions;
  4193. if (configuration) {
  4194. baseOptions = configuration.baseOptions;
  4195. }
  4196. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4197. const localVarHeaderParameter = {} as any;
  4198. const localVarQueryParameter = {} as any;
  4199. // authentication cookie required
  4200. // authentication api_key required
  4201. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4202. // authentication bearer required
  4203. // http bearer authentication required
  4204. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4205. localVarHeaderParameter['Content-Type'] = 'application/json';
  4206. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4207. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4208. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4209. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4210. return {
  4211. url: toPathString(localVarUrlObj),
  4212. options: localVarRequestOptions,
  4213. };
  4214. },
  4215. /**
  4216. *
  4217. * @param {string} id
  4218. * @param {*} [options] Override http request option.
  4219. * @throws {RequiredError}
  4220. */
  4221. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4222. // verify required parameter 'id' is not null or undefined
  4223. assertParamExists('deleteKey', 'id', id)
  4224. const localVarPath = `/api-key/{id}`
  4225. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4226. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4227. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4228. let baseOptions;
  4229. if (configuration) {
  4230. baseOptions = configuration.baseOptions;
  4231. }
  4232. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4233. const localVarHeaderParameter = {} as any;
  4234. const localVarQueryParameter = {} as any;
  4235. // authentication cookie required
  4236. // authentication api_key required
  4237. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4238. // authentication bearer required
  4239. // http bearer authentication required
  4240. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4241. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4242. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4243. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4244. return {
  4245. url: toPathString(localVarUrlObj),
  4246. options: localVarRequestOptions,
  4247. };
  4248. },
  4249. /**
  4250. *
  4251. * @param {string} id
  4252. * @param {*} [options] Override http request option.
  4253. * @throws {RequiredError}
  4254. */
  4255. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4256. // verify required parameter 'id' is not null or undefined
  4257. assertParamExists('getKey', 'id', id)
  4258. const localVarPath = `/api-key/{id}`
  4259. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4260. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4261. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4262. let baseOptions;
  4263. if (configuration) {
  4264. baseOptions = configuration.baseOptions;
  4265. }
  4266. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4267. const localVarHeaderParameter = {} as any;
  4268. const localVarQueryParameter = {} as any;
  4269. // authentication cookie required
  4270. // authentication api_key required
  4271. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4272. // authentication bearer required
  4273. // http bearer authentication required
  4274. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4275. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4276. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4277. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4278. return {
  4279. url: toPathString(localVarUrlObj),
  4280. options: localVarRequestOptions,
  4281. };
  4282. },
  4283. /**
  4284. *
  4285. * @param {*} [options] Override http request option.
  4286. * @throws {RequiredError}
  4287. */
  4288. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4289. const localVarPath = `/api-key`;
  4290. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4291. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4292. let baseOptions;
  4293. if (configuration) {
  4294. baseOptions = configuration.baseOptions;
  4295. }
  4296. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4297. const localVarHeaderParameter = {} as any;
  4298. const localVarQueryParameter = {} as any;
  4299. // authentication cookie required
  4300. // authentication api_key required
  4301. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4302. // authentication bearer required
  4303. // http bearer authentication required
  4304. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4305. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4306. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4307. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4308. return {
  4309. url: toPathString(localVarUrlObj),
  4310. options: localVarRequestOptions,
  4311. };
  4312. },
  4313. /**
  4314. *
  4315. * @param {string} id
  4316. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4317. * @param {*} [options] Override http request option.
  4318. * @throws {RequiredError}
  4319. */
  4320. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4321. // verify required parameter 'id' is not null or undefined
  4322. assertParamExists('updateKey', 'id', id)
  4323. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4324. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4325. const localVarPath = `/api-key/{id}`
  4326. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4327. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4328. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4329. let baseOptions;
  4330. if (configuration) {
  4331. baseOptions = configuration.baseOptions;
  4332. }
  4333. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4334. const localVarHeaderParameter = {} as any;
  4335. const localVarQueryParameter = {} as any;
  4336. // authentication cookie required
  4337. // authentication api_key required
  4338. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4339. // authentication bearer required
  4340. // http bearer authentication required
  4341. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4342. localVarHeaderParameter['Content-Type'] = 'application/json';
  4343. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4344. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4345. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4346. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4347. return {
  4348. url: toPathString(localVarUrlObj),
  4349. options: localVarRequestOptions,
  4350. };
  4351. },
  4352. }
  4353. };
  4354. /**
  4355. * APIKeyApi - functional programming interface
  4356. * @export
  4357. */
  4358. export const APIKeyApiFp = function(configuration?: Configuration) {
  4359. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4360. return {
  4361. /**
  4362. *
  4363. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4364. * @param {*} [options] Override http request option.
  4365. * @throws {RequiredError}
  4366. */
  4367. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4368. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  4369. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4370. },
  4371. /**
  4372. *
  4373. * @param {string} id
  4374. * @param {*} [options] Override http request option.
  4375. * @throws {RequiredError}
  4376. */
  4377. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4378. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  4379. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4380. },
  4381. /**
  4382. *
  4383. * @param {string} id
  4384. * @param {*} [options] Override http request option.
  4385. * @throws {RequiredError}
  4386. */
  4387. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4388. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  4389. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4390. },
  4391. /**
  4392. *
  4393. * @param {*} [options] Override http request option.
  4394. * @throws {RequiredError}
  4395. */
  4396. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4397. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  4398. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4399. },
  4400. /**
  4401. *
  4402. * @param {string} id
  4403. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4404. * @param {*} [options] Override http request option.
  4405. * @throws {RequiredError}
  4406. */
  4407. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4408. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  4409. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4410. },
  4411. }
  4412. };
  4413. /**
  4414. * APIKeyApi - factory interface
  4415. * @export
  4416. */
  4417. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4418. const localVarFp = APIKeyApiFp(configuration)
  4419. return {
  4420. /**
  4421. *
  4422. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4423. * @param {*} [options] Override http request option.
  4424. * @throws {RequiredError}
  4425. */
  4426. createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4427. return localVarFp.createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4428. },
  4429. /**
  4430. *
  4431. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4432. * @param {*} [options] Override http request option.
  4433. * @throws {RequiredError}
  4434. */
  4435. deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4436. return localVarFp.deleteKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4437. },
  4438. /**
  4439. *
  4440. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4441. * @param {*} [options] Override http request option.
  4442. * @throws {RequiredError}
  4443. */
  4444. getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4445. return localVarFp.getKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4446. },
  4447. /**
  4448. *
  4449. * @param {*} [options] Override http request option.
  4450. * @throws {RequiredError}
  4451. */
  4452. getKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4453. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  4454. },
  4455. /**
  4456. *
  4457. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4458. * @param {*} [options] Override http request option.
  4459. * @throws {RequiredError}
  4460. */
  4461. updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4462. return localVarFp.updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4463. },
  4464. };
  4465. };
  4466. /**
  4467. * Request parameters for createKey operation in APIKeyApi.
  4468. * @export
  4469. * @interface APIKeyApiCreateKeyRequest
  4470. */
  4471. export interface APIKeyApiCreateKeyRequest {
  4472. /**
  4473. *
  4474. * @type {APIKeyCreateDto}
  4475. * @memberof APIKeyApiCreateKey
  4476. */
  4477. readonly aPIKeyCreateDto: APIKeyCreateDto
  4478. }
  4479. /**
  4480. * Request parameters for deleteKey operation in APIKeyApi.
  4481. * @export
  4482. * @interface APIKeyApiDeleteKeyRequest
  4483. */
  4484. export interface APIKeyApiDeleteKeyRequest {
  4485. /**
  4486. *
  4487. * @type {string}
  4488. * @memberof APIKeyApiDeleteKey
  4489. */
  4490. readonly id: string
  4491. }
  4492. /**
  4493. * Request parameters for getKey operation in APIKeyApi.
  4494. * @export
  4495. * @interface APIKeyApiGetKeyRequest
  4496. */
  4497. export interface APIKeyApiGetKeyRequest {
  4498. /**
  4499. *
  4500. * @type {string}
  4501. * @memberof APIKeyApiGetKey
  4502. */
  4503. readonly id: string
  4504. }
  4505. /**
  4506. * Request parameters for updateKey operation in APIKeyApi.
  4507. * @export
  4508. * @interface APIKeyApiUpdateKeyRequest
  4509. */
  4510. export interface APIKeyApiUpdateKeyRequest {
  4511. /**
  4512. *
  4513. * @type {string}
  4514. * @memberof APIKeyApiUpdateKey
  4515. */
  4516. readonly id: string
  4517. /**
  4518. *
  4519. * @type {APIKeyUpdateDto}
  4520. * @memberof APIKeyApiUpdateKey
  4521. */
  4522. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4523. }
  4524. /**
  4525. * APIKeyApi - object-oriented interface
  4526. * @export
  4527. * @class APIKeyApi
  4528. * @extends {BaseAPI}
  4529. */
  4530. export class APIKeyApi extends BaseAPI {
  4531. /**
  4532. *
  4533. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4534. * @param {*} [options] Override http request option.
  4535. * @throws {RequiredError}
  4536. * @memberof APIKeyApi
  4537. */
  4538. public createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig) {
  4539. return APIKeyApiFp(this.configuration).createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4540. }
  4541. /**
  4542. *
  4543. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4544. * @param {*} [options] Override http request option.
  4545. * @throws {RequiredError}
  4546. * @memberof APIKeyApi
  4547. */
  4548. public deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig) {
  4549. return APIKeyApiFp(this.configuration).deleteKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4550. }
  4551. /**
  4552. *
  4553. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4554. * @param {*} [options] Override http request option.
  4555. * @throws {RequiredError}
  4556. * @memberof APIKeyApi
  4557. */
  4558. public getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig) {
  4559. return APIKeyApiFp(this.configuration).getKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4560. }
  4561. /**
  4562. *
  4563. * @param {*} [options] Override http request option.
  4564. * @throws {RequiredError}
  4565. * @memberof APIKeyApi
  4566. */
  4567. public getKeys(options?: AxiosRequestConfig) {
  4568. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  4569. }
  4570. /**
  4571. *
  4572. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4573. * @param {*} [options] Override http request option.
  4574. * @throws {RequiredError}
  4575. * @memberof APIKeyApi
  4576. */
  4577. public updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig) {
  4578. return APIKeyApiFp(this.configuration).updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4579. }
  4580. }
  4581. /**
  4582. * AlbumApi - axios parameter creator
  4583. * @export
  4584. */
  4585. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  4586. return {
  4587. /**
  4588. *
  4589. * @param {string} id
  4590. * @param {BulkIdsDto} bulkIdsDto
  4591. * @param {string} [key]
  4592. * @param {*} [options] Override http request option.
  4593. * @throws {RequiredError}
  4594. */
  4595. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4596. // verify required parameter 'id' is not null or undefined
  4597. assertParamExists('addAssetsToAlbum', 'id', id)
  4598. // verify required parameter 'bulkIdsDto' is not null or undefined
  4599. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  4600. const localVarPath = `/album/{id}/assets`
  4601. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4602. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4603. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4604. let baseOptions;
  4605. if (configuration) {
  4606. baseOptions = configuration.baseOptions;
  4607. }
  4608. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4609. const localVarHeaderParameter = {} as any;
  4610. const localVarQueryParameter = {} as any;
  4611. // authentication cookie required
  4612. // authentication api_key required
  4613. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4614. // authentication bearer required
  4615. // http bearer authentication required
  4616. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4617. if (key !== undefined) {
  4618. localVarQueryParameter['key'] = key;
  4619. }
  4620. localVarHeaderParameter['Content-Type'] = 'application/json';
  4621. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4622. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4623. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4624. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4625. return {
  4626. url: toPathString(localVarUrlObj),
  4627. options: localVarRequestOptions,
  4628. };
  4629. },
  4630. /**
  4631. *
  4632. * @param {string} id
  4633. * @param {AddUsersDto} addUsersDto
  4634. * @param {*} [options] Override http request option.
  4635. * @throws {RequiredError}
  4636. */
  4637. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4638. // verify required parameter 'id' is not null or undefined
  4639. assertParamExists('addUsersToAlbum', 'id', id)
  4640. // verify required parameter 'addUsersDto' is not null or undefined
  4641. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  4642. const localVarPath = `/album/{id}/users`
  4643. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4644. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4645. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4646. let baseOptions;
  4647. if (configuration) {
  4648. baseOptions = configuration.baseOptions;
  4649. }
  4650. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4651. const localVarHeaderParameter = {} as any;
  4652. const localVarQueryParameter = {} as any;
  4653. // authentication cookie required
  4654. // authentication api_key required
  4655. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4656. // authentication bearer required
  4657. // http bearer authentication required
  4658. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4659. localVarHeaderParameter['Content-Type'] = 'application/json';
  4660. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4661. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4662. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4663. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  4664. return {
  4665. url: toPathString(localVarUrlObj),
  4666. options: localVarRequestOptions,
  4667. };
  4668. },
  4669. /**
  4670. *
  4671. * @param {CreateAlbumDto} createAlbumDto
  4672. * @param {*} [options] Override http request option.
  4673. * @throws {RequiredError}
  4674. */
  4675. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4676. // verify required parameter 'createAlbumDto' is not null or undefined
  4677. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  4678. const localVarPath = `/album`;
  4679. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4680. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4681. let baseOptions;
  4682. if (configuration) {
  4683. baseOptions = configuration.baseOptions;
  4684. }
  4685. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4686. const localVarHeaderParameter = {} as any;
  4687. const localVarQueryParameter = {} as any;
  4688. // authentication cookie required
  4689. // authentication api_key required
  4690. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4691. // authentication bearer required
  4692. // http bearer authentication required
  4693. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4694. localVarHeaderParameter['Content-Type'] = 'application/json';
  4695. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4696. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4697. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4698. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  4699. return {
  4700. url: toPathString(localVarUrlObj),
  4701. options: localVarRequestOptions,
  4702. };
  4703. },
  4704. /**
  4705. *
  4706. * @param {string} id
  4707. * @param {*} [options] Override http request option.
  4708. * @throws {RequiredError}
  4709. */
  4710. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4711. // verify required parameter 'id' is not null or undefined
  4712. assertParamExists('deleteAlbum', 'id', id)
  4713. const localVarPath = `/album/{id}`
  4714. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4715. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4716. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4717. let baseOptions;
  4718. if (configuration) {
  4719. baseOptions = configuration.baseOptions;
  4720. }
  4721. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4722. const localVarHeaderParameter = {} as any;
  4723. const localVarQueryParameter = {} as any;
  4724. // authentication cookie required
  4725. // authentication api_key required
  4726. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4727. // authentication bearer required
  4728. // http bearer authentication required
  4729. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4730. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4731. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4732. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4733. return {
  4734. url: toPathString(localVarUrlObj),
  4735. options: localVarRequestOptions,
  4736. };
  4737. },
  4738. /**
  4739. *
  4740. * @param {*} [options] Override http request option.
  4741. * @throws {RequiredError}
  4742. */
  4743. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4744. const localVarPath = `/album/count`;
  4745. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4746. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4747. let baseOptions;
  4748. if (configuration) {
  4749. baseOptions = configuration.baseOptions;
  4750. }
  4751. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4752. const localVarHeaderParameter = {} as any;
  4753. const localVarQueryParameter = {} as any;
  4754. // authentication cookie required
  4755. // authentication api_key required
  4756. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4757. // authentication bearer required
  4758. // http bearer authentication required
  4759. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4760. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4761. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4762. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4763. return {
  4764. url: toPathString(localVarUrlObj),
  4765. options: localVarRequestOptions,
  4766. };
  4767. },
  4768. /**
  4769. *
  4770. * @param {string} id
  4771. * @param {boolean} [withoutAssets]
  4772. * @param {string} [key]
  4773. * @param {*} [options] Override http request option.
  4774. * @throws {RequiredError}
  4775. */
  4776. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4777. // verify required parameter 'id' is not null or undefined
  4778. assertParamExists('getAlbumInfo', 'id', id)
  4779. const localVarPath = `/album/{id}`
  4780. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4781. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4782. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4783. let baseOptions;
  4784. if (configuration) {
  4785. baseOptions = configuration.baseOptions;
  4786. }
  4787. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4788. const localVarHeaderParameter = {} as any;
  4789. const localVarQueryParameter = {} as any;
  4790. // authentication cookie required
  4791. // authentication api_key required
  4792. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4793. // authentication bearer required
  4794. // http bearer authentication required
  4795. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4796. if (withoutAssets !== undefined) {
  4797. localVarQueryParameter['withoutAssets'] = withoutAssets;
  4798. }
  4799. if (key !== undefined) {
  4800. localVarQueryParameter['key'] = key;
  4801. }
  4802. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4803. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4804. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4805. return {
  4806. url: toPathString(localVarUrlObj),
  4807. options: localVarRequestOptions,
  4808. };
  4809. },
  4810. /**
  4811. *
  4812. * @param {boolean} [shared]
  4813. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  4814. * @param {*} [options] Override http request option.
  4815. * @throws {RequiredError}
  4816. */
  4817. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4818. const localVarPath = `/album`;
  4819. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4820. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4821. let baseOptions;
  4822. if (configuration) {
  4823. baseOptions = configuration.baseOptions;
  4824. }
  4825. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4826. const localVarHeaderParameter = {} as any;
  4827. const localVarQueryParameter = {} as any;
  4828. // authentication cookie required
  4829. // authentication api_key required
  4830. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4831. // authentication bearer required
  4832. // http bearer authentication required
  4833. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4834. if (shared !== undefined) {
  4835. localVarQueryParameter['shared'] = shared;
  4836. }
  4837. if (assetId !== undefined) {
  4838. localVarQueryParameter['assetId'] = assetId;
  4839. }
  4840. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4841. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4842. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4843. return {
  4844. url: toPathString(localVarUrlObj),
  4845. options: localVarRequestOptions,
  4846. };
  4847. },
  4848. /**
  4849. *
  4850. * @param {string} id
  4851. * @param {BulkIdsDto} bulkIdsDto
  4852. * @param {*} [options] Override http request option.
  4853. * @throws {RequiredError}
  4854. */
  4855. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4856. // verify required parameter 'id' is not null or undefined
  4857. assertParamExists('removeAssetFromAlbum', 'id', id)
  4858. // verify required parameter 'bulkIdsDto' is not null or undefined
  4859. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  4860. const localVarPath = `/album/{id}/assets`
  4861. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4862. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4863. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4864. let baseOptions;
  4865. if (configuration) {
  4866. baseOptions = configuration.baseOptions;
  4867. }
  4868. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4869. const localVarHeaderParameter = {} as any;
  4870. const localVarQueryParameter = {} as any;
  4871. // authentication cookie required
  4872. // authentication api_key required
  4873. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4874. // authentication bearer required
  4875. // http bearer authentication required
  4876. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4877. localVarHeaderParameter['Content-Type'] = 'application/json';
  4878. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4879. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4880. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4881. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4882. return {
  4883. url: toPathString(localVarUrlObj),
  4884. options: localVarRequestOptions,
  4885. };
  4886. },
  4887. /**
  4888. *
  4889. * @param {string} id
  4890. * @param {string} userId
  4891. * @param {*} [options] Override http request option.
  4892. * @throws {RequiredError}
  4893. */
  4894. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4895. // verify required parameter 'id' is not null or undefined
  4896. assertParamExists('removeUserFromAlbum', 'id', id)
  4897. // verify required parameter 'userId' is not null or undefined
  4898. assertParamExists('removeUserFromAlbum', 'userId', userId)
  4899. const localVarPath = `/album/{id}/user/{userId}`
  4900. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  4901. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  4902. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4903. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4904. let baseOptions;
  4905. if (configuration) {
  4906. baseOptions = configuration.baseOptions;
  4907. }
  4908. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4909. const localVarHeaderParameter = {} as any;
  4910. const localVarQueryParameter = {} as any;
  4911. // authentication cookie required
  4912. // authentication api_key required
  4913. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4914. // authentication bearer required
  4915. // http bearer authentication required
  4916. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4917. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4918. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4919. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4920. return {
  4921. url: toPathString(localVarUrlObj),
  4922. options: localVarRequestOptions,
  4923. };
  4924. },
  4925. /**
  4926. *
  4927. * @param {string} id
  4928. * @param {UpdateAlbumDto} updateAlbumDto
  4929. * @param {*} [options] Override http request option.
  4930. * @throws {RequiredError}
  4931. */
  4932. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4933. // verify required parameter 'id' is not null or undefined
  4934. assertParamExists('updateAlbumInfo', 'id', id)
  4935. // verify required parameter 'updateAlbumDto' is not null or undefined
  4936. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  4937. const localVarPath = `/album/{id}`
  4938. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4939. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4940. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4941. let baseOptions;
  4942. if (configuration) {
  4943. baseOptions = configuration.baseOptions;
  4944. }
  4945. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4946. const localVarHeaderParameter = {} as any;
  4947. const localVarQueryParameter = {} as any;
  4948. // authentication cookie required
  4949. // authentication api_key required
  4950. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4951. // authentication bearer required
  4952. // http bearer authentication required
  4953. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4954. localVarHeaderParameter['Content-Type'] = 'application/json';
  4955. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4956. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4957. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4958. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  4959. return {
  4960. url: toPathString(localVarUrlObj),
  4961. options: localVarRequestOptions,
  4962. };
  4963. },
  4964. }
  4965. };
  4966. /**
  4967. * AlbumApi - functional programming interface
  4968. * @export
  4969. */
  4970. export const AlbumApiFp = function(configuration?: Configuration) {
  4971. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  4972. return {
  4973. /**
  4974. *
  4975. * @param {string} id
  4976. * @param {BulkIdsDto} bulkIdsDto
  4977. * @param {string} [key]
  4978. * @param {*} [options] Override http request option.
  4979. * @throws {RequiredError}
  4980. */
  4981. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  4982. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  4983. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4984. },
  4985. /**
  4986. *
  4987. * @param {string} id
  4988. * @param {AddUsersDto} addUsersDto
  4989. * @param {*} [options] Override http request option.
  4990. * @throws {RequiredError}
  4991. */
  4992. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  4993. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  4994. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4995. },
  4996. /**
  4997. *
  4998. * @param {CreateAlbumDto} createAlbumDto
  4999. * @param {*} [options] Override http request option.
  5000. * @throws {RequiredError}
  5001. */
  5002. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5003. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5004. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5005. },
  5006. /**
  5007. *
  5008. * @param {string} id
  5009. * @param {*} [options] Override http request option.
  5010. * @throws {RequiredError}
  5011. */
  5012. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5013. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5014. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5015. },
  5016. /**
  5017. *
  5018. * @param {*} [options] Override http request option.
  5019. * @throws {RequiredError}
  5020. */
  5021. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5022. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5023. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5024. },
  5025. /**
  5026. *
  5027. * @param {string} id
  5028. * @param {boolean} [withoutAssets]
  5029. * @param {string} [key]
  5030. * @param {*} [options] Override http request option.
  5031. * @throws {RequiredError}
  5032. */
  5033. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5034. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5035. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5036. },
  5037. /**
  5038. *
  5039. * @param {boolean} [shared]
  5040. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5041. * @param {*} [options] Override http request option.
  5042. * @throws {RequiredError}
  5043. */
  5044. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5045. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5046. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5047. },
  5048. /**
  5049. *
  5050. * @param {string} id
  5051. * @param {BulkIdsDto} bulkIdsDto
  5052. * @param {*} [options] Override http request option.
  5053. * @throws {RequiredError}
  5054. */
  5055. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5056. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5057. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5058. },
  5059. /**
  5060. *
  5061. * @param {string} id
  5062. * @param {string} userId
  5063. * @param {*} [options] Override http request option.
  5064. * @throws {RequiredError}
  5065. */
  5066. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5067. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5068. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5069. },
  5070. /**
  5071. *
  5072. * @param {string} id
  5073. * @param {UpdateAlbumDto} updateAlbumDto
  5074. * @param {*} [options] Override http request option.
  5075. * @throws {RequiredError}
  5076. */
  5077. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5078. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5079. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5080. },
  5081. }
  5082. };
  5083. /**
  5084. * AlbumApi - factory interface
  5085. * @export
  5086. */
  5087. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5088. const localVarFp = AlbumApiFp(configuration)
  5089. return {
  5090. /**
  5091. *
  5092. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5093. * @param {*} [options] Override http request option.
  5094. * @throws {RequiredError}
  5095. */
  5096. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5097. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5098. },
  5099. /**
  5100. *
  5101. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5102. * @param {*} [options] Override http request option.
  5103. * @throws {RequiredError}
  5104. */
  5105. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5106. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5107. },
  5108. /**
  5109. *
  5110. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5111. * @param {*} [options] Override http request option.
  5112. * @throws {RequiredError}
  5113. */
  5114. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5115. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5116. },
  5117. /**
  5118. *
  5119. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5120. * @param {*} [options] Override http request option.
  5121. * @throws {RequiredError}
  5122. */
  5123. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5124. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5125. },
  5126. /**
  5127. *
  5128. * @param {*} [options] Override http request option.
  5129. * @throws {RequiredError}
  5130. */
  5131. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5132. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5133. },
  5134. /**
  5135. *
  5136. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5137. * @param {*} [options] Override http request option.
  5138. * @throws {RequiredError}
  5139. */
  5140. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5141. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5142. },
  5143. /**
  5144. *
  5145. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5146. * @param {*} [options] Override http request option.
  5147. * @throws {RequiredError}
  5148. */
  5149. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5150. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5151. },
  5152. /**
  5153. *
  5154. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5155. * @param {*} [options] Override http request option.
  5156. * @throws {RequiredError}
  5157. */
  5158. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5159. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5160. },
  5161. /**
  5162. *
  5163. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5164. * @param {*} [options] Override http request option.
  5165. * @throws {RequiredError}
  5166. */
  5167. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5168. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5169. },
  5170. /**
  5171. *
  5172. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5173. * @param {*} [options] Override http request option.
  5174. * @throws {RequiredError}
  5175. */
  5176. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5177. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5178. },
  5179. };
  5180. };
  5181. /**
  5182. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5183. * @export
  5184. * @interface AlbumApiAddAssetsToAlbumRequest
  5185. */
  5186. export interface AlbumApiAddAssetsToAlbumRequest {
  5187. /**
  5188. *
  5189. * @type {string}
  5190. * @memberof AlbumApiAddAssetsToAlbum
  5191. */
  5192. readonly id: string
  5193. /**
  5194. *
  5195. * @type {BulkIdsDto}
  5196. * @memberof AlbumApiAddAssetsToAlbum
  5197. */
  5198. readonly bulkIdsDto: BulkIdsDto
  5199. /**
  5200. *
  5201. * @type {string}
  5202. * @memberof AlbumApiAddAssetsToAlbum
  5203. */
  5204. readonly key?: string
  5205. }
  5206. /**
  5207. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5208. * @export
  5209. * @interface AlbumApiAddUsersToAlbumRequest
  5210. */
  5211. export interface AlbumApiAddUsersToAlbumRequest {
  5212. /**
  5213. *
  5214. * @type {string}
  5215. * @memberof AlbumApiAddUsersToAlbum
  5216. */
  5217. readonly id: string
  5218. /**
  5219. *
  5220. * @type {AddUsersDto}
  5221. * @memberof AlbumApiAddUsersToAlbum
  5222. */
  5223. readonly addUsersDto: AddUsersDto
  5224. }
  5225. /**
  5226. * Request parameters for createAlbum operation in AlbumApi.
  5227. * @export
  5228. * @interface AlbumApiCreateAlbumRequest
  5229. */
  5230. export interface AlbumApiCreateAlbumRequest {
  5231. /**
  5232. *
  5233. * @type {CreateAlbumDto}
  5234. * @memberof AlbumApiCreateAlbum
  5235. */
  5236. readonly createAlbumDto: CreateAlbumDto
  5237. }
  5238. /**
  5239. * Request parameters for deleteAlbum operation in AlbumApi.
  5240. * @export
  5241. * @interface AlbumApiDeleteAlbumRequest
  5242. */
  5243. export interface AlbumApiDeleteAlbumRequest {
  5244. /**
  5245. *
  5246. * @type {string}
  5247. * @memberof AlbumApiDeleteAlbum
  5248. */
  5249. readonly id: string
  5250. }
  5251. /**
  5252. * Request parameters for getAlbumInfo operation in AlbumApi.
  5253. * @export
  5254. * @interface AlbumApiGetAlbumInfoRequest
  5255. */
  5256. export interface AlbumApiGetAlbumInfoRequest {
  5257. /**
  5258. *
  5259. * @type {string}
  5260. * @memberof AlbumApiGetAlbumInfo
  5261. */
  5262. readonly id: string
  5263. /**
  5264. *
  5265. * @type {boolean}
  5266. * @memberof AlbumApiGetAlbumInfo
  5267. */
  5268. readonly withoutAssets?: boolean
  5269. /**
  5270. *
  5271. * @type {string}
  5272. * @memberof AlbumApiGetAlbumInfo
  5273. */
  5274. readonly key?: string
  5275. }
  5276. /**
  5277. * Request parameters for getAllAlbums operation in AlbumApi.
  5278. * @export
  5279. * @interface AlbumApiGetAllAlbumsRequest
  5280. */
  5281. export interface AlbumApiGetAllAlbumsRequest {
  5282. /**
  5283. *
  5284. * @type {boolean}
  5285. * @memberof AlbumApiGetAllAlbums
  5286. */
  5287. readonly shared?: boolean
  5288. /**
  5289. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5290. * @type {string}
  5291. * @memberof AlbumApiGetAllAlbums
  5292. */
  5293. readonly assetId?: string
  5294. }
  5295. /**
  5296. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5297. * @export
  5298. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5299. */
  5300. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5301. /**
  5302. *
  5303. * @type {string}
  5304. * @memberof AlbumApiRemoveAssetFromAlbum
  5305. */
  5306. readonly id: string
  5307. /**
  5308. *
  5309. * @type {BulkIdsDto}
  5310. * @memberof AlbumApiRemoveAssetFromAlbum
  5311. */
  5312. readonly bulkIdsDto: BulkIdsDto
  5313. }
  5314. /**
  5315. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5316. * @export
  5317. * @interface AlbumApiRemoveUserFromAlbumRequest
  5318. */
  5319. export interface AlbumApiRemoveUserFromAlbumRequest {
  5320. /**
  5321. *
  5322. * @type {string}
  5323. * @memberof AlbumApiRemoveUserFromAlbum
  5324. */
  5325. readonly id: string
  5326. /**
  5327. *
  5328. * @type {string}
  5329. * @memberof AlbumApiRemoveUserFromAlbum
  5330. */
  5331. readonly userId: string
  5332. }
  5333. /**
  5334. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5335. * @export
  5336. * @interface AlbumApiUpdateAlbumInfoRequest
  5337. */
  5338. export interface AlbumApiUpdateAlbumInfoRequest {
  5339. /**
  5340. *
  5341. * @type {string}
  5342. * @memberof AlbumApiUpdateAlbumInfo
  5343. */
  5344. readonly id: string
  5345. /**
  5346. *
  5347. * @type {UpdateAlbumDto}
  5348. * @memberof AlbumApiUpdateAlbumInfo
  5349. */
  5350. readonly updateAlbumDto: UpdateAlbumDto
  5351. }
  5352. /**
  5353. * AlbumApi - object-oriented interface
  5354. * @export
  5355. * @class AlbumApi
  5356. * @extends {BaseAPI}
  5357. */
  5358. export class AlbumApi extends BaseAPI {
  5359. /**
  5360. *
  5361. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5362. * @param {*} [options] Override http request option.
  5363. * @throws {RequiredError}
  5364. * @memberof AlbumApi
  5365. */
  5366. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5367. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5368. }
  5369. /**
  5370. *
  5371. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5372. * @param {*} [options] Override http request option.
  5373. * @throws {RequiredError}
  5374. * @memberof AlbumApi
  5375. */
  5376. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5377. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5378. }
  5379. /**
  5380. *
  5381. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5382. * @param {*} [options] Override http request option.
  5383. * @throws {RequiredError}
  5384. * @memberof AlbumApi
  5385. */
  5386. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5387. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5388. }
  5389. /**
  5390. *
  5391. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5392. * @param {*} [options] Override http request option.
  5393. * @throws {RequiredError}
  5394. * @memberof AlbumApi
  5395. */
  5396. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  5397. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5398. }
  5399. /**
  5400. *
  5401. * @param {*} [options] Override http request option.
  5402. * @throws {RequiredError}
  5403. * @memberof AlbumApi
  5404. */
  5405. public getAlbumCount(options?: AxiosRequestConfig) {
  5406. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  5407. }
  5408. /**
  5409. *
  5410. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5411. * @param {*} [options] Override http request option.
  5412. * @throws {RequiredError}
  5413. * @memberof AlbumApi
  5414. */
  5415. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  5416. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5417. }
  5418. /**
  5419. *
  5420. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5421. * @param {*} [options] Override http request option.
  5422. * @throws {RequiredError}
  5423. * @memberof AlbumApi
  5424. */
  5425. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  5426. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5427. }
  5428. /**
  5429. *
  5430. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5431. * @param {*} [options] Override http request option.
  5432. * @throws {RequiredError}
  5433. * @memberof AlbumApi
  5434. */
  5435. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  5436. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  5437. }
  5438. /**
  5439. *
  5440. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5441. * @param {*} [options] Override http request option.
  5442. * @throws {RequiredError}
  5443. * @memberof AlbumApi
  5444. */
  5445. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  5446. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5447. }
  5448. /**
  5449. *
  5450. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5451. * @param {*} [options] Override http request option.
  5452. * @throws {RequiredError}
  5453. * @memberof AlbumApi
  5454. */
  5455. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  5456. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5457. }
  5458. }
  5459. /**
  5460. * AssetApi - axios parameter creator
  5461. * @export
  5462. */
  5463. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  5464. return {
  5465. /**
  5466. * Checks if assets exist by checksums
  5467. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  5468. * @param {*} [options] Override http request option.
  5469. * @throws {RequiredError}
  5470. */
  5471. bulkUploadCheck: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5472. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  5473. assertParamExists('bulkUploadCheck', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  5474. const localVarPath = `/asset/bulk-upload-check`;
  5475. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5476. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5477. let baseOptions;
  5478. if (configuration) {
  5479. baseOptions = configuration.baseOptions;
  5480. }
  5481. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5482. const localVarHeaderParameter = {} as any;
  5483. const localVarQueryParameter = {} as any;
  5484. // authentication cookie required
  5485. // authentication api_key required
  5486. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5487. // authentication bearer required
  5488. // http bearer authentication required
  5489. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5490. localVarHeaderParameter['Content-Type'] = 'application/json';
  5491. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5492. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5493. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5494. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  5495. return {
  5496. url: toPathString(localVarUrlObj),
  5497. options: localVarRequestOptions,
  5498. };
  5499. },
  5500. /**
  5501. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5502. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5503. * @param {*} [options] Override http request option.
  5504. * @throws {RequiredError}
  5505. */
  5506. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5507. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  5508. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  5509. const localVarPath = `/asset/exist`;
  5510. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5511. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5512. let baseOptions;
  5513. if (configuration) {
  5514. baseOptions = configuration.baseOptions;
  5515. }
  5516. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5517. const localVarHeaderParameter = {} as any;
  5518. const localVarQueryParameter = {} as any;
  5519. // authentication cookie required
  5520. // authentication api_key required
  5521. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5522. // authentication bearer required
  5523. // http bearer authentication required
  5524. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5525. localVarHeaderParameter['Content-Type'] = 'application/json';
  5526. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5527. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5528. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5529. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  5530. return {
  5531. url: toPathString(localVarUrlObj),
  5532. options: localVarRequestOptions,
  5533. };
  5534. },
  5535. /**
  5536. *
  5537. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  5538. * @param {*} [options] Override http request option.
  5539. * @throws {RequiredError}
  5540. */
  5541. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5542. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  5543. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  5544. const localVarPath = `/asset`;
  5545. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5546. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5547. let baseOptions;
  5548. if (configuration) {
  5549. baseOptions = configuration.baseOptions;
  5550. }
  5551. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5552. const localVarHeaderParameter = {} as any;
  5553. const localVarQueryParameter = {} as any;
  5554. // authentication cookie required
  5555. // authentication api_key required
  5556. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5557. // authentication bearer required
  5558. // http bearer authentication required
  5559. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5560. localVarHeaderParameter['Content-Type'] = 'application/json';
  5561. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5562. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5563. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5564. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  5565. return {
  5566. url: toPathString(localVarUrlObj),
  5567. options: localVarRequestOptions,
  5568. };
  5569. },
  5570. /**
  5571. *
  5572. * @param {AssetIdsDto} assetIdsDto
  5573. * @param {string} [key]
  5574. * @param {*} [options] Override http request option.
  5575. * @throws {RequiredError}
  5576. */
  5577. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5578. // verify required parameter 'assetIdsDto' is not null or undefined
  5579. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  5580. const localVarPath = `/asset/download/archive`;
  5581. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5582. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5583. let baseOptions;
  5584. if (configuration) {
  5585. baseOptions = configuration.baseOptions;
  5586. }
  5587. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5588. const localVarHeaderParameter = {} as any;
  5589. const localVarQueryParameter = {} as any;
  5590. // authentication cookie required
  5591. // authentication api_key required
  5592. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5593. // authentication bearer required
  5594. // http bearer authentication required
  5595. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5596. if (key !== undefined) {
  5597. localVarQueryParameter['key'] = key;
  5598. }
  5599. localVarHeaderParameter['Content-Type'] = 'application/json';
  5600. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5601. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5602. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5603. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  5604. return {
  5605. url: toPathString(localVarUrlObj),
  5606. options: localVarRequestOptions,
  5607. };
  5608. },
  5609. /**
  5610. *
  5611. * @param {string} id
  5612. * @param {string} [key]
  5613. * @param {*} [options] Override http request option.
  5614. * @throws {RequiredError}
  5615. */
  5616. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5617. // verify required parameter 'id' is not null or undefined
  5618. assertParamExists('downloadFile', 'id', id)
  5619. const localVarPath = `/asset/download/{id}`
  5620. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5621. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5622. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5623. let baseOptions;
  5624. if (configuration) {
  5625. baseOptions = configuration.baseOptions;
  5626. }
  5627. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5628. const localVarHeaderParameter = {} as any;
  5629. const localVarQueryParameter = {} as any;
  5630. // authentication cookie required
  5631. // authentication api_key required
  5632. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5633. // authentication bearer required
  5634. // http bearer authentication required
  5635. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5636. if (key !== undefined) {
  5637. localVarQueryParameter['key'] = key;
  5638. }
  5639. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5640. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5641. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5642. return {
  5643. url: toPathString(localVarUrlObj),
  5644. options: localVarRequestOptions,
  5645. };
  5646. },
  5647. /**
  5648. *
  5649. * @param {*} [options] Override http request option.
  5650. * @throws {RequiredError}
  5651. */
  5652. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5653. const localVarPath = `/asset/trash/empty`;
  5654. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5655. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5656. let baseOptions;
  5657. if (configuration) {
  5658. baseOptions = configuration.baseOptions;
  5659. }
  5660. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5661. const localVarHeaderParameter = {} as any;
  5662. const localVarQueryParameter = {} as any;
  5663. // authentication cookie required
  5664. // authentication api_key required
  5665. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5666. // authentication bearer required
  5667. // http bearer authentication required
  5668. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5669. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5670. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5671. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5672. return {
  5673. url: toPathString(localVarUrlObj),
  5674. options: localVarRequestOptions,
  5675. };
  5676. },
  5677. /**
  5678. * Get all AssetEntity belong to the user
  5679. * @param {string} [userId]
  5680. * @param {boolean} [isFavorite]
  5681. * @param {boolean} [isArchived]
  5682. * @param {number} [skip]
  5683. * @param {string} [updatedAfter]
  5684. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5685. * @param {*} [options] Override http request option.
  5686. * @throws {RequiredError}
  5687. */
  5688. getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5689. const localVarPath = `/asset`;
  5690. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5691. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5692. let baseOptions;
  5693. if (configuration) {
  5694. baseOptions = configuration.baseOptions;
  5695. }
  5696. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5697. const localVarHeaderParameter = {} as any;
  5698. const localVarQueryParameter = {} as any;
  5699. // authentication cookie required
  5700. // authentication api_key required
  5701. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5702. // authentication bearer required
  5703. // http bearer authentication required
  5704. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5705. if (userId !== undefined) {
  5706. localVarQueryParameter['userId'] = userId;
  5707. }
  5708. if (isFavorite !== undefined) {
  5709. localVarQueryParameter['isFavorite'] = isFavorite;
  5710. }
  5711. if (isArchived !== undefined) {
  5712. localVarQueryParameter['isArchived'] = isArchived;
  5713. }
  5714. if (skip !== undefined) {
  5715. localVarQueryParameter['skip'] = skip;
  5716. }
  5717. if (updatedAfter !== undefined) {
  5718. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  5719. (updatedAfter as any).toISOString() :
  5720. updatedAfter;
  5721. }
  5722. if (ifNoneMatch != null) {
  5723. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  5724. }
  5725. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5726. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5727. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5728. return {
  5729. url: toPathString(localVarUrlObj),
  5730. options: localVarRequestOptions,
  5731. };
  5732. },
  5733. /**
  5734. * Get a single asset\'s information
  5735. * @param {string} id
  5736. * @param {string} [key]
  5737. * @param {*} [options] Override http request option.
  5738. * @throws {RequiredError}
  5739. */
  5740. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5741. // verify required parameter 'id' is not null or undefined
  5742. assertParamExists('getAssetById', 'id', id)
  5743. const localVarPath = `/asset/assetById/{id}`
  5744. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5745. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5746. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5747. let baseOptions;
  5748. if (configuration) {
  5749. baseOptions = configuration.baseOptions;
  5750. }
  5751. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5752. const localVarHeaderParameter = {} as any;
  5753. const localVarQueryParameter = {} as any;
  5754. // authentication cookie required
  5755. // authentication api_key required
  5756. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5757. // authentication bearer required
  5758. // http bearer authentication required
  5759. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5760. if (key !== undefined) {
  5761. localVarQueryParameter['key'] = key;
  5762. }
  5763. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5764. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5765. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5766. return {
  5767. url: toPathString(localVarUrlObj),
  5768. options: localVarRequestOptions,
  5769. };
  5770. },
  5771. /**
  5772. *
  5773. * @param {*} [options] Override http request option.
  5774. * @throws {RequiredError}
  5775. */
  5776. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5777. const localVarPath = `/asset/search-terms`;
  5778. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5779. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5780. let baseOptions;
  5781. if (configuration) {
  5782. baseOptions = configuration.baseOptions;
  5783. }
  5784. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5785. const localVarHeaderParameter = {} as any;
  5786. const localVarQueryParameter = {} as any;
  5787. // authentication cookie required
  5788. // authentication api_key required
  5789. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5790. // authentication bearer required
  5791. // http bearer authentication required
  5792. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5793. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5794. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5795. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5796. return {
  5797. url: toPathString(localVarUrlObj),
  5798. options: localVarRequestOptions,
  5799. };
  5800. },
  5801. /**
  5802. *
  5803. * @param {boolean} [isArchived]
  5804. * @param {boolean} [isFavorite]
  5805. * @param {boolean} [isTrashed]
  5806. * @param {*} [options] Override http request option.
  5807. * @throws {RequiredError}
  5808. */
  5809. getAssetStats: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5810. const localVarPath = `/asset/statistics`;
  5811. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5812. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5813. let baseOptions;
  5814. if (configuration) {
  5815. baseOptions = configuration.baseOptions;
  5816. }
  5817. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5818. const localVarHeaderParameter = {} as any;
  5819. const localVarQueryParameter = {} as any;
  5820. // authentication cookie required
  5821. // authentication api_key required
  5822. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5823. // authentication bearer required
  5824. // http bearer authentication required
  5825. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5826. if (isArchived !== undefined) {
  5827. localVarQueryParameter['isArchived'] = isArchived;
  5828. }
  5829. if (isFavorite !== undefined) {
  5830. localVarQueryParameter['isFavorite'] = isFavorite;
  5831. }
  5832. if (isTrashed !== undefined) {
  5833. localVarQueryParameter['isTrashed'] = isTrashed;
  5834. }
  5835. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5836. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5837. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5838. return {
  5839. url: toPathString(localVarUrlObj),
  5840. options: localVarRequestOptions,
  5841. };
  5842. },
  5843. /**
  5844. *
  5845. * @param {string} id
  5846. * @param {ThumbnailFormat} [format]
  5847. * @param {string} [key]
  5848. * @param {*} [options] Override http request option.
  5849. * @throws {RequiredError}
  5850. */
  5851. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5852. // verify required parameter 'id' is not null or undefined
  5853. assertParamExists('getAssetThumbnail', 'id', id)
  5854. const localVarPath = `/asset/thumbnail/{id}`
  5855. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5856. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5857. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5858. let baseOptions;
  5859. if (configuration) {
  5860. baseOptions = configuration.baseOptions;
  5861. }
  5862. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5863. const localVarHeaderParameter = {} as any;
  5864. const localVarQueryParameter = {} as any;
  5865. // authentication cookie required
  5866. // authentication api_key required
  5867. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5868. // authentication bearer required
  5869. // http bearer authentication required
  5870. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5871. if (format !== undefined) {
  5872. localVarQueryParameter['format'] = format;
  5873. }
  5874. if (key !== undefined) {
  5875. localVarQueryParameter['key'] = key;
  5876. }
  5877. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5878. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5879. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5880. return {
  5881. url: toPathString(localVarUrlObj),
  5882. options: localVarRequestOptions,
  5883. };
  5884. },
  5885. /**
  5886. *
  5887. * @param {TimeBucketSize} size
  5888. * @param {string} timeBucket
  5889. * @param {string} [userId]
  5890. * @param {string} [albumId]
  5891. * @param {string} [personId]
  5892. * @param {boolean} [isArchived]
  5893. * @param {boolean} [isFavorite]
  5894. * @param {boolean} [isTrashed]
  5895. * @param {string} [key]
  5896. * @param {*} [options] Override http request option.
  5897. * @throws {RequiredError}
  5898. */
  5899. getByTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5900. // verify required parameter 'size' is not null or undefined
  5901. assertParamExists('getByTimeBucket', 'size', size)
  5902. // verify required parameter 'timeBucket' is not null or undefined
  5903. assertParamExists('getByTimeBucket', 'timeBucket', timeBucket)
  5904. const localVarPath = `/asset/time-bucket`;
  5905. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5906. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5907. let baseOptions;
  5908. if (configuration) {
  5909. baseOptions = configuration.baseOptions;
  5910. }
  5911. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5912. const localVarHeaderParameter = {} as any;
  5913. const localVarQueryParameter = {} as any;
  5914. // authentication cookie required
  5915. // authentication api_key required
  5916. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5917. // authentication bearer required
  5918. // http bearer authentication required
  5919. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5920. if (size !== undefined) {
  5921. localVarQueryParameter['size'] = size;
  5922. }
  5923. if (userId !== undefined) {
  5924. localVarQueryParameter['userId'] = userId;
  5925. }
  5926. if (albumId !== undefined) {
  5927. localVarQueryParameter['albumId'] = albumId;
  5928. }
  5929. if (personId !== undefined) {
  5930. localVarQueryParameter['personId'] = personId;
  5931. }
  5932. if (isArchived !== undefined) {
  5933. localVarQueryParameter['isArchived'] = isArchived;
  5934. }
  5935. if (isFavorite !== undefined) {
  5936. localVarQueryParameter['isFavorite'] = isFavorite;
  5937. }
  5938. if (isTrashed !== undefined) {
  5939. localVarQueryParameter['isTrashed'] = isTrashed;
  5940. }
  5941. if (timeBucket !== undefined) {
  5942. localVarQueryParameter['timeBucket'] = timeBucket;
  5943. }
  5944. if (key !== undefined) {
  5945. localVarQueryParameter['key'] = key;
  5946. }
  5947. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5948. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5949. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5950. return {
  5951. url: toPathString(localVarUrlObj),
  5952. options: localVarRequestOptions,
  5953. };
  5954. },
  5955. /**
  5956. *
  5957. * @param {*} [options] Override http request option.
  5958. * @throws {RequiredError}
  5959. */
  5960. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5961. const localVarPath = `/asset/curated-locations`;
  5962. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5963. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5964. let baseOptions;
  5965. if (configuration) {
  5966. baseOptions = configuration.baseOptions;
  5967. }
  5968. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5969. const localVarHeaderParameter = {} as any;
  5970. const localVarQueryParameter = {} as any;
  5971. // authentication cookie required
  5972. // authentication api_key required
  5973. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5974. // authentication bearer required
  5975. // http bearer authentication required
  5976. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5977. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5978. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5979. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5980. return {
  5981. url: toPathString(localVarUrlObj),
  5982. options: localVarRequestOptions,
  5983. };
  5984. },
  5985. /**
  5986. *
  5987. * @param {*} [options] Override http request option.
  5988. * @throws {RequiredError}
  5989. */
  5990. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5991. const localVarPath = `/asset/curated-objects`;
  5992. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5993. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5994. let baseOptions;
  5995. if (configuration) {
  5996. baseOptions = configuration.baseOptions;
  5997. }
  5998. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5999. const localVarHeaderParameter = {} as any;
  6000. const localVarQueryParameter = {} as any;
  6001. // authentication cookie required
  6002. // authentication api_key required
  6003. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6004. // authentication bearer required
  6005. // http bearer authentication required
  6006. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6007. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6008. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6009. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6010. return {
  6011. url: toPathString(localVarUrlObj),
  6012. options: localVarRequestOptions,
  6013. };
  6014. },
  6015. /**
  6016. *
  6017. * @param {DownloadInfoDto} downloadInfoDto
  6018. * @param {string} [key]
  6019. * @param {*} [options] Override http request option.
  6020. * @throws {RequiredError}
  6021. */
  6022. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6023. // verify required parameter 'downloadInfoDto' is not null or undefined
  6024. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6025. const localVarPath = `/asset/download/info`;
  6026. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6027. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6028. let baseOptions;
  6029. if (configuration) {
  6030. baseOptions = configuration.baseOptions;
  6031. }
  6032. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6033. const localVarHeaderParameter = {} as any;
  6034. const localVarQueryParameter = {} as any;
  6035. // authentication cookie required
  6036. // authentication api_key required
  6037. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6038. // authentication bearer required
  6039. // http bearer authentication required
  6040. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6041. if (key !== undefined) {
  6042. localVarQueryParameter['key'] = key;
  6043. }
  6044. localVarHeaderParameter['Content-Type'] = 'application/json';
  6045. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6046. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6047. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6048. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6049. return {
  6050. url: toPathString(localVarUrlObj),
  6051. options: localVarRequestOptions,
  6052. };
  6053. },
  6054. /**
  6055. *
  6056. * @param {boolean} [isArchived]
  6057. * @param {boolean} [isFavorite]
  6058. * @param {string} [fileCreatedAfter]
  6059. * @param {string} [fileCreatedBefore]
  6060. * @param {*} [options] Override http request option.
  6061. * @throws {RequiredError}
  6062. */
  6063. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6064. const localVarPath = `/asset/map-marker`;
  6065. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6066. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6067. let baseOptions;
  6068. if (configuration) {
  6069. baseOptions = configuration.baseOptions;
  6070. }
  6071. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6072. const localVarHeaderParameter = {} as any;
  6073. const localVarQueryParameter = {} as any;
  6074. // authentication cookie required
  6075. // authentication api_key required
  6076. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6077. // authentication bearer required
  6078. // http bearer authentication required
  6079. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6080. if (isArchived !== undefined) {
  6081. localVarQueryParameter['isArchived'] = isArchived;
  6082. }
  6083. if (isFavorite !== undefined) {
  6084. localVarQueryParameter['isFavorite'] = isFavorite;
  6085. }
  6086. if (fileCreatedAfter !== undefined) {
  6087. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6088. (fileCreatedAfter as any).toISOString() :
  6089. fileCreatedAfter;
  6090. }
  6091. if (fileCreatedBefore !== undefined) {
  6092. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6093. (fileCreatedBefore as any).toISOString() :
  6094. fileCreatedBefore;
  6095. }
  6096. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6097. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6098. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6099. return {
  6100. url: toPathString(localVarUrlObj),
  6101. options: localVarRequestOptions,
  6102. };
  6103. },
  6104. /**
  6105. *
  6106. * @param {number} day
  6107. * @param {number} month
  6108. * @param {*} [options] Override http request option.
  6109. * @throws {RequiredError}
  6110. */
  6111. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6112. // verify required parameter 'day' is not null or undefined
  6113. assertParamExists('getMemoryLane', 'day', day)
  6114. // verify required parameter 'month' is not null or undefined
  6115. assertParamExists('getMemoryLane', 'month', month)
  6116. const localVarPath = `/asset/memory-lane`;
  6117. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6118. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6119. let baseOptions;
  6120. if (configuration) {
  6121. baseOptions = configuration.baseOptions;
  6122. }
  6123. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6124. const localVarHeaderParameter = {} as any;
  6125. const localVarQueryParameter = {} as any;
  6126. // authentication cookie required
  6127. // authentication api_key required
  6128. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6129. // authentication bearer required
  6130. // http bearer authentication required
  6131. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6132. if (day !== undefined) {
  6133. localVarQueryParameter['day'] = day;
  6134. }
  6135. if (month !== undefined) {
  6136. localVarQueryParameter['month'] = month;
  6137. }
  6138. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6139. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6140. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6141. return {
  6142. url: toPathString(localVarUrlObj),
  6143. options: localVarRequestOptions,
  6144. };
  6145. },
  6146. /**
  6147. *
  6148. * @param {number} [count]
  6149. * @param {*} [options] Override http request option.
  6150. * @throws {RequiredError}
  6151. */
  6152. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6153. const localVarPath = `/asset/random`;
  6154. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6155. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6156. let baseOptions;
  6157. if (configuration) {
  6158. baseOptions = configuration.baseOptions;
  6159. }
  6160. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6161. const localVarHeaderParameter = {} as any;
  6162. const localVarQueryParameter = {} as any;
  6163. // authentication cookie required
  6164. // authentication api_key required
  6165. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6166. // authentication bearer required
  6167. // http bearer authentication required
  6168. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6169. if (count !== undefined) {
  6170. localVarQueryParameter['count'] = count;
  6171. }
  6172. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6173. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6174. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6175. return {
  6176. url: toPathString(localVarUrlObj),
  6177. options: localVarRequestOptions,
  6178. };
  6179. },
  6180. /**
  6181. *
  6182. * @param {TimeBucketSize} size
  6183. * @param {string} [userId]
  6184. * @param {string} [albumId]
  6185. * @param {string} [personId]
  6186. * @param {boolean} [isArchived]
  6187. * @param {boolean} [isFavorite]
  6188. * @param {boolean} [isTrashed]
  6189. * @param {string} [key]
  6190. * @param {*} [options] Override http request option.
  6191. * @throws {RequiredError}
  6192. */
  6193. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6194. // verify required parameter 'size' is not null or undefined
  6195. assertParamExists('getTimeBuckets', 'size', size)
  6196. const localVarPath = `/asset/time-buckets`;
  6197. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6198. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6199. let baseOptions;
  6200. if (configuration) {
  6201. baseOptions = configuration.baseOptions;
  6202. }
  6203. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6204. const localVarHeaderParameter = {} as any;
  6205. const localVarQueryParameter = {} as any;
  6206. // authentication cookie required
  6207. // authentication api_key required
  6208. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6209. // authentication bearer required
  6210. // http bearer authentication required
  6211. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6212. if (size !== undefined) {
  6213. localVarQueryParameter['size'] = size;
  6214. }
  6215. if (userId !== undefined) {
  6216. localVarQueryParameter['userId'] = userId;
  6217. }
  6218. if (albumId !== undefined) {
  6219. localVarQueryParameter['albumId'] = albumId;
  6220. }
  6221. if (personId !== undefined) {
  6222. localVarQueryParameter['personId'] = personId;
  6223. }
  6224. if (isArchived !== undefined) {
  6225. localVarQueryParameter['isArchived'] = isArchived;
  6226. }
  6227. if (isFavorite !== undefined) {
  6228. localVarQueryParameter['isFavorite'] = isFavorite;
  6229. }
  6230. if (isTrashed !== undefined) {
  6231. localVarQueryParameter['isTrashed'] = isTrashed;
  6232. }
  6233. if (key !== undefined) {
  6234. localVarQueryParameter['key'] = key;
  6235. }
  6236. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6237. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6238. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6239. return {
  6240. url: toPathString(localVarUrlObj),
  6241. options: localVarRequestOptions,
  6242. };
  6243. },
  6244. /**
  6245. * Get all asset of a device that are in the database, ID only.
  6246. * @param {string} deviceId
  6247. * @param {*} [options] Override http request option.
  6248. * @throws {RequiredError}
  6249. */
  6250. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6251. // verify required parameter 'deviceId' is not null or undefined
  6252. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6253. const localVarPath = `/asset/{deviceId}`
  6254. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6255. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6256. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6257. let baseOptions;
  6258. if (configuration) {
  6259. baseOptions = configuration.baseOptions;
  6260. }
  6261. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6262. const localVarHeaderParameter = {} as any;
  6263. const localVarQueryParameter = {} as any;
  6264. // authentication cookie required
  6265. // authentication api_key required
  6266. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6267. // authentication bearer required
  6268. // http bearer authentication required
  6269. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6270. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6271. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6272. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6273. return {
  6274. url: toPathString(localVarUrlObj),
  6275. options: localVarRequestOptions,
  6276. };
  6277. },
  6278. /**
  6279. *
  6280. * @param {ImportAssetDto} importAssetDto
  6281. * @param {*} [options] Override http request option.
  6282. * @throws {RequiredError}
  6283. */
  6284. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6285. // verify required parameter 'importAssetDto' is not null or undefined
  6286. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  6287. const localVarPath = `/asset/import`;
  6288. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6289. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6290. let baseOptions;
  6291. if (configuration) {
  6292. baseOptions = configuration.baseOptions;
  6293. }
  6294. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6295. const localVarHeaderParameter = {} as any;
  6296. const localVarQueryParameter = {} as any;
  6297. // authentication cookie required
  6298. // authentication api_key required
  6299. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6300. // authentication bearer required
  6301. // http bearer authentication required
  6302. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6303. localVarHeaderParameter['Content-Type'] = 'application/json';
  6304. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6305. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6306. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6307. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  6308. return {
  6309. url: toPathString(localVarUrlObj),
  6310. options: localVarRequestOptions,
  6311. };
  6312. },
  6313. /**
  6314. *
  6315. * @param {BulkIdsDto} bulkIdsDto
  6316. * @param {*} [options] Override http request option.
  6317. * @throws {RequiredError}
  6318. */
  6319. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6320. // verify required parameter 'bulkIdsDto' is not null or undefined
  6321. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6322. const localVarPath = `/asset/restore`;
  6323. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6324. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6325. let baseOptions;
  6326. if (configuration) {
  6327. baseOptions = configuration.baseOptions;
  6328. }
  6329. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6330. const localVarHeaderParameter = {} as any;
  6331. const localVarQueryParameter = {} as any;
  6332. // authentication cookie required
  6333. // authentication api_key required
  6334. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6335. // authentication bearer required
  6336. // http bearer authentication required
  6337. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6338. localVarHeaderParameter['Content-Type'] = 'application/json';
  6339. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6340. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6341. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6342. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6343. return {
  6344. url: toPathString(localVarUrlObj),
  6345. options: localVarRequestOptions,
  6346. };
  6347. },
  6348. /**
  6349. *
  6350. * @param {*} [options] Override http request option.
  6351. * @throws {RequiredError}
  6352. */
  6353. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6354. const localVarPath = `/asset/trash/restore`;
  6355. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6356. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6357. let baseOptions;
  6358. if (configuration) {
  6359. baseOptions = configuration.baseOptions;
  6360. }
  6361. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6362. const localVarHeaderParameter = {} as any;
  6363. const localVarQueryParameter = {} as any;
  6364. // authentication cookie required
  6365. // authentication api_key required
  6366. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6367. // authentication bearer required
  6368. // http bearer authentication required
  6369. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6370. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6371. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6372. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6373. return {
  6374. url: toPathString(localVarUrlObj),
  6375. options: localVarRequestOptions,
  6376. };
  6377. },
  6378. /**
  6379. *
  6380. * @param {AssetJobsDto} assetJobsDto
  6381. * @param {*} [options] Override http request option.
  6382. * @throws {RequiredError}
  6383. */
  6384. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6385. // verify required parameter 'assetJobsDto' is not null or undefined
  6386. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  6387. const localVarPath = `/asset/jobs`;
  6388. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6389. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6390. let baseOptions;
  6391. if (configuration) {
  6392. baseOptions = configuration.baseOptions;
  6393. }
  6394. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6395. const localVarHeaderParameter = {} as any;
  6396. const localVarQueryParameter = {} as any;
  6397. // authentication cookie required
  6398. // authentication api_key required
  6399. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6400. // authentication bearer required
  6401. // http bearer authentication required
  6402. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6403. localVarHeaderParameter['Content-Type'] = 'application/json';
  6404. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6405. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6406. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6407. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  6408. return {
  6409. url: toPathString(localVarUrlObj),
  6410. options: localVarRequestOptions,
  6411. };
  6412. },
  6413. /**
  6414. *
  6415. * @param {SearchAssetDto} searchAssetDto
  6416. * @param {*} [options] Override http request option.
  6417. * @throws {RequiredError}
  6418. */
  6419. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6420. // verify required parameter 'searchAssetDto' is not null or undefined
  6421. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  6422. const localVarPath = `/asset/search`;
  6423. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6424. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6425. let baseOptions;
  6426. if (configuration) {
  6427. baseOptions = configuration.baseOptions;
  6428. }
  6429. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6430. const localVarHeaderParameter = {} as any;
  6431. const localVarQueryParameter = {} as any;
  6432. // authentication cookie required
  6433. // authentication api_key required
  6434. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6435. // authentication bearer required
  6436. // http bearer authentication required
  6437. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6438. localVarHeaderParameter['Content-Type'] = 'application/json';
  6439. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6440. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6441. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6442. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  6443. return {
  6444. url: toPathString(localVarUrlObj),
  6445. options: localVarRequestOptions,
  6446. };
  6447. },
  6448. /**
  6449. *
  6450. * @param {string} id
  6451. * @param {boolean} [isThumb]
  6452. * @param {boolean} [isWeb]
  6453. * @param {string} [key]
  6454. * @param {*} [options] Override http request option.
  6455. * @throws {RequiredError}
  6456. */
  6457. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6458. // verify required parameter 'id' is not null or undefined
  6459. assertParamExists('serveFile', 'id', id)
  6460. const localVarPath = `/asset/file/{id}`
  6461. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6462. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6463. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6464. let baseOptions;
  6465. if (configuration) {
  6466. baseOptions = configuration.baseOptions;
  6467. }
  6468. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6469. const localVarHeaderParameter = {} as any;
  6470. const localVarQueryParameter = {} as any;
  6471. // authentication cookie required
  6472. // authentication api_key required
  6473. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6474. // authentication bearer required
  6475. // http bearer authentication required
  6476. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6477. if (isThumb !== undefined) {
  6478. localVarQueryParameter['isThumb'] = isThumb;
  6479. }
  6480. if (isWeb !== undefined) {
  6481. localVarQueryParameter['isWeb'] = isWeb;
  6482. }
  6483. if (key !== undefined) {
  6484. localVarQueryParameter['key'] = key;
  6485. }
  6486. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6487. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6488. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6489. return {
  6490. url: toPathString(localVarUrlObj),
  6491. options: localVarRequestOptions,
  6492. };
  6493. },
  6494. /**
  6495. *
  6496. * @param {string} id
  6497. * @param {UpdateAssetDto} updateAssetDto
  6498. * @param {*} [options] Override http request option.
  6499. * @throws {RequiredError}
  6500. */
  6501. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6502. // verify required parameter 'id' is not null or undefined
  6503. assertParamExists('updateAsset', 'id', id)
  6504. // verify required parameter 'updateAssetDto' is not null or undefined
  6505. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  6506. const localVarPath = `/asset/{id}`
  6507. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6508. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6509. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6510. let baseOptions;
  6511. if (configuration) {
  6512. baseOptions = configuration.baseOptions;
  6513. }
  6514. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6515. const localVarHeaderParameter = {} as any;
  6516. const localVarQueryParameter = {} as any;
  6517. // authentication cookie required
  6518. // authentication api_key required
  6519. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6520. // authentication bearer required
  6521. // http bearer authentication required
  6522. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6523. localVarHeaderParameter['Content-Type'] = 'application/json';
  6524. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6525. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6526. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6527. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  6528. return {
  6529. url: toPathString(localVarUrlObj),
  6530. options: localVarRequestOptions,
  6531. };
  6532. },
  6533. /**
  6534. *
  6535. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  6536. * @param {*} [options] Override http request option.
  6537. * @throws {RequiredError}
  6538. */
  6539. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6540. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  6541. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  6542. const localVarPath = `/asset`;
  6543. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6544. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6545. let baseOptions;
  6546. if (configuration) {
  6547. baseOptions = configuration.baseOptions;
  6548. }
  6549. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6550. const localVarHeaderParameter = {} as any;
  6551. const localVarQueryParameter = {} as any;
  6552. // authentication cookie required
  6553. // authentication api_key required
  6554. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6555. // authentication bearer required
  6556. // http bearer authentication required
  6557. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6558. localVarHeaderParameter['Content-Type'] = 'application/json';
  6559. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6560. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6561. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6562. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  6563. return {
  6564. url: toPathString(localVarUrlObj),
  6565. options: localVarRequestOptions,
  6566. };
  6567. },
  6568. /**
  6569. *
  6570. * @param {UpdateStackParentDto} updateStackParentDto
  6571. * @param {*} [options] Override http request option.
  6572. * @throws {RequiredError}
  6573. */
  6574. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6575. // verify required parameter 'updateStackParentDto' is not null or undefined
  6576. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  6577. const localVarPath = `/asset/stack/parent`;
  6578. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6579. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6580. let baseOptions;
  6581. if (configuration) {
  6582. baseOptions = configuration.baseOptions;
  6583. }
  6584. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6585. const localVarHeaderParameter = {} as any;
  6586. const localVarQueryParameter = {} as any;
  6587. // authentication cookie required
  6588. // authentication api_key required
  6589. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6590. // authentication bearer required
  6591. // http bearer authentication required
  6592. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6593. localVarHeaderParameter['Content-Type'] = 'application/json';
  6594. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6595. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6596. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6597. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  6598. return {
  6599. url: toPathString(localVarUrlObj),
  6600. options: localVarRequestOptions,
  6601. };
  6602. },
  6603. /**
  6604. *
  6605. * @param {File} assetData
  6606. * @param {string} deviceAssetId
  6607. * @param {string} deviceId
  6608. * @param {string} fileCreatedAt
  6609. * @param {string} fileModifiedAt
  6610. * @param {boolean} isFavorite
  6611. * @param {string} [key]
  6612. * @param {string} [duration]
  6613. * @param {boolean} [isArchived]
  6614. * @param {boolean} [isExternal]
  6615. * @param {boolean} [isOffline]
  6616. * @param {boolean} [isReadOnly]
  6617. * @param {boolean} [isVisible]
  6618. * @param {string} [libraryId]
  6619. * @param {File} [livePhotoData]
  6620. * @param {File} [sidecarData]
  6621. * @param {*} [options] Override http request option.
  6622. * @throws {RequiredError}
  6623. */
  6624. uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6625. // verify required parameter 'assetData' is not null or undefined
  6626. assertParamExists('uploadFile', 'assetData', assetData)
  6627. // verify required parameter 'deviceAssetId' is not null or undefined
  6628. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  6629. // verify required parameter 'deviceId' is not null or undefined
  6630. assertParamExists('uploadFile', 'deviceId', deviceId)
  6631. // verify required parameter 'fileCreatedAt' is not null or undefined
  6632. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  6633. // verify required parameter 'fileModifiedAt' is not null or undefined
  6634. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  6635. // verify required parameter 'isFavorite' is not null or undefined
  6636. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  6637. const localVarPath = `/asset/upload`;
  6638. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6639. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6640. let baseOptions;
  6641. if (configuration) {
  6642. baseOptions = configuration.baseOptions;
  6643. }
  6644. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6645. const localVarHeaderParameter = {} as any;
  6646. const localVarQueryParameter = {} as any;
  6647. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  6648. // authentication cookie required
  6649. // authentication api_key required
  6650. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6651. // authentication bearer required
  6652. // http bearer authentication required
  6653. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6654. if (key !== undefined) {
  6655. localVarQueryParameter['key'] = key;
  6656. }
  6657. if (assetData !== undefined) {
  6658. localVarFormParams.append('assetData', assetData as any);
  6659. }
  6660. if (deviceAssetId !== undefined) {
  6661. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  6662. }
  6663. if (deviceId !== undefined) {
  6664. localVarFormParams.append('deviceId', deviceId as any);
  6665. }
  6666. if (duration !== undefined) {
  6667. localVarFormParams.append('duration', duration as any);
  6668. }
  6669. if (fileCreatedAt !== undefined) {
  6670. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  6671. }
  6672. if (fileModifiedAt !== undefined) {
  6673. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  6674. }
  6675. if (isArchived !== undefined) {
  6676. localVarFormParams.append('isArchived', isArchived as any);
  6677. }
  6678. if (isExternal !== undefined) {
  6679. localVarFormParams.append('isExternal', isExternal as any);
  6680. }
  6681. if (isFavorite !== undefined) {
  6682. localVarFormParams.append('isFavorite', isFavorite as any);
  6683. }
  6684. if (isOffline !== undefined) {
  6685. localVarFormParams.append('isOffline', isOffline as any);
  6686. }
  6687. if (isReadOnly !== undefined) {
  6688. localVarFormParams.append('isReadOnly', isReadOnly as any);
  6689. }
  6690. if (isVisible !== undefined) {
  6691. localVarFormParams.append('isVisible', isVisible as any);
  6692. }
  6693. if (libraryId !== undefined) {
  6694. localVarFormParams.append('libraryId', libraryId as any);
  6695. }
  6696. if (livePhotoData !== undefined) {
  6697. localVarFormParams.append('livePhotoData', livePhotoData as any);
  6698. }
  6699. if (sidecarData !== undefined) {
  6700. localVarFormParams.append('sidecarData', sidecarData as any);
  6701. }
  6702. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  6703. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6704. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6705. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6706. localVarRequestOptions.data = localVarFormParams;
  6707. return {
  6708. url: toPathString(localVarUrlObj),
  6709. options: localVarRequestOptions,
  6710. };
  6711. },
  6712. }
  6713. };
  6714. /**
  6715. * AssetApi - functional programming interface
  6716. * @export
  6717. */
  6718. export const AssetApiFp = function(configuration?: Configuration) {
  6719. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  6720. return {
  6721. /**
  6722. * Checks if assets exist by checksums
  6723. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6724. * @param {*} [options] Override http request option.
  6725. * @throws {RequiredError}
  6726. */
  6727. async bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  6728. const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUploadCheck(assetBulkUploadCheckDto, options);
  6729. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6730. },
  6731. /**
  6732. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6733. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6734. * @param {*} [options] Override http request option.
  6735. * @throws {RequiredError}
  6736. */
  6737. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  6738. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  6739. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6740. },
  6741. /**
  6742. *
  6743. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6744. * @param {*} [options] Override http request option.
  6745. * @throws {RequiredError}
  6746. */
  6747. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6748. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  6749. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6750. },
  6751. /**
  6752. *
  6753. * @param {AssetIdsDto} assetIdsDto
  6754. * @param {string} [key]
  6755. * @param {*} [options] Override http request option.
  6756. * @throws {RequiredError}
  6757. */
  6758. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6759. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  6760. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6761. },
  6762. /**
  6763. *
  6764. * @param {string} id
  6765. * @param {string} [key]
  6766. * @param {*} [options] Override http request option.
  6767. * @throws {RequiredError}
  6768. */
  6769. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6770. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  6771. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6772. },
  6773. /**
  6774. *
  6775. * @param {*} [options] Override http request option.
  6776. * @throws {RequiredError}
  6777. */
  6778. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6779. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  6780. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6781. },
  6782. /**
  6783. * Get all AssetEntity belong to the user
  6784. * @param {string} [userId]
  6785. * @param {boolean} [isFavorite]
  6786. * @param {boolean} [isArchived]
  6787. * @param {number} [skip]
  6788. * @param {string} [updatedAfter]
  6789. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6790. * @param {*} [options] Override http request option.
  6791. * @throws {RequiredError}
  6792. */
  6793. async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6794. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
  6795. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6796. },
  6797. /**
  6798. * Get a single asset\'s information
  6799. * @param {string} id
  6800. * @param {string} [key]
  6801. * @param {*} [options] Override http request option.
  6802. * @throws {RequiredError}
  6803. */
  6804. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  6805. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  6806. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6807. },
  6808. /**
  6809. *
  6810. * @param {*} [options] Override http request option.
  6811. * @throws {RequiredError}
  6812. */
  6813. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6814. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  6815. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6816. },
  6817. /**
  6818. *
  6819. * @param {boolean} [isArchived]
  6820. * @param {boolean} [isFavorite]
  6821. * @param {boolean} [isTrashed]
  6822. * @param {*} [options] Override http request option.
  6823. * @throws {RequiredError}
  6824. */
  6825. async getAssetStats(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  6826. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStats(isArchived, isFavorite, isTrashed, options);
  6827. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6828. },
  6829. /**
  6830. *
  6831. * @param {string} id
  6832. * @param {ThumbnailFormat} [format]
  6833. * @param {string} [key]
  6834. * @param {*} [options] Override http request option.
  6835. * @throws {RequiredError}
  6836. */
  6837. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6838. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  6839. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6840. },
  6841. /**
  6842. *
  6843. * @param {TimeBucketSize} size
  6844. * @param {string} timeBucket
  6845. * @param {string} [userId]
  6846. * @param {string} [albumId]
  6847. * @param {string} [personId]
  6848. * @param {boolean} [isArchived]
  6849. * @param {boolean} [isFavorite]
  6850. * @param {boolean} [isTrashed]
  6851. * @param {string} [key]
  6852. * @param {*} [options] Override http request option.
  6853. * @throws {RequiredError}
  6854. */
  6855. async getByTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6856. const localVarAxiosArgs = await localVarAxiosParamCreator.getByTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, key, options);
  6857. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6858. },
  6859. /**
  6860. *
  6861. * @param {*} [options] Override http request option.
  6862. * @throws {RequiredError}
  6863. */
  6864. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  6865. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  6866. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6867. },
  6868. /**
  6869. *
  6870. * @param {*} [options] Override http request option.
  6871. * @throws {RequiredError}
  6872. */
  6873. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  6874. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  6875. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6876. },
  6877. /**
  6878. *
  6879. * @param {DownloadInfoDto} downloadInfoDto
  6880. * @param {string} [key]
  6881. * @param {*} [options] Override http request option.
  6882. * @throws {RequiredError}
  6883. */
  6884. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  6885. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  6886. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6887. },
  6888. /**
  6889. *
  6890. * @param {boolean} [isArchived]
  6891. * @param {boolean} [isFavorite]
  6892. * @param {string} [fileCreatedAfter]
  6893. * @param {string} [fileCreatedBefore]
  6894. * @param {*} [options] Override http request option.
  6895. * @throws {RequiredError}
  6896. */
  6897. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  6898. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  6899. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6900. },
  6901. /**
  6902. *
  6903. * @param {number} day
  6904. * @param {number} month
  6905. * @param {*} [options] Override http request option.
  6906. * @throws {RequiredError}
  6907. */
  6908. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  6909. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  6910. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6911. },
  6912. /**
  6913. *
  6914. * @param {number} [count]
  6915. * @param {*} [options] Override http request option.
  6916. * @throws {RequiredError}
  6917. */
  6918. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6919. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  6920. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6921. },
  6922. /**
  6923. *
  6924. * @param {TimeBucketSize} size
  6925. * @param {string} [userId]
  6926. * @param {string} [albumId]
  6927. * @param {string} [personId]
  6928. * @param {boolean} [isArchived]
  6929. * @param {boolean} [isFavorite]
  6930. * @param {boolean} [isTrashed]
  6931. * @param {string} [key]
  6932. * @param {*} [options] Override http request option.
  6933. * @throws {RequiredError}
  6934. */
  6935. async getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
  6936. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, key, options);
  6937. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6938. },
  6939. /**
  6940. * Get all asset of a device that are in the database, ID only.
  6941. * @param {string} deviceId
  6942. * @param {*} [options] Override http request option.
  6943. * @throws {RequiredError}
  6944. */
  6945. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6946. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  6947. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6948. },
  6949. /**
  6950. *
  6951. * @param {ImportAssetDto} importAssetDto
  6952. * @param {*} [options] Override http request option.
  6953. * @throws {RequiredError}
  6954. */
  6955. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  6956. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  6957. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6958. },
  6959. /**
  6960. *
  6961. * @param {BulkIdsDto} bulkIdsDto
  6962. * @param {*} [options] Override http request option.
  6963. * @throws {RequiredError}
  6964. */
  6965. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6966. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  6967. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6968. },
  6969. /**
  6970. *
  6971. * @param {*} [options] Override http request option.
  6972. * @throws {RequiredError}
  6973. */
  6974. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6975. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  6976. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6977. },
  6978. /**
  6979. *
  6980. * @param {AssetJobsDto} assetJobsDto
  6981. * @param {*} [options] Override http request option.
  6982. * @throws {RequiredError}
  6983. */
  6984. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6985. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  6986. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6987. },
  6988. /**
  6989. *
  6990. * @param {SearchAssetDto} searchAssetDto
  6991. * @param {*} [options] Override http request option.
  6992. * @throws {RequiredError}
  6993. */
  6994. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6995. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  6996. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6997. },
  6998. /**
  6999. *
  7000. * @param {string} id
  7001. * @param {boolean} [isThumb]
  7002. * @param {boolean} [isWeb]
  7003. * @param {string} [key]
  7004. * @param {*} [options] Override http request option.
  7005. * @throws {RequiredError}
  7006. */
  7007. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7008. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7009. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7010. },
  7011. /**
  7012. *
  7013. * @param {string} id
  7014. * @param {UpdateAssetDto} updateAssetDto
  7015. * @param {*} [options] Override http request option.
  7016. * @throws {RequiredError}
  7017. */
  7018. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7019. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7020. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7021. },
  7022. /**
  7023. *
  7024. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7025. * @param {*} [options] Override http request option.
  7026. * @throws {RequiredError}
  7027. */
  7028. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7029. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7030. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7031. },
  7032. /**
  7033. *
  7034. * @param {UpdateStackParentDto} updateStackParentDto
  7035. * @param {*} [options] Override http request option.
  7036. * @throws {RequiredError}
  7037. */
  7038. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7039. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7040. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7041. },
  7042. /**
  7043. *
  7044. * @param {File} assetData
  7045. * @param {string} deviceAssetId
  7046. * @param {string} deviceId
  7047. * @param {string} fileCreatedAt
  7048. * @param {string} fileModifiedAt
  7049. * @param {boolean} isFavorite
  7050. * @param {string} [key]
  7051. * @param {string} [duration]
  7052. * @param {boolean} [isArchived]
  7053. * @param {boolean} [isExternal]
  7054. * @param {boolean} [isOffline]
  7055. * @param {boolean} [isReadOnly]
  7056. * @param {boolean} [isVisible]
  7057. * @param {string} [libraryId]
  7058. * @param {File} [livePhotoData]
  7059. * @param {File} [sidecarData]
  7060. * @param {*} [options] Override http request option.
  7061. * @throws {RequiredError}
  7062. */
  7063. async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7064. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isExternal, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7065. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7066. },
  7067. }
  7068. };
  7069. /**
  7070. * AssetApi - factory interface
  7071. * @export
  7072. */
  7073. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7074. const localVarFp = AssetApiFp(configuration)
  7075. return {
  7076. /**
  7077. * Checks if assets exist by checksums
  7078. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  7079. * @param {*} [options] Override http request option.
  7080. * @throws {RequiredError}
  7081. */
  7082. bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7083. return localVarFp.bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7084. },
  7085. /**
  7086. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7087. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7088. * @param {*} [options] Override http request option.
  7089. * @throws {RequiredError}
  7090. */
  7091. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7092. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7093. },
  7094. /**
  7095. *
  7096. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7097. * @param {*} [options] Override http request option.
  7098. * @throws {RequiredError}
  7099. */
  7100. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7101. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7102. },
  7103. /**
  7104. *
  7105. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7106. * @param {*} [options] Override http request option.
  7107. * @throws {RequiredError}
  7108. */
  7109. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7110. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7111. },
  7112. /**
  7113. *
  7114. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7115. * @param {*} [options] Override http request option.
  7116. * @throws {RequiredError}
  7117. */
  7118. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7119. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7120. },
  7121. /**
  7122. *
  7123. * @param {*} [options] Override http request option.
  7124. * @throws {RequiredError}
  7125. */
  7126. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7127. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7128. },
  7129. /**
  7130. * Get all AssetEntity belong to the user
  7131. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7132. * @param {*} [options] Override http request option.
  7133. * @throws {RequiredError}
  7134. */
  7135. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7136. return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7137. },
  7138. /**
  7139. * Get a single asset\'s information
  7140. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7141. * @param {*} [options] Override http request option.
  7142. * @throws {RequiredError}
  7143. */
  7144. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7145. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7146. },
  7147. /**
  7148. *
  7149. * @param {*} [options] Override http request option.
  7150. * @throws {RequiredError}
  7151. */
  7152. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7153. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7154. },
  7155. /**
  7156. *
  7157. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  7158. * @param {*} [options] Override http request option.
  7159. * @throws {RequiredError}
  7160. */
  7161. getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7162. return localVarFp.getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7163. },
  7164. /**
  7165. *
  7166. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7167. * @param {*} [options] Override http request option.
  7168. * @throws {RequiredError}
  7169. */
  7170. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7171. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7172. },
  7173. /**
  7174. *
  7175. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  7176. * @param {*} [options] Override http request option.
  7177. * @throws {RequiredError}
  7178. */
  7179. getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7180. return localVarFp.getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(axios, basePath));
  7181. },
  7182. /**
  7183. *
  7184. * @param {*} [options] Override http request option.
  7185. * @throws {RequiredError}
  7186. */
  7187. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7188. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7189. },
  7190. /**
  7191. *
  7192. * @param {*} [options] Override http request option.
  7193. * @throws {RequiredError}
  7194. */
  7195. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7196. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7197. },
  7198. /**
  7199. *
  7200. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7201. * @param {*} [options] Override http request option.
  7202. * @throws {RequiredError}
  7203. */
  7204. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7205. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7206. },
  7207. /**
  7208. *
  7209. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7210. * @param {*} [options] Override http request option.
  7211. * @throws {RequiredError}
  7212. */
  7213. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7214. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7215. },
  7216. /**
  7217. *
  7218. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7219. * @param {*} [options] Override http request option.
  7220. * @throws {RequiredError}
  7221. */
  7222. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7223. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7224. },
  7225. /**
  7226. *
  7227. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7228. * @param {*} [options] Override http request option.
  7229. * @throws {RequiredError}
  7230. */
  7231. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7232. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7233. },
  7234. /**
  7235. *
  7236. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7237. * @param {*} [options] Override http request option.
  7238. * @throws {RequiredError}
  7239. */
  7240. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7241. return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(axios, basePath));
  7242. },
  7243. /**
  7244. * Get all asset of a device that are in the database, ID only.
  7245. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7246. * @param {*} [options] Override http request option.
  7247. * @throws {RequiredError}
  7248. */
  7249. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7250. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7251. },
  7252. /**
  7253. *
  7254. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7255. * @param {*} [options] Override http request option.
  7256. * @throws {RequiredError}
  7257. */
  7258. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7259. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7260. },
  7261. /**
  7262. *
  7263. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7264. * @param {*} [options] Override http request option.
  7265. * @throws {RequiredError}
  7266. */
  7267. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7268. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7269. },
  7270. /**
  7271. *
  7272. * @param {*} [options] Override http request option.
  7273. * @throws {RequiredError}
  7274. */
  7275. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7276. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  7277. },
  7278. /**
  7279. *
  7280. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  7281. * @param {*} [options] Override http request option.
  7282. * @throws {RequiredError}
  7283. */
  7284. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7285. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  7286. },
  7287. /**
  7288. *
  7289. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  7290. * @param {*} [options] Override http request option.
  7291. * @throws {RequiredError}
  7292. */
  7293. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7294. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  7295. },
  7296. /**
  7297. *
  7298. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  7299. * @param {*} [options] Override http request option.
  7300. * @throws {RequiredError}
  7301. */
  7302. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7303. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  7304. },
  7305. /**
  7306. *
  7307. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  7308. * @param {*} [options] Override http request option.
  7309. * @throws {RequiredError}
  7310. */
  7311. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7312. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  7313. },
  7314. /**
  7315. *
  7316. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  7317. * @param {*} [options] Override http request option.
  7318. * @throws {RequiredError}
  7319. */
  7320. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7321. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  7322. },
  7323. /**
  7324. *
  7325. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  7326. * @param {*} [options] Override http request option.
  7327. * @throws {RequiredError}
  7328. */
  7329. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7330. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  7331. },
  7332. /**
  7333. *
  7334. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  7335. * @param {*} [options] Override http request option.
  7336. * @throws {RequiredError}
  7337. */
  7338. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7339. return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
  7340. },
  7341. };
  7342. };
  7343. /**
  7344. * Request parameters for bulkUploadCheck operation in AssetApi.
  7345. * @export
  7346. * @interface AssetApiBulkUploadCheckRequest
  7347. */
  7348. export interface AssetApiBulkUploadCheckRequest {
  7349. /**
  7350. *
  7351. * @type {AssetBulkUploadCheckDto}
  7352. * @memberof AssetApiBulkUploadCheck
  7353. */
  7354. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  7355. }
  7356. /**
  7357. * Request parameters for checkExistingAssets operation in AssetApi.
  7358. * @export
  7359. * @interface AssetApiCheckExistingAssetsRequest
  7360. */
  7361. export interface AssetApiCheckExistingAssetsRequest {
  7362. /**
  7363. *
  7364. * @type {CheckExistingAssetsDto}
  7365. * @memberof AssetApiCheckExistingAssets
  7366. */
  7367. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  7368. }
  7369. /**
  7370. * Request parameters for deleteAssets operation in AssetApi.
  7371. * @export
  7372. * @interface AssetApiDeleteAssetsRequest
  7373. */
  7374. export interface AssetApiDeleteAssetsRequest {
  7375. /**
  7376. *
  7377. * @type {AssetBulkDeleteDto}
  7378. * @memberof AssetApiDeleteAssets
  7379. */
  7380. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  7381. }
  7382. /**
  7383. * Request parameters for downloadArchive operation in AssetApi.
  7384. * @export
  7385. * @interface AssetApiDownloadArchiveRequest
  7386. */
  7387. export interface AssetApiDownloadArchiveRequest {
  7388. /**
  7389. *
  7390. * @type {AssetIdsDto}
  7391. * @memberof AssetApiDownloadArchive
  7392. */
  7393. readonly assetIdsDto: AssetIdsDto
  7394. /**
  7395. *
  7396. * @type {string}
  7397. * @memberof AssetApiDownloadArchive
  7398. */
  7399. readonly key?: string
  7400. }
  7401. /**
  7402. * Request parameters for downloadFile operation in AssetApi.
  7403. * @export
  7404. * @interface AssetApiDownloadFileRequest
  7405. */
  7406. export interface AssetApiDownloadFileRequest {
  7407. /**
  7408. *
  7409. * @type {string}
  7410. * @memberof AssetApiDownloadFile
  7411. */
  7412. readonly id: string
  7413. /**
  7414. *
  7415. * @type {string}
  7416. * @memberof AssetApiDownloadFile
  7417. */
  7418. readonly key?: string
  7419. }
  7420. /**
  7421. * Request parameters for getAllAssets operation in AssetApi.
  7422. * @export
  7423. * @interface AssetApiGetAllAssetsRequest
  7424. */
  7425. export interface AssetApiGetAllAssetsRequest {
  7426. /**
  7427. *
  7428. * @type {string}
  7429. * @memberof AssetApiGetAllAssets
  7430. */
  7431. readonly userId?: string
  7432. /**
  7433. *
  7434. * @type {boolean}
  7435. * @memberof AssetApiGetAllAssets
  7436. */
  7437. readonly isFavorite?: boolean
  7438. /**
  7439. *
  7440. * @type {boolean}
  7441. * @memberof AssetApiGetAllAssets
  7442. */
  7443. readonly isArchived?: boolean
  7444. /**
  7445. *
  7446. * @type {number}
  7447. * @memberof AssetApiGetAllAssets
  7448. */
  7449. readonly skip?: number
  7450. /**
  7451. *
  7452. * @type {string}
  7453. * @memberof AssetApiGetAllAssets
  7454. */
  7455. readonly updatedAfter?: string
  7456. /**
  7457. * ETag of data already cached on the client
  7458. * @type {string}
  7459. * @memberof AssetApiGetAllAssets
  7460. */
  7461. readonly ifNoneMatch?: string
  7462. }
  7463. /**
  7464. * Request parameters for getAssetById operation in AssetApi.
  7465. * @export
  7466. * @interface AssetApiGetAssetByIdRequest
  7467. */
  7468. export interface AssetApiGetAssetByIdRequest {
  7469. /**
  7470. *
  7471. * @type {string}
  7472. * @memberof AssetApiGetAssetById
  7473. */
  7474. readonly id: string
  7475. /**
  7476. *
  7477. * @type {string}
  7478. * @memberof AssetApiGetAssetById
  7479. */
  7480. readonly key?: string
  7481. }
  7482. /**
  7483. * Request parameters for getAssetStats operation in AssetApi.
  7484. * @export
  7485. * @interface AssetApiGetAssetStatsRequest
  7486. */
  7487. export interface AssetApiGetAssetStatsRequest {
  7488. /**
  7489. *
  7490. * @type {boolean}
  7491. * @memberof AssetApiGetAssetStats
  7492. */
  7493. readonly isArchived?: boolean
  7494. /**
  7495. *
  7496. * @type {boolean}
  7497. * @memberof AssetApiGetAssetStats
  7498. */
  7499. readonly isFavorite?: boolean
  7500. /**
  7501. *
  7502. * @type {boolean}
  7503. * @memberof AssetApiGetAssetStats
  7504. */
  7505. readonly isTrashed?: boolean
  7506. }
  7507. /**
  7508. * Request parameters for getAssetThumbnail operation in AssetApi.
  7509. * @export
  7510. * @interface AssetApiGetAssetThumbnailRequest
  7511. */
  7512. export interface AssetApiGetAssetThumbnailRequest {
  7513. /**
  7514. *
  7515. * @type {string}
  7516. * @memberof AssetApiGetAssetThumbnail
  7517. */
  7518. readonly id: string
  7519. /**
  7520. *
  7521. * @type {ThumbnailFormat}
  7522. * @memberof AssetApiGetAssetThumbnail
  7523. */
  7524. readonly format?: ThumbnailFormat
  7525. /**
  7526. *
  7527. * @type {string}
  7528. * @memberof AssetApiGetAssetThumbnail
  7529. */
  7530. readonly key?: string
  7531. }
  7532. /**
  7533. * Request parameters for getByTimeBucket operation in AssetApi.
  7534. * @export
  7535. * @interface AssetApiGetByTimeBucketRequest
  7536. */
  7537. export interface AssetApiGetByTimeBucketRequest {
  7538. /**
  7539. *
  7540. * @type {TimeBucketSize}
  7541. * @memberof AssetApiGetByTimeBucket
  7542. */
  7543. readonly size: TimeBucketSize
  7544. /**
  7545. *
  7546. * @type {string}
  7547. * @memberof AssetApiGetByTimeBucket
  7548. */
  7549. readonly timeBucket: string
  7550. /**
  7551. *
  7552. * @type {string}
  7553. * @memberof AssetApiGetByTimeBucket
  7554. */
  7555. readonly userId?: string
  7556. /**
  7557. *
  7558. * @type {string}
  7559. * @memberof AssetApiGetByTimeBucket
  7560. */
  7561. readonly albumId?: string
  7562. /**
  7563. *
  7564. * @type {string}
  7565. * @memberof AssetApiGetByTimeBucket
  7566. */
  7567. readonly personId?: string
  7568. /**
  7569. *
  7570. * @type {boolean}
  7571. * @memberof AssetApiGetByTimeBucket
  7572. */
  7573. readonly isArchived?: boolean
  7574. /**
  7575. *
  7576. * @type {boolean}
  7577. * @memberof AssetApiGetByTimeBucket
  7578. */
  7579. readonly isFavorite?: boolean
  7580. /**
  7581. *
  7582. * @type {boolean}
  7583. * @memberof AssetApiGetByTimeBucket
  7584. */
  7585. readonly isTrashed?: boolean
  7586. /**
  7587. *
  7588. * @type {string}
  7589. * @memberof AssetApiGetByTimeBucket
  7590. */
  7591. readonly key?: string
  7592. }
  7593. /**
  7594. * Request parameters for getDownloadInfo operation in AssetApi.
  7595. * @export
  7596. * @interface AssetApiGetDownloadInfoRequest
  7597. */
  7598. export interface AssetApiGetDownloadInfoRequest {
  7599. /**
  7600. *
  7601. * @type {DownloadInfoDto}
  7602. * @memberof AssetApiGetDownloadInfo
  7603. */
  7604. readonly downloadInfoDto: DownloadInfoDto
  7605. /**
  7606. *
  7607. * @type {string}
  7608. * @memberof AssetApiGetDownloadInfo
  7609. */
  7610. readonly key?: string
  7611. }
  7612. /**
  7613. * Request parameters for getMapMarkers operation in AssetApi.
  7614. * @export
  7615. * @interface AssetApiGetMapMarkersRequest
  7616. */
  7617. export interface AssetApiGetMapMarkersRequest {
  7618. /**
  7619. *
  7620. * @type {boolean}
  7621. * @memberof AssetApiGetMapMarkers
  7622. */
  7623. readonly isArchived?: boolean
  7624. /**
  7625. *
  7626. * @type {boolean}
  7627. * @memberof AssetApiGetMapMarkers
  7628. */
  7629. readonly isFavorite?: boolean
  7630. /**
  7631. *
  7632. * @type {string}
  7633. * @memberof AssetApiGetMapMarkers
  7634. */
  7635. readonly fileCreatedAfter?: string
  7636. /**
  7637. *
  7638. * @type {string}
  7639. * @memberof AssetApiGetMapMarkers
  7640. */
  7641. readonly fileCreatedBefore?: string
  7642. }
  7643. /**
  7644. * Request parameters for getMemoryLane operation in AssetApi.
  7645. * @export
  7646. * @interface AssetApiGetMemoryLaneRequest
  7647. */
  7648. export interface AssetApiGetMemoryLaneRequest {
  7649. /**
  7650. *
  7651. * @type {number}
  7652. * @memberof AssetApiGetMemoryLane
  7653. */
  7654. readonly day: number
  7655. /**
  7656. *
  7657. * @type {number}
  7658. * @memberof AssetApiGetMemoryLane
  7659. */
  7660. readonly month: number
  7661. }
  7662. /**
  7663. * Request parameters for getRandom operation in AssetApi.
  7664. * @export
  7665. * @interface AssetApiGetRandomRequest
  7666. */
  7667. export interface AssetApiGetRandomRequest {
  7668. /**
  7669. *
  7670. * @type {number}
  7671. * @memberof AssetApiGetRandom
  7672. */
  7673. readonly count?: number
  7674. }
  7675. /**
  7676. * Request parameters for getTimeBuckets operation in AssetApi.
  7677. * @export
  7678. * @interface AssetApiGetTimeBucketsRequest
  7679. */
  7680. export interface AssetApiGetTimeBucketsRequest {
  7681. /**
  7682. *
  7683. * @type {TimeBucketSize}
  7684. * @memberof AssetApiGetTimeBuckets
  7685. */
  7686. readonly size: TimeBucketSize
  7687. /**
  7688. *
  7689. * @type {string}
  7690. * @memberof AssetApiGetTimeBuckets
  7691. */
  7692. readonly userId?: string
  7693. /**
  7694. *
  7695. * @type {string}
  7696. * @memberof AssetApiGetTimeBuckets
  7697. */
  7698. readonly albumId?: string
  7699. /**
  7700. *
  7701. * @type {string}
  7702. * @memberof AssetApiGetTimeBuckets
  7703. */
  7704. readonly personId?: string
  7705. /**
  7706. *
  7707. * @type {boolean}
  7708. * @memberof AssetApiGetTimeBuckets
  7709. */
  7710. readonly isArchived?: boolean
  7711. /**
  7712. *
  7713. * @type {boolean}
  7714. * @memberof AssetApiGetTimeBuckets
  7715. */
  7716. readonly isFavorite?: boolean
  7717. /**
  7718. *
  7719. * @type {boolean}
  7720. * @memberof AssetApiGetTimeBuckets
  7721. */
  7722. readonly isTrashed?: boolean
  7723. /**
  7724. *
  7725. * @type {string}
  7726. * @memberof AssetApiGetTimeBuckets
  7727. */
  7728. readonly key?: string
  7729. }
  7730. /**
  7731. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  7732. * @export
  7733. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  7734. */
  7735. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  7736. /**
  7737. *
  7738. * @type {string}
  7739. * @memberof AssetApiGetUserAssetsByDeviceId
  7740. */
  7741. readonly deviceId: string
  7742. }
  7743. /**
  7744. * Request parameters for importFile operation in AssetApi.
  7745. * @export
  7746. * @interface AssetApiImportFileRequest
  7747. */
  7748. export interface AssetApiImportFileRequest {
  7749. /**
  7750. *
  7751. * @type {ImportAssetDto}
  7752. * @memberof AssetApiImportFile
  7753. */
  7754. readonly importAssetDto: ImportAssetDto
  7755. }
  7756. /**
  7757. * Request parameters for restoreAssets operation in AssetApi.
  7758. * @export
  7759. * @interface AssetApiRestoreAssetsRequest
  7760. */
  7761. export interface AssetApiRestoreAssetsRequest {
  7762. /**
  7763. *
  7764. * @type {BulkIdsDto}
  7765. * @memberof AssetApiRestoreAssets
  7766. */
  7767. readonly bulkIdsDto: BulkIdsDto
  7768. }
  7769. /**
  7770. * Request parameters for runAssetJobs operation in AssetApi.
  7771. * @export
  7772. * @interface AssetApiRunAssetJobsRequest
  7773. */
  7774. export interface AssetApiRunAssetJobsRequest {
  7775. /**
  7776. *
  7777. * @type {AssetJobsDto}
  7778. * @memberof AssetApiRunAssetJobs
  7779. */
  7780. readonly assetJobsDto: AssetJobsDto
  7781. }
  7782. /**
  7783. * Request parameters for searchAsset operation in AssetApi.
  7784. * @export
  7785. * @interface AssetApiSearchAssetRequest
  7786. */
  7787. export interface AssetApiSearchAssetRequest {
  7788. /**
  7789. *
  7790. * @type {SearchAssetDto}
  7791. * @memberof AssetApiSearchAsset
  7792. */
  7793. readonly searchAssetDto: SearchAssetDto
  7794. }
  7795. /**
  7796. * Request parameters for serveFile operation in AssetApi.
  7797. * @export
  7798. * @interface AssetApiServeFileRequest
  7799. */
  7800. export interface AssetApiServeFileRequest {
  7801. /**
  7802. *
  7803. * @type {string}
  7804. * @memberof AssetApiServeFile
  7805. */
  7806. readonly id: string
  7807. /**
  7808. *
  7809. * @type {boolean}
  7810. * @memberof AssetApiServeFile
  7811. */
  7812. readonly isThumb?: boolean
  7813. /**
  7814. *
  7815. * @type {boolean}
  7816. * @memberof AssetApiServeFile
  7817. */
  7818. readonly isWeb?: boolean
  7819. /**
  7820. *
  7821. * @type {string}
  7822. * @memberof AssetApiServeFile
  7823. */
  7824. readonly key?: string
  7825. }
  7826. /**
  7827. * Request parameters for updateAsset operation in AssetApi.
  7828. * @export
  7829. * @interface AssetApiUpdateAssetRequest
  7830. */
  7831. export interface AssetApiUpdateAssetRequest {
  7832. /**
  7833. *
  7834. * @type {string}
  7835. * @memberof AssetApiUpdateAsset
  7836. */
  7837. readonly id: string
  7838. /**
  7839. *
  7840. * @type {UpdateAssetDto}
  7841. * @memberof AssetApiUpdateAsset
  7842. */
  7843. readonly updateAssetDto: UpdateAssetDto
  7844. }
  7845. /**
  7846. * Request parameters for updateAssets operation in AssetApi.
  7847. * @export
  7848. * @interface AssetApiUpdateAssetsRequest
  7849. */
  7850. export interface AssetApiUpdateAssetsRequest {
  7851. /**
  7852. *
  7853. * @type {AssetBulkUpdateDto}
  7854. * @memberof AssetApiUpdateAssets
  7855. */
  7856. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  7857. }
  7858. /**
  7859. * Request parameters for updateStackParent operation in AssetApi.
  7860. * @export
  7861. * @interface AssetApiUpdateStackParentRequest
  7862. */
  7863. export interface AssetApiUpdateStackParentRequest {
  7864. /**
  7865. *
  7866. * @type {UpdateStackParentDto}
  7867. * @memberof AssetApiUpdateStackParent
  7868. */
  7869. readonly updateStackParentDto: UpdateStackParentDto
  7870. }
  7871. /**
  7872. * Request parameters for uploadFile operation in AssetApi.
  7873. * @export
  7874. * @interface AssetApiUploadFileRequest
  7875. */
  7876. export interface AssetApiUploadFileRequest {
  7877. /**
  7878. *
  7879. * @type {File}
  7880. * @memberof AssetApiUploadFile
  7881. */
  7882. readonly assetData: File
  7883. /**
  7884. *
  7885. * @type {string}
  7886. * @memberof AssetApiUploadFile
  7887. */
  7888. readonly deviceAssetId: string
  7889. /**
  7890. *
  7891. * @type {string}
  7892. * @memberof AssetApiUploadFile
  7893. */
  7894. readonly deviceId: string
  7895. /**
  7896. *
  7897. * @type {string}
  7898. * @memberof AssetApiUploadFile
  7899. */
  7900. readonly fileCreatedAt: string
  7901. /**
  7902. *
  7903. * @type {string}
  7904. * @memberof AssetApiUploadFile
  7905. */
  7906. readonly fileModifiedAt: string
  7907. /**
  7908. *
  7909. * @type {boolean}
  7910. * @memberof AssetApiUploadFile
  7911. */
  7912. readonly isFavorite: boolean
  7913. /**
  7914. *
  7915. * @type {string}
  7916. * @memberof AssetApiUploadFile
  7917. */
  7918. readonly key?: string
  7919. /**
  7920. *
  7921. * @type {string}
  7922. * @memberof AssetApiUploadFile
  7923. */
  7924. readonly duration?: string
  7925. /**
  7926. *
  7927. * @type {boolean}
  7928. * @memberof AssetApiUploadFile
  7929. */
  7930. readonly isArchived?: boolean
  7931. /**
  7932. *
  7933. * @type {boolean}
  7934. * @memberof AssetApiUploadFile
  7935. */
  7936. readonly isExternal?: boolean
  7937. /**
  7938. *
  7939. * @type {boolean}
  7940. * @memberof AssetApiUploadFile
  7941. */
  7942. readonly isOffline?: boolean
  7943. /**
  7944. *
  7945. * @type {boolean}
  7946. * @memberof AssetApiUploadFile
  7947. */
  7948. readonly isReadOnly?: boolean
  7949. /**
  7950. *
  7951. * @type {boolean}
  7952. * @memberof AssetApiUploadFile
  7953. */
  7954. readonly isVisible?: boolean
  7955. /**
  7956. *
  7957. * @type {string}
  7958. * @memberof AssetApiUploadFile
  7959. */
  7960. readonly libraryId?: string
  7961. /**
  7962. *
  7963. * @type {File}
  7964. * @memberof AssetApiUploadFile
  7965. */
  7966. readonly livePhotoData?: File
  7967. /**
  7968. *
  7969. * @type {File}
  7970. * @memberof AssetApiUploadFile
  7971. */
  7972. readonly sidecarData?: File
  7973. }
  7974. /**
  7975. * AssetApi - object-oriented interface
  7976. * @export
  7977. * @class AssetApi
  7978. * @extends {BaseAPI}
  7979. */
  7980. export class AssetApi extends BaseAPI {
  7981. /**
  7982. * Checks if assets exist by checksums
  7983. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  7984. * @param {*} [options] Override http request option.
  7985. * @throws {RequiredError}
  7986. * @memberof AssetApi
  7987. */
  7988. public bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig) {
  7989. return AssetApiFp(this.configuration).bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  7990. }
  7991. /**
  7992. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7993. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7994. * @param {*} [options] Override http request option.
  7995. * @throws {RequiredError}
  7996. * @memberof AssetApi
  7997. */
  7998. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  7999. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  8000. }
  8001. /**
  8002. *
  8003. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  8004. * @param {*} [options] Override http request option.
  8005. * @throws {RequiredError}
  8006. * @memberof AssetApi
  8007. */
  8008. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  8009. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  8010. }
  8011. /**
  8012. *
  8013. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  8014. * @param {*} [options] Override http request option.
  8015. * @throws {RequiredError}
  8016. * @memberof AssetApi
  8017. */
  8018. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  8019. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8020. }
  8021. /**
  8022. *
  8023. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  8024. * @param {*} [options] Override http request option.
  8025. * @throws {RequiredError}
  8026. * @memberof AssetApi
  8027. */
  8028. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  8029. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8030. }
  8031. /**
  8032. *
  8033. * @param {*} [options] Override http request option.
  8034. * @throws {RequiredError}
  8035. * @memberof AssetApi
  8036. */
  8037. public emptyTrash(options?: AxiosRequestConfig) {
  8038. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  8039. }
  8040. /**
  8041. * Get all AssetEntity belong to the user
  8042. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  8043. * @param {*} [options] Override http request option.
  8044. * @throws {RequiredError}
  8045. * @memberof AssetApi
  8046. */
  8047. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  8048. return AssetApiFp(this.configuration).getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  8049. }
  8050. /**
  8051. * Get a single asset\'s information
  8052. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8053. * @param {*} [options] Override http request option.
  8054. * @throws {RequiredError}
  8055. * @memberof AssetApi
  8056. */
  8057. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  8058. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8059. }
  8060. /**
  8061. *
  8062. * @param {*} [options] Override http request option.
  8063. * @throws {RequiredError}
  8064. * @memberof AssetApi
  8065. */
  8066. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  8067. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  8068. }
  8069. /**
  8070. *
  8071. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  8072. * @param {*} [options] Override http request option.
  8073. * @throws {RequiredError}
  8074. * @memberof AssetApi
  8075. */
  8076. public getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig) {
  8077. return AssetApiFp(this.configuration).getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  8078. }
  8079. /**
  8080. *
  8081. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8082. * @param {*} [options] Override http request option.
  8083. * @throws {RequiredError}
  8084. * @memberof AssetApi
  8085. */
  8086. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  8087. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8088. }
  8089. /**
  8090. *
  8091. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  8092. * @param {*} [options] Override http request option.
  8093. * @throws {RequiredError}
  8094. * @memberof AssetApi
  8095. */
  8096. public getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig) {
  8097. return AssetApiFp(this.configuration).getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8098. }
  8099. /**
  8100. *
  8101. * @param {*} [options] Override http request option.
  8102. * @throws {RequiredError}
  8103. * @memberof AssetApi
  8104. */
  8105. public getCuratedLocations(options?: AxiosRequestConfig) {
  8106. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  8107. }
  8108. /**
  8109. *
  8110. * @param {*} [options] Override http request option.
  8111. * @throws {RequiredError}
  8112. * @memberof AssetApi
  8113. */
  8114. public getCuratedObjects(options?: AxiosRequestConfig) {
  8115. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  8116. }
  8117. /**
  8118. *
  8119. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8120. * @param {*} [options] Override http request option.
  8121. * @throws {RequiredError}
  8122. * @memberof AssetApi
  8123. */
  8124. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  8125. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8126. }
  8127. /**
  8128. *
  8129. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8130. * @param {*} [options] Override http request option.
  8131. * @throws {RequiredError}
  8132. * @memberof AssetApi
  8133. */
  8134. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  8135. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  8136. }
  8137. /**
  8138. *
  8139. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8140. * @param {*} [options] Override http request option.
  8141. * @throws {RequiredError}
  8142. * @memberof AssetApi
  8143. */
  8144. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  8145. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  8146. }
  8147. /**
  8148. *
  8149. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8150. * @param {*} [options] Override http request option.
  8151. * @throws {RequiredError}
  8152. * @memberof AssetApi
  8153. */
  8154. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  8155. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  8156. }
  8157. /**
  8158. *
  8159. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8160. * @param {*} [options] Override http request option.
  8161. * @throws {RequiredError}
  8162. * @memberof AssetApi
  8163. */
  8164. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  8165. return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8166. }
  8167. /**
  8168. * Get all asset of a device that are in the database, ID only.
  8169. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8170. * @param {*} [options] Override http request option.
  8171. * @throws {RequiredError}
  8172. * @memberof AssetApi
  8173. */
  8174. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  8175. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  8176. }
  8177. /**
  8178. *
  8179. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  8180. * @param {*} [options] Override http request option.
  8181. * @throws {RequiredError}
  8182. * @memberof AssetApi
  8183. */
  8184. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  8185. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8186. }
  8187. /**
  8188. *
  8189. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8190. * @param {*} [options] Override http request option.
  8191. * @throws {RequiredError}
  8192. * @memberof AssetApi
  8193. */
  8194. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8195. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8196. }
  8197. /**
  8198. *
  8199. * @param {*} [options] Override http request option.
  8200. * @throws {RequiredError}
  8201. * @memberof AssetApi
  8202. */
  8203. public restoreTrash(options?: AxiosRequestConfig) {
  8204. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8205. }
  8206. /**
  8207. *
  8208. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8209. * @param {*} [options] Override http request option.
  8210. * @throws {RequiredError}
  8211. * @memberof AssetApi
  8212. */
  8213. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8214. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8215. }
  8216. /**
  8217. *
  8218. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8219. * @param {*} [options] Override http request option.
  8220. * @throws {RequiredError}
  8221. * @memberof AssetApi
  8222. */
  8223. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8224. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8225. }
  8226. /**
  8227. *
  8228. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8229. * @param {*} [options] Override http request option.
  8230. * @throws {RequiredError}
  8231. * @memberof AssetApi
  8232. */
  8233. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8234. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8235. }
  8236. /**
  8237. *
  8238. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8239. * @param {*} [options] Override http request option.
  8240. * @throws {RequiredError}
  8241. * @memberof AssetApi
  8242. */
  8243. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  8244. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  8245. }
  8246. /**
  8247. *
  8248. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8249. * @param {*} [options] Override http request option.
  8250. * @throws {RequiredError}
  8251. * @memberof AssetApi
  8252. */
  8253. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  8254. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8255. }
  8256. /**
  8257. *
  8258. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8259. * @param {*} [options] Override http request option.
  8260. * @throws {RequiredError}
  8261. * @memberof AssetApi
  8262. */
  8263. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  8264. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  8265. }
  8266. /**
  8267. *
  8268. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8269. * @param {*} [options] Override http request option.
  8270. * @throws {RequiredError}
  8271. * @memberof AssetApi
  8272. */
  8273. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  8274. return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
  8275. }
  8276. }
  8277. /**
  8278. * AuditApi - axios parameter creator
  8279. * @export
  8280. */
  8281. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  8282. return {
  8283. /**
  8284. *
  8285. * @param {FileReportFixDto} fileReportFixDto
  8286. * @param {*} [options] Override http request option.
  8287. * @throws {RequiredError}
  8288. */
  8289. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8290. // verify required parameter 'fileReportFixDto' is not null or undefined
  8291. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  8292. const localVarPath = `/audit/file-report/fix`;
  8293. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8294. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8295. let baseOptions;
  8296. if (configuration) {
  8297. baseOptions = configuration.baseOptions;
  8298. }
  8299. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8300. const localVarHeaderParameter = {} as any;
  8301. const localVarQueryParameter = {} as any;
  8302. // authentication cookie required
  8303. // authentication api_key required
  8304. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8305. // authentication bearer required
  8306. // http bearer authentication required
  8307. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8308. localVarHeaderParameter['Content-Type'] = 'application/json';
  8309. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8310. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8311. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8312. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  8313. return {
  8314. url: toPathString(localVarUrlObj),
  8315. options: localVarRequestOptions,
  8316. };
  8317. },
  8318. /**
  8319. *
  8320. * @param {EntityType} entityType
  8321. * @param {string} after
  8322. * @param {string} [userId]
  8323. * @param {*} [options] Override http request option.
  8324. * @throws {RequiredError}
  8325. */
  8326. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8327. // verify required parameter 'entityType' is not null or undefined
  8328. assertParamExists('getAuditDeletes', 'entityType', entityType)
  8329. // verify required parameter 'after' is not null or undefined
  8330. assertParamExists('getAuditDeletes', 'after', after)
  8331. const localVarPath = `/audit/deletes`;
  8332. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8333. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8334. let baseOptions;
  8335. if (configuration) {
  8336. baseOptions = configuration.baseOptions;
  8337. }
  8338. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8339. const localVarHeaderParameter = {} as any;
  8340. const localVarQueryParameter = {} as any;
  8341. // authentication cookie required
  8342. // authentication api_key required
  8343. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8344. // authentication bearer required
  8345. // http bearer authentication required
  8346. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8347. if (entityType !== undefined) {
  8348. localVarQueryParameter['entityType'] = entityType;
  8349. }
  8350. if (userId !== undefined) {
  8351. localVarQueryParameter['userId'] = userId;
  8352. }
  8353. if (after !== undefined) {
  8354. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  8355. (after as any).toISOString() :
  8356. after;
  8357. }
  8358. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8359. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8360. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8361. return {
  8362. url: toPathString(localVarUrlObj),
  8363. options: localVarRequestOptions,
  8364. };
  8365. },
  8366. /**
  8367. *
  8368. * @param {*} [options] Override http request option.
  8369. * @throws {RequiredError}
  8370. */
  8371. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8372. const localVarPath = `/audit/file-report`;
  8373. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8374. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8375. let baseOptions;
  8376. if (configuration) {
  8377. baseOptions = configuration.baseOptions;
  8378. }
  8379. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8380. const localVarHeaderParameter = {} as any;
  8381. const localVarQueryParameter = {} as any;
  8382. // authentication cookie required
  8383. // authentication api_key required
  8384. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8385. // authentication bearer required
  8386. // http bearer authentication required
  8387. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8388. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8389. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8390. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8391. return {
  8392. url: toPathString(localVarUrlObj),
  8393. options: localVarRequestOptions,
  8394. };
  8395. },
  8396. /**
  8397. *
  8398. * @param {FileChecksumDto} fileChecksumDto
  8399. * @param {*} [options] Override http request option.
  8400. * @throws {RequiredError}
  8401. */
  8402. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8403. // verify required parameter 'fileChecksumDto' is not null or undefined
  8404. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  8405. const localVarPath = `/audit/file-report/checksum`;
  8406. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8407. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8408. let baseOptions;
  8409. if (configuration) {
  8410. baseOptions = configuration.baseOptions;
  8411. }
  8412. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8413. const localVarHeaderParameter = {} as any;
  8414. const localVarQueryParameter = {} as any;
  8415. // authentication cookie required
  8416. // authentication api_key required
  8417. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8418. // authentication bearer required
  8419. // http bearer authentication required
  8420. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8421. localVarHeaderParameter['Content-Type'] = 'application/json';
  8422. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8423. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8424. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8425. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  8426. return {
  8427. url: toPathString(localVarUrlObj),
  8428. options: localVarRequestOptions,
  8429. };
  8430. },
  8431. }
  8432. };
  8433. /**
  8434. * AuditApi - functional programming interface
  8435. * @export
  8436. */
  8437. export const AuditApiFp = function(configuration?: Configuration) {
  8438. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  8439. return {
  8440. /**
  8441. *
  8442. * @param {FileReportFixDto} fileReportFixDto
  8443. * @param {*} [options] Override http request option.
  8444. * @throws {RequiredError}
  8445. */
  8446. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8447. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  8448. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8449. },
  8450. /**
  8451. *
  8452. * @param {EntityType} entityType
  8453. * @param {string} after
  8454. * @param {string} [userId]
  8455. * @param {*} [options] Override http request option.
  8456. * @throws {RequiredError}
  8457. */
  8458. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  8459. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  8460. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8461. },
  8462. /**
  8463. *
  8464. * @param {*} [options] Override http request option.
  8465. * @throws {RequiredError}
  8466. */
  8467. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  8468. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  8469. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8470. },
  8471. /**
  8472. *
  8473. * @param {FileChecksumDto} fileChecksumDto
  8474. * @param {*} [options] Override http request option.
  8475. * @throws {RequiredError}
  8476. */
  8477. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  8478. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  8479. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8480. },
  8481. }
  8482. };
  8483. /**
  8484. * AuditApi - factory interface
  8485. * @export
  8486. */
  8487. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8488. const localVarFp = AuditApiFp(configuration)
  8489. return {
  8490. /**
  8491. *
  8492. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8493. * @param {*} [options] Override http request option.
  8494. * @throws {RequiredError}
  8495. */
  8496. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8497. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  8498. },
  8499. /**
  8500. *
  8501. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8502. * @param {*} [options] Override http request option.
  8503. * @throws {RequiredError}
  8504. */
  8505. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  8506. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  8507. },
  8508. /**
  8509. *
  8510. * @param {*} [options] Override http request option.
  8511. * @throws {RequiredError}
  8512. */
  8513. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  8514. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  8515. },
  8516. /**
  8517. *
  8518. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8519. * @param {*} [options] Override http request option.
  8520. * @throws {RequiredError}
  8521. */
  8522. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  8523. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  8524. },
  8525. };
  8526. };
  8527. /**
  8528. * Request parameters for fixAuditFiles operation in AuditApi.
  8529. * @export
  8530. * @interface AuditApiFixAuditFilesRequest
  8531. */
  8532. export interface AuditApiFixAuditFilesRequest {
  8533. /**
  8534. *
  8535. * @type {FileReportFixDto}
  8536. * @memberof AuditApiFixAuditFiles
  8537. */
  8538. readonly fileReportFixDto: FileReportFixDto
  8539. }
  8540. /**
  8541. * Request parameters for getAuditDeletes operation in AuditApi.
  8542. * @export
  8543. * @interface AuditApiGetAuditDeletesRequest
  8544. */
  8545. export interface AuditApiGetAuditDeletesRequest {
  8546. /**
  8547. *
  8548. * @type {EntityType}
  8549. * @memberof AuditApiGetAuditDeletes
  8550. */
  8551. readonly entityType: EntityType
  8552. /**
  8553. *
  8554. * @type {string}
  8555. * @memberof AuditApiGetAuditDeletes
  8556. */
  8557. readonly after: string
  8558. /**
  8559. *
  8560. * @type {string}
  8561. * @memberof AuditApiGetAuditDeletes
  8562. */
  8563. readonly userId?: string
  8564. }
  8565. /**
  8566. * Request parameters for getFileChecksums operation in AuditApi.
  8567. * @export
  8568. * @interface AuditApiGetFileChecksumsRequest
  8569. */
  8570. export interface AuditApiGetFileChecksumsRequest {
  8571. /**
  8572. *
  8573. * @type {FileChecksumDto}
  8574. * @memberof AuditApiGetFileChecksums
  8575. */
  8576. readonly fileChecksumDto: FileChecksumDto
  8577. }
  8578. /**
  8579. * AuditApi - object-oriented interface
  8580. * @export
  8581. * @class AuditApi
  8582. * @extends {BaseAPI}
  8583. */
  8584. export class AuditApi extends BaseAPI {
  8585. /**
  8586. *
  8587. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8588. * @param {*} [options] Override http request option.
  8589. * @throws {RequiredError}
  8590. * @memberof AuditApi
  8591. */
  8592. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  8593. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  8594. }
  8595. /**
  8596. *
  8597. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8598. * @param {*} [options] Override http request option.
  8599. * @throws {RequiredError}
  8600. * @memberof AuditApi
  8601. */
  8602. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  8603. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  8604. }
  8605. /**
  8606. *
  8607. * @param {*} [options] Override http request option.
  8608. * @throws {RequiredError}
  8609. * @memberof AuditApi
  8610. */
  8611. public getAuditFiles(options?: AxiosRequestConfig) {
  8612. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  8613. }
  8614. /**
  8615. *
  8616. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8617. * @param {*} [options] Override http request option.
  8618. * @throws {RequiredError}
  8619. * @memberof AuditApi
  8620. */
  8621. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  8622. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  8623. }
  8624. }
  8625. /**
  8626. * AuthenticationApi - axios parameter creator
  8627. * @export
  8628. */
  8629. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  8630. return {
  8631. /**
  8632. *
  8633. * @param {SignUpDto} signUpDto
  8634. * @param {*} [options] Override http request option.
  8635. * @throws {RequiredError}
  8636. */
  8637. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8638. // verify required parameter 'signUpDto' is not null or undefined
  8639. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  8640. const localVarPath = `/auth/admin-sign-up`;
  8641. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8642. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8643. let baseOptions;
  8644. if (configuration) {
  8645. baseOptions = configuration.baseOptions;
  8646. }
  8647. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8648. const localVarHeaderParameter = {} as any;
  8649. const localVarQueryParameter = {} as any;
  8650. localVarHeaderParameter['Content-Type'] = 'application/json';
  8651. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8652. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8653. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8654. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  8655. return {
  8656. url: toPathString(localVarUrlObj),
  8657. options: localVarRequestOptions,
  8658. };
  8659. },
  8660. /**
  8661. *
  8662. * @param {ChangePasswordDto} changePasswordDto
  8663. * @param {*} [options] Override http request option.
  8664. * @throws {RequiredError}
  8665. */
  8666. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8667. // verify required parameter 'changePasswordDto' is not null or undefined
  8668. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  8669. const localVarPath = `/auth/change-password`;
  8670. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8671. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8672. let baseOptions;
  8673. if (configuration) {
  8674. baseOptions = configuration.baseOptions;
  8675. }
  8676. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8677. const localVarHeaderParameter = {} as any;
  8678. const localVarQueryParameter = {} as any;
  8679. // authentication cookie required
  8680. // authentication api_key required
  8681. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8682. // authentication bearer required
  8683. // http bearer authentication required
  8684. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8685. localVarHeaderParameter['Content-Type'] = 'application/json';
  8686. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8687. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8688. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8689. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  8690. return {
  8691. url: toPathString(localVarUrlObj),
  8692. options: localVarRequestOptions,
  8693. };
  8694. },
  8695. /**
  8696. *
  8697. * @param {*} [options] Override http request option.
  8698. * @throws {RequiredError}
  8699. */
  8700. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8701. const localVarPath = `/auth/devices`;
  8702. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8703. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8704. let baseOptions;
  8705. if (configuration) {
  8706. baseOptions = configuration.baseOptions;
  8707. }
  8708. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8709. const localVarHeaderParameter = {} as any;
  8710. const localVarQueryParameter = {} as any;
  8711. // authentication cookie required
  8712. // authentication api_key required
  8713. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8714. // authentication bearer required
  8715. // http bearer authentication required
  8716. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8717. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8718. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8719. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8720. return {
  8721. url: toPathString(localVarUrlObj),
  8722. options: localVarRequestOptions,
  8723. };
  8724. },
  8725. /**
  8726. *
  8727. * @param {LoginCredentialDto} loginCredentialDto
  8728. * @param {*} [options] Override http request option.
  8729. * @throws {RequiredError}
  8730. */
  8731. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8732. // verify required parameter 'loginCredentialDto' is not null or undefined
  8733. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  8734. const localVarPath = `/auth/login`;
  8735. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8736. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8737. let baseOptions;
  8738. if (configuration) {
  8739. baseOptions = configuration.baseOptions;
  8740. }
  8741. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8742. const localVarHeaderParameter = {} as any;
  8743. const localVarQueryParameter = {} as any;
  8744. localVarHeaderParameter['Content-Type'] = 'application/json';
  8745. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8746. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8747. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8748. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  8749. return {
  8750. url: toPathString(localVarUrlObj),
  8751. options: localVarRequestOptions,
  8752. };
  8753. },
  8754. /**
  8755. *
  8756. * @param {*} [options] Override http request option.
  8757. * @throws {RequiredError}
  8758. */
  8759. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8760. const localVarPath = `/auth/logout`;
  8761. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8762. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8763. let baseOptions;
  8764. if (configuration) {
  8765. baseOptions = configuration.baseOptions;
  8766. }
  8767. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8768. const localVarHeaderParameter = {} as any;
  8769. const localVarQueryParameter = {} as any;
  8770. // authentication cookie required
  8771. // authentication api_key required
  8772. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8773. // authentication bearer required
  8774. // http bearer authentication required
  8775. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8776. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8777. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8778. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8779. return {
  8780. url: toPathString(localVarUrlObj),
  8781. options: localVarRequestOptions,
  8782. };
  8783. },
  8784. /**
  8785. *
  8786. * @param {string} id
  8787. * @param {*} [options] Override http request option.
  8788. * @throws {RequiredError}
  8789. */
  8790. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8791. // verify required parameter 'id' is not null or undefined
  8792. assertParamExists('logoutAuthDevice', 'id', id)
  8793. const localVarPath = `/auth/devices/{id}`
  8794. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8795. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8796. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8797. let baseOptions;
  8798. if (configuration) {
  8799. baseOptions = configuration.baseOptions;
  8800. }
  8801. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8802. const localVarHeaderParameter = {} as any;
  8803. const localVarQueryParameter = {} as any;
  8804. // authentication cookie required
  8805. // authentication api_key required
  8806. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8807. // authentication bearer required
  8808. // http bearer authentication required
  8809. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8810. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8811. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8812. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8813. return {
  8814. url: toPathString(localVarUrlObj),
  8815. options: localVarRequestOptions,
  8816. };
  8817. },
  8818. /**
  8819. *
  8820. * @param {*} [options] Override http request option.
  8821. * @throws {RequiredError}
  8822. */
  8823. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8824. const localVarPath = `/auth/devices`;
  8825. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8826. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8827. let baseOptions;
  8828. if (configuration) {
  8829. baseOptions = configuration.baseOptions;
  8830. }
  8831. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8832. const localVarHeaderParameter = {} as any;
  8833. const localVarQueryParameter = {} as any;
  8834. // authentication cookie required
  8835. // authentication api_key required
  8836. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8837. // authentication bearer required
  8838. // http bearer authentication required
  8839. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8840. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8841. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8842. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8843. return {
  8844. url: toPathString(localVarUrlObj),
  8845. options: localVarRequestOptions,
  8846. };
  8847. },
  8848. /**
  8849. *
  8850. * @param {*} [options] Override http request option.
  8851. * @throws {RequiredError}
  8852. */
  8853. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8854. const localVarPath = `/auth/validateToken`;
  8855. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8856. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8857. let baseOptions;
  8858. if (configuration) {
  8859. baseOptions = configuration.baseOptions;
  8860. }
  8861. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8862. const localVarHeaderParameter = {} as any;
  8863. const localVarQueryParameter = {} as any;
  8864. // authentication cookie required
  8865. // authentication api_key required
  8866. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8867. // authentication bearer required
  8868. // http bearer authentication required
  8869. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8870. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8871. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8872. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8873. return {
  8874. url: toPathString(localVarUrlObj),
  8875. options: localVarRequestOptions,
  8876. };
  8877. },
  8878. }
  8879. };
  8880. /**
  8881. * AuthenticationApi - functional programming interface
  8882. * @export
  8883. */
  8884. export const AuthenticationApiFp = function(configuration?: Configuration) {
  8885. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  8886. return {
  8887. /**
  8888. *
  8889. * @param {SignUpDto} signUpDto
  8890. * @param {*} [options] Override http request option.
  8891. * @throws {RequiredError}
  8892. */
  8893. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  8894. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  8895. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8896. },
  8897. /**
  8898. *
  8899. * @param {ChangePasswordDto} changePasswordDto
  8900. * @param {*} [options] Override http request option.
  8901. * @throws {RequiredError}
  8902. */
  8903. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8904. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  8905. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8906. },
  8907. /**
  8908. *
  8909. * @param {*} [options] Override http request option.
  8910. * @throws {RequiredError}
  8911. */
  8912. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  8913. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  8914. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8915. },
  8916. /**
  8917. *
  8918. * @param {LoginCredentialDto} loginCredentialDto
  8919. * @param {*} [options] Override http request option.
  8920. * @throws {RequiredError}
  8921. */
  8922. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  8923. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  8924. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8925. },
  8926. /**
  8927. *
  8928. * @param {*} [options] Override http request option.
  8929. * @throws {RequiredError}
  8930. */
  8931. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  8932. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  8933. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8934. },
  8935. /**
  8936. *
  8937. * @param {string} id
  8938. * @param {*} [options] Override http request option.
  8939. * @throws {RequiredError}
  8940. */
  8941. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8942. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  8943. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8944. },
  8945. /**
  8946. *
  8947. * @param {*} [options] Override http request option.
  8948. * @throws {RequiredError}
  8949. */
  8950. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8951. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  8952. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8953. },
  8954. /**
  8955. *
  8956. * @param {*} [options] Override http request option.
  8957. * @throws {RequiredError}
  8958. */
  8959. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  8960. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  8961. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8962. },
  8963. }
  8964. };
  8965. /**
  8966. * AuthenticationApi - factory interface
  8967. * @export
  8968. */
  8969. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8970. const localVarFp = AuthenticationApiFp(configuration)
  8971. return {
  8972. /**
  8973. *
  8974. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  8975. * @param {*} [options] Override http request option.
  8976. * @throws {RequiredError}
  8977. */
  8978. adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
  8979. return localVarFp.adminSignUp(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  8980. },
  8981. /**
  8982. *
  8983. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  8984. * @param {*} [options] Override http request option.
  8985. * @throws {RequiredError}
  8986. */
  8987. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  8988. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  8989. },
  8990. /**
  8991. *
  8992. * @param {*} [options] Override http request option.
  8993. * @throws {RequiredError}
  8994. */
  8995. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  8996. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  8997. },
  8998. /**
  8999. *
  9000. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9001. * @param {*} [options] Override http request option.
  9002. * @throws {RequiredError}
  9003. */
  9004. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9005. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  9006. },
  9007. /**
  9008. *
  9009. * @param {*} [options] Override http request option.
  9010. * @throws {RequiredError}
  9011. */
  9012. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  9013. return localVarFp.logout(options).then((request) => request(axios, basePath));
  9014. },
  9015. /**
  9016. *
  9017. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9018. * @param {*} [options] Override http request option.
  9019. * @throws {RequiredError}
  9020. */
  9021. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9022. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  9023. },
  9024. /**
  9025. *
  9026. * @param {*} [options] Override http request option.
  9027. * @throws {RequiredError}
  9028. */
  9029. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  9030. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  9031. },
  9032. /**
  9033. *
  9034. * @param {*} [options] Override http request option.
  9035. * @throws {RequiredError}
  9036. */
  9037. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  9038. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  9039. },
  9040. };
  9041. };
  9042. /**
  9043. * Request parameters for adminSignUp operation in AuthenticationApi.
  9044. * @export
  9045. * @interface AuthenticationApiAdminSignUpRequest
  9046. */
  9047. export interface AuthenticationApiAdminSignUpRequest {
  9048. /**
  9049. *
  9050. * @type {SignUpDto}
  9051. * @memberof AuthenticationApiAdminSignUp
  9052. */
  9053. readonly signUpDto: SignUpDto
  9054. }
  9055. /**
  9056. * Request parameters for changePassword operation in AuthenticationApi.
  9057. * @export
  9058. * @interface AuthenticationApiChangePasswordRequest
  9059. */
  9060. export interface AuthenticationApiChangePasswordRequest {
  9061. /**
  9062. *
  9063. * @type {ChangePasswordDto}
  9064. * @memberof AuthenticationApiChangePassword
  9065. */
  9066. readonly changePasswordDto: ChangePasswordDto
  9067. }
  9068. /**
  9069. * Request parameters for login operation in AuthenticationApi.
  9070. * @export
  9071. * @interface AuthenticationApiLoginRequest
  9072. */
  9073. export interface AuthenticationApiLoginRequest {
  9074. /**
  9075. *
  9076. * @type {LoginCredentialDto}
  9077. * @memberof AuthenticationApiLogin
  9078. */
  9079. readonly loginCredentialDto: LoginCredentialDto
  9080. }
  9081. /**
  9082. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  9083. * @export
  9084. * @interface AuthenticationApiLogoutAuthDeviceRequest
  9085. */
  9086. export interface AuthenticationApiLogoutAuthDeviceRequest {
  9087. /**
  9088. *
  9089. * @type {string}
  9090. * @memberof AuthenticationApiLogoutAuthDevice
  9091. */
  9092. readonly id: string
  9093. }
  9094. /**
  9095. * AuthenticationApi - object-oriented interface
  9096. * @export
  9097. * @class AuthenticationApi
  9098. * @extends {BaseAPI}
  9099. */
  9100. export class AuthenticationApi extends BaseAPI {
  9101. /**
  9102. *
  9103. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9104. * @param {*} [options] Override http request option.
  9105. * @throws {RequiredError}
  9106. * @memberof AuthenticationApi
  9107. */
  9108. public adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig) {
  9109. return AuthenticationApiFp(this.configuration).adminSignUp(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  9110. }
  9111. /**
  9112. *
  9113. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9114. * @param {*} [options] Override http request option.
  9115. * @throws {RequiredError}
  9116. * @memberof AuthenticationApi
  9117. */
  9118. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  9119. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  9120. }
  9121. /**
  9122. *
  9123. * @param {*} [options] Override http request option.
  9124. * @throws {RequiredError}
  9125. * @memberof AuthenticationApi
  9126. */
  9127. public getAuthDevices(options?: AxiosRequestConfig) {
  9128. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9129. }
  9130. /**
  9131. *
  9132. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9133. * @param {*} [options] Override http request option.
  9134. * @throws {RequiredError}
  9135. * @memberof AuthenticationApi
  9136. */
  9137. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  9138. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  9139. }
  9140. /**
  9141. *
  9142. * @param {*} [options] Override http request option.
  9143. * @throws {RequiredError}
  9144. * @memberof AuthenticationApi
  9145. */
  9146. public logout(options?: AxiosRequestConfig) {
  9147. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  9148. }
  9149. /**
  9150. *
  9151. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9152. * @param {*} [options] Override http request option.
  9153. * @throws {RequiredError}
  9154. * @memberof AuthenticationApi
  9155. */
  9156. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  9157. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9158. }
  9159. /**
  9160. *
  9161. * @param {*} [options] Override http request option.
  9162. * @throws {RequiredError}
  9163. * @memberof AuthenticationApi
  9164. */
  9165. public logoutAuthDevices(options?: AxiosRequestConfig) {
  9166. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9167. }
  9168. /**
  9169. *
  9170. * @param {*} [options] Override http request option.
  9171. * @throws {RequiredError}
  9172. * @memberof AuthenticationApi
  9173. */
  9174. public validateAccessToken(options?: AxiosRequestConfig) {
  9175. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  9176. }
  9177. }
  9178. /**
  9179. * JobApi - axios parameter creator
  9180. * @export
  9181. */
  9182. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  9183. return {
  9184. /**
  9185. *
  9186. * @param {*} [options] Override http request option.
  9187. * @throws {RequiredError}
  9188. */
  9189. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9190. const localVarPath = `/jobs`;
  9191. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9192. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9193. let baseOptions;
  9194. if (configuration) {
  9195. baseOptions = configuration.baseOptions;
  9196. }
  9197. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9198. const localVarHeaderParameter = {} as any;
  9199. const localVarQueryParameter = {} as any;
  9200. // authentication cookie required
  9201. // authentication api_key required
  9202. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9203. // authentication bearer required
  9204. // http bearer authentication required
  9205. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9206. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9207. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9208. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9209. return {
  9210. url: toPathString(localVarUrlObj),
  9211. options: localVarRequestOptions,
  9212. };
  9213. },
  9214. /**
  9215. *
  9216. * @param {JobName} id
  9217. * @param {JobCommandDto} jobCommandDto
  9218. * @param {*} [options] Override http request option.
  9219. * @throws {RequiredError}
  9220. */
  9221. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9222. // verify required parameter 'id' is not null or undefined
  9223. assertParamExists('sendJobCommand', 'id', id)
  9224. // verify required parameter 'jobCommandDto' is not null or undefined
  9225. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  9226. const localVarPath = `/jobs/{id}`
  9227. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9228. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9229. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9230. let baseOptions;
  9231. if (configuration) {
  9232. baseOptions = configuration.baseOptions;
  9233. }
  9234. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9235. const localVarHeaderParameter = {} as any;
  9236. const localVarQueryParameter = {} as any;
  9237. // authentication cookie required
  9238. // authentication api_key required
  9239. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9240. // authentication bearer required
  9241. // http bearer authentication required
  9242. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9243. localVarHeaderParameter['Content-Type'] = 'application/json';
  9244. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9245. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9246. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9247. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  9248. return {
  9249. url: toPathString(localVarUrlObj),
  9250. options: localVarRequestOptions,
  9251. };
  9252. },
  9253. }
  9254. };
  9255. /**
  9256. * JobApi - functional programming interface
  9257. * @export
  9258. */
  9259. export const JobApiFp = function(configuration?: Configuration) {
  9260. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  9261. return {
  9262. /**
  9263. *
  9264. * @param {*} [options] Override http request option.
  9265. * @throws {RequiredError}
  9266. */
  9267. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  9268. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  9269. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9270. },
  9271. /**
  9272. *
  9273. * @param {JobName} id
  9274. * @param {JobCommandDto} jobCommandDto
  9275. * @param {*} [options] Override http request option.
  9276. * @throws {RequiredError}
  9277. */
  9278. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  9279. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  9280. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9281. },
  9282. }
  9283. };
  9284. /**
  9285. * JobApi - factory interface
  9286. * @export
  9287. */
  9288. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9289. const localVarFp = JobApiFp(configuration)
  9290. return {
  9291. /**
  9292. *
  9293. * @param {*} [options] Override http request option.
  9294. * @throws {RequiredError}
  9295. */
  9296. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  9297. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  9298. },
  9299. /**
  9300. *
  9301. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9302. * @param {*} [options] Override http request option.
  9303. * @throws {RequiredError}
  9304. */
  9305. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  9306. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  9307. },
  9308. };
  9309. };
  9310. /**
  9311. * Request parameters for sendJobCommand operation in JobApi.
  9312. * @export
  9313. * @interface JobApiSendJobCommandRequest
  9314. */
  9315. export interface JobApiSendJobCommandRequest {
  9316. /**
  9317. *
  9318. * @type {JobName}
  9319. * @memberof JobApiSendJobCommand
  9320. */
  9321. readonly id: JobName
  9322. /**
  9323. *
  9324. * @type {JobCommandDto}
  9325. * @memberof JobApiSendJobCommand
  9326. */
  9327. readonly jobCommandDto: JobCommandDto
  9328. }
  9329. /**
  9330. * JobApi - object-oriented interface
  9331. * @export
  9332. * @class JobApi
  9333. * @extends {BaseAPI}
  9334. */
  9335. export class JobApi extends BaseAPI {
  9336. /**
  9337. *
  9338. * @param {*} [options] Override http request option.
  9339. * @throws {RequiredError}
  9340. * @memberof JobApi
  9341. */
  9342. public getAllJobsStatus(options?: AxiosRequestConfig) {
  9343. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  9344. }
  9345. /**
  9346. *
  9347. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9348. * @param {*} [options] Override http request option.
  9349. * @throws {RequiredError}
  9350. * @memberof JobApi
  9351. */
  9352. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  9353. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  9354. }
  9355. }
  9356. /**
  9357. * LibraryApi - axios parameter creator
  9358. * @export
  9359. */
  9360. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  9361. return {
  9362. /**
  9363. *
  9364. * @param {CreateLibraryDto} createLibraryDto
  9365. * @param {*} [options] Override http request option.
  9366. * @throws {RequiredError}
  9367. */
  9368. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9369. // verify required parameter 'createLibraryDto' is not null or undefined
  9370. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  9371. const localVarPath = `/library`;
  9372. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9373. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9374. let baseOptions;
  9375. if (configuration) {
  9376. baseOptions = configuration.baseOptions;
  9377. }
  9378. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9379. const localVarHeaderParameter = {} as any;
  9380. const localVarQueryParameter = {} as any;
  9381. // authentication cookie required
  9382. // authentication api_key required
  9383. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9384. // authentication bearer required
  9385. // http bearer authentication required
  9386. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9387. localVarHeaderParameter['Content-Type'] = 'application/json';
  9388. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9389. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9390. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9391. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  9392. return {
  9393. url: toPathString(localVarUrlObj),
  9394. options: localVarRequestOptions,
  9395. };
  9396. },
  9397. /**
  9398. *
  9399. * @param {string} id
  9400. * @param {*} [options] Override http request option.
  9401. * @throws {RequiredError}
  9402. */
  9403. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9404. // verify required parameter 'id' is not null or undefined
  9405. assertParamExists('deleteLibrary', 'id', id)
  9406. const localVarPath = `/library/{id}`
  9407. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9408. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9409. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9410. let baseOptions;
  9411. if (configuration) {
  9412. baseOptions = configuration.baseOptions;
  9413. }
  9414. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9415. const localVarHeaderParameter = {} as any;
  9416. const localVarQueryParameter = {} as any;
  9417. // authentication cookie required
  9418. // authentication api_key required
  9419. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9420. // authentication bearer required
  9421. // http bearer authentication required
  9422. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9423. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9424. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9425. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9426. return {
  9427. url: toPathString(localVarUrlObj),
  9428. options: localVarRequestOptions,
  9429. };
  9430. },
  9431. /**
  9432. *
  9433. * @param {*} [options] Override http request option.
  9434. * @throws {RequiredError}
  9435. */
  9436. getAllForUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9437. const localVarPath = `/library`;
  9438. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9439. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9440. let baseOptions;
  9441. if (configuration) {
  9442. baseOptions = configuration.baseOptions;
  9443. }
  9444. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9445. const localVarHeaderParameter = {} as any;
  9446. const localVarQueryParameter = {} as any;
  9447. // authentication cookie required
  9448. // authentication api_key required
  9449. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9450. // authentication bearer required
  9451. // http bearer authentication required
  9452. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9453. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9454. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9455. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9456. return {
  9457. url: toPathString(localVarUrlObj),
  9458. options: localVarRequestOptions,
  9459. };
  9460. },
  9461. /**
  9462. *
  9463. * @param {string} id
  9464. * @param {*} [options] Override http request option.
  9465. * @throws {RequiredError}
  9466. */
  9467. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9468. // verify required parameter 'id' is not null or undefined
  9469. assertParamExists('getLibraryInfo', 'id', id)
  9470. const localVarPath = `/library/{id}`
  9471. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9472. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9473. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9474. let baseOptions;
  9475. if (configuration) {
  9476. baseOptions = configuration.baseOptions;
  9477. }
  9478. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9479. const localVarHeaderParameter = {} as any;
  9480. const localVarQueryParameter = {} as any;
  9481. // authentication cookie required
  9482. // authentication api_key required
  9483. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9484. // authentication bearer required
  9485. // http bearer authentication required
  9486. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9487. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9488. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9489. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9490. return {
  9491. url: toPathString(localVarUrlObj),
  9492. options: localVarRequestOptions,
  9493. };
  9494. },
  9495. /**
  9496. *
  9497. * @param {string} id
  9498. * @param {*} [options] Override http request option.
  9499. * @throws {RequiredError}
  9500. */
  9501. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9502. // verify required parameter 'id' is not null or undefined
  9503. assertParamExists('getLibraryStatistics', 'id', id)
  9504. const localVarPath = `/library/{id}/statistics`
  9505. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9506. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9507. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9508. let baseOptions;
  9509. if (configuration) {
  9510. baseOptions = configuration.baseOptions;
  9511. }
  9512. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9513. const localVarHeaderParameter = {} as any;
  9514. const localVarQueryParameter = {} as any;
  9515. // authentication cookie required
  9516. // authentication api_key required
  9517. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9518. // authentication bearer required
  9519. // http bearer authentication required
  9520. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9521. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9522. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9523. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9524. return {
  9525. url: toPathString(localVarUrlObj),
  9526. options: localVarRequestOptions,
  9527. };
  9528. },
  9529. /**
  9530. *
  9531. * @param {string} id
  9532. * @param {*} [options] Override http request option.
  9533. * @throws {RequiredError}
  9534. */
  9535. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9536. // verify required parameter 'id' is not null or undefined
  9537. assertParamExists('removeOfflineFiles', 'id', id)
  9538. const localVarPath = `/library/{id}/removeOffline`
  9539. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9540. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9541. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9542. let baseOptions;
  9543. if (configuration) {
  9544. baseOptions = configuration.baseOptions;
  9545. }
  9546. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9547. const localVarHeaderParameter = {} as any;
  9548. const localVarQueryParameter = {} as any;
  9549. // authentication cookie required
  9550. // authentication api_key required
  9551. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9552. // authentication bearer required
  9553. // http bearer authentication required
  9554. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9555. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9556. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9557. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9558. return {
  9559. url: toPathString(localVarUrlObj),
  9560. options: localVarRequestOptions,
  9561. };
  9562. },
  9563. /**
  9564. *
  9565. * @param {string} id
  9566. * @param {ScanLibraryDto} scanLibraryDto
  9567. * @param {*} [options] Override http request option.
  9568. * @throws {RequiredError}
  9569. */
  9570. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9571. // verify required parameter 'id' is not null or undefined
  9572. assertParamExists('scanLibrary', 'id', id)
  9573. // verify required parameter 'scanLibraryDto' is not null or undefined
  9574. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  9575. const localVarPath = `/library/{id}/scan`
  9576. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9577. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9578. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9579. let baseOptions;
  9580. if (configuration) {
  9581. baseOptions = configuration.baseOptions;
  9582. }
  9583. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9584. const localVarHeaderParameter = {} as any;
  9585. const localVarQueryParameter = {} as any;
  9586. // authentication cookie required
  9587. // authentication api_key required
  9588. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9589. // authentication bearer required
  9590. // http bearer authentication required
  9591. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9592. localVarHeaderParameter['Content-Type'] = 'application/json';
  9593. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9594. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9595. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9596. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  9597. return {
  9598. url: toPathString(localVarUrlObj),
  9599. options: localVarRequestOptions,
  9600. };
  9601. },
  9602. /**
  9603. *
  9604. * @param {string} id
  9605. * @param {UpdateLibraryDto} updateLibraryDto
  9606. * @param {*} [options] Override http request option.
  9607. * @throws {RequiredError}
  9608. */
  9609. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9610. // verify required parameter 'id' is not null or undefined
  9611. assertParamExists('updateLibrary', 'id', id)
  9612. // verify required parameter 'updateLibraryDto' is not null or undefined
  9613. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  9614. const localVarPath = `/library/{id}`
  9615. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9616. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9617. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9618. let baseOptions;
  9619. if (configuration) {
  9620. baseOptions = configuration.baseOptions;
  9621. }
  9622. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9623. const localVarHeaderParameter = {} as any;
  9624. const localVarQueryParameter = {} as any;
  9625. // authentication cookie required
  9626. // authentication api_key required
  9627. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9628. // authentication bearer required
  9629. // http bearer authentication required
  9630. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9631. localVarHeaderParameter['Content-Type'] = 'application/json';
  9632. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9633. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9634. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9635. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  9636. return {
  9637. url: toPathString(localVarUrlObj),
  9638. options: localVarRequestOptions,
  9639. };
  9640. },
  9641. }
  9642. };
  9643. /**
  9644. * LibraryApi - functional programming interface
  9645. * @export
  9646. */
  9647. export const LibraryApiFp = function(configuration?: Configuration) {
  9648. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  9649. return {
  9650. /**
  9651. *
  9652. * @param {CreateLibraryDto} createLibraryDto
  9653. * @param {*} [options] Override http request option.
  9654. * @throws {RequiredError}
  9655. */
  9656. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9657. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  9658. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9659. },
  9660. /**
  9661. *
  9662. * @param {string} id
  9663. * @param {*} [options] Override http request option.
  9664. * @throws {RequiredError}
  9665. */
  9666. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9667. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  9668. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9669. },
  9670. /**
  9671. *
  9672. * @param {*} [options] Override http request option.
  9673. * @throws {RequiredError}
  9674. */
  9675. async getAllForUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  9676. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllForUser(options);
  9677. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9678. },
  9679. /**
  9680. *
  9681. * @param {string} id
  9682. * @param {*} [options] Override http request option.
  9683. * @throws {RequiredError}
  9684. */
  9685. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9686. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  9687. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9688. },
  9689. /**
  9690. *
  9691. * @param {string} id
  9692. * @param {*} [options] Override http request option.
  9693. * @throws {RequiredError}
  9694. */
  9695. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  9696. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  9697. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9698. },
  9699. /**
  9700. *
  9701. * @param {string} id
  9702. * @param {*} [options] Override http request option.
  9703. * @throws {RequiredError}
  9704. */
  9705. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9706. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  9707. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9708. },
  9709. /**
  9710. *
  9711. * @param {string} id
  9712. * @param {ScanLibraryDto} scanLibraryDto
  9713. * @param {*} [options] Override http request option.
  9714. * @throws {RequiredError}
  9715. */
  9716. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9717. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  9718. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9719. },
  9720. /**
  9721. *
  9722. * @param {string} id
  9723. * @param {UpdateLibraryDto} updateLibraryDto
  9724. * @param {*} [options] Override http request option.
  9725. * @throws {RequiredError}
  9726. */
  9727. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9728. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  9729. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9730. },
  9731. }
  9732. };
  9733. /**
  9734. * LibraryApi - factory interface
  9735. * @export
  9736. */
  9737. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9738. const localVarFp = LibraryApiFp(configuration)
  9739. return {
  9740. /**
  9741. *
  9742. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9743. * @param {*} [options] Override http request option.
  9744. * @throws {RequiredError}
  9745. */
  9746. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9747. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  9748. },
  9749. /**
  9750. *
  9751. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9752. * @param {*} [options] Override http request option.
  9753. * @throws {RequiredError}
  9754. */
  9755. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9756. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  9757. },
  9758. /**
  9759. *
  9760. * @param {*} [options] Override http request option.
  9761. * @throws {RequiredError}
  9762. */
  9763. getAllForUser(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  9764. return localVarFp.getAllForUser(options).then((request) => request(axios, basePath));
  9765. },
  9766. /**
  9767. *
  9768. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  9769. * @param {*} [options] Override http request option.
  9770. * @throws {RequiredError}
  9771. */
  9772. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9773. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  9774. },
  9775. /**
  9776. *
  9777. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  9778. * @param {*} [options] Override http request option.
  9779. * @throws {RequiredError}
  9780. */
  9781. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  9782. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  9783. },
  9784. /**
  9785. *
  9786. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  9787. * @param {*} [options] Override http request option.
  9788. * @throws {RequiredError}
  9789. */
  9790. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9791. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  9792. },
  9793. /**
  9794. *
  9795. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  9796. * @param {*} [options] Override http request option.
  9797. * @throws {RequiredError}
  9798. */
  9799. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9800. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  9801. },
  9802. /**
  9803. *
  9804. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  9805. * @param {*} [options] Override http request option.
  9806. * @throws {RequiredError}
  9807. */
  9808. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9809. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  9810. },
  9811. };
  9812. };
  9813. /**
  9814. * Request parameters for createLibrary operation in LibraryApi.
  9815. * @export
  9816. * @interface LibraryApiCreateLibraryRequest
  9817. */
  9818. export interface LibraryApiCreateLibraryRequest {
  9819. /**
  9820. *
  9821. * @type {CreateLibraryDto}
  9822. * @memberof LibraryApiCreateLibrary
  9823. */
  9824. readonly createLibraryDto: CreateLibraryDto
  9825. }
  9826. /**
  9827. * Request parameters for deleteLibrary operation in LibraryApi.
  9828. * @export
  9829. * @interface LibraryApiDeleteLibraryRequest
  9830. */
  9831. export interface LibraryApiDeleteLibraryRequest {
  9832. /**
  9833. *
  9834. * @type {string}
  9835. * @memberof LibraryApiDeleteLibrary
  9836. */
  9837. readonly id: string
  9838. }
  9839. /**
  9840. * Request parameters for getLibraryInfo operation in LibraryApi.
  9841. * @export
  9842. * @interface LibraryApiGetLibraryInfoRequest
  9843. */
  9844. export interface LibraryApiGetLibraryInfoRequest {
  9845. /**
  9846. *
  9847. * @type {string}
  9848. * @memberof LibraryApiGetLibraryInfo
  9849. */
  9850. readonly id: string
  9851. }
  9852. /**
  9853. * Request parameters for getLibraryStatistics operation in LibraryApi.
  9854. * @export
  9855. * @interface LibraryApiGetLibraryStatisticsRequest
  9856. */
  9857. export interface LibraryApiGetLibraryStatisticsRequest {
  9858. /**
  9859. *
  9860. * @type {string}
  9861. * @memberof LibraryApiGetLibraryStatistics
  9862. */
  9863. readonly id: string
  9864. }
  9865. /**
  9866. * Request parameters for removeOfflineFiles operation in LibraryApi.
  9867. * @export
  9868. * @interface LibraryApiRemoveOfflineFilesRequest
  9869. */
  9870. export interface LibraryApiRemoveOfflineFilesRequest {
  9871. /**
  9872. *
  9873. * @type {string}
  9874. * @memberof LibraryApiRemoveOfflineFiles
  9875. */
  9876. readonly id: string
  9877. }
  9878. /**
  9879. * Request parameters for scanLibrary operation in LibraryApi.
  9880. * @export
  9881. * @interface LibraryApiScanLibraryRequest
  9882. */
  9883. export interface LibraryApiScanLibraryRequest {
  9884. /**
  9885. *
  9886. * @type {string}
  9887. * @memberof LibraryApiScanLibrary
  9888. */
  9889. readonly id: string
  9890. /**
  9891. *
  9892. * @type {ScanLibraryDto}
  9893. * @memberof LibraryApiScanLibrary
  9894. */
  9895. readonly scanLibraryDto: ScanLibraryDto
  9896. }
  9897. /**
  9898. * Request parameters for updateLibrary operation in LibraryApi.
  9899. * @export
  9900. * @interface LibraryApiUpdateLibraryRequest
  9901. */
  9902. export interface LibraryApiUpdateLibraryRequest {
  9903. /**
  9904. *
  9905. * @type {string}
  9906. * @memberof LibraryApiUpdateLibrary
  9907. */
  9908. readonly id: string
  9909. /**
  9910. *
  9911. * @type {UpdateLibraryDto}
  9912. * @memberof LibraryApiUpdateLibrary
  9913. */
  9914. readonly updateLibraryDto: UpdateLibraryDto
  9915. }
  9916. /**
  9917. * LibraryApi - object-oriented interface
  9918. * @export
  9919. * @class LibraryApi
  9920. * @extends {BaseAPI}
  9921. */
  9922. export class LibraryApi extends BaseAPI {
  9923. /**
  9924. *
  9925. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9926. * @param {*} [options] Override http request option.
  9927. * @throws {RequiredError}
  9928. * @memberof LibraryApi
  9929. */
  9930. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  9931. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  9932. }
  9933. /**
  9934. *
  9935. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9936. * @param {*} [options] Override http request option.
  9937. * @throws {RequiredError}
  9938. * @memberof LibraryApi
  9939. */
  9940. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  9941. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9942. }
  9943. /**
  9944. *
  9945. * @param {*} [options] Override http request option.
  9946. * @throws {RequiredError}
  9947. * @memberof LibraryApi
  9948. */
  9949. public getAllForUser(options?: AxiosRequestConfig) {
  9950. return LibraryApiFp(this.configuration).getAllForUser(options).then((request) => request(this.axios, this.basePath));
  9951. }
  9952. /**
  9953. *
  9954. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  9955. * @param {*} [options] Override http request option.
  9956. * @throws {RequiredError}
  9957. * @memberof LibraryApi
  9958. */
  9959. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  9960. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9961. }
  9962. /**
  9963. *
  9964. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  9965. * @param {*} [options] Override http request option.
  9966. * @throws {RequiredError}
  9967. * @memberof LibraryApi
  9968. */
  9969. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  9970. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9971. }
  9972. /**
  9973. *
  9974. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  9975. * @param {*} [options] Override http request option.
  9976. * @throws {RequiredError}
  9977. * @memberof LibraryApi
  9978. */
  9979. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  9980. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9981. }
  9982. /**
  9983. *
  9984. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  9985. * @param {*} [options] Override http request option.
  9986. * @throws {RequiredError}
  9987. * @memberof LibraryApi
  9988. */
  9989. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  9990. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  9991. }
  9992. /**
  9993. *
  9994. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  9995. * @param {*} [options] Override http request option.
  9996. * @throws {RequiredError}
  9997. * @memberof LibraryApi
  9998. */
  9999. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  10000. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10001. }
  10002. }
  10003. /**
  10004. * OAuthApi - axios parameter creator
  10005. * @export
  10006. */
  10007. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  10008. return {
  10009. /**
  10010. *
  10011. * @param {OAuthConfigDto} oAuthConfigDto
  10012. * @param {*} [options] Override http request option.
  10013. * @throws {RequiredError}
  10014. */
  10015. authorizeOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10016. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10017. assertParamExists('authorizeOAuth', 'oAuthConfigDto', oAuthConfigDto)
  10018. const localVarPath = `/oauth/authorize`;
  10019. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10020. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10021. let baseOptions;
  10022. if (configuration) {
  10023. baseOptions = configuration.baseOptions;
  10024. }
  10025. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10026. const localVarHeaderParameter = {} as any;
  10027. const localVarQueryParameter = {} as any;
  10028. localVarHeaderParameter['Content-Type'] = 'application/json';
  10029. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10030. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10031. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10032. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10033. return {
  10034. url: toPathString(localVarUrlObj),
  10035. options: localVarRequestOptions,
  10036. };
  10037. },
  10038. /**
  10039. *
  10040. * @param {OAuthCallbackDto} oAuthCallbackDto
  10041. * @param {*} [options] Override http request option.
  10042. * @throws {RequiredError}
  10043. */
  10044. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10045. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10046. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  10047. const localVarPath = `/oauth/callback`;
  10048. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10049. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10050. let baseOptions;
  10051. if (configuration) {
  10052. baseOptions = configuration.baseOptions;
  10053. }
  10054. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10055. const localVarHeaderParameter = {} as any;
  10056. const localVarQueryParameter = {} as any;
  10057. localVarHeaderParameter['Content-Type'] = 'application/json';
  10058. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10059. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10060. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10061. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10062. return {
  10063. url: toPathString(localVarUrlObj),
  10064. options: localVarRequestOptions,
  10065. };
  10066. },
  10067. /**
  10068. * @deprecated use feature flags and /oauth/authorize
  10069. * @param {OAuthConfigDto} oAuthConfigDto
  10070. * @param {*} [options] Override http request option.
  10071. * @deprecated
  10072. * @throws {RequiredError}
  10073. */
  10074. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10075. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10076. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  10077. const localVarPath = `/oauth/config`;
  10078. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10079. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10080. let baseOptions;
  10081. if (configuration) {
  10082. baseOptions = configuration.baseOptions;
  10083. }
  10084. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10085. const localVarHeaderParameter = {} as any;
  10086. const localVarQueryParameter = {} as any;
  10087. localVarHeaderParameter['Content-Type'] = 'application/json';
  10088. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10089. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10090. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10091. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10092. return {
  10093. url: toPathString(localVarUrlObj),
  10094. options: localVarRequestOptions,
  10095. };
  10096. },
  10097. /**
  10098. *
  10099. * @param {OAuthCallbackDto} oAuthCallbackDto
  10100. * @param {*} [options] Override http request option.
  10101. * @throws {RequiredError}
  10102. */
  10103. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10104. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10105. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  10106. const localVarPath = `/oauth/link`;
  10107. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10108. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10109. let baseOptions;
  10110. if (configuration) {
  10111. baseOptions = configuration.baseOptions;
  10112. }
  10113. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10114. const localVarHeaderParameter = {} as any;
  10115. const localVarQueryParameter = {} as any;
  10116. // authentication cookie required
  10117. // authentication api_key required
  10118. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10119. // authentication bearer required
  10120. // http bearer authentication required
  10121. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10122. localVarHeaderParameter['Content-Type'] = 'application/json';
  10123. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10124. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10125. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10126. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10127. return {
  10128. url: toPathString(localVarUrlObj),
  10129. options: localVarRequestOptions,
  10130. };
  10131. },
  10132. /**
  10133. *
  10134. * @param {*} [options] Override http request option.
  10135. * @throws {RequiredError}
  10136. */
  10137. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10138. const localVarPath = `/oauth/mobile-redirect`;
  10139. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10140. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10141. let baseOptions;
  10142. if (configuration) {
  10143. baseOptions = configuration.baseOptions;
  10144. }
  10145. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10146. const localVarHeaderParameter = {} as any;
  10147. const localVarQueryParameter = {} as any;
  10148. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10149. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10150. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10151. return {
  10152. url: toPathString(localVarUrlObj),
  10153. options: localVarRequestOptions,
  10154. };
  10155. },
  10156. /**
  10157. *
  10158. * @param {*} [options] Override http request option.
  10159. * @throws {RequiredError}
  10160. */
  10161. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10162. const localVarPath = `/oauth/unlink`;
  10163. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10164. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10165. let baseOptions;
  10166. if (configuration) {
  10167. baseOptions = configuration.baseOptions;
  10168. }
  10169. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10170. const localVarHeaderParameter = {} as any;
  10171. const localVarQueryParameter = {} as any;
  10172. // authentication cookie required
  10173. // authentication api_key required
  10174. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10175. // authentication bearer required
  10176. // http bearer authentication required
  10177. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10178. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10179. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10180. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10181. return {
  10182. url: toPathString(localVarUrlObj),
  10183. options: localVarRequestOptions,
  10184. };
  10185. },
  10186. }
  10187. };
  10188. /**
  10189. * OAuthApi - functional programming interface
  10190. * @export
  10191. */
  10192. export const OAuthApiFp = function(configuration?: Configuration) {
  10193. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  10194. return {
  10195. /**
  10196. *
  10197. * @param {OAuthConfigDto} oAuthConfigDto
  10198. * @param {*} [options] Override http request option.
  10199. * @throws {RequiredError}
  10200. */
  10201. async authorizeOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  10202. const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeOAuth(oAuthConfigDto, options);
  10203. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10204. },
  10205. /**
  10206. *
  10207. * @param {OAuthCallbackDto} oAuthCallbackDto
  10208. * @param {*} [options] Override http request option.
  10209. * @throws {RequiredError}
  10210. */
  10211. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10212. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  10213. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10214. },
  10215. /**
  10216. * @deprecated use feature flags and /oauth/authorize
  10217. * @param {OAuthConfigDto} oAuthConfigDto
  10218. * @param {*} [options] Override http request option.
  10219. * @deprecated
  10220. * @throws {RequiredError}
  10221. */
  10222. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  10223. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  10224. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10225. },
  10226. /**
  10227. *
  10228. * @param {OAuthCallbackDto} oAuthCallbackDto
  10229. * @param {*} [options] Override http request option.
  10230. * @throws {RequiredError}
  10231. */
  10232. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10233. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  10234. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10235. },
  10236. /**
  10237. *
  10238. * @param {*} [options] Override http request option.
  10239. * @throws {RequiredError}
  10240. */
  10241. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10242. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  10243. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10244. },
  10245. /**
  10246. *
  10247. * @param {*} [options] Override http request option.
  10248. * @throws {RequiredError}
  10249. */
  10250. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10251. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  10252. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10253. },
  10254. }
  10255. };
  10256. /**
  10257. * OAuthApi - factory interface
  10258. * @export
  10259. */
  10260. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10261. const localVarFp = OAuthApiFp(configuration)
  10262. return {
  10263. /**
  10264. *
  10265. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10266. * @param {*} [options] Override http request option.
  10267. * @throws {RequiredError}
  10268. */
  10269. authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  10270. return localVarFp.authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10271. },
  10272. /**
  10273. *
  10274. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10275. * @param {*} [options] Override http request option.
  10276. * @throws {RequiredError}
  10277. */
  10278. callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10279. return localVarFp.callback(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10280. },
  10281. /**
  10282. * @deprecated use feature flags and /oauth/authorize
  10283. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10284. * @param {*} [options] Override http request option.
  10285. * @deprecated
  10286. * @throws {RequiredError}
  10287. */
  10288. generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  10289. return localVarFp.generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10290. },
  10291. /**
  10292. *
  10293. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10294. * @param {*} [options] Override http request option.
  10295. * @throws {RequiredError}
  10296. */
  10297. link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10298. return localVarFp.link(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10299. },
  10300. /**
  10301. *
  10302. * @param {*} [options] Override http request option.
  10303. * @throws {RequiredError}
  10304. */
  10305. mobileRedirect(options?: AxiosRequestConfig): AxiosPromise<void> {
  10306. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  10307. },
  10308. /**
  10309. *
  10310. * @param {*} [options] Override http request option.
  10311. * @throws {RequiredError}
  10312. */
  10313. unlink(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10314. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  10315. },
  10316. };
  10317. };
  10318. /**
  10319. * Request parameters for authorizeOAuth operation in OAuthApi.
  10320. * @export
  10321. * @interface OAuthApiAuthorizeOAuthRequest
  10322. */
  10323. export interface OAuthApiAuthorizeOAuthRequest {
  10324. /**
  10325. *
  10326. * @type {OAuthConfigDto}
  10327. * @memberof OAuthApiAuthorizeOAuth
  10328. */
  10329. readonly oAuthConfigDto: OAuthConfigDto
  10330. }
  10331. /**
  10332. * Request parameters for callback operation in OAuthApi.
  10333. * @export
  10334. * @interface OAuthApiCallbackRequest
  10335. */
  10336. export interface OAuthApiCallbackRequest {
  10337. /**
  10338. *
  10339. * @type {OAuthCallbackDto}
  10340. * @memberof OAuthApiCallback
  10341. */
  10342. readonly oAuthCallbackDto: OAuthCallbackDto
  10343. }
  10344. /**
  10345. * Request parameters for generateConfig operation in OAuthApi.
  10346. * @export
  10347. * @interface OAuthApiGenerateConfigRequest
  10348. */
  10349. export interface OAuthApiGenerateConfigRequest {
  10350. /**
  10351. *
  10352. * @type {OAuthConfigDto}
  10353. * @memberof OAuthApiGenerateConfig
  10354. */
  10355. readonly oAuthConfigDto: OAuthConfigDto
  10356. }
  10357. /**
  10358. * Request parameters for link operation in OAuthApi.
  10359. * @export
  10360. * @interface OAuthApiLinkRequest
  10361. */
  10362. export interface OAuthApiLinkRequest {
  10363. /**
  10364. *
  10365. * @type {OAuthCallbackDto}
  10366. * @memberof OAuthApiLink
  10367. */
  10368. readonly oAuthCallbackDto: OAuthCallbackDto
  10369. }
  10370. /**
  10371. * OAuthApi - object-oriented interface
  10372. * @export
  10373. * @class OAuthApi
  10374. * @extends {BaseAPI}
  10375. */
  10376. export class OAuthApi extends BaseAPI {
  10377. /**
  10378. *
  10379. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10380. * @param {*} [options] Override http request option.
  10381. * @throws {RequiredError}
  10382. * @memberof OAuthApi
  10383. */
  10384. public authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig) {
  10385. return OAuthApiFp(this.configuration).authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10386. }
  10387. /**
  10388. *
  10389. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10390. * @param {*} [options] Override http request option.
  10391. * @throws {RequiredError}
  10392. * @memberof OAuthApi
  10393. */
  10394. public callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig) {
  10395. return OAuthApiFp(this.configuration).callback(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10396. }
  10397. /**
  10398. * @deprecated use feature flags and /oauth/authorize
  10399. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10400. * @param {*} [options] Override http request option.
  10401. * @deprecated
  10402. * @throws {RequiredError}
  10403. * @memberof OAuthApi
  10404. */
  10405. public generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig) {
  10406. return OAuthApiFp(this.configuration).generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10407. }
  10408. /**
  10409. *
  10410. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10411. * @param {*} [options] Override http request option.
  10412. * @throws {RequiredError}
  10413. * @memberof OAuthApi
  10414. */
  10415. public link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig) {
  10416. return OAuthApiFp(this.configuration).link(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10417. }
  10418. /**
  10419. *
  10420. * @param {*} [options] Override http request option.
  10421. * @throws {RequiredError}
  10422. * @memberof OAuthApi
  10423. */
  10424. public mobileRedirect(options?: AxiosRequestConfig) {
  10425. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  10426. }
  10427. /**
  10428. *
  10429. * @param {*} [options] Override http request option.
  10430. * @throws {RequiredError}
  10431. * @memberof OAuthApi
  10432. */
  10433. public unlink(options?: AxiosRequestConfig) {
  10434. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  10435. }
  10436. }
  10437. /**
  10438. * PartnerApi - axios parameter creator
  10439. * @export
  10440. */
  10441. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  10442. return {
  10443. /**
  10444. *
  10445. * @param {string} id
  10446. * @param {*} [options] Override http request option.
  10447. * @throws {RequiredError}
  10448. */
  10449. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10450. // verify required parameter 'id' is not null or undefined
  10451. assertParamExists('createPartner', 'id', id)
  10452. const localVarPath = `/partner/{id}`
  10453. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10454. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10455. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10456. let baseOptions;
  10457. if (configuration) {
  10458. baseOptions = configuration.baseOptions;
  10459. }
  10460. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10461. const localVarHeaderParameter = {} as any;
  10462. const localVarQueryParameter = {} as any;
  10463. // authentication cookie required
  10464. // authentication api_key required
  10465. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10466. // authentication bearer required
  10467. // http bearer authentication required
  10468. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10469. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10470. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10471. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10472. return {
  10473. url: toPathString(localVarUrlObj),
  10474. options: localVarRequestOptions,
  10475. };
  10476. },
  10477. /**
  10478. *
  10479. * @param {'shared-by' | 'shared-with'} direction
  10480. * @param {*} [options] Override http request option.
  10481. * @throws {RequiredError}
  10482. */
  10483. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10484. // verify required parameter 'direction' is not null or undefined
  10485. assertParamExists('getPartners', 'direction', direction)
  10486. const localVarPath = `/partner`;
  10487. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10488. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10489. let baseOptions;
  10490. if (configuration) {
  10491. baseOptions = configuration.baseOptions;
  10492. }
  10493. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10494. const localVarHeaderParameter = {} as any;
  10495. const localVarQueryParameter = {} as any;
  10496. // authentication cookie required
  10497. // authentication api_key required
  10498. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10499. // authentication bearer required
  10500. // http bearer authentication required
  10501. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10502. if (direction !== undefined) {
  10503. localVarQueryParameter['direction'] = direction;
  10504. }
  10505. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10506. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10507. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10508. return {
  10509. url: toPathString(localVarUrlObj),
  10510. options: localVarRequestOptions,
  10511. };
  10512. },
  10513. /**
  10514. *
  10515. * @param {string} id
  10516. * @param {*} [options] Override http request option.
  10517. * @throws {RequiredError}
  10518. */
  10519. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10520. // verify required parameter 'id' is not null or undefined
  10521. assertParamExists('removePartner', 'id', id)
  10522. const localVarPath = `/partner/{id}`
  10523. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10524. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10525. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10526. let baseOptions;
  10527. if (configuration) {
  10528. baseOptions = configuration.baseOptions;
  10529. }
  10530. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10531. const localVarHeaderParameter = {} as any;
  10532. const localVarQueryParameter = {} as any;
  10533. // authentication cookie required
  10534. // authentication api_key required
  10535. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10536. // authentication bearer required
  10537. // http bearer authentication required
  10538. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10539. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10540. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10541. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10542. return {
  10543. url: toPathString(localVarUrlObj),
  10544. options: localVarRequestOptions,
  10545. };
  10546. },
  10547. }
  10548. };
  10549. /**
  10550. * PartnerApi - functional programming interface
  10551. * @export
  10552. */
  10553. export const PartnerApiFp = function(configuration?: Configuration) {
  10554. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  10555. return {
  10556. /**
  10557. *
  10558. * @param {string} id
  10559. * @param {*} [options] Override http request option.
  10560. * @throws {RequiredError}
  10561. */
  10562. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10563. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  10564. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10565. },
  10566. /**
  10567. *
  10568. * @param {'shared-by' | 'shared-with'} direction
  10569. * @param {*} [options] Override http request option.
  10570. * @throws {RequiredError}
  10571. */
  10572. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  10573. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  10574. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10575. },
  10576. /**
  10577. *
  10578. * @param {string} id
  10579. * @param {*} [options] Override http request option.
  10580. * @throws {RequiredError}
  10581. */
  10582. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10583. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  10584. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10585. },
  10586. }
  10587. };
  10588. /**
  10589. * PartnerApi - factory interface
  10590. * @export
  10591. */
  10592. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10593. const localVarFp = PartnerApiFp(configuration)
  10594. return {
  10595. /**
  10596. *
  10597. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10598. * @param {*} [options] Override http request option.
  10599. * @throws {RequiredError}
  10600. */
  10601. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10602. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10603. },
  10604. /**
  10605. *
  10606. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10607. * @param {*} [options] Override http request option.
  10608. * @throws {RequiredError}
  10609. */
  10610. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  10611. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  10612. },
  10613. /**
  10614. *
  10615. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10616. * @param {*} [options] Override http request option.
  10617. * @throws {RequiredError}
  10618. */
  10619. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10620. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10621. },
  10622. };
  10623. };
  10624. /**
  10625. * Request parameters for createPartner operation in PartnerApi.
  10626. * @export
  10627. * @interface PartnerApiCreatePartnerRequest
  10628. */
  10629. export interface PartnerApiCreatePartnerRequest {
  10630. /**
  10631. *
  10632. * @type {string}
  10633. * @memberof PartnerApiCreatePartner
  10634. */
  10635. readonly id: string
  10636. }
  10637. /**
  10638. * Request parameters for getPartners operation in PartnerApi.
  10639. * @export
  10640. * @interface PartnerApiGetPartnersRequest
  10641. */
  10642. export interface PartnerApiGetPartnersRequest {
  10643. /**
  10644. *
  10645. * @type {'shared-by' | 'shared-with'}
  10646. * @memberof PartnerApiGetPartners
  10647. */
  10648. readonly direction: 'shared-by' | 'shared-with'
  10649. }
  10650. /**
  10651. * Request parameters for removePartner operation in PartnerApi.
  10652. * @export
  10653. * @interface PartnerApiRemovePartnerRequest
  10654. */
  10655. export interface PartnerApiRemovePartnerRequest {
  10656. /**
  10657. *
  10658. * @type {string}
  10659. * @memberof PartnerApiRemovePartner
  10660. */
  10661. readonly id: string
  10662. }
  10663. /**
  10664. * PartnerApi - object-oriented interface
  10665. * @export
  10666. * @class PartnerApi
  10667. * @extends {BaseAPI}
  10668. */
  10669. export class PartnerApi extends BaseAPI {
  10670. /**
  10671. *
  10672. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10673. * @param {*} [options] Override http request option.
  10674. * @throws {RequiredError}
  10675. * @memberof PartnerApi
  10676. */
  10677. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  10678. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10679. }
  10680. /**
  10681. *
  10682. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10683. * @param {*} [options] Override http request option.
  10684. * @throws {RequiredError}
  10685. * @memberof PartnerApi
  10686. */
  10687. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  10688. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  10689. }
  10690. /**
  10691. *
  10692. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10693. * @param {*} [options] Override http request option.
  10694. * @throws {RequiredError}
  10695. * @memberof PartnerApi
  10696. */
  10697. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  10698. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10699. }
  10700. }
  10701. /**
  10702. * PersonApi - axios parameter creator
  10703. * @export
  10704. */
  10705. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  10706. return {
  10707. /**
  10708. *
  10709. * @param {boolean} [withHidden]
  10710. * @param {*} [options] Override http request option.
  10711. * @throws {RequiredError}
  10712. */
  10713. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10714. const localVarPath = `/person`;
  10715. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10716. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10717. let baseOptions;
  10718. if (configuration) {
  10719. baseOptions = configuration.baseOptions;
  10720. }
  10721. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10722. const localVarHeaderParameter = {} as any;
  10723. const localVarQueryParameter = {} as any;
  10724. // authentication cookie required
  10725. // authentication api_key required
  10726. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10727. // authentication bearer required
  10728. // http bearer authentication required
  10729. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10730. if (withHidden !== undefined) {
  10731. localVarQueryParameter['withHidden'] = withHidden;
  10732. }
  10733. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10734. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10735. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10736. return {
  10737. url: toPathString(localVarUrlObj),
  10738. options: localVarRequestOptions,
  10739. };
  10740. },
  10741. /**
  10742. *
  10743. * @param {string} id
  10744. * @param {*} [options] Override http request option.
  10745. * @throws {RequiredError}
  10746. */
  10747. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10748. // verify required parameter 'id' is not null or undefined
  10749. assertParamExists('getPerson', 'id', id)
  10750. const localVarPath = `/person/{id}`
  10751. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10752. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10753. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10754. let baseOptions;
  10755. if (configuration) {
  10756. baseOptions = configuration.baseOptions;
  10757. }
  10758. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10759. const localVarHeaderParameter = {} as any;
  10760. const localVarQueryParameter = {} as any;
  10761. // authentication cookie required
  10762. // authentication api_key required
  10763. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10764. // authentication bearer required
  10765. // http bearer authentication required
  10766. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10767. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10768. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10769. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10770. return {
  10771. url: toPathString(localVarUrlObj),
  10772. options: localVarRequestOptions,
  10773. };
  10774. },
  10775. /**
  10776. *
  10777. * @param {string} id
  10778. * @param {*} [options] Override http request option.
  10779. * @throws {RequiredError}
  10780. */
  10781. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10782. // verify required parameter 'id' is not null or undefined
  10783. assertParamExists('getPersonAssets', 'id', id)
  10784. const localVarPath = `/person/{id}/assets`
  10785. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10786. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10787. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10788. let baseOptions;
  10789. if (configuration) {
  10790. baseOptions = configuration.baseOptions;
  10791. }
  10792. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10793. const localVarHeaderParameter = {} as any;
  10794. const localVarQueryParameter = {} as any;
  10795. // authentication cookie required
  10796. // authentication api_key required
  10797. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10798. // authentication bearer required
  10799. // http bearer authentication required
  10800. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10801. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10802. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10803. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10804. return {
  10805. url: toPathString(localVarUrlObj),
  10806. options: localVarRequestOptions,
  10807. };
  10808. },
  10809. /**
  10810. *
  10811. * @param {string} id
  10812. * @param {*} [options] Override http request option.
  10813. * @throws {RequiredError}
  10814. */
  10815. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10816. // verify required parameter 'id' is not null or undefined
  10817. assertParamExists('getPersonStatistics', 'id', id)
  10818. const localVarPath = `/person/{id}/statistics`
  10819. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10820. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10821. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10822. let baseOptions;
  10823. if (configuration) {
  10824. baseOptions = configuration.baseOptions;
  10825. }
  10826. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10827. const localVarHeaderParameter = {} as any;
  10828. const localVarQueryParameter = {} as any;
  10829. // authentication cookie required
  10830. // authentication api_key required
  10831. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10832. // authentication bearer required
  10833. // http bearer authentication required
  10834. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10835. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10836. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10837. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10838. return {
  10839. url: toPathString(localVarUrlObj),
  10840. options: localVarRequestOptions,
  10841. };
  10842. },
  10843. /**
  10844. *
  10845. * @param {string} id
  10846. * @param {*} [options] Override http request option.
  10847. * @throws {RequiredError}
  10848. */
  10849. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10850. // verify required parameter 'id' is not null or undefined
  10851. assertParamExists('getPersonThumbnail', 'id', id)
  10852. const localVarPath = `/person/{id}/thumbnail`
  10853. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10854. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10855. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10856. let baseOptions;
  10857. if (configuration) {
  10858. baseOptions = configuration.baseOptions;
  10859. }
  10860. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10861. const localVarHeaderParameter = {} as any;
  10862. const localVarQueryParameter = {} as any;
  10863. // authentication cookie required
  10864. // authentication api_key required
  10865. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10866. // authentication bearer required
  10867. // http bearer authentication required
  10868. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10869. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10870. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10871. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10872. return {
  10873. url: toPathString(localVarUrlObj),
  10874. options: localVarRequestOptions,
  10875. };
  10876. },
  10877. /**
  10878. *
  10879. * @param {string} id
  10880. * @param {MergePersonDto} mergePersonDto
  10881. * @param {*} [options] Override http request option.
  10882. * @throws {RequiredError}
  10883. */
  10884. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10885. // verify required parameter 'id' is not null or undefined
  10886. assertParamExists('mergePerson', 'id', id)
  10887. // verify required parameter 'mergePersonDto' is not null or undefined
  10888. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  10889. const localVarPath = `/person/{id}/merge`
  10890. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10891. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10892. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10893. let baseOptions;
  10894. if (configuration) {
  10895. baseOptions = configuration.baseOptions;
  10896. }
  10897. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10898. const localVarHeaderParameter = {} as any;
  10899. const localVarQueryParameter = {} as any;
  10900. // authentication cookie required
  10901. // authentication api_key required
  10902. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10903. // authentication bearer required
  10904. // http bearer authentication required
  10905. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10906. localVarHeaderParameter['Content-Type'] = 'application/json';
  10907. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10908. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10909. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10910. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  10911. return {
  10912. url: toPathString(localVarUrlObj),
  10913. options: localVarRequestOptions,
  10914. };
  10915. },
  10916. /**
  10917. *
  10918. * @param {PeopleUpdateDto} peopleUpdateDto
  10919. * @param {*} [options] Override http request option.
  10920. * @throws {RequiredError}
  10921. */
  10922. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10923. // verify required parameter 'peopleUpdateDto' is not null or undefined
  10924. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  10925. const localVarPath = `/person`;
  10926. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10927. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10928. let baseOptions;
  10929. if (configuration) {
  10930. baseOptions = configuration.baseOptions;
  10931. }
  10932. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10933. const localVarHeaderParameter = {} as any;
  10934. const localVarQueryParameter = {} as any;
  10935. // authentication cookie required
  10936. // authentication api_key required
  10937. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10938. // authentication bearer required
  10939. // http bearer authentication required
  10940. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10941. localVarHeaderParameter['Content-Type'] = 'application/json';
  10942. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10943. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10944. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10945. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  10946. return {
  10947. url: toPathString(localVarUrlObj),
  10948. options: localVarRequestOptions,
  10949. };
  10950. },
  10951. /**
  10952. *
  10953. * @param {string} id
  10954. * @param {PersonUpdateDto} personUpdateDto
  10955. * @param {*} [options] Override http request option.
  10956. * @throws {RequiredError}
  10957. */
  10958. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10959. // verify required parameter 'id' is not null or undefined
  10960. assertParamExists('updatePerson', 'id', id)
  10961. // verify required parameter 'personUpdateDto' is not null or undefined
  10962. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  10963. const localVarPath = `/person/{id}`
  10964. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10965. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10966. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10967. let baseOptions;
  10968. if (configuration) {
  10969. baseOptions = configuration.baseOptions;
  10970. }
  10971. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10972. const localVarHeaderParameter = {} as any;
  10973. const localVarQueryParameter = {} as any;
  10974. // authentication cookie required
  10975. // authentication api_key required
  10976. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10977. // authentication bearer required
  10978. // http bearer authentication required
  10979. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10980. localVarHeaderParameter['Content-Type'] = 'application/json';
  10981. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10982. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10983. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10984. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  10985. return {
  10986. url: toPathString(localVarUrlObj),
  10987. options: localVarRequestOptions,
  10988. };
  10989. },
  10990. }
  10991. };
  10992. /**
  10993. * PersonApi - functional programming interface
  10994. * @export
  10995. */
  10996. export const PersonApiFp = function(configuration?: Configuration) {
  10997. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  10998. return {
  10999. /**
  11000. *
  11001. * @param {boolean} [withHidden]
  11002. * @param {*} [options] Override http request option.
  11003. * @throws {RequiredError}
  11004. */
  11005. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  11006. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  11007. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11008. },
  11009. /**
  11010. *
  11011. * @param {string} id
  11012. * @param {*} [options] Override http request option.
  11013. * @throws {RequiredError}
  11014. */
  11015. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11016. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  11017. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11018. },
  11019. /**
  11020. *
  11021. * @param {string} id
  11022. * @param {*} [options] Override http request option.
  11023. * @throws {RequiredError}
  11024. */
  11025. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  11026. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  11027. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11028. },
  11029. /**
  11030. *
  11031. * @param {string} id
  11032. * @param {*} [options] Override http request option.
  11033. * @throws {RequiredError}
  11034. */
  11035. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  11036. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  11037. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11038. },
  11039. /**
  11040. *
  11041. * @param {string} id
  11042. * @param {*} [options] Override http request option.
  11043. * @throws {RequiredError}
  11044. */
  11045. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  11046. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  11047. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11048. },
  11049. /**
  11050. *
  11051. * @param {string} id
  11052. * @param {MergePersonDto} mergePersonDto
  11053. * @param {*} [options] Override http request option.
  11054. * @throws {RequiredError}
  11055. */
  11056. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11057. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  11058. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11059. },
  11060. /**
  11061. *
  11062. * @param {PeopleUpdateDto} peopleUpdateDto
  11063. * @param {*} [options] Override http request option.
  11064. * @throws {RequiredError}
  11065. */
  11066. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11067. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  11068. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11069. },
  11070. /**
  11071. *
  11072. * @param {string} id
  11073. * @param {PersonUpdateDto} personUpdateDto
  11074. * @param {*} [options] Override http request option.
  11075. * @throws {RequiredError}
  11076. */
  11077. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11078. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  11079. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11080. },
  11081. }
  11082. };
  11083. /**
  11084. * PersonApi - factory interface
  11085. * @export
  11086. */
  11087. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11088. const localVarFp = PersonApiFp(configuration)
  11089. return {
  11090. /**
  11091. *
  11092. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11093. * @param {*} [options] Override http request option.
  11094. * @throws {RequiredError}
  11095. */
  11096. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  11097. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11098. },
  11099. /**
  11100. *
  11101. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11102. * @param {*} [options] Override http request option.
  11103. * @throws {RequiredError}
  11104. */
  11105. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11106. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  11107. },
  11108. /**
  11109. *
  11110. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11111. * @param {*} [options] Override http request option.
  11112. * @throws {RequiredError}
  11113. */
  11114. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  11115. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  11116. },
  11117. /**
  11118. *
  11119. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11120. * @param {*} [options] Override http request option.
  11121. * @throws {RequiredError}
  11122. */
  11123. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  11124. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  11125. },
  11126. /**
  11127. *
  11128. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11129. * @param {*} [options] Override http request option.
  11130. * @throws {RequiredError}
  11131. */
  11132. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  11133. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  11134. },
  11135. /**
  11136. *
  11137. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11138. * @param {*} [options] Override http request option.
  11139. * @throws {RequiredError}
  11140. */
  11141. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11142. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  11143. },
  11144. /**
  11145. *
  11146. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11147. * @param {*} [options] Override http request option.
  11148. * @throws {RequiredError}
  11149. */
  11150. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11151. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  11152. },
  11153. /**
  11154. *
  11155. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11156. * @param {*} [options] Override http request option.
  11157. * @throws {RequiredError}
  11158. */
  11159. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11160. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  11161. },
  11162. };
  11163. };
  11164. /**
  11165. * Request parameters for getAllPeople operation in PersonApi.
  11166. * @export
  11167. * @interface PersonApiGetAllPeopleRequest
  11168. */
  11169. export interface PersonApiGetAllPeopleRequest {
  11170. /**
  11171. *
  11172. * @type {boolean}
  11173. * @memberof PersonApiGetAllPeople
  11174. */
  11175. readonly withHidden?: boolean
  11176. }
  11177. /**
  11178. * Request parameters for getPerson operation in PersonApi.
  11179. * @export
  11180. * @interface PersonApiGetPersonRequest
  11181. */
  11182. export interface PersonApiGetPersonRequest {
  11183. /**
  11184. *
  11185. * @type {string}
  11186. * @memberof PersonApiGetPerson
  11187. */
  11188. readonly id: string
  11189. }
  11190. /**
  11191. * Request parameters for getPersonAssets operation in PersonApi.
  11192. * @export
  11193. * @interface PersonApiGetPersonAssetsRequest
  11194. */
  11195. export interface PersonApiGetPersonAssetsRequest {
  11196. /**
  11197. *
  11198. * @type {string}
  11199. * @memberof PersonApiGetPersonAssets
  11200. */
  11201. readonly id: string
  11202. }
  11203. /**
  11204. * Request parameters for getPersonStatistics operation in PersonApi.
  11205. * @export
  11206. * @interface PersonApiGetPersonStatisticsRequest
  11207. */
  11208. export interface PersonApiGetPersonStatisticsRequest {
  11209. /**
  11210. *
  11211. * @type {string}
  11212. * @memberof PersonApiGetPersonStatistics
  11213. */
  11214. readonly id: string
  11215. }
  11216. /**
  11217. * Request parameters for getPersonThumbnail operation in PersonApi.
  11218. * @export
  11219. * @interface PersonApiGetPersonThumbnailRequest
  11220. */
  11221. export interface PersonApiGetPersonThumbnailRequest {
  11222. /**
  11223. *
  11224. * @type {string}
  11225. * @memberof PersonApiGetPersonThumbnail
  11226. */
  11227. readonly id: string
  11228. }
  11229. /**
  11230. * Request parameters for mergePerson operation in PersonApi.
  11231. * @export
  11232. * @interface PersonApiMergePersonRequest
  11233. */
  11234. export interface PersonApiMergePersonRequest {
  11235. /**
  11236. *
  11237. * @type {string}
  11238. * @memberof PersonApiMergePerson
  11239. */
  11240. readonly id: string
  11241. /**
  11242. *
  11243. * @type {MergePersonDto}
  11244. * @memberof PersonApiMergePerson
  11245. */
  11246. readonly mergePersonDto: MergePersonDto
  11247. }
  11248. /**
  11249. * Request parameters for updatePeople operation in PersonApi.
  11250. * @export
  11251. * @interface PersonApiUpdatePeopleRequest
  11252. */
  11253. export interface PersonApiUpdatePeopleRequest {
  11254. /**
  11255. *
  11256. * @type {PeopleUpdateDto}
  11257. * @memberof PersonApiUpdatePeople
  11258. */
  11259. readonly peopleUpdateDto: PeopleUpdateDto
  11260. }
  11261. /**
  11262. * Request parameters for updatePerson operation in PersonApi.
  11263. * @export
  11264. * @interface PersonApiUpdatePersonRequest
  11265. */
  11266. export interface PersonApiUpdatePersonRequest {
  11267. /**
  11268. *
  11269. * @type {string}
  11270. * @memberof PersonApiUpdatePerson
  11271. */
  11272. readonly id: string
  11273. /**
  11274. *
  11275. * @type {PersonUpdateDto}
  11276. * @memberof PersonApiUpdatePerson
  11277. */
  11278. readonly personUpdateDto: PersonUpdateDto
  11279. }
  11280. /**
  11281. * PersonApi - object-oriented interface
  11282. * @export
  11283. * @class PersonApi
  11284. * @extends {BaseAPI}
  11285. */
  11286. export class PersonApi extends BaseAPI {
  11287. /**
  11288. *
  11289. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11290. * @param {*} [options] Override http request option.
  11291. * @throws {RequiredError}
  11292. * @memberof PersonApi
  11293. */
  11294. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  11295. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11296. }
  11297. /**
  11298. *
  11299. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11300. * @param {*} [options] Override http request option.
  11301. * @throws {RequiredError}
  11302. * @memberof PersonApi
  11303. */
  11304. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  11305. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11306. }
  11307. /**
  11308. *
  11309. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11310. * @param {*} [options] Override http request option.
  11311. * @throws {RequiredError}
  11312. * @memberof PersonApi
  11313. */
  11314. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  11315. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11316. }
  11317. /**
  11318. *
  11319. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11320. * @param {*} [options] Override http request option.
  11321. * @throws {RequiredError}
  11322. * @memberof PersonApi
  11323. */
  11324. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  11325. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11326. }
  11327. /**
  11328. *
  11329. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11330. * @param {*} [options] Override http request option.
  11331. * @throws {RequiredError}
  11332. * @memberof PersonApi
  11333. */
  11334. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  11335. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11336. }
  11337. /**
  11338. *
  11339. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11340. * @param {*} [options] Override http request option.
  11341. * @throws {RequiredError}
  11342. * @memberof PersonApi
  11343. */
  11344. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  11345. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  11346. }
  11347. /**
  11348. *
  11349. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11350. * @param {*} [options] Override http request option.
  11351. * @throws {RequiredError}
  11352. * @memberof PersonApi
  11353. */
  11354. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  11355. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11356. }
  11357. /**
  11358. *
  11359. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11360. * @param {*} [options] Override http request option.
  11361. * @throws {RequiredError}
  11362. * @memberof PersonApi
  11363. */
  11364. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  11365. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11366. }
  11367. }
  11368. /**
  11369. * SearchApi - axios parameter creator
  11370. * @export
  11371. */
  11372. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  11373. return {
  11374. /**
  11375. *
  11376. * @param {*} [options] Override http request option.
  11377. * @throws {RequiredError}
  11378. */
  11379. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11380. const localVarPath = `/search/explore`;
  11381. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11382. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11383. let baseOptions;
  11384. if (configuration) {
  11385. baseOptions = configuration.baseOptions;
  11386. }
  11387. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11388. const localVarHeaderParameter = {} as any;
  11389. const localVarQueryParameter = {} as any;
  11390. // authentication cookie required
  11391. // authentication api_key required
  11392. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11393. // authentication bearer required
  11394. // http bearer authentication required
  11395. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11396. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11397. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11398. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11399. return {
  11400. url: toPathString(localVarUrlObj),
  11401. options: localVarRequestOptions,
  11402. };
  11403. },
  11404. /**
  11405. *
  11406. * @param {string} [q]
  11407. * @param {string} [query]
  11408. * @param {boolean} [clip]
  11409. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11410. * @param {boolean} [isFavorite]
  11411. * @param {boolean} [isArchived]
  11412. * @param {string} [exifInfoCity]
  11413. * @param {string} [exifInfoState]
  11414. * @param {string} [exifInfoCountry]
  11415. * @param {string} [exifInfoMake]
  11416. * @param {string} [exifInfoModel]
  11417. * @param {string} [exifInfoProjectionType]
  11418. * @param {Array<string>} [smartInfoObjects]
  11419. * @param {Array<string>} [smartInfoTags]
  11420. * @param {boolean} [recent]
  11421. * @param {boolean} [motion]
  11422. * @param {*} [options] Override http request option.
  11423. * @throws {RequiredError}
  11424. */
  11425. 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> => {
  11426. const localVarPath = `/search`;
  11427. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11428. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11429. let baseOptions;
  11430. if (configuration) {
  11431. baseOptions = configuration.baseOptions;
  11432. }
  11433. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11434. const localVarHeaderParameter = {} as any;
  11435. const localVarQueryParameter = {} as any;
  11436. // authentication cookie required
  11437. // authentication api_key required
  11438. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11439. // authentication bearer required
  11440. // http bearer authentication required
  11441. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11442. if (q !== undefined) {
  11443. localVarQueryParameter['q'] = q;
  11444. }
  11445. if (query !== undefined) {
  11446. localVarQueryParameter['query'] = query;
  11447. }
  11448. if (clip !== undefined) {
  11449. localVarQueryParameter['clip'] = clip;
  11450. }
  11451. if (type !== undefined) {
  11452. localVarQueryParameter['type'] = type;
  11453. }
  11454. if (isFavorite !== undefined) {
  11455. localVarQueryParameter['isFavorite'] = isFavorite;
  11456. }
  11457. if (isArchived !== undefined) {
  11458. localVarQueryParameter['isArchived'] = isArchived;
  11459. }
  11460. if (exifInfoCity !== undefined) {
  11461. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  11462. }
  11463. if (exifInfoState !== undefined) {
  11464. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  11465. }
  11466. if (exifInfoCountry !== undefined) {
  11467. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  11468. }
  11469. if (exifInfoMake !== undefined) {
  11470. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  11471. }
  11472. if (exifInfoModel !== undefined) {
  11473. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  11474. }
  11475. if (exifInfoProjectionType !== undefined) {
  11476. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  11477. }
  11478. if (smartInfoObjects) {
  11479. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  11480. }
  11481. if (smartInfoTags) {
  11482. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  11483. }
  11484. if (recent !== undefined) {
  11485. localVarQueryParameter['recent'] = recent;
  11486. }
  11487. if (motion !== undefined) {
  11488. localVarQueryParameter['motion'] = motion;
  11489. }
  11490. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11491. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11492. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11493. return {
  11494. url: toPathString(localVarUrlObj),
  11495. options: localVarRequestOptions,
  11496. };
  11497. },
  11498. /**
  11499. *
  11500. * @param {string} name
  11501. * @param {boolean} [withHidden]
  11502. * @param {*} [options] Override http request option.
  11503. * @throws {RequiredError}
  11504. */
  11505. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11506. // verify required parameter 'name' is not null or undefined
  11507. assertParamExists('searchPerson', 'name', name)
  11508. const localVarPath = `/search/person`;
  11509. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11510. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11511. let baseOptions;
  11512. if (configuration) {
  11513. baseOptions = configuration.baseOptions;
  11514. }
  11515. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11516. const localVarHeaderParameter = {} as any;
  11517. const localVarQueryParameter = {} as any;
  11518. // authentication cookie required
  11519. // authentication api_key required
  11520. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11521. // authentication bearer required
  11522. // http bearer authentication required
  11523. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11524. if (name !== undefined) {
  11525. localVarQueryParameter['name'] = name;
  11526. }
  11527. if (withHidden !== undefined) {
  11528. localVarQueryParameter['withHidden'] = withHidden;
  11529. }
  11530. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11531. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11532. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11533. return {
  11534. url: toPathString(localVarUrlObj),
  11535. options: localVarRequestOptions,
  11536. };
  11537. },
  11538. }
  11539. };
  11540. /**
  11541. * SearchApi - functional programming interface
  11542. * @export
  11543. */
  11544. export const SearchApiFp = function(configuration?: Configuration) {
  11545. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  11546. return {
  11547. /**
  11548. *
  11549. * @param {*} [options] Override http request option.
  11550. * @throws {RequiredError}
  11551. */
  11552. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  11553. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  11554. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11555. },
  11556. /**
  11557. *
  11558. * @param {string} [q]
  11559. * @param {string} [query]
  11560. * @param {boolean} [clip]
  11561. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11562. * @param {boolean} [isFavorite]
  11563. * @param {boolean} [isArchived]
  11564. * @param {string} [exifInfoCity]
  11565. * @param {string} [exifInfoState]
  11566. * @param {string} [exifInfoCountry]
  11567. * @param {string} [exifInfoMake]
  11568. * @param {string} [exifInfoModel]
  11569. * @param {string} [exifInfoProjectionType]
  11570. * @param {Array<string>} [smartInfoObjects]
  11571. * @param {Array<string>} [smartInfoTags]
  11572. * @param {boolean} [recent]
  11573. * @param {boolean} [motion]
  11574. * @param {*} [options] Override http request option.
  11575. * @throws {RequiredError}
  11576. */
  11577. 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>> {
  11578. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  11579. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11580. },
  11581. /**
  11582. *
  11583. * @param {string} name
  11584. * @param {boolean} [withHidden]
  11585. * @param {*} [options] Override http request option.
  11586. * @throws {RequiredError}
  11587. */
  11588. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  11589. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  11590. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11591. },
  11592. }
  11593. };
  11594. /**
  11595. * SearchApi - factory interface
  11596. * @export
  11597. */
  11598. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11599. const localVarFp = SearchApiFp(configuration)
  11600. return {
  11601. /**
  11602. *
  11603. * @param {*} [options] Override http request option.
  11604. * @throws {RequiredError}
  11605. */
  11606. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  11607. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  11608. },
  11609. /**
  11610. *
  11611. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11612. * @param {*} [options] Override http request option.
  11613. * @throws {RequiredError}
  11614. */
  11615. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  11616. 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));
  11617. },
  11618. /**
  11619. *
  11620. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11621. * @param {*} [options] Override http request option.
  11622. * @throws {RequiredError}
  11623. */
  11624. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  11625. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11626. },
  11627. };
  11628. };
  11629. /**
  11630. * Request parameters for search operation in SearchApi.
  11631. * @export
  11632. * @interface SearchApiSearchRequest
  11633. */
  11634. export interface SearchApiSearchRequest {
  11635. /**
  11636. *
  11637. * @type {string}
  11638. * @memberof SearchApiSearch
  11639. */
  11640. readonly q?: string
  11641. /**
  11642. *
  11643. * @type {string}
  11644. * @memberof SearchApiSearch
  11645. */
  11646. readonly query?: string
  11647. /**
  11648. *
  11649. * @type {boolean}
  11650. * @memberof SearchApiSearch
  11651. */
  11652. readonly clip?: boolean
  11653. /**
  11654. *
  11655. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  11656. * @memberof SearchApiSearch
  11657. */
  11658. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  11659. /**
  11660. *
  11661. * @type {boolean}
  11662. * @memberof SearchApiSearch
  11663. */
  11664. readonly isFavorite?: boolean
  11665. /**
  11666. *
  11667. * @type {boolean}
  11668. * @memberof SearchApiSearch
  11669. */
  11670. readonly isArchived?: boolean
  11671. /**
  11672. *
  11673. * @type {string}
  11674. * @memberof SearchApiSearch
  11675. */
  11676. readonly exifInfoCity?: string
  11677. /**
  11678. *
  11679. * @type {string}
  11680. * @memberof SearchApiSearch
  11681. */
  11682. readonly exifInfoState?: string
  11683. /**
  11684. *
  11685. * @type {string}
  11686. * @memberof SearchApiSearch
  11687. */
  11688. readonly exifInfoCountry?: string
  11689. /**
  11690. *
  11691. * @type {string}
  11692. * @memberof SearchApiSearch
  11693. */
  11694. readonly exifInfoMake?: string
  11695. /**
  11696. *
  11697. * @type {string}
  11698. * @memberof SearchApiSearch
  11699. */
  11700. readonly exifInfoModel?: string
  11701. /**
  11702. *
  11703. * @type {string}
  11704. * @memberof SearchApiSearch
  11705. */
  11706. readonly exifInfoProjectionType?: string
  11707. /**
  11708. *
  11709. * @type {Array<string>}
  11710. * @memberof SearchApiSearch
  11711. */
  11712. readonly smartInfoObjects?: Array<string>
  11713. /**
  11714. *
  11715. * @type {Array<string>}
  11716. * @memberof SearchApiSearch
  11717. */
  11718. readonly smartInfoTags?: Array<string>
  11719. /**
  11720. *
  11721. * @type {boolean}
  11722. * @memberof SearchApiSearch
  11723. */
  11724. readonly recent?: boolean
  11725. /**
  11726. *
  11727. * @type {boolean}
  11728. * @memberof SearchApiSearch
  11729. */
  11730. readonly motion?: boolean
  11731. }
  11732. /**
  11733. * Request parameters for searchPerson operation in SearchApi.
  11734. * @export
  11735. * @interface SearchApiSearchPersonRequest
  11736. */
  11737. export interface SearchApiSearchPersonRequest {
  11738. /**
  11739. *
  11740. * @type {string}
  11741. * @memberof SearchApiSearchPerson
  11742. */
  11743. readonly name: string
  11744. /**
  11745. *
  11746. * @type {boolean}
  11747. * @memberof SearchApiSearchPerson
  11748. */
  11749. readonly withHidden?: boolean
  11750. }
  11751. /**
  11752. * SearchApi - object-oriented interface
  11753. * @export
  11754. * @class SearchApi
  11755. * @extends {BaseAPI}
  11756. */
  11757. export class SearchApi extends BaseAPI {
  11758. /**
  11759. *
  11760. * @param {*} [options] Override http request option.
  11761. * @throws {RequiredError}
  11762. * @memberof SearchApi
  11763. */
  11764. public getExploreData(options?: AxiosRequestConfig) {
  11765. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  11766. }
  11767. /**
  11768. *
  11769. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11770. * @param {*} [options] Override http request option.
  11771. * @throws {RequiredError}
  11772. * @memberof SearchApi
  11773. */
  11774. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  11775. 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));
  11776. }
  11777. /**
  11778. *
  11779. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11780. * @param {*} [options] Override http request option.
  11781. * @throws {RequiredError}
  11782. * @memberof SearchApi
  11783. */
  11784. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  11785. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11786. }
  11787. }
  11788. /**
  11789. * ServerInfoApi - axios parameter creator
  11790. * @export
  11791. */
  11792. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  11793. return {
  11794. /**
  11795. *
  11796. * @param {*} [options] Override http request option.
  11797. * @throws {RequiredError}
  11798. */
  11799. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11800. const localVarPath = `/server-info/config`;
  11801. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11802. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11803. let baseOptions;
  11804. if (configuration) {
  11805. baseOptions = configuration.baseOptions;
  11806. }
  11807. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11808. const localVarHeaderParameter = {} as any;
  11809. const localVarQueryParameter = {} as any;
  11810. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11811. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11812. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11813. return {
  11814. url: toPathString(localVarUrlObj),
  11815. options: localVarRequestOptions,
  11816. };
  11817. },
  11818. /**
  11819. *
  11820. * @param {*} [options] Override http request option.
  11821. * @throws {RequiredError}
  11822. */
  11823. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11824. const localVarPath = `/server-info/features`;
  11825. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11826. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11827. let baseOptions;
  11828. if (configuration) {
  11829. baseOptions = configuration.baseOptions;
  11830. }
  11831. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11832. const localVarHeaderParameter = {} as any;
  11833. const localVarQueryParameter = {} as any;
  11834. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11835. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11836. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11837. return {
  11838. url: toPathString(localVarUrlObj),
  11839. options: localVarRequestOptions,
  11840. };
  11841. },
  11842. /**
  11843. *
  11844. * @param {*} [options] Override http request option.
  11845. * @throws {RequiredError}
  11846. */
  11847. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11848. const localVarPath = `/server-info`;
  11849. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11850. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11851. let baseOptions;
  11852. if (configuration) {
  11853. baseOptions = configuration.baseOptions;
  11854. }
  11855. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11856. const localVarHeaderParameter = {} as any;
  11857. const localVarQueryParameter = {} as any;
  11858. // authentication cookie required
  11859. // authentication api_key required
  11860. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11861. // authentication bearer required
  11862. // http bearer authentication required
  11863. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11864. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11865. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11866. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11867. return {
  11868. url: toPathString(localVarUrlObj),
  11869. options: localVarRequestOptions,
  11870. };
  11871. },
  11872. /**
  11873. *
  11874. * @param {*} [options] Override http request option.
  11875. * @throws {RequiredError}
  11876. */
  11877. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11878. const localVarPath = `/server-info/version`;
  11879. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11880. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11881. let baseOptions;
  11882. if (configuration) {
  11883. baseOptions = configuration.baseOptions;
  11884. }
  11885. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11886. const localVarHeaderParameter = {} as any;
  11887. const localVarQueryParameter = {} as any;
  11888. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11889. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11890. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11891. return {
  11892. url: toPathString(localVarUrlObj),
  11893. options: localVarRequestOptions,
  11894. };
  11895. },
  11896. /**
  11897. *
  11898. * @param {*} [options] Override http request option.
  11899. * @throws {RequiredError}
  11900. */
  11901. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11902. const localVarPath = `/server-info/stats`;
  11903. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11904. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11905. let baseOptions;
  11906. if (configuration) {
  11907. baseOptions = configuration.baseOptions;
  11908. }
  11909. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11910. const localVarHeaderParameter = {} as any;
  11911. const localVarQueryParameter = {} as any;
  11912. // authentication cookie required
  11913. // authentication api_key required
  11914. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11915. // authentication bearer required
  11916. // http bearer authentication required
  11917. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11918. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11919. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11920. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11921. return {
  11922. url: toPathString(localVarUrlObj),
  11923. options: localVarRequestOptions,
  11924. };
  11925. },
  11926. /**
  11927. *
  11928. * @param {*} [options] Override http request option.
  11929. * @throws {RequiredError}
  11930. */
  11931. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11932. const localVarPath = `/server-info/media-types`;
  11933. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11934. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11935. let baseOptions;
  11936. if (configuration) {
  11937. baseOptions = configuration.baseOptions;
  11938. }
  11939. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11940. const localVarHeaderParameter = {} as any;
  11941. const localVarQueryParameter = {} as any;
  11942. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11943. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11944. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11945. return {
  11946. url: toPathString(localVarUrlObj),
  11947. options: localVarRequestOptions,
  11948. };
  11949. },
  11950. /**
  11951. *
  11952. * @param {*} [options] Override http request option.
  11953. * @throws {RequiredError}
  11954. */
  11955. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11956. const localVarPath = `/server-info/ping`;
  11957. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11958. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11959. let baseOptions;
  11960. if (configuration) {
  11961. baseOptions = configuration.baseOptions;
  11962. }
  11963. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11964. const localVarHeaderParameter = {} as any;
  11965. const localVarQueryParameter = {} as any;
  11966. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11967. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11968. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11969. return {
  11970. url: toPathString(localVarUrlObj),
  11971. options: localVarRequestOptions,
  11972. };
  11973. },
  11974. }
  11975. };
  11976. /**
  11977. * ServerInfoApi - functional programming interface
  11978. * @export
  11979. */
  11980. export const ServerInfoApiFp = function(configuration?: Configuration) {
  11981. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  11982. return {
  11983. /**
  11984. *
  11985. * @param {*} [options] Override http request option.
  11986. * @throws {RequiredError}
  11987. */
  11988. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  11989. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  11990. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11991. },
  11992. /**
  11993. *
  11994. * @param {*} [options] Override http request option.
  11995. * @throws {RequiredError}
  11996. */
  11997. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  11998. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  11999. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12000. },
  12001. /**
  12002. *
  12003. * @param {*} [options] Override http request option.
  12004. * @throws {RequiredError}
  12005. */
  12006. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  12007. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  12008. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12009. },
  12010. /**
  12011. *
  12012. * @param {*} [options] Override http request option.
  12013. * @throws {RequiredError}
  12014. */
  12015. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  12016. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  12017. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12018. },
  12019. /**
  12020. *
  12021. * @param {*} [options] Override http request option.
  12022. * @throws {RequiredError}
  12023. */
  12024. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  12025. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  12026. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12027. },
  12028. /**
  12029. *
  12030. * @param {*} [options] Override http request option.
  12031. * @throws {RequiredError}
  12032. */
  12033. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  12034. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  12035. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12036. },
  12037. /**
  12038. *
  12039. * @param {*} [options] Override http request option.
  12040. * @throws {RequiredError}
  12041. */
  12042. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  12043. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  12044. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12045. },
  12046. }
  12047. };
  12048. /**
  12049. * ServerInfoApi - factory interface
  12050. * @export
  12051. */
  12052. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12053. const localVarFp = ServerInfoApiFp(configuration)
  12054. return {
  12055. /**
  12056. *
  12057. * @param {*} [options] Override http request option.
  12058. * @throws {RequiredError}
  12059. */
  12060. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  12061. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  12062. },
  12063. /**
  12064. *
  12065. * @param {*} [options] Override http request option.
  12066. * @throws {RequiredError}
  12067. */
  12068. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  12069. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  12070. },
  12071. /**
  12072. *
  12073. * @param {*} [options] Override http request option.
  12074. * @throws {RequiredError}
  12075. */
  12076. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  12077. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  12078. },
  12079. /**
  12080. *
  12081. * @param {*} [options] Override http request option.
  12082. * @throws {RequiredError}
  12083. */
  12084. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  12085. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  12086. },
  12087. /**
  12088. *
  12089. * @param {*} [options] Override http request option.
  12090. * @throws {RequiredError}
  12091. */
  12092. getStats(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  12093. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  12094. },
  12095. /**
  12096. *
  12097. * @param {*} [options] Override http request option.
  12098. * @throws {RequiredError}
  12099. */
  12100. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  12101. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  12102. },
  12103. /**
  12104. *
  12105. * @param {*} [options] Override http request option.
  12106. * @throws {RequiredError}
  12107. */
  12108. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  12109. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  12110. },
  12111. };
  12112. };
  12113. /**
  12114. * ServerInfoApi - object-oriented interface
  12115. * @export
  12116. * @class ServerInfoApi
  12117. * @extends {BaseAPI}
  12118. */
  12119. export class ServerInfoApi extends BaseAPI {
  12120. /**
  12121. *
  12122. * @param {*} [options] Override http request option.
  12123. * @throws {RequiredError}
  12124. * @memberof ServerInfoApi
  12125. */
  12126. public getServerConfig(options?: AxiosRequestConfig) {
  12127. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  12128. }
  12129. /**
  12130. *
  12131. * @param {*} [options] Override http request option.
  12132. * @throws {RequiredError}
  12133. * @memberof ServerInfoApi
  12134. */
  12135. public getServerFeatures(options?: AxiosRequestConfig) {
  12136. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  12137. }
  12138. /**
  12139. *
  12140. * @param {*} [options] Override http request option.
  12141. * @throws {RequiredError}
  12142. * @memberof ServerInfoApi
  12143. */
  12144. public getServerInfo(options?: AxiosRequestConfig) {
  12145. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  12146. }
  12147. /**
  12148. *
  12149. * @param {*} [options] Override http request option.
  12150. * @throws {RequiredError}
  12151. * @memberof ServerInfoApi
  12152. */
  12153. public getServerVersion(options?: AxiosRequestConfig) {
  12154. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  12155. }
  12156. /**
  12157. *
  12158. * @param {*} [options] Override http request option.
  12159. * @throws {RequiredError}
  12160. * @memberof ServerInfoApi
  12161. */
  12162. public getStats(options?: AxiosRequestConfig) {
  12163. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  12164. }
  12165. /**
  12166. *
  12167. * @param {*} [options] Override http request option.
  12168. * @throws {RequiredError}
  12169. * @memberof ServerInfoApi
  12170. */
  12171. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  12172. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  12173. }
  12174. /**
  12175. *
  12176. * @param {*} [options] Override http request option.
  12177. * @throws {RequiredError}
  12178. * @memberof ServerInfoApi
  12179. */
  12180. public pingServer(options?: AxiosRequestConfig) {
  12181. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  12182. }
  12183. }
  12184. /**
  12185. * SharedLinkApi - axios parameter creator
  12186. * @export
  12187. */
  12188. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  12189. return {
  12190. /**
  12191. *
  12192. * @param {string} id
  12193. * @param {AssetIdsDto} assetIdsDto
  12194. * @param {string} [key]
  12195. * @param {*} [options] Override http request option.
  12196. * @throws {RequiredError}
  12197. */
  12198. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12199. // verify required parameter 'id' is not null or undefined
  12200. assertParamExists('addSharedLinkAssets', 'id', id)
  12201. // verify required parameter 'assetIdsDto' is not null or undefined
  12202. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12203. const localVarPath = `/shared-link/{id}/assets`
  12204. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12205. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12206. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12207. let baseOptions;
  12208. if (configuration) {
  12209. baseOptions = configuration.baseOptions;
  12210. }
  12211. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12212. const localVarHeaderParameter = {} as any;
  12213. const localVarQueryParameter = {} as any;
  12214. // authentication cookie required
  12215. // authentication api_key required
  12216. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12217. // authentication bearer required
  12218. // http bearer authentication required
  12219. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12220. if (key !== undefined) {
  12221. localVarQueryParameter['key'] = key;
  12222. }
  12223. localVarHeaderParameter['Content-Type'] = 'application/json';
  12224. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12225. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12226. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12227. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12228. return {
  12229. url: toPathString(localVarUrlObj),
  12230. options: localVarRequestOptions,
  12231. };
  12232. },
  12233. /**
  12234. *
  12235. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12236. * @param {*} [options] Override http request option.
  12237. * @throws {RequiredError}
  12238. */
  12239. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12240. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  12241. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  12242. const localVarPath = `/shared-link`;
  12243. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12244. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12245. let baseOptions;
  12246. if (configuration) {
  12247. baseOptions = configuration.baseOptions;
  12248. }
  12249. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12250. const localVarHeaderParameter = {} as any;
  12251. const localVarQueryParameter = {} as any;
  12252. // authentication cookie required
  12253. // authentication api_key required
  12254. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12255. // authentication bearer required
  12256. // http bearer authentication required
  12257. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12258. localVarHeaderParameter['Content-Type'] = 'application/json';
  12259. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12260. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12261. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12262. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  12263. return {
  12264. url: toPathString(localVarUrlObj),
  12265. options: localVarRequestOptions,
  12266. };
  12267. },
  12268. /**
  12269. *
  12270. * @param {*} [options] Override http request option.
  12271. * @throws {RequiredError}
  12272. */
  12273. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12274. const localVarPath = `/shared-link`;
  12275. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12276. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12277. let baseOptions;
  12278. if (configuration) {
  12279. baseOptions = configuration.baseOptions;
  12280. }
  12281. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12282. const localVarHeaderParameter = {} as any;
  12283. const localVarQueryParameter = {} as any;
  12284. // authentication cookie required
  12285. // authentication api_key required
  12286. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12287. // authentication bearer required
  12288. // http bearer authentication required
  12289. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12290. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12291. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12292. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12293. return {
  12294. url: toPathString(localVarUrlObj),
  12295. options: localVarRequestOptions,
  12296. };
  12297. },
  12298. /**
  12299. *
  12300. * @param {string} [key]
  12301. * @param {*} [options] Override http request option.
  12302. * @throws {RequiredError}
  12303. */
  12304. getMySharedLink: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12305. const localVarPath = `/shared-link/me`;
  12306. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12307. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12308. let baseOptions;
  12309. if (configuration) {
  12310. baseOptions = configuration.baseOptions;
  12311. }
  12312. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12313. const localVarHeaderParameter = {} as any;
  12314. const localVarQueryParameter = {} as any;
  12315. // authentication cookie required
  12316. // authentication api_key required
  12317. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12318. // authentication bearer required
  12319. // http bearer authentication required
  12320. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12321. if (key !== undefined) {
  12322. localVarQueryParameter['key'] = key;
  12323. }
  12324. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12325. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12326. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12327. return {
  12328. url: toPathString(localVarUrlObj),
  12329. options: localVarRequestOptions,
  12330. };
  12331. },
  12332. /**
  12333. *
  12334. * @param {string} id
  12335. * @param {*} [options] Override http request option.
  12336. * @throws {RequiredError}
  12337. */
  12338. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12339. // verify required parameter 'id' is not null or undefined
  12340. assertParamExists('getSharedLinkById', 'id', id)
  12341. const localVarPath = `/shared-link/{id}`
  12342. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12343. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12344. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12345. let baseOptions;
  12346. if (configuration) {
  12347. baseOptions = configuration.baseOptions;
  12348. }
  12349. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12350. const localVarHeaderParameter = {} as any;
  12351. const localVarQueryParameter = {} as any;
  12352. // authentication cookie required
  12353. // authentication api_key required
  12354. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12355. // authentication bearer required
  12356. // http bearer authentication required
  12357. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12358. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12359. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12360. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12361. return {
  12362. url: toPathString(localVarUrlObj),
  12363. options: localVarRequestOptions,
  12364. };
  12365. },
  12366. /**
  12367. *
  12368. * @param {string} id
  12369. * @param {*} [options] Override http request option.
  12370. * @throws {RequiredError}
  12371. */
  12372. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12373. // verify required parameter 'id' is not null or undefined
  12374. assertParamExists('removeSharedLink', 'id', id)
  12375. const localVarPath = `/shared-link/{id}`
  12376. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12377. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12378. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12379. let baseOptions;
  12380. if (configuration) {
  12381. baseOptions = configuration.baseOptions;
  12382. }
  12383. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12384. const localVarHeaderParameter = {} as any;
  12385. const localVarQueryParameter = {} as any;
  12386. // authentication cookie required
  12387. // authentication api_key required
  12388. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12389. // authentication bearer required
  12390. // http bearer authentication required
  12391. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12392. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12393. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12394. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12395. return {
  12396. url: toPathString(localVarUrlObj),
  12397. options: localVarRequestOptions,
  12398. };
  12399. },
  12400. /**
  12401. *
  12402. * @param {string} id
  12403. * @param {AssetIdsDto} assetIdsDto
  12404. * @param {string} [key]
  12405. * @param {*} [options] Override http request option.
  12406. * @throws {RequiredError}
  12407. */
  12408. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12409. // verify required parameter 'id' is not null or undefined
  12410. assertParamExists('removeSharedLinkAssets', 'id', id)
  12411. // verify required parameter 'assetIdsDto' is not null or undefined
  12412. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12413. const localVarPath = `/shared-link/{id}/assets`
  12414. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12415. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12416. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12417. let baseOptions;
  12418. if (configuration) {
  12419. baseOptions = configuration.baseOptions;
  12420. }
  12421. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12422. const localVarHeaderParameter = {} as any;
  12423. const localVarQueryParameter = {} as any;
  12424. // authentication cookie required
  12425. // authentication api_key required
  12426. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12427. // authentication bearer required
  12428. // http bearer authentication required
  12429. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12430. if (key !== undefined) {
  12431. localVarQueryParameter['key'] = key;
  12432. }
  12433. localVarHeaderParameter['Content-Type'] = 'application/json';
  12434. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12435. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12436. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12437. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12438. return {
  12439. url: toPathString(localVarUrlObj),
  12440. options: localVarRequestOptions,
  12441. };
  12442. },
  12443. /**
  12444. *
  12445. * @param {string} id
  12446. * @param {SharedLinkEditDto} sharedLinkEditDto
  12447. * @param {*} [options] Override http request option.
  12448. * @throws {RequiredError}
  12449. */
  12450. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12451. // verify required parameter 'id' is not null or undefined
  12452. assertParamExists('updateSharedLink', 'id', id)
  12453. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  12454. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  12455. const localVarPath = `/shared-link/{id}`
  12456. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12457. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12458. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12459. let baseOptions;
  12460. if (configuration) {
  12461. baseOptions = configuration.baseOptions;
  12462. }
  12463. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  12464. const localVarHeaderParameter = {} as any;
  12465. const localVarQueryParameter = {} as any;
  12466. // authentication cookie required
  12467. // authentication api_key required
  12468. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12469. // authentication bearer required
  12470. // http bearer authentication required
  12471. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12472. localVarHeaderParameter['Content-Type'] = 'application/json';
  12473. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12474. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12475. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12476. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  12477. return {
  12478. url: toPathString(localVarUrlObj),
  12479. options: localVarRequestOptions,
  12480. };
  12481. },
  12482. }
  12483. };
  12484. /**
  12485. * SharedLinkApi - functional programming interface
  12486. * @export
  12487. */
  12488. export const SharedLinkApiFp = function(configuration?: Configuration) {
  12489. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  12490. return {
  12491. /**
  12492. *
  12493. * @param {string} id
  12494. * @param {AssetIdsDto} assetIdsDto
  12495. * @param {string} [key]
  12496. * @param {*} [options] Override http request option.
  12497. * @throws {RequiredError}
  12498. */
  12499. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12500. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  12501. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12502. },
  12503. /**
  12504. *
  12505. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12506. * @param {*} [options] Override http request option.
  12507. * @throws {RequiredError}
  12508. */
  12509. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12510. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  12511. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12512. },
  12513. /**
  12514. *
  12515. * @param {*} [options] Override http request option.
  12516. * @throws {RequiredError}
  12517. */
  12518. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  12519. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  12520. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12521. },
  12522. /**
  12523. *
  12524. * @param {string} [key]
  12525. * @param {*} [options] Override http request option.
  12526. * @throws {RequiredError}
  12527. */
  12528. async getMySharedLink(key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12529. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(key, options);
  12530. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12531. },
  12532. /**
  12533. *
  12534. * @param {string} id
  12535. * @param {*} [options] Override http request option.
  12536. * @throws {RequiredError}
  12537. */
  12538. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12539. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  12540. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12541. },
  12542. /**
  12543. *
  12544. * @param {string} id
  12545. * @param {*} [options] Override http request option.
  12546. * @throws {RequiredError}
  12547. */
  12548. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  12549. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  12550. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12551. },
  12552. /**
  12553. *
  12554. * @param {string} id
  12555. * @param {AssetIdsDto} assetIdsDto
  12556. * @param {string} [key]
  12557. * @param {*} [options] Override http request option.
  12558. * @throws {RequiredError}
  12559. */
  12560. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12561. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  12562. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12563. },
  12564. /**
  12565. *
  12566. * @param {string} id
  12567. * @param {SharedLinkEditDto} sharedLinkEditDto
  12568. * @param {*} [options] Override http request option.
  12569. * @throws {RequiredError}
  12570. */
  12571. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12572. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  12573. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12574. },
  12575. }
  12576. };
  12577. /**
  12578. * SharedLinkApi - factory interface
  12579. * @export
  12580. */
  12581. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12582. const localVarFp = SharedLinkApiFp(configuration)
  12583. return {
  12584. /**
  12585. *
  12586. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12587. * @param {*} [options] Override http request option.
  12588. * @throws {RequiredError}
  12589. */
  12590. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12591. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12592. },
  12593. /**
  12594. *
  12595. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12596. * @param {*} [options] Override http request option.
  12597. * @throws {RequiredError}
  12598. */
  12599. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12600. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  12601. },
  12602. /**
  12603. *
  12604. * @param {*} [options] Override http request option.
  12605. * @throws {RequiredError}
  12606. */
  12607. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  12608. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  12609. },
  12610. /**
  12611. *
  12612. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12613. * @param {*} [options] Override http request option.
  12614. * @throws {RequiredError}
  12615. */
  12616. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12617. return localVarFp.getMySharedLink(requestParameters.key, options).then((request) => request(axios, basePath));
  12618. },
  12619. /**
  12620. *
  12621. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12622. * @param {*} [options] Override http request option.
  12623. * @throws {RequiredError}
  12624. */
  12625. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12626. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  12627. },
  12628. /**
  12629. *
  12630. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12631. * @param {*} [options] Override http request option.
  12632. * @throws {RequiredError}
  12633. */
  12634. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  12635. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  12636. },
  12637. /**
  12638. *
  12639. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12640. * @param {*} [options] Override http request option.
  12641. * @throws {RequiredError}
  12642. */
  12643. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12644. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12645. },
  12646. /**
  12647. *
  12648. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12649. * @param {*} [options] Override http request option.
  12650. * @throws {RequiredError}
  12651. */
  12652. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12653. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  12654. },
  12655. };
  12656. };
  12657. /**
  12658. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  12659. * @export
  12660. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  12661. */
  12662. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  12663. /**
  12664. *
  12665. * @type {string}
  12666. * @memberof SharedLinkApiAddSharedLinkAssets
  12667. */
  12668. readonly id: string
  12669. /**
  12670. *
  12671. * @type {AssetIdsDto}
  12672. * @memberof SharedLinkApiAddSharedLinkAssets
  12673. */
  12674. readonly assetIdsDto: AssetIdsDto
  12675. /**
  12676. *
  12677. * @type {string}
  12678. * @memberof SharedLinkApiAddSharedLinkAssets
  12679. */
  12680. readonly key?: string
  12681. }
  12682. /**
  12683. * Request parameters for createSharedLink operation in SharedLinkApi.
  12684. * @export
  12685. * @interface SharedLinkApiCreateSharedLinkRequest
  12686. */
  12687. export interface SharedLinkApiCreateSharedLinkRequest {
  12688. /**
  12689. *
  12690. * @type {SharedLinkCreateDto}
  12691. * @memberof SharedLinkApiCreateSharedLink
  12692. */
  12693. readonly sharedLinkCreateDto: SharedLinkCreateDto
  12694. }
  12695. /**
  12696. * Request parameters for getMySharedLink operation in SharedLinkApi.
  12697. * @export
  12698. * @interface SharedLinkApiGetMySharedLinkRequest
  12699. */
  12700. export interface SharedLinkApiGetMySharedLinkRequest {
  12701. /**
  12702. *
  12703. * @type {string}
  12704. * @memberof SharedLinkApiGetMySharedLink
  12705. */
  12706. readonly key?: string
  12707. }
  12708. /**
  12709. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  12710. * @export
  12711. * @interface SharedLinkApiGetSharedLinkByIdRequest
  12712. */
  12713. export interface SharedLinkApiGetSharedLinkByIdRequest {
  12714. /**
  12715. *
  12716. * @type {string}
  12717. * @memberof SharedLinkApiGetSharedLinkById
  12718. */
  12719. readonly id: string
  12720. }
  12721. /**
  12722. * Request parameters for removeSharedLink operation in SharedLinkApi.
  12723. * @export
  12724. * @interface SharedLinkApiRemoveSharedLinkRequest
  12725. */
  12726. export interface SharedLinkApiRemoveSharedLinkRequest {
  12727. /**
  12728. *
  12729. * @type {string}
  12730. * @memberof SharedLinkApiRemoveSharedLink
  12731. */
  12732. readonly id: string
  12733. }
  12734. /**
  12735. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  12736. * @export
  12737. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  12738. */
  12739. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  12740. /**
  12741. *
  12742. * @type {string}
  12743. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12744. */
  12745. readonly id: string
  12746. /**
  12747. *
  12748. * @type {AssetIdsDto}
  12749. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12750. */
  12751. readonly assetIdsDto: AssetIdsDto
  12752. /**
  12753. *
  12754. * @type {string}
  12755. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12756. */
  12757. readonly key?: string
  12758. }
  12759. /**
  12760. * Request parameters for updateSharedLink operation in SharedLinkApi.
  12761. * @export
  12762. * @interface SharedLinkApiUpdateSharedLinkRequest
  12763. */
  12764. export interface SharedLinkApiUpdateSharedLinkRequest {
  12765. /**
  12766. *
  12767. * @type {string}
  12768. * @memberof SharedLinkApiUpdateSharedLink
  12769. */
  12770. readonly id: string
  12771. /**
  12772. *
  12773. * @type {SharedLinkEditDto}
  12774. * @memberof SharedLinkApiUpdateSharedLink
  12775. */
  12776. readonly sharedLinkEditDto: SharedLinkEditDto
  12777. }
  12778. /**
  12779. * SharedLinkApi - object-oriented interface
  12780. * @export
  12781. * @class SharedLinkApi
  12782. * @extends {BaseAPI}
  12783. */
  12784. export class SharedLinkApi extends BaseAPI {
  12785. /**
  12786. *
  12787. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12788. * @param {*} [options] Override http request option.
  12789. * @throws {RequiredError}
  12790. * @memberof SharedLinkApi
  12791. */
  12792. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12793. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12794. }
  12795. /**
  12796. *
  12797. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12798. * @param {*} [options] Override http request option.
  12799. * @throws {RequiredError}
  12800. * @memberof SharedLinkApi
  12801. */
  12802. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  12803. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  12804. }
  12805. /**
  12806. *
  12807. * @param {*} [options] Override http request option.
  12808. * @throws {RequiredError}
  12809. * @memberof SharedLinkApi
  12810. */
  12811. public getAllSharedLinks(options?: AxiosRequestConfig) {
  12812. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  12813. }
  12814. /**
  12815. *
  12816. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12817. * @param {*} [options] Override http request option.
  12818. * @throws {RequiredError}
  12819. * @memberof SharedLinkApi
  12820. */
  12821. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  12822. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12823. }
  12824. /**
  12825. *
  12826. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12827. * @param {*} [options] Override http request option.
  12828. * @throws {RequiredError}
  12829. * @memberof SharedLinkApi
  12830. */
  12831. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  12832. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12833. }
  12834. /**
  12835. *
  12836. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12837. * @param {*} [options] Override http request option.
  12838. * @throws {RequiredError}
  12839. * @memberof SharedLinkApi
  12840. */
  12841. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  12842. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12843. }
  12844. /**
  12845. *
  12846. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12847. * @param {*} [options] Override http request option.
  12848. * @throws {RequiredError}
  12849. * @memberof SharedLinkApi
  12850. */
  12851. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12852. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12853. }
  12854. /**
  12855. *
  12856. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12857. * @param {*} [options] Override http request option.
  12858. * @throws {RequiredError}
  12859. * @memberof SharedLinkApi
  12860. */
  12861. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  12862. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  12863. }
  12864. }
  12865. /**
  12866. * SystemConfigApi - axios parameter creator
  12867. * @export
  12868. */
  12869. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  12870. return {
  12871. /**
  12872. *
  12873. * @param {*} [options] Override http request option.
  12874. * @throws {RequiredError}
  12875. */
  12876. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12877. const localVarPath = `/system-config`;
  12878. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12879. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12880. let baseOptions;
  12881. if (configuration) {
  12882. baseOptions = configuration.baseOptions;
  12883. }
  12884. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12885. const localVarHeaderParameter = {} as any;
  12886. const localVarQueryParameter = {} as any;
  12887. // authentication cookie required
  12888. // authentication api_key required
  12889. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12890. // authentication bearer required
  12891. // http bearer authentication required
  12892. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12893. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12894. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12895. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12896. return {
  12897. url: toPathString(localVarUrlObj),
  12898. options: localVarRequestOptions,
  12899. };
  12900. },
  12901. /**
  12902. *
  12903. * @param {*} [options] Override http request option.
  12904. * @throws {RequiredError}
  12905. */
  12906. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12907. const localVarPath = `/system-config/defaults`;
  12908. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12909. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12910. let baseOptions;
  12911. if (configuration) {
  12912. baseOptions = configuration.baseOptions;
  12913. }
  12914. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12915. const localVarHeaderParameter = {} as any;
  12916. const localVarQueryParameter = {} as any;
  12917. // authentication cookie required
  12918. // authentication api_key required
  12919. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12920. // authentication bearer required
  12921. // http bearer authentication required
  12922. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12923. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12924. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12925. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12926. return {
  12927. url: toPathString(localVarUrlObj),
  12928. options: localVarRequestOptions,
  12929. };
  12930. },
  12931. /**
  12932. *
  12933. * @param {*} [options] Override http request option.
  12934. * @throws {RequiredError}
  12935. */
  12936. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12937. const localVarPath = `/system-config/storage-template-options`;
  12938. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12939. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12940. let baseOptions;
  12941. if (configuration) {
  12942. baseOptions = configuration.baseOptions;
  12943. }
  12944. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12945. const localVarHeaderParameter = {} as any;
  12946. const localVarQueryParameter = {} as any;
  12947. // authentication cookie required
  12948. // authentication api_key required
  12949. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12950. // authentication bearer required
  12951. // http bearer authentication required
  12952. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12953. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12954. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12955. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12956. return {
  12957. url: toPathString(localVarUrlObj),
  12958. options: localVarRequestOptions,
  12959. };
  12960. },
  12961. /**
  12962. *
  12963. * @param {SystemConfigDto} systemConfigDto
  12964. * @param {*} [options] Override http request option.
  12965. * @throws {RequiredError}
  12966. */
  12967. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12968. // verify required parameter 'systemConfigDto' is not null or undefined
  12969. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  12970. const localVarPath = `/system-config`;
  12971. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12972. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12973. let baseOptions;
  12974. if (configuration) {
  12975. baseOptions = configuration.baseOptions;
  12976. }
  12977. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12978. const localVarHeaderParameter = {} as any;
  12979. const localVarQueryParameter = {} as any;
  12980. // authentication cookie required
  12981. // authentication api_key required
  12982. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12983. // authentication bearer required
  12984. // http bearer authentication required
  12985. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12986. localVarHeaderParameter['Content-Type'] = 'application/json';
  12987. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12988. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12989. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12990. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  12991. return {
  12992. url: toPathString(localVarUrlObj),
  12993. options: localVarRequestOptions,
  12994. };
  12995. },
  12996. }
  12997. };
  12998. /**
  12999. * SystemConfigApi - functional programming interface
  13000. * @export
  13001. */
  13002. export const SystemConfigApiFp = function(configuration?: Configuration) {
  13003. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  13004. return {
  13005. /**
  13006. *
  13007. * @param {*} [options] Override http request option.
  13008. * @throws {RequiredError}
  13009. */
  13010. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13011. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  13012. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13013. },
  13014. /**
  13015. *
  13016. * @param {*} [options] Override http request option.
  13017. * @throws {RequiredError}
  13018. */
  13019. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13020. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  13021. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13022. },
  13023. /**
  13024. *
  13025. * @param {*} [options] Override http request option.
  13026. * @throws {RequiredError}
  13027. */
  13028. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  13029. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  13030. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13031. },
  13032. /**
  13033. *
  13034. * @param {SystemConfigDto} systemConfigDto
  13035. * @param {*} [options] Override http request option.
  13036. * @throws {RequiredError}
  13037. */
  13038. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13039. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  13040. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13041. },
  13042. }
  13043. };
  13044. /**
  13045. * SystemConfigApi - factory interface
  13046. * @export
  13047. */
  13048. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13049. const localVarFp = SystemConfigApiFp(configuration)
  13050. return {
  13051. /**
  13052. *
  13053. * @param {*} [options] Override http request option.
  13054. * @throws {RequiredError}
  13055. */
  13056. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13057. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  13058. },
  13059. /**
  13060. *
  13061. * @param {*} [options] Override http request option.
  13062. * @throws {RequiredError}
  13063. */
  13064. getDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13065. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  13066. },
  13067. /**
  13068. *
  13069. * @param {*} [options] Override http request option.
  13070. * @throws {RequiredError}
  13071. */
  13072. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  13073. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  13074. },
  13075. /**
  13076. *
  13077. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13078. * @param {*} [options] Override http request option.
  13079. * @throws {RequiredError}
  13080. */
  13081. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13082. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  13083. },
  13084. };
  13085. };
  13086. /**
  13087. * Request parameters for updateConfig operation in SystemConfigApi.
  13088. * @export
  13089. * @interface SystemConfigApiUpdateConfigRequest
  13090. */
  13091. export interface SystemConfigApiUpdateConfigRequest {
  13092. /**
  13093. *
  13094. * @type {SystemConfigDto}
  13095. * @memberof SystemConfigApiUpdateConfig
  13096. */
  13097. readonly systemConfigDto: SystemConfigDto
  13098. }
  13099. /**
  13100. * SystemConfigApi - object-oriented interface
  13101. * @export
  13102. * @class SystemConfigApi
  13103. * @extends {BaseAPI}
  13104. */
  13105. export class SystemConfigApi extends BaseAPI {
  13106. /**
  13107. *
  13108. * @param {*} [options] Override http request option.
  13109. * @throws {RequiredError}
  13110. * @memberof SystemConfigApi
  13111. */
  13112. public getConfig(options?: AxiosRequestConfig) {
  13113. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  13114. }
  13115. /**
  13116. *
  13117. * @param {*} [options] Override http request option.
  13118. * @throws {RequiredError}
  13119. * @memberof SystemConfigApi
  13120. */
  13121. public getDefaults(options?: AxiosRequestConfig) {
  13122. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  13123. }
  13124. /**
  13125. *
  13126. * @param {*} [options] Override http request option.
  13127. * @throws {RequiredError}
  13128. * @memberof SystemConfigApi
  13129. */
  13130. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  13131. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  13132. }
  13133. /**
  13134. *
  13135. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13136. * @param {*} [options] Override http request option.
  13137. * @throws {RequiredError}
  13138. * @memberof SystemConfigApi
  13139. */
  13140. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  13141. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  13142. }
  13143. }
  13144. /**
  13145. * TagApi - axios parameter creator
  13146. * @export
  13147. */
  13148. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  13149. return {
  13150. /**
  13151. *
  13152. * @param {CreateTagDto} createTagDto
  13153. * @param {*} [options] Override http request option.
  13154. * @throws {RequiredError}
  13155. */
  13156. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13157. // verify required parameter 'createTagDto' is not null or undefined
  13158. assertParamExists('createTag', 'createTagDto', createTagDto)
  13159. const localVarPath = `/tag`;
  13160. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13161. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13162. let baseOptions;
  13163. if (configuration) {
  13164. baseOptions = configuration.baseOptions;
  13165. }
  13166. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13167. const localVarHeaderParameter = {} as any;
  13168. const localVarQueryParameter = {} as any;
  13169. // authentication cookie required
  13170. // authentication api_key required
  13171. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13172. // authentication bearer required
  13173. // http bearer authentication required
  13174. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13175. localVarHeaderParameter['Content-Type'] = 'application/json';
  13176. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13177. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13178. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13179. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  13180. return {
  13181. url: toPathString(localVarUrlObj),
  13182. options: localVarRequestOptions,
  13183. };
  13184. },
  13185. /**
  13186. *
  13187. * @param {string} id
  13188. * @param {*} [options] Override http request option.
  13189. * @throws {RequiredError}
  13190. */
  13191. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13192. // verify required parameter 'id' is not null or undefined
  13193. assertParamExists('deleteTag', 'id', id)
  13194. const localVarPath = `/tag/{id}`
  13195. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13196. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13197. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13198. let baseOptions;
  13199. if (configuration) {
  13200. baseOptions = configuration.baseOptions;
  13201. }
  13202. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13203. const localVarHeaderParameter = {} as any;
  13204. const localVarQueryParameter = {} as any;
  13205. // authentication cookie required
  13206. // authentication api_key required
  13207. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13208. // authentication bearer required
  13209. // http bearer authentication required
  13210. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13211. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13212. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13213. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13214. return {
  13215. url: toPathString(localVarUrlObj),
  13216. options: localVarRequestOptions,
  13217. };
  13218. },
  13219. /**
  13220. *
  13221. * @param {*} [options] Override http request option.
  13222. * @throws {RequiredError}
  13223. */
  13224. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13225. const localVarPath = `/tag`;
  13226. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13227. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13228. let baseOptions;
  13229. if (configuration) {
  13230. baseOptions = configuration.baseOptions;
  13231. }
  13232. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13233. const localVarHeaderParameter = {} as any;
  13234. const localVarQueryParameter = {} as any;
  13235. // authentication cookie required
  13236. // authentication api_key required
  13237. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13238. // authentication bearer required
  13239. // http bearer authentication required
  13240. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13241. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13242. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13243. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13244. return {
  13245. url: toPathString(localVarUrlObj),
  13246. options: localVarRequestOptions,
  13247. };
  13248. },
  13249. /**
  13250. *
  13251. * @param {string} id
  13252. * @param {*} [options] Override http request option.
  13253. * @throws {RequiredError}
  13254. */
  13255. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13256. // verify required parameter 'id' is not null or undefined
  13257. assertParamExists('getTagAssets', 'id', id)
  13258. const localVarPath = `/tag/{id}/assets`
  13259. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13260. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13261. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13262. let baseOptions;
  13263. if (configuration) {
  13264. baseOptions = configuration.baseOptions;
  13265. }
  13266. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13267. const localVarHeaderParameter = {} as any;
  13268. const localVarQueryParameter = {} as any;
  13269. // authentication cookie required
  13270. // authentication api_key required
  13271. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13272. // authentication bearer required
  13273. // http bearer authentication required
  13274. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13275. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13276. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13277. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13278. return {
  13279. url: toPathString(localVarUrlObj),
  13280. options: localVarRequestOptions,
  13281. };
  13282. },
  13283. /**
  13284. *
  13285. * @param {string} id
  13286. * @param {*} [options] Override http request option.
  13287. * @throws {RequiredError}
  13288. */
  13289. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13290. // verify required parameter 'id' is not null or undefined
  13291. assertParamExists('getTagById', 'id', id)
  13292. const localVarPath = `/tag/{id}`
  13293. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13294. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13295. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13296. let baseOptions;
  13297. if (configuration) {
  13298. baseOptions = configuration.baseOptions;
  13299. }
  13300. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13301. const localVarHeaderParameter = {} as any;
  13302. const localVarQueryParameter = {} as any;
  13303. // authentication cookie required
  13304. // authentication api_key required
  13305. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13306. // authentication bearer required
  13307. // http bearer authentication required
  13308. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13309. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13310. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13311. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13312. return {
  13313. url: toPathString(localVarUrlObj),
  13314. options: localVarRequestOptions,
  13315. };
  13316. },
  13317. /**
  13318. *
  13319. * @param {string} id
  13320. * @param {AssetIdsDto} assetIdsDto
  13321. * @param {*} [options] Override http request option.
  13322. * @throws {RequiredError}
  13323. */
  13324. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13325. // verify required parameter 'id' is not null or undefined
  13326. assertParamExists('tagAssets', 'id', id)
  13327. // verify required parameter 'assetIdsDto' is not null or undefined
  13328. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  13329. const localVarPath = `/tag/{id}/assets`
  13330. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13331. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13332. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13333. let baseOptions;
  13334. if (configuration) {
  13335. baseOptions = configuration.baseOptions;
  13336. }
  13337. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13338. const localVarHeaderParameter = {} as any;
  13339. const localVarQueryParameter = {} as any;
  13340. // authentication cookie required
  13341. // authentication api_key required
  13342. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13343. // authentication bearer required
  13344. // http bearer authentication required
  13345. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13346. localVarHeaderParameter['Content-Type'] = 'application/json';
  13347. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13348. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13349. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13350. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13351. return {
  13352. url: toPathString(localVarUrlObj),
  13353. options: localVarRequestOptions,
  13354. };
  13355. },
  13356. /**
  13357. *
  13358. * @param {string} id
  13359. * @param {AssetIdsDto} assetIdsDto
  13360. * @param {*} [options] Override http request option.
  13361. * @throws {RequiredError}
  13362. */
  13363. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13364. // verify required parameter 'id' is not null or undefined
  13365. assertParamExists('untagAssets', 'id', id)
  13366. // verify required parameter 'assetIdsDto' is not null or undefined
  13367. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  13368. const localVarPath = `/tag/{id}/assets`
  13369. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13370. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13371. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13372. let baseOptions;
  13373. if (configuration) {
  13374. baseOptions = configuration.baseOptions;
  13375. }
  13376. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13377. const localVarHeaderParameter = {} as any;
  13378. const localVarQueryParameter = {} as any;
  13379. // authentication cookie required
  13380. // authentication api_key required
  13381. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13382. // authentication bearer required
  13383. // http bearer authentication required
  13384. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13385. localVarHeaderParameter['Content-Type'] = 'application/json';
  13386. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13387. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13388. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13389. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13390. return {
  13391. url: toPathString(localVarUrlObj),
  13392. options: localVarRequestOptions,
  13393. };
  13394. },
  13395. /**
  13396. *
  13397. * @param {string} id
  13398. * @param {UpdateTagDto} updateTagDto
  13399. * @param {*} [options] Override http request option.
  13400. * @throws {RequiredError}
  13401. */
  13402. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13403. // verify required parameter 'id' is not null or undefined
  13404. assertParamExists('updateTag', 'id', id)
  13405. // verify required parameter 'updateTagDto' is not null or undefined
  13406. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  13407. const localVarPath = `/tag/{id}`
  13408. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13409. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13410. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13411. let baseOptions;
  13412. if (configuration) {
  13413. baseOptions = configuration.baseOptions;
  13414. }
  13415. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13416. const localVarHeaderParameter = {} as any;
  13417. const localVarQueryParameter = {} as any;
  13418. // authentication cookie required
  13419. // authentication api_key required
  13420. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13421. // authentication bearer required
  13422. // http bearer authentication required
  13423. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13424. localVarHeaderParameter['Content-Type'] = 'application/json';
  13425. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13426. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13427. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13428. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  13429. return {
  13430. url: toPathString(localVarUrlObj),
  13431. options: localVarRequestOptions,
  13432. };
  13433. },
  13434. }
  13435. };
  13436. /**
  13437. * TagApi - functional programming interface
  13438. * @export
  13439. */
  13440. export const TagApiFp = function(configuration?: Configuration) {
  13441. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  13442. return {
  13443. /**
  13444. *
  13445. * @param {CreateTagDto} createTagDto
  13446. * @param {*} [options] Override http request option.
  13447. * @throws {RequiredError}
  13448. */
  13449. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13450. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  13451. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13452. },
  13453. /**
  13454. *
  13455. * @param {string} id
  13456. * @param {*} [options] Override http request option.
  13457. * @throws {RequiredError}
  13458. */
  13459. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13460. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  13461. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13462. },
  13463. /**
  13464. *
  13465. * @param {*} [options] Override http request option.
  13466. * @throws {RequiredError}
  13467. */
  13468. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  13469. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  13470. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13471. },
  13472. /**
  13473. *
  13474. * @param {string} id
  13475. * @param {*} [options] Override http request option.
  13476. * @throws {RequiredError}
  13477. */
  13478. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  13479. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  13480. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13481. },
  13482. /**
  13483. *
  13484. * @param {string} id
  13485. * @param {*} [options] Override http request option.
  13486. * @throws {RequiredError}
  13487. */
  13488. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13489. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  13490. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13491. },
  13492. /**
  13493. *
  13494. * @param {string} id
  13495. * @param {AssetIdsDto} assetIdsDto
  13496. * @param {*} [options] Override http request option.
  13497. * @throws {RequiredError}
  13498. */
  13499. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13500. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  13501. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13502. },
  13503. /**
  13504. *
  13505. * @param {string} id
  13506. * @param {AssetIdsDto} assetIdsDto
  13507. * @param {*} [options] Override http request option.
  13508. * @throws {RequiredError}
  13509. */
  13510. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13511. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  13512. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13513. },
  13514. /**
  13515. *
  13516. * @param {string} id
  13517. * @param {UpdateTagDto} updateTagDto
  13518. * @param {*} [options] Override http request option.
  13519. * @throws {RequiredError}
  13520. */
  13521. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13522. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  13523. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13524. },
  13525. }
  13526. };
  13527. /**
  13528. * TagApi - factory interface
  13529. * @export
  13530. */
  13531. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13532. const localVarFp = TagApiFp(configuration)
  13533. return {
  13534. /**
  13535. *
  13536. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13537. * @param {*} [options] Override http request option.
  13538. * @throws {RequiredError}
  13539. */
  13540. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13541. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  13542. },
  13543. /**
  13544. *
  13545. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13546. * @param {*} [options] Override http request option.
  13547. * @throws {RequiredError}
  13548. */
  13549. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13550. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  13551. },
  13552. /**
  13553. *
  13554. * @param {*} [options] Override http request option.
  13555. * @throws {RequiredError}
  13556. */
  13557. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  13558. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  13559. },
  13560. /**
  13561. *
  13562. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13563. * @param {*} [options] Override http request option.
  13564. * @throws {RequiredError}
  13565. */
  13566. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  13567. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  13568. },
  13569. /**
  13570. *
  13571. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13572. * @param {*} [options] Override http request option.
  13573. * @throws {RequiredError}
  13574. */
  13575. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13576. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  13577. },
  13578. /**
  13579. *
  13580. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13581. * @param {*} [options] Override http request option.
  13582. * @throws {RequiredError}
  13583. */
  13584. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13585. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13586. },
  13587. /**
  13588. *
  13589. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13590. * @param {*} [options] Override http request option.
  13591. * @throws {RequiredError}
  13592. */
  13593. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13594. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13595. },
  13596. /**
  13597. *
  13598. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13599. * @param {*} [options] Override http request option.
  13600. * @throws {RequiredError}
  13601. */
  13602. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13603. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  13604. },
  13605. };
  13606. };
  13607. /**
  13608. * Request parameters for createTag operation in TagApi.
  13609. * @export
  13610. * @interface TagApiCreateTagRequest
  13611. */
  13612. export interface TagApiCreateTagRequest {
  13613. /**
  13614. *
  13615. * @type {CreateTagDto}
  13616. * @memberof TagApiCreateTag
  13617. */
  13618. readonly createTagDto: CreateTagDto
  13619. }
  13620. /**
  13621. * Request parameters for deleteTag operation in TagApi.
  13622. * @export
  13623. * @interface TagApiDeleteTagRequest
  13624. */
  13625. export interface TagApiDeleteTagRequest {
  13626. /**
  13627. *
  13628. * @type {string}
  13629. * @memberof TagApiDeleteTag
  13630. */
  13631. readonly id: string
  13632. }
  13633. /**
  13634. * Request parameters for getTagAssets operation in TagApi.
  13635. * @export
  13636. * @interface TagApiGetTagAssetsRequest
  13637. */
  13638. export interface TagApiGetTagAssetsRequest {
  13639. /**
  13640. *
  13641. * @type {string}
  13642. * @memberof TagApiGetTagAssets
  13643. */
  13644. readonly id: string
  13645. }
  13646. /**
  13647. * Request parameters for getTagById operation in TagApi.
  13648. * @export
  13649. * @interface TagApiGetTagByIdRequest
  13650. */
  13651. export interface TagApiGetTagByIdRequest {
  13652. /**
  13653. *
  13654. * @type {string}
  13655. * @memberof TagApiGetTagById
  13656. */
  13657. readonly id: string
  13658. }
  13659. /**
  13660. * Request parameters for tagAssets operation in TagApi.
  13661. * @export
  13662. * @interface TagApiTagAssetsRequest
  13663. */
  13664. export interface TagApiTagAssetsRequest {
  13665. /**
  13666. *
  13667. * @type {string}
  13668. * @memberof TagApiTagAssets
  13669. */
  13670. readonly id: string
  13671. /**
  13672. *
  13673. * @type {AssetIdsDto}
  13674. * @memberof TagApiTagAssets
  13675. */
  13676. readonly assetIdsDto: AssetIdsDto
  13677. }
  13678. /**
  13679. * Request parameters for untagAssets operation in TagApi.
  13680. * @export
  13681. * @interface TagApiUntagAssetsRequest
  13682. */
  13683. export interface TagApiUntagAssetsRequest {
  13684. /**
  13685. *
  13686. * @type {string}
  13687. * @memberof TagApiUntagAssets
  13688. */
  13689. readonly id: string
  13690. /**
  13691. *
  13692. * @type {AssetIdsDto}
  13693. * @memberof TagApiUntagAssets
  13694. */
  13695. readonly assetIdsDto: AssetIdsDto
  13696. }
  13697. /**
  13698. * Request parameters for updateTag operation in TagApi.
  13699. * @export
  13700. * @interface TagApiUpdateTagRequest
  13701. */
  13702. export interface TagApiUpdateTagRequest {
  13703. /**
  13704. *
  13705. * @type {string}
  13706. * @memberof TagApiUpdateTag
  13707. */
  13708. readonly id: string
  13709. /**
  13710. *
  13711. * @type {UpdateTagDto}
  13712. * @memberof TagApiUpdateTag
  13713. */
  13714. readonly updateTagDto: UpdateTagDto
  13715. }
  13716. /**
  13717. * TagApi - object-oriented interface
  13718. * @export
  13719. * @class TagApi
  13720. * @extends {BaseAPI}
  13721. */
  13722. export class TagApi extends BaseAPI {
  13723. /**
  13724. *
  13725. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13726. * @param {*} [options] Override http request option.
  13727. * @throws {RequiredError}
  13728. * @memberof TagApi
  13729. */
  13730. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  13731. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  13732. }
  13733. /**
  13734. *
  13735. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13736. * @param {*} [options] Override http request option.
  13737. * @throws {RequiredError}
  13738. * @memberof TagApi
  13739. */
  13740. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  13741. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13742. }
  13743. /**
  13744. *
  13745. * @param {*} [options] Override http request option.
  13746. * @throws {RequiredError}
  13747. * @memberof TagApi
  13748. */
  13749. public getAllTags(options?: AxiosRequestConfig) {
  13750. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  13751. }
  13752. /**
  13753. *
  13754. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13755. * @param {*} [options] Override http request option.
  13756. * @throws {RequiredError}
  13757. * @memberof TagApi
  13758. */
  13759. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  13760. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13761. }
  13762. /**
  13763. *
  13764. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13765. * @param {*} [options] Override http request option.
  13766. * @throws {RequiredError}
  13767. * @memberof TagApi
  13768. */
  13769. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  13770. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13771. }
  13772. /**
  13773. *
  13774. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13775. * @param {*} [options] Override http request option.
  13776. * @throws {RequiredError}
  13777. * @memberof TagApi
  13778. */
  13779. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  13780. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13781. }
  13782. /**
  13783. *
  13784. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13785. * @param {*} [options] Override http request option.
  13786. * @throws {RequiredError}
  13787. * @memberof TagApi
  13788. */
  13789. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  13790. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13791. }
  13792. /**
  13793. *
  13794. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13795. * @param {*} [options] Override http request option.
  13796. * @throws {RequiredError}
  13797. * @memberof TagApi
  13798. */
  13799. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  13800. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  13801. }
  13802. }
  13803. /**
  13804. * UserApi - axios parameter creator
  13805. * @export
  13806. */
  13807. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  13808. return {
  13809. /**
  13810. *
  13811. * @param {File} file
  13812. * @param {*} [options] Override http request option.
  13813. * @throws {RequiredError}
  13814. */
  13815. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13816. // verify required parameter 'file' is not null or undefined
  13817. assertParamExists('createProfileImage', 'file', file)
  13818. const localVarPath = `/user/profile-image`;
  13819. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13820. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13821. let baseOptions;
  13822. if (configuration) {
  13823. baseOptions = configuration.baseOptions;
  13824. }
  13825. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13826. const localVarHeaderParameter = {} as any;
  13827. const localVarQueryParameter = {} as any;
  13828. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  13829. // authentication cookie required
  13830. // authentication api_key required
  13831. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13832. // authentication bearer required
  13833. // http bearer authentication required
  13834. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13835. if (file !== undefined) {
  13836. localVarFormParams.append('file', file as any);
  13837. }
  13838. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  13839. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13840. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13841. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13842. localVarRequestOptions.data = localVarFormParams;
  13843. return {
  13844. url: toPathString(localVarUrlObj),
  13845. options: localVarRequestOptions,
  13846. };
  13847. },
  13848. /**
  13849. *
  13850. * @param {CreateUserDto} createUserDto
  13851. * @param {*} [options] Override http request option.
  13852. * @throws {RequiredError}
  13853. */
  13854. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13855. // verify required parameter 'createUserDto' is not null or undefined
  13856. assertParamExists('createUser', 'createUserDto', createUserDto)
  13857. const localVarPath = `/user`;
  13858. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13859. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13860. let baseOptions;
  13861. if (configuration) {
  13862. baseOptions = configuration.baseOptions;
  13863. }
  13864. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13865. const localVarHeaderParameter = {} as any;
  13866. const localVarQueryParameter = {} as any;
  13867. // authentication cookie required
  13868. // authentication api_key required
  13869. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13870. // authentication bearer required
  13871. // http bearer authentication required
  13872. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13873. localVarHeaderParameter['Content-Type'] = 'application/json';
  13874. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13875. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13876. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13877. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  13878. return {
  13879. url: toPathString(localVarUrlObj),
  13880. options: localVarRequestOptions,
  13881. };
  13882. },
  13883. /**
  13884. *
  13885. * @param {string} id
  13886. * @param {*} [options] Override http request option.
  13887. * @throws {RequiredError}
  13888. */
  13889. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13890. // verify required parameter 'id' is not null or undefined
  13891. assertParamExists('deleteUser', 'id', id)
  13892. const localVarPath = `/user/{id}`
  13893. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13894. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13895. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13896. let baseOptions;
  13897. if (configuration) {
  13898. baseOptions = configuration.baseOptions;
  13899. }
  13900. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13901. const localVarHeaderParameter = {} as any;
  13902. const localVarQueryParameter = {} as any;
  13903. // authentication cookie required
  13904. // authentication api_key required
  13905. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13906. // authentication bearer required
  13907. // http bearer authentication required
  13908. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13909. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13910. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13911. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13912. return {
  13913. url: toPathString(localVarUrlObj),
  13914. options: localVarRequestOptions,
  13915. };
  13916. },
  13917. /**
  13918. *
  13919. * @param {boolean} isAll
  13920. * @param {*} [options] Override http request option.
  13921. * @throws {RequiredError}
  13922. */
  13923. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13924. // verify required parameter 'isAll' is not null or undefined
  13925. assertParamExists('getAllUsers', 'isAll', isAll)
  13926. const localVarPath = `/user`;
  13927. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13928. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13929. let baseOptions;
  13930. if (configuration) {
  13931. baseOptions = configuration.baseOptions;
  13932. }
  13933. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13934. const localVarHeaderParameter = {} as any;
  13935. const localVarQueryParameter = {} as any;
  13936. // authentication cookie required
  13937. // authentication api_key required
  13938. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13939. // authentication bearer required
  13940. // http bearer authentication required
  13941. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13942. if (isAll !== undefined) {
  13943. localVarQueryParameter['isAll'] = isAll;
  13944. }
  13945. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13946. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13947. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13948. return {
  13949. url: toPathString(localVarUrlObj),
  13950. options: localVarRequestOptions,
  13951. };
  13952. },
  13953. /**
  13954. *
  13955. * @param {*} [options] Override http request option.
  13956. * @throws {RequiredError}
  13957. */
  13958. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13959. const localVarPath = `/user/me`;
  13960. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13961. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13962. let baseOptions;
  13963. if (configuration) {
  13964. baseOptions = configuration.baseOptions;
  13965. }
  13966. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13967. const localVarHeaderParameter = {} as any;
  13968. const localVarQueryParameter = {} as any;
  13969. // authentication cookie required
  13970. // authentication api_key required
  13971. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13972. // authentication bearer required
  13973. // http bearer authentication required
  13974. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13975. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13976. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13977. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13978. return {
  13979. url: toPathString(localVarUrlObj),
  13980. options: localVarRequestOptions,
  13981. };
  13982. },
  13983. /**
  13984. *
  13985. * @param {string} id
  13986. * @param {*} [options] Override http request option.
  13987. * @throws {RequiredError}
  13988. */
  13989. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13990. // verify required parameter 'id' is not null or undefined
  13991. assertParamExists('getProfileImage', 'id', id)
  13992. const localVarPath = `/user/profile-image/{id}`
  13993. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13994. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13995. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13996. let baseOptions;
  13997. if (configuration) {
  13998. baseOptions = configuration.baseOptions;
  13999. }
  14000. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14001. const localVarHeaderParameter = {} as any;
  14002. const localVarQueryParameter = {} as any;
  14003. // authentication cookie required
  14004. // authentication api_key required
  14005. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14006. // authentication bearer required
  14007. // http bearer authentication required
  14008. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14009. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14010. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14011. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14012. return {
  14013. url: toPathString(localVarUrlObj),
  14014. options: localVarRequestOptions,
  14015. };
  14016. },
  14017. /**
  14018. *
  14019. * @param {string} id
  14020. * @param {*} [options] Override http request option.
  14021. * @throws {RequiredError}
  14022. */
  14023. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14024. // verify required parameter 'id' is not null or undefined
  14025. assertParamExists('getUserById', 'id', id)
  14026. const localVarPath = `/user/info/{id}`
  14027. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14028. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14029. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14030. let baseOptions;
  14031. if (configuration) {
  14032. baseOptions = configuration.baseOptions;
  14033. }
  14034. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14035. const localVarHeaderParameter = {} as any;
  14036. const localVarQueryParameter = {} as any;
  14037. // authentication cookie required
  14038. // authentication api_key required
  14039. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14040. // authentication bearer required
  14041. // http bearer authentication required
  14042. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14043. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14044. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14045. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14046. return {
  14047. url: toPathString(localVarUrlObj),
  14048. options: localVarRequestOptions,
  14049. };
  14050. },
  14051. /**
  14052. *
  14053. * @param {boolean} [admin]
  14054. * @param {*} [options] Override http request option.
  14055. * @throws {RequiredError}
  14056. */
  14057. getUserCount: async (admin?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14058. const localVarPath = `/user/count`;
  14059. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14060. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14061. let baseOptions;
  14062. if (configuration) {
  14063. baseOptions = configuration.baseOptions;
  14064. }
  14065. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14066. const localVarHeaderParameter = {} as any;
  14067. const localVarQueryParameter = {} as any;
  14068. // authentication cookie required
  14069. // authentication api_key required
  14070. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14071. // authentication bearer required
  14072. // http bearer authentication required
  14073. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14074. if (admin !== undefined) {
  14075. localVarQueryParameter['admin'] = admin;
  14076. }
  14077. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14078. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14079. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14080. return {
  14081. url: toPathString(localVarUrlObj),
  14082. options: localVarRequestOptions,
  14083. };
  14084. },
  14085. /**
  14086. *
  14087. * @param {string} id
  14088. * @param {*} [options] Override http request option.
  14089. * @throws {RequiredError}
  14090. */
  14091. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14092. // verify required parameter 'id' is not null or undefined
  14093. assertParamExists('restoreUser', 'id', id)
  14094. const localVarPath = `/user/{id}/restore`
  14095. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14096. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14097. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14098. let baseOptions;
  14099. if (configuration) {
  14100. baseOptions = configuration.baseOptions;
  14101. }
  14102. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14103. const localVarHeaderParameter = {} as any;
  14104. const localVarQueryParameter = {} as any;
  14105. // authentication cookie required
  14106. // authentication api_key required
  14107. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14108. // authentication bearer required
  14109. // http bearer authentication required
  14110. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14111. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14112. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14113. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14114. return {
  14115. url: toPathString(localVarUrlObj),
  14116. options: localVarRequestOptions,
  14117. };
  14118. },
  14119. /**
  14120. *
  14121. * @param {UpdateUserDto} updateUserDto
  14122. * @param {*} [options] Override http request option.
  14123. * @throws {RequiredError}
  14124. */
  14125. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14126. // verify required parameter 'updateUserDto' is not null or undefined
  14127. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  14128. const localVarPath = `/user`;
  14129. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14130. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14131. let baseOptions;
  14132. if (configuration) {
  14133. baseOptions = configuration.baseOptions;
  14134. }
  14135. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14136. const localVarHeaderParameter = {} as any;
  14137. const localVarQueryParameter = {} as any;
  14138. // authentication cookie required
  14139. // authentication api_key required
  14140. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14141. // authentication bearer required
  14142. // http bearer authentication required
  14143. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14144. localVarHeaderParameter['Content-Type'] = 'application/json';
  14145. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14146. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14147. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14148. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  14149. return {
  14150. url: toPathString(localVarUrlObj),
  14151. options: localVarRequestOptions,
  14152. };
  14153. },
  14154. }
  14155. };
  14156. /**
  14157. * UserApi - functional programming interface
  14158. * @export
  14159. */
  14160. export const UserApiFp = function(configuration?: Configuration) {
  14161. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  14162. return {
  14163. /**
  14164. *
  14165. * @param {File} file
  14166. * @param {*} [options] Override http request option.
  14167. * @throws {RequiredError}
  14168. */
  14169. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  14170. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  14171. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14172. },
  14173. /**
  14174. *
  14175. * @param {CreateUserDto} createUserDto
  14176. * @param {*} [options] Override http request option.
  14177. * @throws {RequiredError}
  14178. */
  14179. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14180. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  14181. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14182. },
  14183. /**
  14184. *
  14185. * @param {string} id
  14186. * @param {*} [options] Override http request option.
  14187. * @throws {RequiredError}
  14188. */
  14189. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14190. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  14191. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14192. },
  14193. /**
  14194. *
  14195. * @param {boolean} isAll
  14196. * @param {*} [options] Override http request option.
  14197. * @throws {RequiredError}
  14198. */
  14199. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  14200. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  14201. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14202. },
  14203. /**
  14204. *
  14205. * @param {*} [options] Override http request option.
  14206. * @throws {RequiredError}
  14207. */
  14208. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14209. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  14210. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14211. },
  14212. /**
  14213. *
  14214. * @param {string} id
  14215. * @param {*} [options] Override http request option.
  14216. * @throws {RequiredError}
  14217. */
  14218. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14219. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  14220. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14221. },
  14222. /**
  14223. *
  14224. * @param {string} id
  14225. * @param {*} [options] Override http request option.
  14226. * @throws {RequiredError}
  14227. */
  14228. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14229. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  14230. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14231. },
  14232. /**
  14233. *
  14234. * @param {boolean} [admin]
  14235. * @param {*} [options] Override http request option.
  14236. * @throws {RequiredError}
  14237. */
  14238. async getUserCount(admin?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  14239. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(admin, options);
  14240. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14241. },
  14242. /**
  14243. *
  14244. * @param {string} id
  14245. * @param {*} [options] Override http request option.
  14246. * @throws {RequiredError}
  14247. */
  14248. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14249. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  14250. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14251. },
  14252. /**
  14253. *
  14254. * @param {UpdateUserDto} updateUserDto
  14255. * @param {*} [options] Override http request option.
  14256. * @throws {RequiredError}
  14257. */
  14258. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14259. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  14260. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14261. },
  14262. }
  14263. };
  14264. /**
  14265. * UserApi - factory interface
  14266. * @export
  14267. */
  14268. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14269. const localVarFp = UserApiFp(configuration)
  14270. return {
  14271. /**
  14272. *
  14273. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14274. * @param {*} [options] Override http request option.
  14275. * @throws {RequiredError}
  14276. */
  14277. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  14278. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  14279. },
  14280. /**
  14281. *
  14282. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14283. * @param {*} [options] Override http request option.
  14284. * @throws {RequiredError}
  14285. */
  14286. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14287. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  14288. },
  14289. /**
  14290. *
  14291. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14292. * @param {*} [options] Override http request option.
  14293. * @throws {RequiredError}
  14294. */
  14295. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14296. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14297. },
  14298. /**
  14299. *
  14300. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14301. * @param {*} [options] Override http request option.
  14302. * @throws {RequiredError}
  14303. */
  14304. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  14305. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  14306. },
  14307. /**
  14308. *
  14309. * @param {*} [options] Override http request option.
  14310. * @throws {RequiredError}
  14311. */
  14312. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14313. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  14314. },
  14315. /**
  14316. *
  14317. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14318. * @param {*} [options] Override http request option.
  14319. * @throws {RequiredError}
  14320. */
  14321. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14322. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  14323. },
  14324. /**
  14325. *
  14326. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14327. * @param {*} [options] Override http request option.
  14328. * @throws {RequiredError}
  14329. */
  14330. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14331. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  14332. },
  14333. /**
  14334. *
  14335. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14336. * @param {*} [options] Override http request option.
  14337. * @throws {RequiredError}
  14338. */
  14339. getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig): AxiosPromise<UserCountResponseDto> {
  14340. return localVarFp.getUserCount(requestParameters.admin, options).then((request) => request(axios, basePath));
  14341. },
  14342. /**
  14343. *
  14344. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14345. * @param {*} [options] Override http request option.
  14346. * @throws {RequiredError}
  14347. */
  14348. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14349. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14350. },
  14351. /**
  14352. *
  14353. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14354. * @param {*} [options] Override http request option.
  14355. * @throws {RequiredError}
  14356. */
  14357. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14358. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  14359. },
  14360. };
  14361. };
  14362. /**
  14363. * Request parameters for createProfileImage operation in UserApi.
  14364. * @export
  14365. * @interface UserApiCreateProfileImageRequest
  14366. */
  14367. export interface UserApiCreateProfileImageRequest {
  14368. /**
  14369. *
  14370. * @type {File}
  14371. * @memberof UserApiCreateProfileImage
  14372. */
  14373. readonly file: File
  14374. }
  14375. /**
  14376. * Request parameters for createUser operation in UserApi.
  14377. * @export
  14378. * @interface UserApiCreateUserRequest
  14379. */
  14380. export interface UserApiCreateUserRequest {
  14381. /**
  14382. *
  14383. * @type {CreateUserDto}
  14384. * @memberof UserApiCreateUser
  14385. */
  14386. readonly createUserDto: CreateUserDto
  14387. }
  14388. /**
  14389. * Request parameters for deleteUser operation in UserApi.
  14390. * @export
  14391. * @interface UserApiDeleteUserRequest
  14392. */
  14393. export interface UserApiDeleteUserRequest {
  14394. /**
  14395. *
  14396. * @type {string}
  14397. * @memberof UserApiDeleteUser
  14398. */
  14399. readonly id: string
  14400. }
  14401. /**
  14402. * Request parameters for getAllUsers operation in UserApi.
  14403. * @export
  14404. * @interface UserApiGetAllUsersRequest
  14405. */
  14406. export interface UserApiGetAllUsersRequest {
  14407. /**
  14408. *
  14409. * @type {boolean}
  14410. * @memberof UserApiGetAllUsers
  14411. */
  14412. readonly isAll: boolean
  14413. }
  14414. /**
  14415. * Request parameters for getProfileImage operation in UserApi.
  14416. * @export
  14417. * @interface UserApiGetProfileImageRequest
  14418. */
  14419. export interface UserApiGetProfileImageRequest {
  14420. /**
  14421. *
  14422. * @type {string}
  14423. * @memberof UserApiGetProfileImage
  14424. */
  14425. readonly id: string
  14426. }
  14427. /**
  14428. * Request parameters for getUserById operation in UserApi.
  14429. * @export
  14430. * @interface UserApiGetUserByIdRequest
  14431. */
  14432. export interface UserApiGetUserByIdRequest {
  14433. /**
  14434. *
  14435. * @type {string}
  14436. * @memberof UserApiGetUserById
  14437. */
  14438. readonly id: string
  14439. }
  14440. /**
  14441. * Request parameters for getUserCount operation in UserApi.
  14442. * @export
  14443. * @interface UserApiGetUserCountRequest
  14444. */
  14445. export interface UserApiGetUserCountRequest {
  14446. /**
  14447. *
  14448. * @type {boolean}
  14449. * @memberof UserApiGetUserCount
  14450. */
  14451. readonly admin?: boolean
  14452. }
  14453. /**
  14454. * Request parameters for restoreUser operation in UserApi.
  14455. * @export
  14456. * @interface UserApiRestoreUserRequest
  14457. */
  14458. export interface UserApiRestoreUserRequest {
  14459. /**
  14460. *
  14461. * @type {string}
  14462. * @memberof UserApiRestoreUser
  14463. */
  14464. readonly id: string
  14465. }
  14466. /**
  14467. * Request parameters for updateUser operation in UserApi.
  14468. * @export
  14469. * @interface UserApiUpdateUserRequest
  14470. */
  14471. export interface UserApiUpdateUserRequest {
  14472. /**
  14473. *
  14474. * @type {UpdateUserDto}
  14475. * @memberof UserApiUpdateUser
  14476. */
  14477. readonly updateUserDto: UpdateUserDto
  14478. }
  14479. /**
  14480. * UserApi - object-oriented interface
  14481. * @export
  14482. * @class UserApi
  14483. * @extends {BaseAPI}
  14484. */
  14485. export class UserApi extends BaseAPI {
  14486. /**
  14487. *
  14488. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14489. * @param {*} [options] Override http request option.
  14490. * @throws {RequiredError}
  14491. * @memberof UserApi
  14492. */
  14493. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  14494. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  14495. }
  14496. /**
  14497. *
  14498. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14499. * @param {*} [options] Override http request option.
  14500. * @throws {RequiredError}
  14501. * @memberof UserApi
  14502. */
  14503. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  14504. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  14505. }
  14506. /**
  14507. *
  14508. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14509. * @param {*} [options] Override http request option.
  14510. * @throws {RequiredError}
  14511. * @memberof UserApi
  14512. */
  14513. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  14514. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14515. }
  14516. /**
  14517. *
  14518. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14519. * @param {*} [options] Override http request option.
  14520. * @throws {RequiredError}
  14521. * @memberof UserApi
  14522. */
  14523. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  14524. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  14525. }
  14526. /**
  14527. *
  14528. * @param {*} [options] Override http request option.
  14529. * @throws {RequiredError}
  14530. * @memberof UserApi
  14531. */
  14532. public getMyUserInfo(options?: AxiosRequestConfig) {
  14533. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  14534. }
  14535. /**
  14536. *
  14537. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14538. * @param {*} [options] Override http request option.
  14539. * @throws {RequiredError}
  14540. * @memberof UserApi
  14541. */
  14542. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  14543. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14544. }
  14545. /**
  14546. *
  14547. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14548. * @param {*} [options] Override http request option.
  14549. * @throws {RequiredError}
  14550. * @memberof UserApi
  14551. */
  14552. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  14553. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14554. }
  14555. /**
  14556. *
  14557. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14558. * @param {*} [options] Override http request option.
  14559. * @throws {RequiredError}
  14560. * @memberof UserApi
  14561. */
  14562. public getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig) {
  14563. return UserApiFp(this.configuration).getUserCount(requestParameters.admin, options).then((request) => request(this.axios, this.basePath));
  14564. }
  14565. /**
  14566. *
  14567. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14568. * @param {*} [options] Override http request option.
  14569. * @throws {RequiredError}
  14570. * @memberof UserApi
  14571. */
  14572. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  14573. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14574. }
  14575. /**
  14576. *
  14577. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14578. * @param {*} [options] Override http request option.
  14579. * @throws {RequiredError}
  14580. * @memberof UserApi
  14581. */
  14582. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  14583. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  14584. }
  14585. }