api.ts 555 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175
  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 CheckDuplicateAssetDto
  1020. */
  1021. export interface CheckDuplicateAssetDto {
  1022. /**
  1023. *
  1024. * @type {string}
  1025. * @memberof CheckDuplicateAssetDto
  1026. */
  1027. 'deviceAssetId': string;
  1028. /**
  1029. *
  1030. * @type {string}
  1031. * @memberof CheckDuplicateAssetDto
  1032. */
  1033. 'deviceId': string;
  1034. }
  1035. /**
  1036. *
  1037. * @export
  1038. * @interface CheckDuplicateAssetResponseDto
  1039. */
  1040. export interface CheckDuplicateAssetResponseDto {
  1041. /**
  1042. *
  1043. * @type {string}
  1044. * @memberof CheckDuplicateAssetResponseDto
  1045. */
  1046. 'id'?: string;
  1047. /**
  1048. *
  1049. * @type {boolean}
  1050. * @memberof CheckDuplicateAssetResponseDto
  1051. */
  1052. 'isExist': boolean;
  1053. }
  1054. /**
  1055. *
  1056. * @export
  1057. * @interface CheckExistingAssetsDto
  1058. */
  1059. export interface CheckExistingAssetsDto {
  1060. /**
  1061. *
  1062. * @type {Array<string>}
  1063. * @memberof CheckExistingAssetsDto
  1064. */
  1065. 'deviceAssetIds': Array<string>;
  1066. /**
  1067. *
  1068. * @type {string}
  1069. * @memberof CheckExistingAssetsDto
  1070. */
  1071. 'deviceId': string;
  1072. }
  1073. /**
  1074. *
  1075. * @export
  1076. * @interface CheckExistingAssetsResponseDto
  1077. */
  1078. export interface CheckExistingAssetsResponseDto {
  1079. /**
  1080. *
  1081. * @type {Array<string>}
  1082. * @memberof CheckExistingAssetsResponseDto
  1083. */
  1084. 'existingIds': Array<string>;
  1085. }
  1086. /**
  1087. *
  1088. * @export
  1089. * @enum {string}
  1090. */
  1091. export const CitiesFile = {
  1092. Cities15000: 'cities15000',
  1093. Cities5000: 'cities5000',
  1094. Cities1000: 'cities1000',
  1095. Cities500: 'cities500'
  1096. } as const;
  1097. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1098. /**
  1099. *
  1100. * @export
  1101. * @interface ClassificationConfig
  1102. */
  1103. export interface ClassificationConfig {
  1104. /**
  1105. *
  1106. * @type {boolean}
  1107. * @memberof ClassificationConfig
  1108. */
  1109. 'enabled': boolean;
  1110. /**
  1111. *
  1112. * @type {number}
  1113. * @memberof ClassificationConfig
  1114. */
  1115. 'minScore': number;
  1116. /**
  1117. *
  1118. * @type {string}
  1119. * @memberof ClassificationConfig
  1120. */
  1121. 'modelName': string;
  1122. /**
  1123. *
  1124. * @type {ModelType}
  1125. * @memberof ClassificationConfig
  1126. */
  1127. 'modelType'?: ModelType;
  1128. }
  1129. /**
  1130. *
  1131. * @export
  1132. * @enum {string}
  1133. */
  1134. export const Colorspace = {
  1135. Srgb: 'srgb',
  1136. P3: 'p3'
  1137. } as const;
  1138. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1139. /**
  1140. *
  1141. * @export
  1142. * @interface CreateAlbumDto
  1143. */
  1144. export interface CreateAlbumDto {
  1145. /**
  1146. *
  1147. * @type {string}
  1148. * @memberof CreateAlbumDto
  1149. */
  1150. 'albumName': string;
  1151. /**
  1152. *
  1153. * @type {Array<string>}
  1154. * @memberof CreateAlbumDto
  1155. */
  1156. 'assetIds'?: Array<string>;
  1157. /**
  1158. *
  1159. * @type {string}
  1160. * @memberof CreateAlbumDto
  1161. */
  1162. 'description'?: string;
  1163. /**
  1164. *
  1165. * @type {Array<string>}
  1166. * @memberof CreateAlbumDto
  1167. */
  1168. 'sharedWithUserIds'?: Array<string>;
  1169. }
  1170. /**
  1171. *
  1172. * @export
  1173. * @interface CreateLibraryDto
  1174. */
  1175. export interface CreateLibraryDto {
  1176. /**
  1177. *
  1178. * @type {Array<string>}
  1179. * @memberof CreateLibraryDto
  1180. */
  1181. 'exclusionPatterns'?: Array<string>;
  1182. /**
  1183. *
  1184. * @type {Array<string>}
  1185. * @memberof CreateLibraryDto
  1186. */
  1187. 'importPaths'?: Array<string>;
  1188. /**
  1189. *
  1190. * @type {boolean}
  1191. * @memberof CreateLibraryDto
  1192. */
  1193. 'isVisible'?: boolean;
  1194. /**
  1195. *
  1196. * @type {string}
  1197. * @memberof CreateLibraryDto
  1198. */
  1199. 'name'?: string;
  1200. /**
  1201. *
  1202. * @type {LibraryType}
  1203. * @memberof CreateLibraryDto
  1204. */
  1205. 'type': LibraryType;
  1206. }
  1207. /**
  1208. *
  1209. * @export
  1210. * @interface CreateProfileImageResponseDto
  1211. */
  1212. export interface CreateProfileImageResponseDto {
  1213. /**
  1214. *
  1215. * @type {string}
  1216. * @memberof CreateProfileImageResponseDto
  1217. */
  1218. 'profileImagePath': string;
  1219. /**
  1220. *
  1221. * @type {string}
  1222. * @memberof CreateProfileImageResponseDto
  1223. */
  1224. 'userId': string;
  1225. }
  1226. /**
  1227. *
  1228. * @export
  1229. * @interface CreateTagDto
  1230. */
  1231. export interface CreateTagDto {
  1232. /**
  1233. *
  1234. * @type {string}
  1235. * @memberof CreateTagDto
  1236. */
  1237. 'name': string;
  1238. /**
  1239. *
  1240. * @type {TagTypeEnum}
  1241. * @memberof CreateTagDto
  1242. */
  1243. 'type': TagTypeEnum;
  1244. }
  1245. /**
  1246. *
  1247. * @export
  1248. * @interface CreateUserDto
  1249. */
  1250. export interface CreateUserDto {
  1251. /**
  1252. *
  1253. * @type {string}
  1254. * @memberof CreateUserDto
  1255. */
  1256. 'email': string;
  1257. /**
  1258. *
  1259. * @type {string}
  1260. * @memberof CreateUserDto
  1261. */
  1262. 'externalPath'?: string | null;
  1263. /**
  1264. *
  1265. * @type {string}
  1266. * @memberof CreateUserDto
  1267. */
  1268. 'firstName': string;
  1269. /**
  1270. *
  1271. * @type {string}
  1272. * @memberof CreateUserDto
  1273. */
  1274. 'lastName': string;
  1275. /**
  1276. *
  1277. * @type {boolean}
  1278. * @memberof CreateUserDto
  1279. */
  1280. 'memoriesEnabled'?: boolean;
  1281. /**
  1282. *
  1283. * @type {string}
  1284. * @memberof CreateUserDto
  1285. */
  1286. 'password': string;
  1287. /**
  1288. *
  1289. * @type {string}
  1290. * @memberof CreateUserDto
  1291. */
  1292. 'storageLabel'?: string | null;
  1293. }
  1294. /**
  1295. *
  1296. * @export
  1297. * @interface CuratedLocationsResponseDto
  1298. */
  1299. export interface CuratedLocationsResponseDto {
  1300. /**
  1301. *
  1302. * @type {string}
  1303. * @memberof CuratedLocationsResponseDto
  1304. */
  1305. 'city': string;
  1306. /**
  1307. *
  1308. * @type {string}
  1309. * @memberof CuratedLocationsResponseDto
  1310. */
  1311. 'deviceAssetId': string;
  1312. /**
  1313. *
  1314. * @type {string}
  1315. * @memberof CuratedLocationsResponseDto
  1316. */
  1317. 'deviceId': string;
  1318. /**
  1319. *
  1320. * @type {string}
  1321. * @memberof CuratedLocationsResponseDto
  1322. */
  1323. 'id': string;
  1324. /**
  1325. *
  1326. * @type {string}
  1327. * @memberof CuratedLocationsResponseDto
  1328. */
  1329. 'resizePath': string;
  1330. }
  1331. /**
  1332. *
  1333. * @export
  1334. * @interface CuratedObjectsResponseDto
  1335. */
  1336. export interface CuratedObjectsResponseDto {
  1337. /**
  1338. *
  1339. * @type {string}
  1340. * @memberof CuratedObjectsResponseDto
  1341. */
  1342. 'deviceAssetId': string;
  1343. /**
  1344. *
  1345. * @type {string}
  1346. * @memberof CuratedObjectsResponseDto
  1347. */
  1348. 'deviceId': string;
  1349. /**
  1350. *
  1351. * @type {string}
  1352. * @memberof CuratedObjectsResponseDto
  1353. */
  1354. 'id': string;
  1355. /**
  1356. *
  1357. * @type {string}
  1358. * @memberof CuratedObjectsResponseDto
  1359. */
  1360. 'object': string;
  1361. /**
  1362. *
  1363. * @type {string}
  1364. * @memberof CuratedObjectsResponseDto
  1365. */
  1366. 'resizePath': string;
  1367. }
  1368. /**
  1369. *
  1370. * @export
  1371. * @interface DownloadArchiveInfo
  1372. */
  1373. export interface DownloadArchiveInfo {
  1374. /**
  1375. *
  1376. * @type {Array<string>}
  1377. * @memberof DownloadArchiveInfo
  1378. */
  1379. 'assetIds': Array<string>;
  1380. /**
  1381. *
  1382. * @type {number}
  1383. * @memberof DownloadArchiveInfo
  1384. */
  1385. 'size': number;
  1386. }
  1387. /**
  1388. *
  1389. * @export
  1390. * @interface DownloadInfoDto
  1391. */
  1392. export interface DownloadInfoDto {
  1393. /**
  1394. *
  1395. * @type {string}
  1396. * @memberof DownloadInfoDto
  1397. */
  1398. 'albumId'?: string;
  1399. /**
  1400. *
  1401. * @type {number}
  1402. * @memberof DownloadInfoDto
  1403. */
  1404. 'archiveSize'?: number;
  1405. /**
  1406. *
  1407. * @type {Array<string>}
  1408. * @memberof DownloadInfoDto
  1409. */
  1410. 'assetIds'?: Array<string>;
  1411. /**
  1412. *
  1413. * @type {string}
  1414. * @memberof DownloadInfoDto
  1415. */
  1416. 'userId'?: string;
  1417. }
  1418. /**
  1419. *
  1420. * @export
  1421. * @interface DownloadResponseDto
  1422. */
  1423. export interface DownloadResponseDto {
  1424. /**
  1425. *
  1426. * @type {Array<DownloadArchiveInfo>}
  1427. * @memberof DownloadResponseDto
  1428. */
  1429. 'archives': Array<DownloadArchiveInfo>;
  1430. /**
  1431. *
  1432. * @type {number}
  1433. * @memberof DownloadResponseDto
  1434. */
  1435. 'totalSize': number;
  1436. }
  1437. /**
  1438. *
  1439. * @export
  1440. * @enum {string}
  1441. */
  1442. export const EntityType = {
  1443. Asset: 'ASSET',
  1444. Album: 'ALBUM'
  1445. } as const;
  1446. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1447. /**
  1448. *
  1449. * @export
  1450. * @interface ExifResponseDto
  1451. */
  1452. export interface ExifResponseDto {
  1453. /**
  1454. *
  1455. * @type {string}
  1456. * @memberof ExifResponseDto
  1457. */
  1458. 'city'?: string | null;
  1459. /**
  1460. *
  1461. * @type {string}
  1462. * @memberof ExifResponseDto
  1463. */
  1464. 'country'?: string | null;
  1465. /**
  1466. *
  1467. * @type {string}
  1468. * @memberof ExifResponseDto
  1469. */
  1470. 'dateTimeOriginal'?: string | null;
  1471. /**
  1472. *
  1473. * @type {string}
  1474. * @memberof ExifResponseDto
  1475. */
  1476. 'description'?: string | null;
  1477. /**
  1478. *
  1479. * @type {number}
  1480. * @memberof ExifResponseDto
  1481. */
  1482. 'exifImageHeight'?: number | null;
  1483. /**
  1484. *
  1485. * @type {number}
  1486. * @memberof ExifResponseDto
  1487. */
  1488. 'exifImageWidth'?: number | null;
  1489. /**
  1490. *
  1491. * @type {string}
  1492. * @memberof ExifResponseDto
  1493. */
  1494. 'exposureTime'?: string | null;
  1495. /**
  1496. *
  1497. * @type {number}
  1498. * @memberof ExifResponseDto
  1499. */
  1500. 'fNumber'?: number | null;
  1501. /**
  1502. *
  1503. * @type {number}
  1504. * @memberof ExifResponseDto
  1505. */
  1506. 'fileSizeInByte'?: number | null;
  1507. /**
  1508. *
  1509. * @type {number}
  1510. * @memberof ExifResponseDto
  1511. */
  1512. 'focalLength'?: number | null;
  1513. /**
  1514. *
  1515. * @type {number}
  1516. * @memberof ExifResponseDto
  1517. */
  1518. 'iso'?: number | null;
  1519. /**
  1520. *
  1521. * @type {number}
  1522. * @memberof ExifResponseDto
  1523. */
  1524. 'latitude'?: number | null;
  1525. /**
  1526. *
  1527. * @type {string}
  1528. * @memberof ExifResponseDto
  1529. */
  1530. 'lensModel'?: string | null;
  1531. /**
  1532. *
  1533. * @type {number}
  1534. * @memberof ExifResponseDto
  1535. */
  1536. 'longitude'?: number | null;
  1537. /**
  1538. *
  1539. * @type {string}
  1540. * @memberof ExifResponseDto
  1541. */
  1542. 'make'?: string | null;
  1543. /**
  1544. *
  1545. * @type {string}
  1546. * @memberof ExifResponseDto
  1547. */
  1548. 'model'?: string | null;
  1549. /**
  1550. *
  1551. * @type {string}
  1552. * @memberof ExifResponseDto
  1553. */
  1554. 'modifyDate'?: string | null;
  1555. /**
  1556. *
  1557. * @type {string}
  1558. * @memberof ExifResponseDto
  1559. */
  1560. 'orientation'?: string | null;
  1561. /**
  1562. *
  1563. * @type {string}
  1564. * @memberof ExifResponseDto
  1565. */
  1566. 'projectionType'?: string | null;
  1567. /**
  1568. *
  1569. * @type {string}
  1570. * @memberof ExifResponseDto
  1571. */
  1572. 'state'?: string | null;
  1573. /**
  1574. *
  1575. * @type {string}
  1576. * @memberof ExifResponseDto
  1577. */
  1578. 'timeZone'?: string | null;
  1579. }
  1580. /**
  1581. *
  1582. * @export
  1583. * @interface FileChecksumDto
  1584. */
  1585. export interface FileChecksumDto {
  1586. /**
  1587. *
  1588. * @type {Array<string>}
  1589. * @memberof FileChecksumDto
  1590. */
  1591. 'filenames': Array<string>;
  1592. }
  1593. /**
  1594. *
  1595. * @export
  1596. * @interface FileChecksumResponseDto
  1597. */
  1598. export interface FileChecksumResponseDto {
  1599. /**
  1600. *
  1601. * @type {string}
  1602. * @memberof FileChecksumResponseDto
  1603. */
  1604. 'checksum': string;
  1605. /**
  1606. *
  1607. * @type {string}
  1608. * @memberof FileChecksumResponseDto
  1609. */
  1610. 'filename': string;
  1611. }
  1612. /**
  1613. *
  1614. * @export
  1615. * @interface FileReportDto
  1616. */
  1617. export interface FileReportDto {
  1618. /**
  1619. *
  1620. * @type {Array<string>}
  1621. * @memberof FileReportDto
  1622. */
  1623. 'extras': Array<string>;
  1624. /**
  1625. *
  1626. * @type {Array<FileReportItemDto>}
  1627. * @memberof FileReportDto
  1628. */
  1629. 'orphans': Array<FileReportItemDto>;
  1630. }
  1631. /**
  1632. *
  1633. * @export
  1634. * @interface FileReportFixDto
  1635. */
  1636. export interface FileReportFixDto {
  1637. /**
  1638. *
  1639. * @type {Array<FileReportItemDto>}
  1640. * @memberof FileReportFixDto
  1641. */
  1642. 'items': Array<FileReportItemDto>;
  1643. }
  1644. /**
  1645. *
  1646. * @export
  1647. * @interface FileReportItemDto
  1648. */
  1649. export interface FileReportItemDto {
  1650. /**
  1651. *
  1652. * @type {string}
  1653. * @memberof FileReportItemDto
  1654. */
  1655. 'checksum'?: string;
  1656. /**
  1657. *
  1658. * @type {string}
  1659. * @memberof FileReportItemDto
  1660. */
  1661. 'entityId': string;
  1662. /**
  1663. *
  1664. * @type {PathEntityType}
  1665. * @memberof FileReportItemDto
  1666. */
  1667. 'entityType': PathEntityType;
  1668. /**
  1669. *
  1670. * @type {PathType}
  1671. * @memberof FileReportItemDto
  1672. */
  1673. 'pathType': PathType;
  1674. /**
  1675. *
  1676. * @type {string}
  1677. * @memberof FileReportItemDto
  1678. */
  1679. 'pathValue': string;
  1680. }
  1681. /**
  1682. *
  1683. * @export
  1684. * @interface ImportAssetDto
  1685. */
  1686. export interface ImportAssetDto {
  1687. /**
  1688. *
  1689. * @type {string}
  1690. * @memberof ImportAssetDto
  1691. */
  1692. 'assetPath': string;
  1693. /**
  1694. *
  1695. * @type {string}
  1696. * @memberof ImportAssetDto
  1697. */
  1698. 'deviceAssetId': string;
  1699. /**
  1700. *
  1701. * @type {string}
  1702. * @memberof ImportAssetDto
  1703. */
  1704. 'deviceId': string;
  1705. /**
  1706. *
  1707. * @type {string}
  1708. * @memberof ImportAssetDto
  1709. */
  1710. 'duration'?: string;
  1711. /**
  1712. *
  1713. * @type {string}
  1714. * @memberof ImportAssetDto
  1715. */
  1716. 'fileCreatedAt': string;
  1717. /**
  1718. *
  1719. * @type {string}
  1720. * @memberof ImportAssetDto
  1721. */
  1722. 'fileModifiedAt': string;
  1723. /**
  1724. *
  1725. * @type {boolean}
  1726. * @memberof ImportAssetDto
  1727. */
  1728. 'isArchived'?: boolean;
  1729. /**
  1730. *
  1731. * @type {boolean}
  1732. * @memberof ImportAssetDto
  1733. */
  1734. 'isExternal'?: boolean;
  1735. /**
  1736. *
  1737. * @type {boolean}
  1738. * @memberof ImportAssetDto
  1739. */
  1740. 'isFavorite': boolean;
  1741. /**
  1742. *
  1743. * @type {boolean}
  1744. * @memberof ImportAssetDto
  1745. */
  1746. 'isOffline'?: boolean;
  1747. /**
  1748. *
  1749. * @type {boolean}
  1750. * @memberof ImportAssetDto
  1751. */
  1752. 'isReadOnly'?: boolean;
  1753. /**
  1754. *
  1755. * @type {boolean}
  1756. * @memberof ImportAssetDto
  1757. */
  1758. 'isVisible'?: boolean;
  1759. /**
  1760. *
  1761. * @type {string}
  1762. * @memberof ImportAssetDto
  1763. */
  1764. 'libraryId'?: string;
  1765. /**
  1766. *
  1767. * @type {string}
  1768. * @memberof ImportAssetDto
  1769. */
  1770. 'sidecarPath'?: string;
  1771. }
  1772. /**
  1773. *
  1774. * @export
  1775. * @enum {string}
  1776. */
  1777. export const JobCommand = {
  1778. Start: 'start',
  1779. Pause: 'pause',
  1780. Resume: 'resume',
  1781. Empty: 'empty'
  1782. } as const;
  1783. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1784. /**
  1785. *
  1786. * @export
  1787. * @interface JobCommandDto
  1788. */
  1789. export interface JobCommandDto {
  1790. /**
  1791. *
  1792. * @type {JobCommand}
  1793. * @memberof JobCommandDto
  1794. */
  1795. 'command': JobCommand;
  1796. /**
  1797. *
  1798. * @type {boolean}
  1799. * @memberof JobCommandDto
  1800. */
  1801. 'force': boolean;
  1802. }
  1803. /**
  1804. *
  1805. * @export
  1806. * @interface JobCountsDto
  1807. */
  1808. export interface JobCountsDto {
  1809. /**
  1810. *
  1811. * @type {number}
  1812. * @memberof JobCountsDto
  1813. */
  1814. 'active': number;
  1815. /**
  1816. *
  1817. * @type {number}
  1818. * @memberof JobCountsDto
  1819. */
  1820. 'completed': number;
  1821. /**
  1822. *
  1823. * @type {number}
  1824. * @memberof JobCountsDto
  1825. */
  1826. 'delayed': number;
  1827. /**
  1828. *
  1829. * @type {number}
  1830. * @memberof JobCountsDto
  1831. */
  1832. 'failed': number;
  1833. /**
  1834. *
  1835. * @type {number}
  1836. * @memberof JobCountsDto
  1837. */
  1838. 'paused': number;
  1839. /**
  1840. *
  1841. * @type {number}
  1842. * @memberof JobCountsDto
  1843. */
  1844. 'waiting': number;
  1845. }
  1846. /**
  1847. *
  1848. * @export
  1849. * @enum {string}
  1850. */
  1851. export const JobName = {
  1852. ThumbnailGeneration: 'thumbnailGeneration',
  1853. MetadataExtraction: 'metadataExtraction',
  1854. VideoConversion: 'videoConversion',
  1855. ObjectTagging: 'objectTagging',
  1856. RecognizeFaces: 'recognizeFaces',
  1857. ClipEncoding: 'clipEncoding',
  1858. BackgroundTask: 'backgroundTask',
  1859. StorageTemplateMigration: 'storageTemplateMigration',
  1860. Migration: 'migration',
  1861. Search: 'search',
  1862. Sidecar: 'sidecar',
  1863. Library: 'library'
  1864. } as const;
  1865. export type JobName = typeof JobName[keyof typeof JobName];
  1866. /**
  1867. *
  1868. * @export
  1869. * @interface JobSettingsDto
  1870. */
  1871. export interface JobSettingsDto {
  1872. /**
  1873. *
  1874. * @type {number}
  1875. * @memberof JobSettingsDto
  1876. */
  1877. 'concurrency': number;
  1878. }
  1879. /**
  1880. *
  1881. * @export
  1882. * @interface JobStatusDto
  1883. */
  1884. export interface JobStatusDto {
  1885. /**
  1886. *
  1887. * @type {JobCountsDto}
  1888. * @memberof JobStatusDto
  1889. */
  1890. 'jobCounts': JobCountsDto;
  1891. /**
  1892. *
  1893. * @type {QueueStatusDto}
  1894. * @memberof JobStatusDto
  1895. */
  1896. 'queueStatus': QueueStatusDto;
  1897. }
  1898. /**
  1899. *
  1900. * @export
  1901. * @interface LibraryResponseDto
  1902. */
  1903. export interface LibraryResponseDto {
  1904. /**
  1905. *
  1906. * @type {number}
  1907. * @memberof LibraryResponseDto
  1908. */
  1909. 'assetCount': number;
  1910. /**
  1911. *
  1912. * @type {string}
  1913. * @memberof LibraryResponseDto
  1914. */
  1915. 'createdAt': string;
  1916. /**
  1917. *
  1918. * @type {Array<string>}
  1919. * @memberof LibraryResponseDto
  1920. */
  1921. 'exclusionPatterns': Array<string>;
  1922. /**
  1923. *
  1924. * @type {string}
  1925. * @memberof LibraryResponseDto
  1926. */
  1927. 'id': string;
  1928. /**
  1929. *
  1930. * @type {Array<string>}
  1931. * @memberof LibraryResponseDto
  1932. */
  1933. 'importPaths': Array<string>;
  1934. /**
  1935. *
  1936. * @type {string}
  1937. * @memberof LibraryResponseDto
  1938. */
  1939. 'name': string;
  1940. /**
  1941. *
  1942. * @type {string}
  1943. * @memberof LibraryResponseDto
  1944. */
  1945. 'ownerId': string;
  1946. /**
  1947. *
  1948. * @type {string}
  1949. * @memberof LibraryResponseDto
  1950. */
  1951. 'refreshedAt': string | null;
  1952. /**
  1953. *
  1954. * @type {LibraryType}
  1955. * @memberof LibraryResponseDto
  1956. */
  1957. 'type': LibraryType;
  1958. /**
  1959. *
  1960. * @type {string}
  1961. * @memberof LibraryResponseDto
  1962. */
  1963. 'updatedAt': string;
  1964. }
  1965. /**
  1966. *
  1967. * @export
  1968. * @interface LibraryStatsResponseDto
  1969. */
  1970. export interface LibraryStatsResponseDto {
  1971. /**
  1972. *
  1973. * @type {number}
  1974. * @memberof LibraryStatsResponseDto
  1975. */
  1976. 'photos': number;
  1977. /**
  1978. *
  1979. * @type {number}
  1980. * @memberof LibraryStatsResponseDto
  1981. */
  1982. 'total': number;
  1983. /**
  1984. *
  1985. * @type {number}
  1986. * @memberof LibraryStatsResponseDto
  1987. */
  1988. 'usage': number;
  1989. /**
  1990. *
  1991. * @type {number}
  1992. * @memberof LibraryStatsResponseDto
  1993. */
  1994. 'videos': number;
  1995. }
  1996. /**
  1997. *
  1998. * @export
  1999. * @enum {string}
  2000. */
  2001. export const LibraryType = {
  2002. Upload: 'UPLOAD',
  2003. External: 'EXTERNAL'
  2004. } as const;
  2005. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  2006. /**
  2007. *
  2008. * @export
  2009. * @interface LoginCredentialDto
  2010. */
  2011. export interface LoginCredentialDto {
  2012. /**
  2013. *
  2014. * @type {string}
  2015. * @memberof LoginCredentialDto
  2016. */
  2017. 'email': string;
  2018. /**
  2019. *
  2020. * @type {string}
  2021. * @memberof LoginCredentialDto
  2022. */
  2023. 'password': string;
  2024. }
  2025. /**
  2026. *
  2027. * @export
  2028. * @interface LoginResponseDto
  2029. */
  2030. export interface LoginResponseDto {
  2031. /**
  2032. *
  2033. * @type {string}
  2034. * @memberof LoginResponseDto
  2035. */
  2036. 'accessToken': string;
  2037. /**
  2038. *
  2039. * @type {string}
  2040. * @memberof LoginResponseDto
  2041. */
  2042. 'firstName': string;
  2043. /**
  2044. *
  2045. * @type {boolean}
  2046. * @memberof LoginResponseDto
  2047. */
  2048. 'isAdmin': boolean;
  2049. /**
  2050. *
  2051. * @type {string}
  2052. * @memberof LoginResponseDto
  2053. */
  2054. 'lastName': string;
  2055. /**
  2056. *
  2057. * @type {string}
  2058. * @memberof LoginResponseDto
  2059. */
  2060. 'profileImagePath': string;
  2061. /**
  2062. *
  2063. * @type {boolean}
  2064. * @memberof LoginResponseDto
  2065. */
  2066. 'shouldChangePassword': boolean;
  2067. /**
  2068. *
  2069. * @type {string}
  2070. * @memberof LoginResponseDto
  2071. */
  2072. 'userEmail': string;
  2073. /**
  2074. *
  2075. * @type {string}
  2076. * @memberof LoginResponseDto
  2077. */
  2078. 'userId': string;
  2079. }
  2080. /**
  2081. *
  2082. * @export
  2083. * @interface LogoutResponseDto
  2084. */
  2085. export interface LogoutResponseDto {
  2086. /**
  2087. *
  2088. * @type {string}
  2089. * @memberof LogoutResponseDto
  2090. */
  2091. 'redirectUri': string;
  2092. /**
  2093. *
  2094. * @type {boolean}
  2095. * @memberof LogoutResponseDto
  2096. */
  2097. 'successful': boolean;
  2098. }
  2099. /**
  2100. *
  2101. * @export
  2102. * @interface MapMarkerResponseDto
  2103. */
  2104. export interface MapMarkerResponseDto {
  2105. /**
  2106. *
  2107. * @type {string}
  2108. * @memberof MapMarkerResponseDto
  2109. */
  2110. 'id': string;
  2111. /**
  2112. *
  2113. * @type {number}
  2114. * @memberof MapMarkerResponseDto
  2115. */
  2116. 'lat': number;
  2117. /**
  2118. *
  2119. * @type {number}
  2120. * @memberof MapMarkerResponseDto
  2121. */
  2122. 'lon': number;
  2123. }
  2124. /**
  2125. *
  2126. * @export
  2127. * @interface MemoryLaneResponseDto
  2128. */
  2129. export interface MemoryLaneResponseDto {
  2130. /**
  2131. *
  2132. * @type {Array<AssetResponseDto>}
  2133. * @memberof MemoryLaneResponseDto
  2134. */
  2135. 'assets': Array<AssetResponseDto>;
  2136. /**
  2137. *
  2138. * @type {string}
  2139. * @memberof MemoryLaneResponseDto
  2140. */
  2141. 'title': string;
  2142. }
  2143. /**
  2144. *
  2145. * @export
  2146. * @interface MergePersonDto
  2147. */
  2148. export interface MergePersonDto {
  2149. /**
  2150. *
  2151. * @type {Array<string>}
  2152. * @memberof MergePersonDto
  2153. */
  2154. 'ids': Array<string>;
  2155. }
  2156. /**
  2157. *
  2158. * @export
  2159. * @enum {string}
  2160. */
  2161. export const ModelType = {
  2162. ImageClassification: 'image-classification',
  2163. FacialRecognition: 'facial-recognition',
  2164. Clip: 'clip'
  2165. } as const;
  2166. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2167. /**
  2168. *
  2169. * @export
  2170. * @interface OAuthAuthorizeResponseDto
  2171. */
  2172. export interface OAuthAuthorizeResponseDto {
  2173. /**
  2174. *
  2175. * @type {string}
  2176. * @memberof OAuthAuthorizeResponseDto
  2177. */
  2178. 'url': string;
  2179. }
  2180. /**
  2181. *
  2182. * @export
  2183. * @interface OAuthCallbackDto
  2184. */
  2185. export interface OAuthCallbackDto {
  2186. /**
  2187. *
  2188. * @type {string}
  2189. * @memberof OAuthCallbackDto
  2190. */
  2191. 'url': string;
  2192. }
  2193. /**
  2194. *
  2195. * @export
  2196. * @interface OAuthConfigDto
  2197. */
  2198. export interface OAuthConfigDto {
  2199. /**
  2200. *
  2201. * @type {string}
  2202. * @memberof OAuthConfigDto
  2203. */
  2204. 'redirectUri': string;
  2205. }
  2206. /**
  2207. *
  2208. * @export
  2209. * @interface OAuthConfigResponseDto
  2210. */
  2211. export interface OAuthConfigResponseDto {
  2212. /**
  2213. *
  2214. * @type {boolean}
  2215. * @memberof OAuthConfigResponseDto
  2216. */
  2217. 'autoLaunch'?: boolean;
  2218. /**
  2219. *
  2220. * @type {string}
  2221. * @memberof OAuthConfigResponseDto
  2222. */
  2223. 'buttonText'?: string;
  2224. /**
  2225. *
  2226. * @type {boolean}
  2227. * @memberof OAuthConfigResponseDto
  2228. */
  2229. 'enabled': boolean;
  2230. /**
  2231. *
  2232. * @type {boolean}
  2233. * @memberof OAuthConfigResponseDto
  2234. */
  2235. 'passwordLoginEnabled': boolean;
  2236. /**
  2237. *
  2238. * @type {string}
  2239. * @memberof OAuthConfigResponseDto
  2240. */
  2241. 'url'?: string;
  2242. }
  2243. /**
  2244. *
  2245. * @export
  2246. * @enum {string}
  2247. */
  2248. export const PathEntityType = {
  2249. Asset: 'asset',
  2250. Person: 'person',
  2251. User: 'user'
  2252. } as const;
  2253. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2254. /**
  2255. *
  2256. * @export
  2257. * @enum {string}
  2258. */
  2259. export const PathType = {
  2260. Original: 'original',
  2261. JpegThumbnail: 'jpeg_thumbnail',
  2262. WebpThumbnail: 'webp_thumbnail',
  2263. EncodedVideo: 'encoded_video',
  2264. Sidecar: 'sidecar',
  2265. Face: 'face',
  2266. Profile: 'profile'
  2267. } as const;
  2268. export type PathType = typeof PathType[keyof typeof PathType];
  2269. /**
  2270. *
  2271. * @export
  2272. * @interface PeopleResponseDto
  2273. */
  2274. export interface PeopleResponseDto {
  2275. /**
  2276. *
  2277. * @type {Array<PersonResponseDto>}
  2278. * @memberof PeopleResponseDto
  2279. */
  2280. 'people': Array<PersonResponseDto>;
  2281. /**
  2282. *
  2283. * @type {number}
  2284. * @memberof PeopleResponseDto
  2285. */
  2286. 'total': number;
  2287. /**
  2288. *
  2289. * @type {number}
  2290. * @memberof PeopleResponseDto
  2291. */
  2292. 'visible': number;
  2293. }
  2294. /**
  2295. *
  2296. * @export
  2297. * @interface PeopleUpdateDto
  2298. */
  2299. export interface PeopleUpdateDto {
  2300. /**
  2301. *
  2302. * @type {Array<PeopleUpdateItem>}
  2303. * @memberof PeopleUpdateDto
  2304. */
  2305. 'people': Array<PeopleUpdateItem>;
  2306. }
  2307. /**
  2308. *
  2309. * @export
  2310. * @interface PeopleUpdateItem
  2311. */
  2312. export interface PeopleUpdateItem {
  2313. /**
  2314. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2315. * @type {string}
  2316. * @memberof PeopleUpdateItem
  2317. */
  2318. 'birthDate'?: string | null;
  2319. /**
  2320. * Asset is used to get the feature face thumbnail.
  2321. * @type {string}
  2322. * @memberof PeopleUpdateItem
  2323. */
  2324. 'featureFaceAssetId'?: string;
  2325. /**
  2326. * Person id.
  2327. * @type {string}
  2328. * @memberof PeopleUpdateItem
  2329. */
  2330. 'id': string;
  2331. /**
  2332. * Person visibility
  2333. * @type {boolean}
  2334. * @memberof PeopleUpdateItem
  2335. */
  2336. 'isHidden'?: boolean;
  2337. /**
  2338. * Person name.
  2339. * @type {string}
  2340. * @memberof PeopleUpdateItem
  2341. */
  2342. 'name'?: string;
  2343. }
  2344. /**
  2345. *
  2346. * @export
  2347. * @interface PersonResponseDto
  2348. */
  2349. export interface PersonResponseDto {
  2350. /**
  2351. *
  2352. * @type {string}
  2353. * @memberof PersonResponseDto
  2354. */
  2355. 'birthDate': string | null;
  2356. /**
  2357. *
  2358. * @type {string}
  2359. * @memberof PersonResponseDto
  2360. */
  2361. 'id': string;
  2362. /**
  2363. *
  2364. * @type {boolean}
  2365. * @memberof PersonResponseDto
  2366. */
  2367. 'isHidden': boolean;
  2368. /**
  2369. *
  2370. * @type {string}
  2371. * @memberof PersonResponseDto
  2372. */
  2373. 'name': string;
  2374. /**
  2375. *
  2376. * @type {string}
  2377. * @memberof PersonResponseDto
  2378. */
  2379. 'thumbnailPath': string;
  2380. }
  2381. /**
  2382. *
  2383. * @export
  2384. * @interface PersonUpdateDto
  2385. */
  2386. export interface PersonUpdateDto {
  2387. /**
  2388. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2389. * @type {string}
  2390. * @memberof PersonUpdateDto
  2391. */
  2392. 'birthDate'?: string | null;
  2393. /**
  2394. * Asset is used to get the feature face thumbnail.
  2395. * @type {string}
  2396. * @memberof PersonUpdateDto
  2397. */
  2398. 'featureFaceAssetId'?: string;
  2399. /**
  2400. * Person visibility
  2401. * @type {boolean}
  2402. * @memberof PersonUpdateDto
  2403. */
  2404. 'isHidden'?: boolean;
  2405. /**
  2406. * Person name.
  2407. * @type {string}
  2408. * @memberof PersonUpdateDto
  2409. */
  2410. 'name'?: string;
  2411. }
  2412. /**
  2413. *
  2414. * @export
  2415. * @interface QueueStatusDto
  2416. */
  2417. export interface QueueStatusDto {
  2418. /**
  2419. *
  2420. * @type {boolean}
  2421. * @memberof QueueStatusDto
  2422. */
  2423. 'isActive': boolean;
  2424. /**
  2425. *
  2426. * @type {boolean}
  2427. * @memberof QueueStatusDto
  2428. */
  2429. 'isPaused': boolean;
  2430. }
  2431. /**
  2432. *
  2433. * @export
  2434. * @interface RecognitionConfig
  2435. */
  2436. export interface RecognitionConfig {
  2437. /**
  2438. *
  2439. * @type {boolean}
  2440. * @memberof RecognitionConfig
  2441. */
  2442. 'enabled': boolean;
  2443. /**
  2444. *
  2445. * @type {number}
  2446. * @memberof RecognitionConfig
  2447. */
  2448. 'maxDistance': number;
  2449. /**
  2450. *
  2451. * @type {number}
  2452. * @memberof RecognitionConfig
  2453. */
  2454. 'minFaces': number;
  2455. /**
  2456. *
  2457. * @type {number}
  2458. * @memberof RecognitionConfig
  2459. */
  2460. 'minScore': number;
  2461. /**
  2462. *
  2463. * @type {string}
  2464. * @memberof RecognitionConfig
  2465. */
  2466. 'modelName': string;
  2467. /**
  2468. *
  2469. * @type {ModelType}
  2470. * @memberof RecognitionConfig
  2471. */
  2472. 'modelType'?: ModelType;
  2473. }
  2474. /**
  2475. *
  2476. * @export
  2477. * @interface ScanLibraryDto
  2478. */
  2479. export interface ScanLibraryDto {
  2480. /**
  2481. *
  2482. * @type {boolean}
  2483. * @memberof ScanLibraryDto
  2484. */
  2485. 'refreshAllFiles'?: boolean;
  2486. /**
  2487. *
  2488. * @type {boolean}
  2489. * @memberof ScanLibraryDto
  2490. */
  2491. 'refreshModifiedFiles'?: boolean;
  2492. }
  2493. /**
  2494. *
  2495. * @export
  2496. * @interface SearchAlbumResponseDto
  2497. */
  2498. export interface SearchAlbumResponseDto {
  2499. /**
  2500. *
  2501. * @type {number}
  2502. * @memberof SearchAlbumResponseDto
  2503. */
  2504. 'count': number;
  2505. /**
  2506. *
  2507. * @type {Array<SearchFacetResponseDto>}
  2508. * @memberof SearchAlbumResponseDto
  2509. */
  2510. 'facets': Array<SearchFacetResponseDto>;
  2511. /**
  2512. *
  2513. * @type {Array<AlbumResponseDto>}
  2514. * @memberof SearchAlbumResponseDto
  2515. */
  2516. 'items': Array<AlbumResponseDto>;
  2517. /**
  2518. *
  2519. * @type {number}
  2520. * @memberof SearchAlbumResponseDto
  2521. */
  2522. 'total': number;
  2523. }
  2524. /**
  2525. *
  2526. * @export
  2527. * @interface SearchAssetDto
  2528. */
  2529. export interface SearchAssetDto {
  2530. /**
  2531. *
  2532. * @type {string}
  2533. * @memberof SearchAssetDto
  2534. */
  2535. 'searchTerm': string;
  2536. }
  2537. /**
  2538. *
  2539. * @export
  2540. * @interface SearchAssetResponseDto
  2541. */
  2542. export interface SearchAssetResponseDto {
  2543. /**
  2544. *
  2545. * @type {number}
  2546. * @memberof SearchAssetResponseDto
  2547. */
  2548. 'count': number;
  2549. /**
  2550. *
  2551. * @type {Array<SearchFacetResponseDto>}
  2552. * @memberof SearchAssetResponseDto
  2553. */
  2554. 'facets': Array<SearchFacetResponseDto>;
  2555. /**
  2556. *
  2557. * @type {Array<AssetResponseDto>}
  2558. * @memberof SearchAssetResponseDto
  2559. */
  2560. 'items': Array<AssetResponseDto>;
  2561. /**
  2562. *
  2563. * @type {number}
  2564. * @memberof SearchAssetResponseDto
  2565. */
  2566. 'total': number;
  2567. }
  2568. /**
  2569. *
  2570. * @export
  2571. * @interface SearchExploreItem
  2572. */
  2573. export interface SearchExploreItem {
  2574. /**
  2575. *
  2576. * @type {AssetResponseDto}
  2577. * @memberof SearchExploreItem
  2578. */
  2579. 'data': AssetResponseDto;
  2580. /**
  2581. *
  2582. * @type {string}
  2583. * @memberof SearchExploreItem
  2584. */
  2585. 'value': string;
  2586. }
  2587. /**
  2588. *
  2589. * @export
  2590. * @interface SearchExploreResponseDto
  2591. */
  2592. export interface SearchExploreResponseDto {
  2593. /**
  2594. *
  2595. * @type {string}
  2596. * @memberof SearchExploreResponseDto
  2597. */
  2598. 'fieldName': string;
  2599. /**
  2600. *
  2601. * @type {Array<SearchExploreItem>}
  2602. * @memberof SearchExploreResponseDto
  2603. */
  2604. 'items': Array<SearchExploreItem>;
  2605. }
  2606. /**
  2607. *
  2608. * @export
  2609. * @interface SearchFacetCountResponseDto
  2610. */
  2611. export interface SearchFacetCountResponseDto {
  2612. /**
  2613. *
  2614. * @type {number}
  2615. * @memberof SearchFacetCountResponseDto
  2616. */
  2617. 'count': number;
  2618. /**
  2619. *
  2620. * @type {string}
  2621. * @memberof SearchFacetCountResponseDto
  2622. */
  2623. 'value': string;
  2624. }
  2625. /**
  2626. *
  2627. * @export
  2628. * @interface SearchFacetResponseDto
  2629. */
  2630. export interface SearchFacetResponseDto {
  2631. /**
  2632. *
  2633. * @type {Array<SearchFacetCountResponseDto>}
  2634. * @memberof SearchFacetResponseDto
  2635. */
  2636. 'counts': Array<SearchFacetCountResponseDto>;
  2637. /**
  2638. *
  2639. * @type {string}
  2640. * @memberof SearchFacetResponseDto
  2641. */
  2642. 'fieldName': string;
  2643. }
  2644. /**
  2645. *
  2646. * @export
  2647. * @interface SearchResponseDto
  2648. */
  2649. export interface SearchResponseDto {
  2650. /**
  2651. *
  2652. * @type {SearchAlbumResponseDto}
  2653. * @memberof SearchResponseDto
  2654. */
  2655. 'albums': SearchAlbumResponseDto;
  2656. /**
  2657. *
  2658. * @type {SearchAssetResponseDto}
  2659. * @memberof SearchResponseDto
  2660. */
  2661. 'assets': SearchAssetResponseDto;
  2662. }
  2663. /**
  2664. *
  2665. * @export
  2666. * @interface ServerConfigDto
  2667. */
  2668. export interface ServerConfigDto {
  2669. /**
  2670. *
  2671. * @type {boolean}
  2672. * @memberof ServerConfigDto
  2673. */
  2674. 'isInitialized': boolean;
  2675. /**
  2676. *
  2677. * @type {string}
  2678. * @memberof ServerConfigDto
  2679. */
  2680. 'loginPageMessage': string;
  2681. /**
  2682. *
  2683. * @type {string}
  2684. * @memberof ServerConfigDto
  2685. */
  2686. 'mapTileUrl': string;
  2687. /**
  2688. *
  2689. * @type {string}
  2690. * @memberof ServerConfigDto
  2691. */
  2692. 'oauthButtonText': string;
  2693. /**
  2694. *
  2695. * @type {number}
  2696. * @memberof ServerConfigDto
  2697. */
  2698. 'trashDays': number;
  2699. }
  2700. /**
  2701. *
  2702. * @export
  2703. * @interface ServerFeaturesDto
  2704. */
  2705. export interface ServerFeaturesDto {
  2706. /**
  2707. *
  2708. * @type {boolean}
  2709. * @memberof ServerFeaturesDto
  2710. */
  2711. 'clipEncode': boolean;
  2712. /**
  2713. *
  2714. * @type {boolean}
  2715. * @memberof ServerFeaturesDto
  2716. */
  2717. 'configFile': boolean;
  2718. /**
  2719. *
  2720. * @type {boolean}
  2721. * @memberof ServerFeaturesDto
  2722. */
  2723. 'facialRecognition': boolean;
  2724. /**
  2725. *
  2726. * @type {boolean}
  2727. * @memberof ServerFeaturesDto
  2728. */
  2729. 'map': boolean;
  2730. /**
  2731. *
  2732. * @type {boolean}
  2733. * @memberof ServerFeaturesDto
  2734. */
  2735. 'oauth': boolean;
  2736. /**
  2737. *
  2738. * @type {boolean}
  2739. * @memberof ServerFeaturesDto
  2740. */
  2741. 'oauthAutoLaunch': boolean;
  2742. /**
  2743. *
  2744. * @type {boolean}
  2745. * @memberof ServerFeaturesDto
  2746. */
  2747. 'passwordLogin': boolean;
  2748. /**
  2749. *
  2750. * @type {boolean}
  2751. * @memberof ServerFeaturesDto
  2752. */
  2753. 'reverseGeocoding': boolean;
  2754. /**
  2755. *
  2756. * @type {boolean}
  2757. * @memberof ServerFeaturesDto
  2758. */
  2759. 'search': boolean;
  2760. /**
  2761. *
  2762. * @type {boolean}
  2763. * @memberof ServerFeaturesDto
  2764. */
  2765. 'sidecar': boolean;
  2766. /**
  2767. *
  2768. * @type {boolean}
  2769. * @memberof ServerFeaturesDto
  2770. */
  2771. 'tagImage': boolean;
  2772. /**
  2773. *
  2774. * @type {boolean}
  2775. * @memberof ServerFeaturesDto
  2776. */
  2777. 'trash': boolean;
  2778. }
  2779. /**
  2780. *
  2781. * @export
  2782. * @interface ServerInfoResponseDto
  2783. */
  2784. export interface ServerInfoResponseDto {
  2785. /**
  2786. *
  2787. * @type {string}
  2788. * @memberof ServerInfoResponseDto
  2789. */
  2790. 'diskAvailable': string;
  2791. /**
  2792. *
  2793. * @type {number}
  2794. * @memberof ServerInfoResponseDto
  2795. */
  2796. 'diskAvailableRaw': number;
  2797. /**
  2798. *
  2799. * @type {string}
  2800. * @memberof ServerInfoResponseDto
  2801. */
  2802. 'diskSize': string;
  2803. /**
  2804. *
  2805. * @type {number}
  2806. * @memberof ServerInfoResponseDto
  2807. */
  2808. 'diskSizeRaw': number;
  2809. /**
  2810. *
  2811. * @type {number}
  2812. * @memberof ServerInfoResponseDto
  2813. */
  2814. 'diskUsagePercentage': number;
  2815. /**
  2816. *
  2817. * @type {string}
  2818. * @memberof ServerInfoResponseDto
  2819. */
  2820. 'diskUse': string;
  2821. /**
  2822. *
  2823. * @type {number}
  2824. * @memberof ServerInfoResponseDto
  2825. */
  2826. 'diskUseRaw': number;
  2827. }
  2828. /**
  2829. *
  2830. * @export
  2831. * @interface ServerMediaTypesResponseDto
  2832. */
  2833. export interface ServerMediaTypesResponseDto {
  2834. /**
  2835. *
  2836. * @type {Array<string>}
  2837. * @memberof ServerMediaTypesResponseDto
  2838. */
  2839. 'image': Array<string>;
  2840. /**
  2841. *
  2842. * @type {Array<string>}
  2843. * @memberof ServerMediaTypesResponseDto
  2844. */
  2845. 'sidecar': Array<string>;
  2846. /**
  2847. *
  2848. * @type {Array<string>}
  2849. * @memberof ServerMediaTypesResponseDto
  2850. */
  2851. 'video': Array<string>;
  2852. }
  2853. /**
  2854. *
  2855. * @export
  2856. * @interface ServerPingResponse
  2857. */
  2858. export interface ServerPingResponse {
  2859. /**
  2860. *
  2861. * @type {string}
  2862. * @memberof ServerPingResponse
  2863. */
  2864. 'res': string;
  2865. }
  2866. /**
  2867. *
  2868. * @export
  2869. * @interface ServerStatsResponseDto
  2870. */
  2871. export interface ServerStatsResponseDto {
  2872. /**
  2873. *
  2874. * @type {number}
  2875. * @memberof ServerStatsResponseDto
  2876. */
  2877. 'photos': number;
  2878. /**
  2879. *
  2880. * @type {number}
  2881. * @memberof ServerStatsResponseDto
  2882. */
  2883. 'usage': number;
  2884. /**
  2885. *
  2886. * @type {Array<UsageByUserDto>}
  2887. * @memberof ServerStatsResponseDto
  2888. */
  2889. 'usageByUser': Array<UsageByUserDto>;
  2890. /**
  2891. *
  2892. * @type {number}
  2893. * @memberof ServerStatsResponseDto
  2894. */
  2895. 'videos': number;
  2896. }
  2897. /**
  2898. *
  2899. * @export
  2900. * @interface ServerVersionResponseDto
  2901. */
  2902. export interface ServerVersionResponseDto {
  2903. /**
  2904. *
  2905. * @type {number}
  2906. * @memberof ServerVersionResponseDto
  2907. */
  2908. 'major': number;
  2909. /**
  2910. *
  2911. * @type {number}
  2912. * @memberof ServerVersionResponseDto
  2913. */
  2914. 'minor': number;
  2915. /**
  2916. *
  2917. * @type {number}
  2918. * @memberof ServerVersionResponseDto
  2919. */
  2920. 'patch': number;
  2921. }
  2922. /**
  2923. *
  2924. * @export
  2925. * @interface SharedLinkCreateDto
  2926. */
  2927. export interface SharedLinkCreateDto {
  2928. /**
  2929. *
  2930. * @type {string}
  2931. * @memberof SharedLinkCreateDto
  2932. */
  2933. 'albumId'?: string;
  2934. /**
  2935. *
  2936. * @type {boolean}
  2937. * @memberof SharedLinkCreateDto
  2938. */
  2939. 'allowDownload'?: boolean;
  2940. /**
  2941. *
  2942. * @type {boolean}
  2943. * @memberof SharedLinkCreateDto
  2944. */
  2945. 'allowUpload'?: boolean;
  2946. /**
  2947. *
  2948. * @type {Array<string>}
  2949. * @memberof SharedLinkCreateDto
  2950. */
  2951. 'assetIds'?: Array<string>;
  2952. /**
  2953. *
  2954. * @type {string}
  2955. * @memberof SharedLinkCreateDto
  2956. */
  2957. 'description'?: string;
  2958. /**
  2959. *
  2960. * @type {string}
  2961. * @memberof SharedLinkCreateDto
  2962. */
  2963. 'expiresAt'?: string | null;
  2964. /**
  2965. *
  2966. * @type {boolean}
  2967. * @memberof SharedLinkCreateDto
  2968. */
  2969. 'showMetadata'?: boolean;
  2970. /**
  2971. *
  2972. * @type {SharedLinkType}
  2973. * @memberof SharedLinkCreateDto
  2974. */
  2975. 'type': SharedLinkType;
  2976. }
  2977. /**
  2978. *
  2979. * @export
  2980. * @interface SharedLinkEditDto
  2981. */
  2982. export interface SharedLinkEditDto {
  2983. /**
  2984. *
  2985. * @type {boolean}
  2986. * @memberof SharedLinkEditDto
  2987. */
  2988. 'allowDownload'?: boolean;
  2989. /**
  2990. *
  2991. * @type {boolean}
  2992. * @memberof SharedLinkEditDto
  2993. */
  2994. 'allowUpload'?: boolean;
  2995. /**
  2996. *
  2997. * @type {string}
  2998. * @memberof SharedLinkEditDto
  2999. */
  3000. 'description'?: string;
  3001. /**
  3002. *
  3003. * @type {string}
  3004. * @memberof SharedLinkEditDto
  3005. */
  3006. 'expiresAt'?: string | null;
  3007. /**
  3008. *
  3009. * @type {boolean}
  3010. * @memberof SharedLinkEditDto
  3011. */
  3012. 'showMetadata'?: boolean;
  3013. }
  3014. /**
  3015. *
  3016. * @export
  3017. * @interface SharedLinkResponseDto
  3018. */
  3019. export interface SharedLinkResponseDto {
  3020. /**
  3021. *
  3022. * @type {AlbumResponseDto}
  3023. * @memberof SharedLinkResponseDto
  3024. */
  3025. 'album'?: AlbumResponseDto;
  3026. /**
  3027. *
  3028. * @type {boolean}
  3029. * @memberof SharedLinkResponseDto
  3030. */
  3031. 'allowDownload': boolean;
  3032. /**
  3033. *
  3034. * @type {boolean}
  3035. * @memberof SharedLinkResponseDto
  3036. */
  3037. 'allowUpload': boolean;
  3038. /**
  3039. *
  3040. * @type {Array<AssetResponseDto>}
  3041. * @memberof SharedLinkResponseDto
  3042. */
  3043. 'assets': Array<AssetResponseDto>;
  3044. /**
  3045. *
  3046. * @type {string}
  3047. * @memberof SharedLinkResponseDto
  3048. */
  3049. 'createdAt': string;
  3050. /**
  3051. *
  3052. * @type {string}
  3053. * @memberof SharedLinkResponseDto
  3054. */
  3055. 'description': string | null;
  3056. /**
  3057. *
  3058. * @type {string}
  3059. * @memberof SharedLinkResponseDto
  3060. */
  3061. 'expiresAt': string | null;
  3062. /**
  3063. *
  3064. * @type {string}
  3065. * @memberof SharedLinkResponseDto
  3066. */
  3067. 'id': string;
  3068. /**
  3069. *
  3070. * @type {string}
  3071. * @memberof SharedLinkResponseDto
  3072. */
  3073. 'key': string;
  3074. /**
  3075. *
  3076. * @type {boolean}
  3077. * @memberof SharedLinkResponseDto
  3078. */
  3079. 'showMetadata': boolean;
  3080. /**
  3081. *
  3082. * @type {SharedLinkType}
  3083. * @memberof SharedLinkResponseDto
  3084. */
  3085. 'type': SharedLinkType;
  3086. /**
  3087. *
  3088. * @type {string}
  3089. * @memberof SharedLinkResponseDto
  3090. */
  3091. 'userId': string;
  3092. }
  3093. /**
  3094. *
  3095. * @export
  3096. * @enum {string}
  3097. */
  3098. export const SharedLinkType = {
  3099. Album: 'ALBUM',
  3100. Individual: 'INDIVIDUAL'
  3101. } as const;
  3102. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3103. /**
  3104. *
  3105. * @export
  3106. * @interface SignUpDto
  3107. */
  3108. export interface SignUpDto {
  3109. /**
  3110. *
  3111. * @type {string}
  3112. * @memberof SignUpDto
  3113. */
  3114. 'email': string;
  3115. /**
  3116. *
  3117. * @type {string}
  3118. * @memberof SignUpDto
  3119. */
  3120. 'firstName': string;
  3121. /**
  3122. *
  3123. * @type {string}
  3124. * @memberof SignUpDto
  3125. */
  3126. 'lastName': string;
  3127. /**
  3128. *
  3129. * @type {string}
  3130. * @memberof SignUpDto
  3131. */
  3132. 'password': string;
  3133. }
  3134. /**
  3135. *
  3136. * @export
  3137. * @interface SmartInfoResponseDto
  3138. */
  3139. export interface SmartInfoResponseDto {
  3140. /**
  3141. *
  3142. * @type {Array<string>}
  3143. * @memberof SmartInfoResponseDto
  3144. */
  3145. 'objects'?: Array<string> | null;
  3146. /**
  3147. *
  3148. * @type {Array<string>}
  3149. * @memberof SmartInfoResponseDto
  3150. */
  3151. 'tags'?: Array<string> | null;
  3152. }
  3153. /**
  3154. *
  3155. * @export
  3156. * @interface SystemConfigDto
  3157. */
  3158. export interface SystemConfigDto {
  3159. /**
  3160. *
  3161. * @type {SystemConfigFFmpegDto}
  3162. * @memberof SystemConfigDto
  3163. */
  3164. 'ffmpeg': SystemConfigFFmpegDto;
  3165. /**
  3166. *
  3167. * @type {SystemConfigJobDto}
  3168. * @memberof SystemConfigDto
  3169. */
  3170. 'job': SystemConfigJobDto;
  3171. /**
  3172. *
  3173. * @type {SystemConfigMachineLearningDto}
  3174. * @memberof SystemConfigDto
  3175. */
  3176. 'machineLearning': SystemConfigMachineLearningDto;
  3177. /**
  3178. *
  3179. * @type {SystemConfigMapDto}
  3180. * @memberof SystemConfigDto
  3181. */
  3182. 'map': SystemConfigMapDto;
  3183. /**
  3184. *
  3185. * @type {SystemConfigOAuthDto}
  3186. * @memberof SystemConfigDto
  3187. */
  3188. 'oauth': SystemConfigOAuthDto;
  3189. /**
  3190. *
  3191. * @type {SystemConfigPasswordLoginDto}
  3192. * @memberof SystemConfigDto
  3193. */
  3194. 'passwordLogin': SystemConfigPasswordLoginDto;
  3195. /**
  3196. *
  3197. * @type {SystemConfigReverseGeocodingDto}
  3198. * @memberof SystemConfigDto
  3199. */
  3200. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3201. /**
  3202. *
  3203. * @type {SystemConfigStorageTemplateDto}
  3204. * @memberof SystemConfigDto
  3205. */
  3206. 'storageTemplate': SystemConfigStorageTemplateDto;
  3207. /**
  3208. *
  3209. * @type {SystemConfigThumbnailDto}
  3210. * @memberof SystemConfigDto
  3211. */
  3212. 'thumbnail': SystemConfigThumbnailDto;
  3213. /**
  3214. *
  3215. * @type {SystemConfigTrashDto}
  3216. * @memberof SystemConfigDto
  3217. */
  3218. 'trash': SystemConfigTrashDto;
  3219. }
  3220. /**
  3221. *
  3222. * @export
  3223. * @interface SystemConfigFFmpegDto
  3224. */
  3225. export interface SystemConfigFFmpegDto {
  3226. /**
  3227. *
  3228. * @type {TranscodeHWAccel}
  3229. * @memberof SystemConfigFFmpegDto
  3230. */
  3231. 'accel': TranscodeHWAccel;
  3232. /**
  3233. *
  3234. * @type {number}
  3235. * @memberof SystemConfigFFmpegDto
  3236. */
  3237. 'bframes': number;
  3238. /**
  3239. *
  3240. * @type {CQMode}
  3241. * @memberof SystemConfigFFmpegDto
  3242. */
  3243. 'cqMode': CQMode;
  3244. /**
  3245. *
  3246. * @type {number}
  3247. * @memberof SystemConfigFFmpegDto
  3248. */
  3249. 'crf': number;
  3250. /**
  3251. *
  3252. * @type {number}
  3253. * @memberof SystemConfigFFmpegDto
  3254. */
  3255. 'gopSize': number;
  3256. /**
  3257. *
  3258. * @type {string}
  3259. * @memberof SystemConfigFFmpegDto
  3260. */
  3261. 'maxBitrate': string;
  3262. /**
  3263. *
  3264. * @type {number}
  3265. * @memberof SystemConfigFFmpegDto
  3266. */
  3267. 'npl': number;
  3268. /**
  3269. *
  3270. * @type {string}
  3271. * @memberof SystemConfigFFmpegDto
  3272. */
  3273. 'preset': string;
  3274. /**
  3275. *
  3276. * @type {number}
  3277. * @memberof SystemConfigFFmpegDto
  3278. */
  3279. 'refs': number;
  3280. /**
  3281. *
  3282. * @type {AudioCodec}
  3283. * @memberof SystemConfigFFmpegDto
  3284. */
  3285. 'targetAudioCodec': AudioCodec;
  3286. /**
  3287. *
  3288. * @type {string}
  3289. * @memberof SystemConfigFFmpegDto
  3290. */
  3291. 'targetResolution': string;
  3292. /**
  3293. *
  3294. * @type {VideoCodec}
  3295. * @memberof SystemConfigFFmpegDto
  3296. */
  3297. 'targetVideoCodec': VideoCodec;
  3298. /**
  3299. *
  3300. * @type {boolean}
  3301. * @memberof SystemConfigFFmpegDto
  3302. */
  3303. 'temporalAQ': boolean;
  3304. /**
  3305. *
  3306. * @type {number}
  3307. * @memberof SystemConfigFFmpegDto
  3308. */
  3309. 'threads': number;
  3310. /**
  3311. *
  3312. * @type {ToneMapping}
  3313. * @memberof SystemConfigFFmpegDto
  3314. */
  3315. 'tonemap': ToneMapping;
  3316. /**
  3317. *
  3318. * @type {TranscodePolicy}
  3319. * @memberof SystemConfigFFmpegDto
  3320. */
  3321. 'transcode': TranscodePolicy;
  3322. /**
  3323. *
  3324. * @type {boolean}
  3325. * @memberof SystemConfigFFmpegDto
  3326. */
  3327. 'twoPass': boolean;
  3328. }
  3329. /**
  3330. *
  3331. * @export
  3332. * @interface SystemConfigJobDto
  3333. */
  3334. export interface SystemConfigJobDto {
  3335. /**
  3336. *
  3337. * @type {JobSettingsDto}
  3338. * @memberof SystemConfigJobDto
  3339. */
  3340. 'backgroundTask': JobSettingsDto;
  3341. /**
  3342. *
  3343. * @type {JobSettingsDto}
  3344. * @memberof SystemConfigJobDto
  3345. */
  3346. 'clipEncoding': JobSettingsDto;
  3347. /**
  3348. *
  3349. * @type {JobSettingsDto}
  3350. * @memberof SystemConfigJobDto
  3351. */
  3352. 'library': JobSettingsDto;
  3353. /**
  3354. *
  3355. * @type {JobSettingsDto}
  3356. * @memberof SystemConfigJobDto
  3357. */
  3358. 'metadataExtraction': JobSettingsDto;
  3359. /**
  3360. *
  3361. * @type {JobSettingsDto}
  3362. * @memberof SystemConfigJobDto
  3363. */
  3364. 'migration': JobSettingsDto;
  3365. /**
  3366. *
  3367. * @type {JobSettingsDto}
  3368. * @memberof SystemConfigJobDto
  3369. */
  3370. 'objectTagging': JobSettingsDto;
  3371. /**
  3372. *
  3373. * @type {JobSettingsDto}
  3374. * @memberof SystemConfigJobDto
  3375. */
  3376. 'recognizeFaces': JobSettingsDto;
  3377. /**
  3378. *
  3379. * @type {JobSettingsDto}
  3380. * @memberof SystemConfigJobDto
  3381. */
  3382. 'search': JobSettingsDto;
  3383. /**
  3384. *
  3385. * @type {JobSettingsDto}
  3386. * @memberof SystemConfigJobDto
  3387. */
  3388. 'sidecar': JobSettingsDto;
  3389. /**
  3390. *
  3391. * @type {JobSettingsDto}
  3392. * @memberof SystemConfigJobDto
  3393. */
  3394. 'storageTemplateMigration': JobSettingsDto;
  3395. /**
  3396. *
  3397. * @type {JobSettingsDto}
  3398. * @memberof SystemConfigJobDto
  3399. */
  3400. 'thumbnailGeneration': JobSettingsDto;
  3401. /**
  3402. *
  3403. * @type {JobSettingsDto}
  3404. * @memberof SystemConfigJobDto
  3405. */
  3406. 'videoConversion': JobSettingsDto;
  3407. }
  3408. /**
  3409. *
  3410. * @export
  3411. * @interface SystemConfigMachineLearningDto
  3412. */
  3413. export interface SystemConfigMachineLearningDto {
  3414. /**
  3415. *
  3416. * @type {ClassificationConfig}
  3417. * @memberof SystemConfigMachineLearningDto
  3418. */
  3419. 'classification': ClassificationConfig;
  3420. /**
  3421. *
  3422. * @type {CLIPConfig}
  3423. * @memberof SystemConfigMachineLearningDto
  3424. */
  3425. 'clip': CLIPConfig;
  3426. /**
  3427. *
  3428. * @type {boolean}
  3429. * @memberof SystemConfigMachineLearningDto
  3430. */
  3431. 'enabled': boolean;
  3432. /**
  3433. *
  3434. * @type {RecognitionConfig}
  3435. * @memberof SystemConfigMachineLearningDto
  3436. */
  3437. 'facialRecognition': RecognitionConfig;
  3438. /**
  3439. *
  3440. * @type {string}
  3441. * @memberof SystemConfigMachineLearningDto
  3442. */
  3443. 'url': string;
  3444. }
  3445. /**
  3446. *
  3447. * @export
  3448. * @interface SystemConfigMapDto
  3449. */
  3450. export interface SystemConfigMapDto {
  3451. /**
  3452. *
  3453. * @type {boolean}
  3454. * @memberof SystemConfigMapDto
  3455. */
  3456. 'enabled': boolean;
  3457. /**
  3458. *
  3459. * @type {string}
  3460. * @memberof SystemConfigMapDto
  3461. */
  3462. 'tileUrl': string;
  3463. }
  3464. /**
  3465. *
  3466. * @export
  3467. * @interface SystemConfigOAuthDto
  3468. */
  3469. export interface SystemConfigOAuthDto {
  3470. /**
  3471. *
  3472. * @type {boolean}
  3473. * @memberof SystemConfigOAuthDto
  3474. */
  3475. 'autoLaunch': boolean;
  3476. /**
  3477. *
  3478. * @type {boolean}
  3479. * @memberof SystemConfigOAuthDto
  3480. */
  3481. 'autoRegister': boolean;
  3482. /**
  3483. *
  3484. * @type {string}
  3485. * @memberof SystemConfigOAuthDto
  3486. */
  3487. 'buttonText': string;
  3488. /**
  3489. *
  3490. * @type {string}
  3491. * @memberof SystemConfigOAuthDto
  3492. */
  3493. 'clientId': string;
  3494. /**
  3495. *
  3496. * @type {string}
  3497. * @memberof SystemConfigOAuthDto
  3498. */
  3499. 'clientSecret': string;
  3500. /**
  3501. *
  3502. * @type {boolean}
  3503. * @memberof SystemConfigOAuthDto
  3504. */
  3505. 'enabled': boolean;
  3506. /**
  3507. *
  3508. * @type {string}
  3509. * @memberof SystemConfigOAuthDto
  3510. */
  3511. 'issuerUrl': string;
  3512. /**
  3513. *
  3514. * @type {boolean}
  3515. * @memberof SystemConfigOAuthDto
  3516. */
  3517. 'mobileOverrideEnabled': boolean;
  3518. /**
  3519. *
  3520. * @type {string}
  3521. * @memberof SystemConfigOAuthDto
  3522. */
  3523. 'mobileRedirectUri': string;
  3524. /**
  3525. *
  3526. * @type {string}
  3527. * @memberof SystemConfigOAuthDto
  3528. */
  3529. 'scope': string;
  3530. /**
  3531. *
  3532. * @type {string}
  3533. * @memberof SystemConfigOAuthDto
  3534. */
  3535. 'storageLabelClaim': string;
  3536. }
  3537. /**
  3538. *
  3539. * @export
  3540. * @interface SystemConfigPasswordLoginDto
  3541. */
  3542. export interface SystemConfigPasswordLoginDto {
  3543. /**
  3544. *
  3545. * @type {boolean}
  3546. * @memberof SystemConfigPasswordLoginDto
  3547. */
  3548. 'enabled': boolean;
  3549. }
  3550. /**
  3551. *
  3552. * @export
  3553. * @interface SystemConfigReverseGeocodingDto
  3554. */
  3555. export interface SystemConfigReverseGeocodingDto {
  3556. /**
  3557. *
  3558. * @type {CitiesFile}
  3559. * @memberof SystemConfigReverseGeocodingDto
  3560. */
  3561. 'citiesFileOverride': CitiesFile;
  3562. /**
  3563. *
  3564. * @type {boolean}
  3565. * @memberof SystemConfigReverseGeocodingDto
  3566. */
  3567. 'enabled': boolean;
  3568. }
  3569. /**
  3570. *
  3571. * @export
  3572. * @interface SystemConfigStorageTemplateDto
  3573. */
  3574. export interface SystemConfigStorageTemplateDto {
  3575. /**
  3576. *
  3577. * @type {string}
  3578. * @memberof SystemConfigStorageTemplateDto
  3579. */
  3580. 'template': string;
  3581. }
  3582. /**
  3583. *
  3584. * @export
  3585. * @interface SystemConfigTemplateStorageOptionDto
  3586. */
  3587. export interface SystemConfigTemplateStorageOptionDto {
  3588. /**
  3589. *
  3590. * @type {Array<string>}
  3591. * @memberof SystemConfigTemplateStorageOptionDto
  3592. */
  3593. 'dayOptions': Array<string>;
  3594. /**
  3595. *
  3596. * @type {Array<string>}
  3597. * @memberof SystemConfigTemplateStorageOptionDto
  3598. */
  3599. 'hourOptions': Array<string>;
  3600. /**
  3601. *
  3602. * @type {Array<string>}
  3603. * @memberof SystemConfigTemplateStorageOptionDto
  3604. */
  3605. 'minuteOptions': Array<string>;
  3606. /**
  3607. *
  3608. * @type {Array<string>}
  3609. * @memberof SystemConfigTemplateStorageOptionDto
  3610. */
  3611. 'monthOptions': Array<string>;
  3612. /**
  3613. *
  3614. * @type {Array<string>}
  3615. * @memberof SystemConfigTemplateStorageOptionDto
  3616. */
  3617. 'presetOptions': Array<string>;
  3618. /**
  3619. *
  3620. * @type {Array<string>}
  3621. * @memberof SystemConfigTemplateStorageOptionDto
  3622. */
  3623. 'secondOptions': Array<string>;
  3624. /**
  3625. *
  3626. * @type {Array<string>}
  3627. * @memberof SystemConfigTemplateStorageOptionDto
  3628. */
  3629. 'weekOptions': Array<string>;
  3630. /**
  3631. *
  3632. * @type {Array<string>}
  3633. * @memberof SystemConfigTemplateStorageOptionDto
  3634. */
  3635. 'yearOptions': Array<string>;
  3636. }
  3637. /**
  3638. *
  3639. * @export
  3640. * @interface SystemConfigThumbnailDto
  3641. */
  3642. export interface SystemConfigThumbnailDto {
  3643. /**
  3644. *
  3645. * @type {Colorspace}
  3646. * @memberof SystemConfigThumbnailDto
  3647. */
  3648. 'colorspace': Colorspace;
  3649. /**
  3650. *
  3651. * @type {number}
  3652. * @memberof SystemConfigThumbnailDto
  3653. */
  3654. 'jpegSize': number;
  3655. /**
  3656. *
  3657. * @type {number}
  3658. * @memberof SystemConfigThumbnailDto
  3659. */
  3660. 'quality': number;
  3661. /**
  3662. *
  3663. * @type {number}
  3664. * @memberof SystemConfigThumbnailDto
  3665. */
  3666. 'webpSize': number;
  3667. }
  3668. /**
  3669. *
  3670. * @export
  3671. * @interface SystemConfigTrashDto
  3672. */
  3673. export interface SystemConfigTrashDto {
  3674. /**
  3675. *
  3676. * @type {number}
  3677. * @memberof SystemConfigTrashDto
  3678. */
  3679. 'days': number;
  3680. /**
  3681. *
  3682. * @type {boolean}
  3683. * @memberof SystemConfigTrashDto
  3684. */
  3685. 'enabled': boolean;
  3686. }
  3687. /**
  3688. *
  3689. * @export
  3690. * @interface TagResponseDto
  3691. */
  3692. export interface TagResponseDto {
  3693. /**
  3694. *
  3695. * @type {string}
  3696. * @memberof TagResponseDto
  3697. */
  3698. 'id': string;
  3699. /**
  3700. *
  3701. * @type {string}
  3702. * @memberof TagResponseDto
  3703. */
  3704. 'name': string;
  3705. /**
  3706. *
  3707. * @type {TagTypeEnum}
  3708. * @memberof TagResponseDto
  3709. */
  3710. 'type': TagTypeEnum;
  3711. /**
  3712. *
  3713. * @type {string}
  3714. * @memberof TagResponseDto
  3715. */
  3716. 'userId': string;
  3717. }
  3718. /**
  3719. *
  3720. * @export
  3721. * @enum {string}
  3722. */
  3723. export const TagTypeEnum = {
  3724. Object: 'OBJECT',
  3725. Face: 'FACE',
  3726. Custom: 'CUSTOM'
  3727. } as const;
  3728. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3729. /**
  3730. *
  3731. * @export
  3732. * @enum {string}
  3733. */
  3734. export const ThumbnailFormat = {
  3735. Jpeg: 'JPEG',
  3736. Webp: 'WEBP'
  3737. } as const;
  3738. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3739. /**
  3740. *
  3741. * @export
  3742. * @interface TimeBucketResponseDto
  3743. */
  3744. export interface TimeBucketResponseDto {
  3745. /**
  3746. *
  3747. * @type {number}
  3748. * @memberof TimeBucketResponseDto
  3749. */
  3750. 'count': number;
  3751. /**
  3752. *
  3753. * @type {string}
  3754. * @memberof TimeBucketResponseDto
  3755. */
  3756. 'timeBucket': string;
  3757. }
  3758. /**
  3759. *
  3760. * @export
  3761. * @enum {string}
  3762. */
  3763. export const TimeBucketSize = {
  3764. Day: 'DAY',
  3765. Month: 'MONTH'
  3766. } as const;
  3767. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3768. /**
  3769. *
  3770. * @export
  3771. * @enum {string}
  3772. */
  3773. export const ToneMapping = {
  3774. Hable: 'hable',
  3775. Mobius: 'mobius',
  3776. Reinhard: 'reinhard',
  3777. Disabled: 'disabled'
  3778. } as const;
  3779. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3780. /**
  3781. *
  3782. * @export
  3783. * @enum {string}
  3784. */
  3785. export const TranscodeHWAccel = {
  3786. Nvenc: 'nvenc',
  3787. Qsv: 'qsv',
  3788. Vaapi: 'vaapi',
  3789. Disabled: 'disabled'
  3790. } as const;
  3791. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3792. /**
  3793. *
  3794. * @export
  3795. * @enum {string}
  3796. */
  3797. export const TranscodePolicy = {
  3798. All: 'all',
  3799. Optimal: 'optimal',
  3800. Required: 'required',
  3801. Disabled: 'disabled'
  3802. } as const;
  3803. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3804. /**
  3805. *
  3806. * @export
  3807. * @interface UpdateAlbumDto
  3808. */
  3809. export interface UpdateAlbumDto {
  3810. /**
  3811. *
  3812. * @type {string}
  3813. * @memberof UpdateAlbumDto
  3814. */
  3815. 'albumName'?: string;
  3816. /**
  3817. *
  3818. * @type {string}
  3819. * @memberof UpdateAlbumDto
  3820. */
  3821. 'albumThumbnailAssetId'?: string;
  3822. /**
  3823. *
  3824. * @type {string}
  3825. * @memberof UpdateAlbumDto
  3826. */
  3827. 'description'?: string;
  3828. }
  3829. /**
  3830. *
  3831. * @export
  3832. * @interface UpdateAssetDto
  3833. */
  3834. export interface UpdateAssetDto {
  3835. /**
  3836. *
  3837. * @type {string}
  3838. * @memberof UpdateAssetDto
  3839. */
  3840. 'description'?: string;
  3841. /**
  3842. *
  3843. * @type {boolean}
  3844. * @memberof UpdateAssetDto
  3845. */
  3846. 'isArchived'?: boolean;
  3847. /**
  3848. *
  3849. * @type {boolean}
  3850. * @memberof UpdateAssetDto
  3851. */
  3852. 'isFavorite'?: boolean;
  3853. }
  3854. /**
  3855. *
  3856. * @export
  3857. * @interface UpdateLibraryDto
  3858. */
  3859. export interface UpdateLibraryDto {
  3860. /**
  3861. *
  3862. * @type {Array<string>}
  3863. * @memberof UpdateLibraryDto
  3864. */
  3865. 'exclusionPatterns'?: Array<string>;
  3866. /**
  3867. *
  3868. * @type {Array<string>}
  3869. * @memberof UpdateLibraryDto
  3870. */
  3871. 'importPaths'?: Array<string>;
  3872. /**
  3873. *
  3874. * @type {boolean}
  3875. * @memberof UpdateLibraryDto
  3876. */
  3877. 'isVisible'?: boolean;
  3878. /**
  3879. *
  3880. * @type {string}
  3881. * @memberof UpdateLibraryDto
  3882. */
  3883. 'name'?: string;
  3884. }
  3885. /**
  3886. *
  3887. * @export
  3888. * @interface UpdateStackParentDto
  3889. */
  3890. export interface UpdateStackParentDto {
  3891. /**
  3892. *
  3893. * @type {string}
  3894. * @memberof UpdateStackParentDto
  3895. */
  3896. 'newParentId': string;
  3897. /**
  3898. *
  3899. * @type {string}
  3900. * @memberof UpdateStackParentDto
  3901. */
  3902. 'oldParentId': string;
  3903. }
  3904. /**
  3905. *
  3906. * @export
  3907. * @interface UpdateTagDto
  3908. */
  3909. export interface UpdateTagDto {
  3910. /**
  3911. *
  3912. * @type {string}
  3913. * @memberof UpdateTagDto
  3914. */
  3915. 'name'?: string;
  3916. }
  3917. /**
  3918. *
  3919. * @export
  3920. * @interface UpdateUserDto
  3921. */
  3922. export interface UpdateUserDto {
  3923. /**
  3924. *
  3925. * @type {string}
  3926. * @memberof UpdateUserDto
  3927. */
  3928. 'email'?: string;
  3929. /**
  3930. *
  3931. * @type {string}
  3932. * @memberof UpdateUserDto
  3933. */
  3934. 'externalPath'?: string;
  3935. /**
  3936. *
  3937. * @type {string}
  3938. * @memberof UpdateUserDto
  3939. */
  3940. 'firstName'?: string;
  3941. /**
  3942. *
  3943. * @type {string}
  3944. * @memberof UpdateUserDto
  3945. */
  3946. 'id': string;
  3947. /**
  3948. *
  3949. * @type {boolean}
  3950. * @memberof UpdateUserDto
  3951. */
  3952. 'isAdmin'?: boolean;
  3953. /**
  3954. *
  3955. * @type {string}
  3956. * @memberof UpdateUserDto
  3957. */
  3958. 'lastName'?: string;
  3959. /**
  3960. *
  3961. * @type {boolean}
  3962. * @memberof UpdateUserDto
  3963. */
  3964. 'memoriesEnabled'?: boolean;
  3965. /**
  3966. *
  3967. * @type {string}
  3968. * @memberof UpdateUserDto
  3969. */
  3970. 'password'?: string;
  3971. /**
  3972. *
  3973. * @type {boolean}
  3974. * @memberof UpdateUserDto
  3975. */
  3976. 'shouldChangePassword'?: boolean;
  3977. /**
  3978. *
  3979. * @type {string}
  3980. * @memberof UpdateUserDto
  3981. */
  3982. 'storageLabel'?: string;
  3983. }
  3984. /**
  3985. *
  3986. * @export
  3987. * @interface UsageByUserDto
  3988. */
  3989. export interface UsageByUserDto {
  3990. /**
  3991. *
  3992. * @type {number}
  3993. * @memberof UsageByUserDto
  3994. */
  3995. 'photos': number;
  3996. /**
  3997. *
  3998. * @type {number}
  3999. * @memberof UsageByUserDto
  4000. */
  4001. 'usage': number;
  4002. /**
  4003. *
  4004. * @type {string}
  4005. * @memberof UsageByUserDto
  4006. */
  4007. 'userFirstName': string;
  4008. /**
  4009. *
  4010. * @type {string}
  4011. * @memberof UsageByUserDto
  4012. */
  4013. 'userId': string;
  4014. /**
  4015. *
  4016. * @type {string}
  4017. * @memberof UsageByUserDto
  4018. */
  4019. 'userLastName': string;
  4020. /**
  4021. *
  4022. * @type {number}
  4023. * @memberof UsageByUserDto
  4024. */
  4025. 'videos': number;
  4026. }
  4027. /**
  4028. *
  4029. * @export
  4030. * @interface UserCountResponseDto
  4031. */
  4032. export interface UserCountResponseDto {
  4033. /**
  4034. *
  4035. * @type {number}
  4036. * @memberof UserCountResponseDto
  4037. */
  4038. 'userCount': number;
  4039. }
  4040. /**
  4041. *
  4042. * @export
  4043. * @interface UserResponseDto
  4044. */
  4045. export interface UserResponseDto {
  4046. /**
  4047. *
  4048. * @type {string}
  4049. * @memberof UserResponseDto
  4050. */
  4051. 'createdAt': string;
  4052. /**
  4053. *
  4054. * @type {string}
  4055. * @memberof UserResponseDto
  4056. */
  4057. 'deletedAt': string | null;
  4058. /**
  4059. *
  4060. * @type {string}
  4061. * @memberof UserResponseDto
  4062. */
  4063. 'email': string;
  4064. /**
  4065. *
  4066. * @type {string}
  4067. * @memberof UserResponseDto
  4068. */
  4069. 'externalPath': string | null;
  4070. /**
  4071. *
  4072. * @type {string}
  4073. * @memberof UserResponseDto
  4074. */
  4075. 'firstName': string;
  4076. /**
  4077. *
  4078. * @type {string}
  4079. * @memberof UserResponseDto
  4080. */
  4081. 'id': string;
  4082. /**
  4083. *
  4084. * @type {boolean}
  4085. * @memberof UserResponseDto
  4086. */
  4087. 'isAdmin': boolean;
  4088. /**
  4089. *
  4090. * @type {string}
  4091. * @memberof UserResponseDto
  4092. */
  4093. 'lastName': string;
  4094. /**
  4095. *
  4096. * @type {boolean}
  4097. * @memberof UserResponseDto
  4098. */
  4099. 'memoriesEnabled'?: boolean;
  4100. /**
  4101. *
  4102. * @type {string}
  4103. * @memberof UserResponseDto
  4104. */
  4105. 'oauthId': string;
  4106. /**
  4107. *
  4108. * @type {string}
  4109. * @memberof UserResponseDto
  4110. */
  4111. 'profileImagePath': string;
  4112. /**
  4113. *
  4114. * @type {boolean}
  4115. * @memberof UserResponseDto
  4116. */
  4117. 'shouldChangePassword': boolean;
  4118. /**
  4119. *
  4120. * @type {string}
  4121. * @memberof UserResponseDto
  4122. */
  4123. 'storageLabel': string | null;
  4124. /**
  4125. *
  4126. * @type {string}
  4127. * @memberof UserResponseDto
  4128. */
  4129. 'updatedAt': string;
  4130. }
  4131. /**
  4132. *
  4133. * @export
  4134. * @interface ValidateAccessTokenResponseDto
  4135. */
  4136. export interface ValidateAccessTokenResponseDto {
  4137. /**
  4138. *
  4139. * @type {boolean}
  4140. * @memberof ValidateAccessTokenResponseDto
  4141. */
  4142. 'authStatus': boolean;
  4143. }
  4144. /**
  4145. *
  4146. * @export
  4147. * @enum {string}
  4148. */
  4149. export const VideoCodec = {
  4150. H264: 'h264',
  4151. Hevc: 'hevc',
  4152. Vp9: 'vp9'
  4153. } as const;
  4154. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4155. /**
  4156. * APIKeyApi - axios parameter creator
  4157. * @export
  4158. */
  4159. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4160. return {
  4161. /**
  4162. *
  4163. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4164. * @param {*} [options] Override http request option.
  4165. * @throws {RequiredError}
  4166. */
  4167. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4168. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4169. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4170. const localVarPath = `/api-key`;
  4171. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4172. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4173. let baseOptions;
  4174. if (configuration) {
  4175. baseOptions = configuration.baseOptions;
  4176. }
  4177. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4178. const localVarHeaderParameter = {} as any;
  4179. const localVarQueryParameter = {} as any;
  4180. // authentication cookie required
  4181. // authentication api_key required
  4182. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4183. // authentication bearer required
  4184. // http bearer authentication required
  4185. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4186. localVarHeaderParameter['Content-Type'] = 'application/json';
  4187. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4188. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4189. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4190. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4191. return {
  4192. url: toPathString(localVarUrlObj),
  4193. options: localVarRequestOptions,
  4194. };
  4195. },
  4196. /**
  4197. *
  4198. * @param {string} id
  4199. * @param {*} [options] Override http request option.
  4200. * @throws {RequiredError}
  4201. */
  4202. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4203. // verify required parameter 'id' is not null or undefined
  4204. assertParamExists('deleteKey', 'id', id)
  4205. const localVarPath = `/api-key/{id}`
  4206. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4207. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4208. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4209. let baseOptions;
  4210. if (configuration) {
  4211. baseOptions = configuration.baseOptions;
  4212. }
  4213. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4214. const localVarHeaderParameter = {} as any;
  4215. const localVarQueryParameter = {} as any;
  4216. // authentication cookie required
  4217. // authentication api_key required
  4218. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4219. // authentication bearer required
  4220. // http bearer authentication required
  4221. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4222. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4223. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4224. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4225. return {
  4226. url: toPathString(localVarUrlObj),
  4227. options: localVarRequestOptions,
  4228. };
  4229. },
  4230. /**
  4231. *
  4232. * @param {string} id
  4233. * @param {*} [options] Override http request option.
  4234. * @throws {RequiredError}
  4235. */
  4236. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4237. // verify required parameter 'id' is not null or undefined
  4238. assertParamExists('getKey', 'id', id)
  4239. const localVarPath = `/api-key/{id}`
  4240. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4241. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4242. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4243. let baseOptions;
  4244. if (configuration) {
  4245. baseOptions = configuration.baseOptions;
  4246. }
  4247. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4248. const localVarHeaderParameter = {} as any;
  4249. const localVarQueryParameter = {} as any;
  4250. // authentication cookie required
  4251. // authentication api_key required
  4252. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4253. // authentication bearer required
  4254. // http bearer authentication required
  4255. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4256. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4257. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4258. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4259. return {
  4260. url: toPathString(localVarUrlObj),
  4261. options: localVarRequestOptions,
  4262. };
  4263. },
  4264. /**
  4265. *
  4266. * @param {*} [options] Override http request option.
  4267. * @throws {RequiredError}
  4268. */
  4269. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4270. const localVarPath = `/api-key`;
  4271. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4272. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4273. let baseOptions;
  4274. if (configuration) {
  4275. baseOptions = configuration.baseOptions;
  4276. }
  4277. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4278. const localVarHeaderParameter = {} as any;
  4279. const localVarQueryParameter = {} as any;
  4280. // authentication cookie required
  4281. // authentication api_key required
  4282. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4283. // authentication bearer required
  4284. // http bearer authentication required
  4285. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4286. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4287. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4288. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4289. return {
  4290. url: toPathString(localVarUrlObj),
  4291. options: localVarRequestOptions,
  4292. };
  4293. },
  4294. /**
  4295. *
  4296. * @param {string} id
  4297. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4298. * @param {*} [options] Override http request option.
  4299. * @throws {RequiredError}
  4300. */
  4301. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4302. // verify required parameter 'id' is not null or undefined
  4303. assertParamExists('updateKey', 'id', id)
  4304. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4305. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4306. const localVarPath = `/api-key/{id}`
  4307. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4308. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4309. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4310. let baseOptions;
  4311. if (configuration) {
  4312. baseOptions = configuration.baseOptions;
  4313. }
  4314. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4315. const localVarHeaderParameter = {} as any;
  4316. const localVarQueryParameter = {} as any;
  4317. // authentication cookie required
  4318. // authentication api_key required
  4319. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4320. // authentication bearer required
  4321. // http bearer authentication required
  4322. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4323. localVarHeaderParameter['Content-Type'] = 'application/json';
  4324. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4325. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4326. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4327. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4328. return {
  4329. url: toPathString(localVarUrlObj),
  4330. options: localVarRequestOptions,
  4331. };
  4332. },
  4333. }
  4334. };
  4335. /**
  4336. * APIKeyApi - functional programming interface
  4337. * @export
  4338. */
  4339. export const APIKeyApiFp = function(configuration?: Configuration) {
  4340. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4341. return {
  4342. /**
  4343. *
  4344. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4345. * @param {*} [options] Override http request option.
  4346. * @throws {RequiredError}
  4347. */
  4348. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4349. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  4350. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4351. },
  4352. /**
  4353. *
  4354. * @param {string} id
  4355. * @param {*} [options] Override http request option.
  4356. * @throws {RequiredError}
  4357. */
  4358. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4359. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  4360. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4361. },
  4362. /**
  4363. *
  4364. * @param {string} id
  4365. * @param {*} [options] Override http request option.
  4366. * @throws {RequiredError}
  4367. */
  4368. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4369. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  4370. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4371. },
  4372. /**
  4373. *
  4374. * @param {*} [options] Override http request option.
  4375. * @throws {RequiredError}
  4376. */
  4377. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4378. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  4379. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4380. },
  4381. /**
  4382. *
  4383. * @param {string} id
  4384. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4385. * @param {*} [options] Override http request option.
  4386. * @throws {RequiredError}
  4387. */
  4388. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4389. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  4390. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4391. },
  4392. }
  4393. };
  4394. /**
  4395. * APIKeyApi - factory interface
  4396. * @export
  4397. */
  4398. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4399. const localVarFp = APIKeyApiFp(configuration)
  4400. return {
  4401. /**
  4402. *
  4403. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4404. * @param {*} [options] Override http request option.
  4405. * @throws {RequiredError}
  4406. */
  4407. createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4408. return localVarFp.createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4409. },
  4410. /**
  4411. *
  4412. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4413. * @param {*} [options] Override http request option.
  4414. * @throws {RequiredError}
  4415. */
  4416. deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4417. return localVarFp.deleteKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4418. },
  4419. /**
  4420. *
  4421. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4422. * @param {*} [options] Override http request option.
  4423. * @throws {RequiredError}
  4424. */
  4425. getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4426. return localVarFp.getKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4427. },
  4428. /**
  4429. *
  4430. * @param {*} [options] Override http request option.
  4431. * @throws {RequiredError}
  4432. */
  4433. getKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4434. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  4435. },
  4436. /**
  4437. *
  4438. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4439. * @param {*} [options] Override http request option.
  4440. * @throws {RequiredError}
  4441. */
  4442. updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4443. return localVarFp.updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4444. },
  4445. };
  4446. };
  4447. /**
  4448. * Request parameters for createKey operation in APIKeyApi.
  4449. * @export
  4450. * @interface APIKeyApiCreateKeyRequest
  4451. */
  4452. export interface APIKeyApiCreateKeyRequest {
  4453. /**
  4454. *
  4455. * @type {APIKeyCreateDto}
  4456. * @memberof APIKeyApiCreateKey
  4457. */
  4458. readonly aPIKeyCreateDto: APIKeyCreateDto
  4459. }
  4460. /**
  4461. * Request parameters for deleteKey operation in APIKeyApi.
  4462. * @export
  4463. * @interface APIKeyApiDeleteKeyRequest
  4464. */
  4465. export interface APIKeyApiDeleteKeyRequest {
  4466. /**
  4467. *
  4468. * @type {string}
  4469. * @memberof APIKeyApiDeleteKey
  4470. */
  4471. readonly id: string
  4472. }
  4473. /**
  4474. * Request parameters for getKey operation in APIKeyApi.
  4475. * @export
  4476. * @interface APIKeyApiGetKeyRequest
  4477. */
  4478. export interface APIKeyApiGetKeyRequest {
  4479. /**
  4480. *
  4481. * @type {string}
  4482. * @memberof APIKeyApiGetKey
  4483. */
  4484. readonly id: string
  4485. }
  4486. /**
  4487. * Request parameters for updateKey operation in APIKeyApi.
  4488. * @export
  4489. * @interface APIKeyApiUpdateKeyRequest
  4490. */
  4491. export interface APIKeyApiUpdateKeyRequest {
  4492. /**
  4493. *
  4494. * @type {string}
  4495. * @memberof APIKeyApiUpdateKey
  4496. */
  4497. readonly id: string
  4498. /**
  4499. *
  4500. * @type {APIKeyUpdateDto}
  4501. * @memberof APIKeyApiUpdateKey
  4502. */
  4503. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4504. }
  4505. /**
  4506. * APIKeyApi - object-oriented interface
  4507. * @export
  4508. * @class APIKeyApi
  4509. * @extends {BaseAPI}
  4510. */
  4511. export class APIKeyApi extends BaseAPI {
  4512. /**
  4513. *
  4514. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4515. * @param {*} [options] Override http request option.
  4516. * @throws {RequiredError}
  4517. * @memberof APIKeyApi
  4518. */
  4519. public createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig) {
  4520. return APIKeyApiFp(this.configuration).createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4521. }
  4522. /**
  4523. *
  4524. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4525. * @param {*} [options] Override http request option.
  4526. * @throws {RequiredError}
  4527. * @memberof APIKeyApi
  4528. */
  4529. public deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig) {
  4530. return APIKeyApiFp(this.configuration).deleteKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4531. }
  4532. /**
  4533. *
  4534. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4535. * @param {*} [options] Override http request option.
  4536. * @throws {RequiredError}
  4537. * @memberof APIKeyApi
  4538. */
  4539. public getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig) {
  4540. return APIKeyApiFp(this.configuration).getKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4541. }
  4542. /**
  4543. *
  4544. * @param {*} [options] Override http request option.
  4545. * @throws {RequiredError}
  4546. * @memberof APIKeyApi
  4547. */
  4548. public getKeys(options?: AxiosRequestConfig) {
  4549. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  4550. }
  4551. /**
  4552. *
  4553. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4554. * @param {*} [options] Override http request option.
  4555. * @throws {RequiredError}
  4556. * @memberof APIKeyApi
  4557. */
  4558. public updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig) {
  4559. return APIKeyApiFp(this.configuration).updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4560. }
  4561. }
  4562. /**
  4563. * AlbumApi - axios parameter creator
  4564. * @export
  4565. */
  4566. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  4567. return {
  4568. /**
  4569. *
  4570. * @param {string} id
  4571. * @param {BulkIdsDto} bulkIdsDto
  4572. * @param {string} [key]
  4573. * @param {*} [options] Override http request option.
  4574. * @throws {RequiredError}
  4575. */
  4576. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4577. // verify required parameter 'id' is not null or undefined
  4578. assertParamExists('addAssetsToAlbum', 'id', id)
  4579. // verify required parameter 'bulkIdsDto' is not null or undefined
  4580. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  4581. const localVarPath = `/album/{id}/assets`
  4582. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4583. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4584. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4585. let baseOptions;
  4586. if (configuration) {
  4587. baseOptions = configuration.baseOptions;
  4588. }
  4589. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4590. const localVarHeaderParameter = {} as any;
  4591. const localVarQueryParameter = {} as any;
  4592. // authentication cookie required
  4593. // authentication api_key required
  4594. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4595. // authentication bearer required
  4596. // http bearer authentication required
  4597. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4598. if (key !== undefined) {
  4599. localVarQueryParameter['key'] = key;
  4600. }
  4601. localVarHeaderParameter['Content-Type'] = 'application/json';
  4602. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4603. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4604. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4605. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4606. return {
  4607. url: toPathString(localVarUrlObj),
  4608. options: localVarRequestOptions,
  4609. };
  4610. },
  4611. /**
  4612. *
  4613. * @param {string} id
  4614. * @param {AddUsersDto} addUsersDto
  4615. * @param {*} [options] Override http request option.
  4616. * @throws {RequiredError}
  4617. */
  4618. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4619. // verify required parameter 'id' is not null or undefined
  4620. assertParamExists('addUsersToAlbum', 'id', id)
  4621. // verify required parameter 'addUsersDto' is not null or undefined
  4622. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  4623. const localVarPath = `/album/{id}/users`
  4624. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4625. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4626. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4627. let baseOptions;
  4628. if (configuration) {
  4629. baseOptions = configuration.baseOptions;
  4630. }
  4631. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4632. const localVarHeaderParameter = {} as any;
  4633. const localVarQueryParameter = {} as any;
  4634. // authentication cookie required
  4635. // authentication api_key required
  4636. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4637. // authentication bearer required
  4638. // http bearer authentication required
  4639. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4640. localVarHeaderParameter['Content-Type'] = 'application/json';
  4641. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4642. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4643. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4644. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  4645. return {
  4646. url: toPathString(localVarUrlObj),
  4647. options: localVarRequestOptions,
  4648. };
  4649. },
  4650. /**
  4651. *
  4652. * @param {CreateAlbumDto} createAlbumDto
  4653. * @param {*} [options] Override http request option.
  4654. * @throws {RequiredError}
  4655. */
  4656. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4657. // verify required parameter 'createAlbumDto' is not null or undefined
  4658. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  4659. const localVarPath = `/album`;
  4660. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4661. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4662. let baseOptions;
  4663. if (configuration) {
  4664. baseOptions = configuration.baseOptions;
  4665. }
  4666. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4667. const localVarHeaderParameter = {} as any;
  4668. const localVarQueryParameter = {} as any;
  4669. // authentication cookie required
  4670. // authentication api_key required
  4671. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4672. // authentication bearer required
  4673. // http bearer authentication required
  4674. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4675. localVarHeaderParameter['Content-Type'] = 'application/json';
  4676. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4677. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4678. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4679. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  4680. return {
  4681. url: toPathString(localVarUrlObj),
  4682. options: localVarRequestOptions,
  4683. };
  4684. },
  4685. /**
  4686. *
  4687. * @param {string} id
  4688. * @param {*} [options] Override http request option.
  4689. * @throws {RequiredError}
  4690. */
  4691. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4692. // verify required parameter 'id' is not null or undefined
  4693. assertParamExists('deleteAlbum', 'id', id)
  4694. const localVarPath = `/album/{id}`
  4695. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4696. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4697. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4698. let baseOptions;
  4699. if (configuration) {
  4700. baseOptions = configuration.baseOptions;
  4701. }
  4702. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4703. const localVarHeaderParameter = {} as any;
  4704. const localVarQueryParameter = {} as any;
  4705. // authentication cookie required
  4706. // authentication api_key required
  4707. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4708. // authentication bearer required
  4709. // http bearer authentication required
  4710. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4711. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4712. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4713. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4714. return {
  4715. url: toPathString(localVarUrlObj),
  4716. options: localVarRequestOptions,
  4717. };
  4718. },
  4719. /**
  4720. *
  4721. * @param {*} [options] Override http request option.
  4722. * @throws {RequiredError}
  4723. */
  4724. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4725. const localVarPath = `/album/count`;
  4726. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4727. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4728. let baseOptions;
  4729. if (configuration) {
  4730. baseOptions = configuration.baseOptions;
  4731. }
  4732. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4733. const localVarHeaderParameter = {} as any;
  4734. const localVarQueryParameter = {} as any;
  4735. // authentication cookie required
  4736. // authentication api_key required
  4737. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4738. // authentication bearer required
  4739. // http bearer authentication required
  4740. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4741. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4742. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4743. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4744. return {
  4745. url: toPathString(localVarUrlObj),
  4746. options: localVarRequestOptions,
  4747. };
  4748. },
  4749. /**
  4750. *
  4751. * @param {string} id
  4752. * @param {boolean} [withoutAssets]
  4753. * @param {string} [key]
  4754. * @param {*} [options] Override http request option.
  4755. * @throws {RequiredError}
  4756. */
  4757. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4758. // verify required parameter 'id' is not null or undefined
  4759. assertParamExists('getAlbumInfo', 'id', id)
  4760. const localVarPath = `/album/{id}`
  4761. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4762. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4763. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4764. let baseOptions;
  4765. if (configuration) {
  4766. baseOptions = configuration.baseOptions;
  4767. }
  4768. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4769. const localVarHeaderParameter = {} as any;
  4770. const localVarQueryParameter = {} as any;
  4771. // authentication cookie required
  4772. // authentication api_key required
  4773. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4774. // authentication bearer required
  4775. // http bearer authentication required
  4776. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4777. if (withoutAssets !== undefined) {
  4778. localVarQueryParameter['withoutAssets'] = withoutAssets;
  4779. }
  4780. if (key !== undefined) {
  4781. localVarQueryParameter['key'] = key;
  4782. }
  4783. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4784. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4785. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4786. return {
  4787. url: toPathString(localVarUrlObj),
  4788. options: localVarRequestOptions,
  4789. };
  4790. },
  4791. /**
  4792. *
  4793. * @param {boolean} [shared]
  4794. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  4795. * @param {*} [options] Override http request option.
  4796. * @throws {RequiredError}
  4797. */
  4798. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4799. const localVarPath = `/album`;
  4800. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4801. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4802. let baseOptions;
  4803. if (configuration) {
  4804. baseOptions = configuration.baseOptions;
  4805. }
  4806. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4807. const localVarHeaderParameter = {} as any;
  4808. const localVarQueryParameter = {} as any;
  4809. // authentication cookie required
  4810. // authentication api_key required
  4811. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4812. // authentication bearer required
  4813. // http bearer authentication required
  4814. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4815. if (shared !== undefined) {
  4816. localVarQueryParameter['shared'] = shared;
  4817. }
  4818. if (assetId !== undefined) {
  4819. localVarQueryParameter['assetId'] = assetId;
  4820. }
  4821. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4822. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4823. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4824. return {
  4825. url: toPathString(localVarUrlObj),
  4826. options: localVarRequestOptions,
  4827. };
  4828. },
  4829. /**
  4830. *
  4831. * @param {string} id
  4832. * @param {BulkIdsDto} bulkIdsDto
  4833. * @param {*} [options] Override http request option.
  4834. * @throws {RequiredError}
  4835. */
  4836. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4837. // verify required parameter 'id' is not null or undefined
  4838. assertParamExists('removeAssetFromAlbum', 'id', id)
  4839. // verify required parameter 'bulkIdsDto' is not null or undefined
  4840. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  4841. const localVarPath = `/album/{id}/assets`
  4842. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4843. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4844. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4845. let baseOptions;
  4846. if (configuration) {
  4847. baseOptions = configuration.baseOptions;
  4848. }
  4849. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4850. const localVarHeaderParameter = {} as any;
  4851. const localVarQueryParameter = {} as any;
  4852. // authentication cookie required
  4853. // authentication api_key required
  4854. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4855. // authentication bearer required
  4856. // http bearer authentication required
  4857. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4858. localVarHeaderParameter['Content-Type'] = 'application/json';
  4859. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4860. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4861. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4862. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4863. return {
  4864. url: toPathString(localVarUrlObj),
  4865. options: localVarRequestOptions,
  4866. };
  4867. },
  4868. /**
  4869. *
  4870. * @param {string} id
  4871. * @param {string} userId
  4872. * @param {*} [options] Override http request option.
  4873. * @throws {RequiredError}
  4874. */
  4875. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4876. // verify required parameter 'id' is not null or undefined
  4877. assertParamExists('removeUserFromAlbum', 'id', id)
  4878. // verify required parameter 'userId' is not null or undefined
  4879. assertParamExists('removeUserFromAlbum', 'userId', userId)
  4880. const localVarPath = `/album/{id}/user/{userId}`
  4881. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  4882. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  4883. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4884. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4885. let baseOptions;
  4886. if (configuration) {
  4887. baseOptions = configuration.baseOptions;
  4888. }
  4889. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4890. const localVarHeaderParameter = {} as any;
  4891. const localVarQueryParameter = {} as any;
  4892. // authentication cookie required
  4893. // authentication api_key required
  4894. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4895. // authentication bearer required
  4896. // http bearer authentication required
  4897. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4898. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4899. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4900. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4901. return {
  4902. url: toPathString(localVarUrlObj),
  4903. options: localVarRequestOptions,
  4904. };
  4905. },
  4906. /**
  4907. *
  4908. * @param {string} id
  4909. * @param {UpdateAlbumDto} updateAlbumDto
  4910. * @param {*} [options] Override http request option.
  4911. * @throws {RequiredError}
  4912. */
  4913. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4914. // verify required parameter 'id' is not null or undefined
  4915. assertParamExists('updateAlbumInfo', 'id', id)
  4916. // verify required parameter 'updateAlbumDto' is not null or undefined
  4917. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  4918. const localVarPath = `/album/{id}`
  4919. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4920. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4921. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4922. let baseOptions;
  4923. if (configuration) {
  4924. baseOptions = configuration.baseOptions;
  4925. }
  4926. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4927. const localVarHeaderParameter = {} as any;
  4928. const localVarQueryParameter = {} as any;
  4929. // authentication cookie required
  4930. // authentication api_key required
  4931. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4932. // authentication bearer required
  4933. // http bearer authentication required
  4934. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4935. localVarHeaderParameter['Content-Type'] = 'application/json';
  4936. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4937. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4938. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4939. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  4940. return {
  4941. url: toPathString(localVarUrlObj),
  4942. options: localVarRequestOptions,
  4943. };
  4944. },
  4945. }
  4946. };
  4947. /**
  4948. * AlbumApi - functional programming interface
  4949. * @export
  4950. */
  4951. export const AlbumApiFp = function(configuration?: Configuration) {
  4952. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  4953. return {
  4954. /**
  4955. *
  4956. * @param {string} id
  4957. * @param {BulkIdsDto} bulkIdsDto
  4958. * @param {string} [key]
  4959. * @param {*} [options] Override http request option.
  4960. * @throws {RequiredError}
  4961. */
  4962. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  4963. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  4964. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4965. },
  4966. /**
  4967. *
  4968. * @param {string} id
  4969. * @param {AddUsersDto} addUsersDto
  4970. * @param {*} [options] Override http request option.
  4971. * @throws {RequiredError}
  4972. */
  4973. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  4974. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  4975. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4976. },
  4977. /**
  4978. *
  4979. * @param {CreateAlbumDto} createAlbumDto
  4980. * @param {*} [options] Override http request option.
  4981. * @throws {RequiredError}
  4982. */
  4983. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  4984. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  4985. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4986. },
  4987. /**
  4988. *
  4989. * @param {string} id
  4990. * @param {*} [options] Override http request option.
  4991. * @throws {RequiredError}
  4992. */
  4993. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4994. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  4995. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4996. },
  4997. /**
  4998. *
  4999. * @param {*} [options] Override http request option.
  5000. * @throws {RequiredError}
  5001. */
  5002. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5003. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5004. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5005. },
  5006. /**
  5007. *
  5008. * @param {string} id
  5009. * @param {boolean} [withoutAssets]
  5010. * @param {string} [key]
  5011. * @param {*} [options] Override http request option.
  5012. * @throws {RequiredError}
  5013. */
  5014. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5015. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5016. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5017. },
  5018. /**
  5019. *
  5020. * @param {boolean} [shared]
  5021. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5022. * @param {*} [options] Override http request option.
  5023. * @throws {RequiredError}
  5024. */
  5025. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5026. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5027. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5028. },
  5029. /**
  5030. *
  5031. * @param {string} id
  5032. * @param {BulkIdsDto} bulkIdsDto
  5033. * @param {*} [options] Override http request option.
  5034. * @throws {RequiredError}
  5035. */
  5036. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5037. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5038. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5039. },
  5040. /**
  5041. *
  5042. * @param {string} id
  5043. * @param {string} userId
  5044. * @param {*} [options] Override http request option.
  5045. * @throws {RequiredError}
  5046. */
  5047. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5048. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5049. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5050. },
  5051. /**
  5052. *
  5053. * @param {string} id
  5054. * @param {UpdateAlbumDto} updateAlbumDto
  5055. * @param {*} [options] Override http request option.
  5056. * @throws {RequiredError}
  5057. */
  5058. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5059. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5060. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5061. },
  5062. }
  5063. };
  5064. /**
  5065. * AlbumApi - factory interface
  5066. * @export
  5067. */
  5068. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5069. const localVarFp = AlbumApiFp(configuration)
  5070. return {
  5071. /**
  5072. *
  5073. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5074. * @param {*} [options] Override http request option.
  5075. * @throws {RequiredError}
  5076. */
  5077. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5078. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5079. },
  5080. /**
  5081. *
  5082. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5083. * @param {*} [options] Override http request option.
  5084. * @throws {RequiredError}
  5085. */
  5086. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5087. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5088. },
  5089. /**
  5090. *
  5091. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5092. * @param {*} [options] Override http request option.
  5093. * @throws {RequiredError}
  5094. */
  5095. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5096. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5097. },
  5098. /**
  5099. *
  5100. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5101. * @param {*} [options] Override http request option.
  5102. * @throws {RequiredError}
  5103. */
  5104. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5105. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5106. },
  5107. /**
  5108. *
  5109. * @param {*} [options] Override http request option.
  5110. * @throws {RequiredError}
  5111. */
  5112. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5113. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5114. },
  5115. /**
  5116. *
  5117. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5118. * @param {*} [options] Override http request option.
  5119. * @throws {RequiredError}
  5120. */
  5121. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5122. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5123. },
  5124. /**
  5125. *
  5126. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5127. * @param {*} [options] Override http request option.
  5128. * @throws {RequiredError}
  5129. */
  5130. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5131. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5132. },
  5133. /**
  5134. *
  5135. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5136. * @param {*} [options] Override http request option.
  5137. * @throws {RequiredError}
  5138. */
  5139. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5140. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5141. },
  5142. /**
  5143. *
  5144. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5145. * @param {*} [options] Override http request option.
  5146. * @throws {RequiredError}
  5147. */
  5148. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5149. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5150. },
  5151. /**
  5152. *
  5153. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5154. * @param {*} [options] Override http request option.
  5155. * @throws {RequiredError}
  5156. */
  5157. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5158. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5159. },
  5160. };
  5161. };
  5162. /**
  5163. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5164. * @export
  5165. * @interface AlbumApiAddAssetsToAlbumRequest
  5166. */
  5167. export interface AlbumApiAddAssetsToAlbumRequest {
  5168. /**
  5169. *
  5170. * @type {string}
  5171. * @memberof AlbumApiAddAssetsToAlbum
  5172. */
  5173. readonly id: string
  5174. /**
  5175. *
  5176. * @type {BulkIdsDto}
  5177. * @memberof AlbumApiAddAssetsToAlbum
  5178. */
  5179. readonly bulkIdsDto: BulkIdsDto
  5180. /**
  5181. *
  5182. * @type {string}
  5183. * @memberof AlbumApiAddAssetsToAlbum
  5184. */
  5185. readonly key?: string
  5186. }
  5187. /**
  5188. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5189. * @export
  5190. * @interface AlbumApiAddUsersToAlbumRequest
  5191. */
  5192. export interface AlbumApiAddUsersToAlbumRequest {
  5193. /**
  5194. *
  5195. * @type {string}
  5196. * @memberof AlbumApiAddUsersToAlbum
  5197. */
  5198. readonly id: string
  5199. /**
  5200. *
  5201. * @type {AddUsersDto}
  5202. * @memberof AlbumApiAddUsersToAlbum
  5203. */
  5204. readonly addUsersDto: AddUsersDto
  5205. }
  5206. /**
  5207. * Request parameters for createAlbum operation in AlbumApi.
  5208. * @export
  5209. * @interface AlbumApiCreateAlbumRequest
  5210. */
  5211. export interface AlbumApiCreateAlbumRequest {
  5212. /**
  5213. *
  5214. * @type {CreateAlbumDto}
  5215. * @memberof AlbumApiCreateAlbum
  5216. */
  5217. readonly createAlbumDto: CreateAlbumDto
  5218. }
  5219. /**
  5220. * Request parameters for deleteAlbum operation in AlbumApi.
  5221. * @export
  5222. * @interface AlbumApiDeleteAlbumRequest
  5223. */
  5224. export interface AlbumApiDeleteAlbumRequest {
  5225. /**
  5226. *
  5227. * @type {string}
  5228. * @memberof AlbumApiDeleteAlbum
  5229. */
  5230. readonly id: string
  5231. }
  5232. /**
  5233. * Request parameters for getAlbumInfo operation in AlbumApi.
  5234. * @export
  5235. * @interface AlbumApiGetAlbumInfoRequest
  5236. */
  5237. export interface AlbumApiGetAlbumInfoRequest {
  5238. /**
  5239. *
  5240. * @type {string}
  5241. * @memberof AlbumApiGetAlbumInfo
  5242. */
  5243. readonly id: string
  5244. /**
  5245. *
  5246. * @type {boolean}
  5247. * @memberof AlbumApiGetAlbumInfo
  5248. */
  5249. readonly withoutAssets?: boolean
  5250. /**
  5251. *
  5252. * @type {string}
  5253. * @memberof AlbumApiGetAlbumInfo
  5254. */
  5255. readonly key?: string
  5256. }
  5257. /**
  5258. * Request parameters for getAllAlbums operation in AlbumApi.
  5259. * @export
  5260. * @interface AlbumApiGetAllAlbumsRequest
  5261. */
  5262. export interface AlbumApiGetAllAlbumsRequest {
  5263. /**
  5264. *
  5265. * @type {boolean}
  5266. * @memberof AlbumApiGetAllAlbums
  5267. */
  5268. readonly shared?: boolean
  5269. /**
  5270. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5271. * @type {string}
  5272. * @memberof AlbumApiGetAllAlbums
  5273. */
  5274. readonly assetId?: string
  5275. }
  5276. /**
  5277. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5278. * @export
  5279. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5280. */
  5281. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5282. /**
  5283. *
  5284. * @type {string}
  5285. * @memberof AlbumApiRemoveAssetFromAlbum
  5286. */
  5287. readonly id: string
  5288. /**
  5289. *
  5290. * @type {BulkIdsDto}
  5291. * @memberof AlbumApiRemoveAssetFromAlbum
  5292. */
  5293. readonly bulkIdsDto: BulkIdsDto
  5294. }
  5295. /**
  5296. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5297. * @export
  5298. * @interface AlbumApiRemoveUserFromAlbumRequest
  5299. */
  5300. export interface AlbumApiRemoveUserFromAlbumRequest {
  5301. /**
  5302. *
  5303. * @type {string}
  5304. * @memberof AlbumApiRemoveUserFromAlbum
  5305. */
  5306. readonly id: string
  5307. /**
  5308. *
  5309. * @type {string}
  5310. * @memberof AlbumApiRemoveUserFromAlbum
  5311. */
  5312. readonly userId: string
  5313. }
  5314. /**
  5315. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5316. * @export
  5317. * @interface AlbumApiUpdateAlbumInfoRequest
  5318. */
  5319. export interface AlbumApiUpdateAlbumInfoRequest {
  5320. /**
  5321. *
  5322. * @type {string}
  5323. * @memberof AlbumApiUpdateAlbumInfo
  5324. */
  5325. readonly id: string
  5326. /**
  5327. *
  5328. * @type {UpdateAlbumDto}
  5329. * @memberof AlbumApiUpdateAlbumInfo
  5330. */
  5331. readonly updateAlbumDto: UpdateAlbumDto
  5332. }
  5333. /**
  5334. * AlbumApi - object-oriented interface
  5335. * @export
  5336. * @class AlbumApi
  5337. * @extends {BaseAPI}
  5338. */
  5339. export class AlbumApi extends BaseAPI {
  5340. /**
  5341. *
  5342. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5343. * @param {*} [options] Override http request option.
  5344. * @throws {RequiredError}
  5345. * @memberof AlbumApi
  5346. */
  5347. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5348. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5349. }
  5350. /**
  5351. *
  5352. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5353. * @param {*} [options] Override http request option.
  5354. * @throws {RequiredError}
  5355. * @memberof AlbumApi
  5356. */
  5357. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5358. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5359. }
  5360. /**
  5361. *
  5362. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5363. * @param {*} [options] Override http request option.
  5364. * @throws {RequiredError}
  5365. * @memberof AlbumApi
  5366. */
  5367. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5368. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5369. }
  5370. /**
  5371. *
  5372. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5373. * @param {*} [options] Override http request option.
  5374. * @throws {RequiredError}
  5375. * @memberof AlbumApi
  5376. */
  5377. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  5378. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5379. }
  5380. /**
  5381. *
  5382. * @param {*} [options] Override http request option.
  5383. * @throws {RequiredError}
  5384. * @memberof AlbumApi
  5385. */
  5386. public getAlbumCount(options?: AxiosRequestConfig) {
  5387. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  5388. }
  5389. /**
  5390. *
  5391. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5392. * @param {*} [options] Override http request option.
  5393. * @throws {RequiredError}
  5394. * @memberof AlbumApi
  5395. */
  5396. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  5397. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5398. }
  5399. /**
  5400. *
  5401. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5402. * @param {*} [options] Override http request option.
  5403. * @throws {RequiredError}
  5404. * @memberof AlbumApi
  5405. */
  5406. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  5407. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5408. }
  5409. /**
  5410. *
  5411. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5412. * @param {*} [options] Override http request option.
  5413. * @throws {RequiredError}
  5414. * @memberof AlbumApi
  5415. */
  5416. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  5417. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  5418. }
  5419. /**
  5420. *
  5421. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5422. * @param {*} [options] Override http request option.
  5423. * @throws {RequiredError}
  5424. * @memberof AlbumApi
  5425. */
  5426. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  5427. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5428. }
  5429. /**
  5430. *
  5431. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5432. * @param {*} [options] Override http request option.
  5433. * @throws {RequiredError}
  5434. * @memberof AlbumApi
  5435. */
  5436. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  5437. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5438. }
  5439. }
  5440. /**
  5441. * AssetApi - axios parameter creator
  5442. * @export
  5443. */
  5444. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  5445. return {
  5446. /**
  5447. * Checks if assets exist by checksums
  5448. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  5449. * @param {*} [options] Override http request option.
  5450. * @throws {RequiredError}
  5451. */
  5452. bulkUploadCheck: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5453. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  5454. assertParamExists('bulkUploadCheck', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  5455. const localVarPath = `/asset/bulk-upload-check`;
  5456. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5457. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5458. let baseOptions;
  5459. if (configuration) {
  5460. baseOptions = configuration.baseOptions;
  5461. }
  5462. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5463. const localVarHeaderParameter = {} as any;
  5464. const localVarQueryParameter = {} as any;
  5465. // authentication cookie required
  5466. // authentication api_key required
  5467. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5468. // authentication bearer required
  5469. // http bearer authentication required
  5470. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5471. localVarHeaderParameter['Content-Type'] = 'application/json';
  5472. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5473. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5474. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5475. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  5476. return {
  5477. url: toPathString(localVarUrlObj),
  5478. options: localVarRequestOptions,
  5479. };
  5480. },
  5481. /**
  5482. * Check duplicated asset before uploading - for Web upload used
  5483. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  5484. * @param {string} [key]
  5485. * @param {*} [options] Override http request option.
  5486. * @throws {RequiredError}
  5487. */
  5488. checkDuplicateAsset: async (checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5489. // verify required parameter 'checkDuplicateAssetDto' is not null or undefined
  5490. assertParamExists('checkDuplicateAsset', 'checkDuplicateAssetDto', checkDuplicateAssetDto)
  5491. const localVarPath = `/asset/check`;
  5492. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5493. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5494. let baseOptions;
  5495. if (configuration) {
  5496. baseOptions = configuration.baseOptions;
  5497. }
  5498. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5499. const localVarHeaderParameter = {} as any;
  5500. const localVarQueryParameter = {} as any;
  5501. // authentication cookie required
  5502. // authentication api_key required
  5503. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5504. // authentication bearer required
  5505. // http bearer authentication required
  5506. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5507. if (key !== undefined) {
  5508. localVarQueryParameter['key'] = key;
  5509. }
  5510. localVarHeaderParameter['Content-Type'] = 'application/json';
  5511. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5512. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5513. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5514. localVarRequestOptions.data = serializeDataIfNeeded(checkDuplicateAssetDto, localVarRequestOptions, configuration)
  5515. return {
  5516. url: toPathString(localVarUrlObj),
  5517. options: localVarRequestOptions,
  5518. };
  5519. },
  5520. /**
  5521. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5522. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5523. * @param {*} [options] Override http request option.
  5524. * @throws {RequiredError}
  5525. */
  5526. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5527. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  5528. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  5529. const localVarPath = `/asset/exist`;
  5530. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5531. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5532. let baseOptions;
  5533. if (configuration) {
  5534. baseOptions = configuration.baseOptions;
  5535. }
  5536. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5537. const localVarHeaderParameter = {} as any;
  5538. const localVarQueryParameter = {} as any;
  5539. // authentication cookie required
  5540. // authentication api_key required
  5541. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5542. // authentication bearer required
  5543. // http bearer authentication required
  5544. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5545. localVarHeaderParameter['Content-Type'] = 'application/json';
  5546. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5547. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5548. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5549. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  5550. return {
  5551. url: toPathString(localVarUrlObj),
  5552. options: localVarRequestOptions,
  5553. };
  5554. },
  5555. /**
  5556. *
  5557. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  5558. * @param {*} [options] Override http request option.
  5559. * @throws {RequiredError}
  5560. */
  5561. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5562. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  5563. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  5564. const localVarPath = `/asset`;
  5565. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5566. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5567. let baseOptions;
  5568. if (configuration) {
  5569. baseOptions = configuration.baseOptions;
  5570. }
  5571. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5572. const localVarHeaderParameter = {} as any;
  5573. const localVarQueryParameter = {} as any;
  5574. // authentication cookie required
  5575. // authentication api_key required
  5576. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5577. // authentication bearer required
  5578. // http bearer authentication required
  5579. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5580. localVarHeaderParameter['Content-Type'] = 'application/json';
  5581. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5582. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5583. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5584. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  5585. return {
  5586. url: toPathString(localVarUrlObj),
  5587. options: localVarRequestOptions,
  5588. };
  5589. },
  5590. /**
  5591. *
  5592. * @param {AssetIdsDto} assetIdsDto
  5593. * @param {string} [key]
  5594. * @param {*} [options] Override http request option.
  5595. * @throws {RequiredError}
  5596. */
  5597. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5598. // verify required parameter 'assetIdsDto' is not null or undefined
  5599. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  5600. const localVarPath = `/asset/download/archive`;
  5601. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5602. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5603. let baseOptions;
  5604. if (configuration) {
  5605. baseOptions = configuration.baseOptions;
  5606. }
  5607. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5608. const localVarHeaderParameter = {} as any;
  5609. const localVarQueryParameter = {} as any;
  5610. // authentication cookie required
  5611. // authentication api_key required
  5612. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5613. // authentication bearer required
  5614. // http bearer authentication required
  5615. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5616. if (key !== undefined) {
  5617. localVarQueryParameter['key'] = key;
  5618. }
  5619. localVarHeaderParameter['Content-Type'] = 'application/json';
  5620. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5621. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5622. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5623. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  5624. return {
  5625. url: toPathString(localVarUrlObj),
  5626. options: localVarRequestOptions,
  5627. };
  5628. },
  5629. /**
  5630. *
  5631. * @param {string} id
  5632. * @param {string} [key]
  5633. * @param {*} [options] Override http request option.
  5634. * @throws {RequiredError}
  5635. */
  5636. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5637. // verify required parameter 'id' is not null or undefined
  5638. assertParamExists('downloadFile', 'id', id)
  5639. const localVarPath = `/asset/download/{id}`
  5640. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5641. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5642. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5643. let baseOptions;
  5644. if (configuration) {
  5645. baseOptions = configuration.baseOptions;
  5646. }
  5647. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5648. const localVarHeaderParameter = {} as any;
  5649. const localVarQueryParameter = {} as any;
  5650. // authentication cookie required
  5651. // authentication api_key required
  5652. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5653. // authentication bearer required
  5654. // http bearer authentication required
  5655. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5656. if (key !== undefined) {
  5657. localVarQueryParameter['key'] = key;
  5658. }
  5659. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5660. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5661. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5662. return {
  5663. url: toPathString(localVarUrlObj),
  5664. options: localVarRequestOptions,
  5665. };
  5666. },
  5667. /**
  5668. *
  5669. * @param {*} [options] Override http request option.
  5670. * @throws {RequiredError}
  5671. */
  5672. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5673. const localVarPath = `/asset/trash/empty`;
  5674. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5675. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5676. let baseOptions;
  5677. if (configuration) {
  5678. baseOptions = configuration.baseOptions;
  5679. }
  5680. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5681. const localVarHeaderParameter = {} as any;
  5682. const localVarQueryParameter = {} as any;
  5683. // authentication cookie required
  5684. // authentication api_key required
  5685. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5686. // authentication bearer required
  5687. // http bearer authentication required
  5688. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5689. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5690. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5691. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5692. return {
  5693. url: toPathString(localVarUrlObj),
  5694. options: localVarRequestOptions,
  5695. };
  5696. },
  5697. /**
  5698. * Get all AssetEntity belong to the user
  5699. * @param {string} [userId]
  5700. * @param {boolean} [isFavorite]
  5701. * @param {boolean} [isArchived]
  5702. * @param {number} [skip]
  5703. * @param {string} [updatedAfter]
  5704. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5705. * @param {*} [options] Override http request option.
  5706. * @throws {RequiredError}
  5707. */
  5708. getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5709. const localVarPath = `/asset`;
  5710. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5711. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5712. let baseOptions;
  5713. if (configuration) {
  5714. baseOptions = configuration.baseOptions;
  5715. }
  5716. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5717. const localVarHeaderParameter = {} as any;
  5718. const localVarQueryParameter = {} as any;
  5719. // authentication cookie required
  5720. // authentication api_key required
  5721. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5722. // authentication bearer required
  5723. // http bearer authentication required
  5724. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5725. if (userId !== undefined) {
  5726. localVarQueryParameter['userId'] = userId;
  5727. }
  5728. if (isFavorite !== undefined) {
  5729. localVarQueryParameter['isFavorite'] = isFavorite;
  5730. }
  5731. if (isArchived !== undefined) {
  5732. localVarQueryParameter['isArchived'] = isArchived;
  5733. }
  5734. if (skip !== undefined) {
  5735. localVarQueryParameter['skip'] = skip;
  5736. }
  5737. if (updatedAfter !== undefined) {
  5738. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  5739. (updatedAfter as any).toISOString() :
  5740. updatedAfter;
  5741. }
  5742. if (ifNoneMatch != null) {
  5743. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  5744. }
  5745. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5746. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5747. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5748. return {
  5749. url: toPathString(localVarUrlObj),
  5750. options: localVarRequestOptions,
  5751. };
  5752. },
  5753. /**
  5754. * Get a single asset\'s information
  5755. * @param {string} id
  5756. * @param {string} [key]
  5757. * @param {*} [options] Override http request option.
  5758. * @throws {RequiredError}
  5759. */
  5760. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5761. // verify required parameter 'id' is not null or undefined
  5762. assertParamExists('getAssetById', 'id', id)
  5763. const localVarPath = `/asset/assetById/{id}`
  5764. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5765. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5766. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5767. let baseOptions;
  5768. if (configuration) {
  5769. baseOptions = configuration.baseOptions;
  5770. }
  5771. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5772. const localVarHeaderParameter = {} as any;
  5773. const localVarQueryParameter = {} as any;
  5774. // authentication cookie required
  5775. // authentication api_key required
  5776. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5777. // authentication bearer required
  5778. // http bearer authentication required
  5779. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5780. if (key !== undefined) {
  5781. localVarQueryParameter['key'] = key;
  5782. }
  5783. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5784. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5785. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5786. return {
  5787. url: toPathString(localVarUrlObj),
  5788. options: localVarRequestOptions,
  5789. };
  5790. },
  5791. /**
  5792. *
  5793. * @param {*} [options] Override http request option.
  5794. * @throws {RequiredError}
  5795. */
  5796. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5797. const localVarPath = `/asset/search-terms`;
  5798. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5799. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5800. let baseOptions;
  5801. if (configuration) {
  5802. baseOptions = configuration.baseOptions;
  5803. }
  5804. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5805. const localVarHeaderParameter = {} as any;
  5806. const localVarQueryParameter = {} as any;
  5807. // authentication cookie required
  5808. // authentication api_key required
  5809. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5810. // authentication bearer required
  5811. // http bearer authentication required
  5812. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5813. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5814. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5815. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5816. return {
  5817. url: toPathString(localVarUrlObj),
  5818. options: localVarRequestOptions,
  5819. };
  5820. },
  5821. /**
  5822. *
  5823. * @param {boolean} [isArchived]
  5824. * @param {boolean} [isFavorite]
  5825. * @param {boolean} [isTrashed]
  5826. * @param {*} [options] Override http request option.
  5827. * @throws {RequiredError}
  5828. */
  5829. getAssetStats: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5830. const localVarPath = `/asset/statistics`;
  5831. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5832. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5833. let baseOptions;
  5834. if (configuration) {
  5835. baseOptions = configuration.baseOptions;
  5836. }
  5837. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5838. const localVarHeaderParameter = {} as any;
  5839. const localVarQueryParameter = {} as any;
  5840. // authentication cookie required
  5841. // authentication api_key required
  5842. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5843. // authentication bearer required
  5844. // http bearer authentication required
  5845. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5846. if (isArchived !== undefined) {
  5847. localVarQueryParameter['isArchived'] = isArchived;
  5848. }
  5849. if (isFavorite !== undefined) {
  5850. localVarQueryParameter['isFavorite'] = isFavorite;
  5851. }
  5852. if (isTrashed !== undefined) {
  5853. localVarQueryParameter['isTrashed'] = isTrashed;
  5854. }
  5855. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5856. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5857. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5858. return {
  5859. url: toPathString(localVarUrlObj),
  5860. options: localVarRequestOptions,
  5861. };
  5862. },
  5863. /**
  5864. *
  5865. * @param {string} id
  5866. * @param {ThumbnailFormat} [format]
  5867. * @param {string} [key]
  5868. * @param {*} [options] Override http request option.
  5869. * @throws {RequiredError}
  5870. */
  5871. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5872. // verify required parameter 'id' is not null or undefined
  5873. assertParamExists('getAssetThumbnail', 'id', id)
  5874. const localVarPath = `/asset/thumbnail/{id}`
  5875. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5876. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5877. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5878. let baseOptions;
  5879. if (configuration) {
  5880. baseOptions = configuration.baseOptions;
  5881. }
  5882. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5883. const localVarHeaderParameter = {} as any;
  5884. const localVarQueryParameter = {} as any;
  5885. // authentication cookie required
  5886. // authentication api_key required
  5887. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5888. // authentication bearer required
  5889. // http bearer authentication required
  5890. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5891. if (format !== undefined) {
  5892. localVarQueryParameter['format'] = format;
  5893. }
  5894. if (key !== undefined) {
  5895. localVarQueryParameter['key'] = key;
  5896. }
  5897. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5898. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5899. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5900. return {
  5901. url: toPathString(localVarUrlObj),
  5902. options: localVarRequestOptions,
  5903. };
  5904. },
  5905. /**
  5906. *
  5907. * @param {TimeBucketSize} size
  5908. * @param {string} timeBucket
  5909. * @param {string} [userId]
  5910. * @param {string} [albumId]
  5911. * @param {string} [personId]
  5912. * @param {boolean} [isArchived]
  5913. * @param {boolean} [isFavorite]
  5914. * @param {boolean} [isTrashed]
  5915. * @param {string} [key]
  5916. * @param {*} [options] Override http request option.
  5917. * @throws {RequiredError}
  5918. */
  5919. getByTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5920. // verify required parameter 'size' is not null or undefined
  5921. assertParamExists('getByTimeBucket', 'size', size)
  5922. // verify required parameter 'timeBucket' is not null or undefined
  5923. assertParamExists('getByTimeBucket', 'timeBucket', timeBucket)
  5924. const localVarPath = `/asset/time-bucket`;
  5925. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5926. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5927. let baseOptions;
  5928. if (configuration) {
  5929. baseOptions = configuration.baseOptions;
  5930. }
  5931. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5932. const localVarHeaderParameter = {} as any;
  5933. const localVarQueryParameter = {} as any;
  5934. // authentication cookie required
  5935. // authentication api_key required
  5936. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5937. // authentication bearer required
  5938. // http bearer authentication required
  5939. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5940. if (size !== undefined) {
  5941. localVarQueryParameter['size'] = size;
  5942. }
  5943. if (userId !== undefined) {
  5944. localVarQueryParameter['userId'] = userId;
  5945. }
  5946. if (albumId !== undefined) {
  5947. localVarQueryParameter['albumId'] = albumId;
  5948. }
  5949. if (personId !== undefined) {
  5950. localVarQueryParameter['personId'] = personId;
  5951. }
  5952. if (isArchived !== undefined) {
  5953. localVarQueryParameter['isArchived'] = isArchived;
  5954. }
  5955. if (isFavorite !== undefined) {
  5956. localVarQueryParameter['isFavorite'] = isFavorite;
  5957. }
  5958. if (isTrashed !== undefined) {
  5959. localVarQueryParameter['isTrashed'] = isTrashed;
  5960. }
  5961. if (timeBucket !== undefined) {
  5962. localVarQueryParameter['timeBucket'] = timeBucket;
  5963. }
  5964. if (key !== undefined) {
  5965. localVarQueryParameter['key'] = key;
  5966. }
  5967. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5968. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5969. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5970. return {
  5971. url: toPathString(localVarUrlObj),
  5972. options: localVarRequestOptions,
  5973. };
  5974. },
  5975. /**
  5976. *
  5977. * @param {*} [options] Override http request option.
  5978. * @throws {RequiredError}
  5979. */
  5980. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5981. const localVarPath = `/asset/curated-locations`;
  5982. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5983. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5984. let baseOptions;
  5985. if (configuration) {
  5986. baseOptions = configuration.baseOptions;
  5987. }
  5988. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5989. const localVarHeaderParameter = {} as any;
  5990. const localVarQueryParameter = {} as any;
  5991. // authentication cookie required
  5992. // authentication api_key required
  5993. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5994. // authentication bearer required
  5995. // http bearer authentication required
  5996. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5997. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5998. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5999. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6000. return {
  6001. url: toPathString(localVarUrlObj),
  6002. options: localVarRequestOptions,
  6003. };
  6004. },
  6005. /**
  6006. *
  6007. * @param {*} [options] Override http request option.
  6008. * @throws {RequiredError}
  6009. */
  6010. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6011. const localVarPath = `/asset/curated-objects`;
  6012. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6013. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6014. let baseOptions;
  6015. if (configuration) {
  6016. baseOptions = configuration.baseOptions;
  6017. }
  6018. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6019. const localVarHeaderParameter = {} as any;
  6020. const localVarQueryParameter = {} as any;
  6021. // authentication cookie required
  6022. // authentication api_key required
  6023. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6024. // authentication bearer required
  6025. // http bearer authentication required
  6026. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6027. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6028. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6029. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6030. return {
  6031. url: toPathString(localVarUrlObj),
  6032. options: localVarRequestOptions,
  6033. };
  6034. },
  6035. /**
  6036. *
  6037. * @param {DownloadInfoDto} downloadInfoDto
  6038. * @param {string} [key]
  6039. * @param {*} [options] Override http request option.
  6040. * @throws {RequiredError}
  6041. */
  6042. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6043. // verify required parameter 'downloadInfoDto' is not null or undefined
  6044. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6045. const localVarPath = `/asset/download/info`;
  6046. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6047. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6048. let baseOptions;
  6049. if (configuration) {
  6050. baseOptions = configuration.baseOptions;
  6051. }
  6052. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6053. const localVarHeaderParameter = {} as any;
  6054. const localVarQueryParameter = {} as any;
  6055. // authentication cookie required
  6056. // authentication api_key required
  6057. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6058. // authentication bearer required
  6059. // http bearer authentication required
  6060. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6061. if (key !== undefined) {
  6062. localVarQueryParameter['key'] = key;
  6063. }
  6064. localVarHeaderParameter['Content-Type'] = 'application/json';
  6065. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6066. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6067. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6068. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6069. return {
  6070. url: toPathString(localVarUrlObj),
  6071. options: localVarRequestOptions,
  6072. };
  6073. },
  6074. /**
  6075. *
  6076. * @param {boolean} [isArchived]
  6077. * @param {boolean} [isFavorite]
  6078. * @param {string} [fileCreatedAfter]
  6079. * @param {string} [fileCreatedBefore]
  6080. * @param {*} [options] Override http request option.
  6081. * @throws {RequiredError}
  6082. */
  6083. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6084. const localVarPath = `/asset/map-marker`;
  6085. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6086. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6087. let baseOptions;
  6088. if (configuration) {
  6089. baseOptions = configuration.baseOptions;
  6090. }
  6091. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6092. const localVarHeaderParameter = {} as any;
  6093. const localVarQueryParameter = {} as any;
  6094. // authentication cookie required
  6095. // authentication api_key required
  6096. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6097. // authentication bearer required
  6098. // http bearer authentication required
  6099. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6100. if (isArchived !== undefined) {
  6101. localVarQueryParameter['isArchived'] = isArchived;
  6102. }
  6103. if (isFavorite !== undefined) {
  6104. localVarQueryParameter['isFavorite'] = isFavorite;
  6105. }
  6106. if (fileCreatedAfter !== undefined) {
  6107. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6108. (fileCreatedAfter as any).toISOString() :
  6109. fileCreatedAfter;
  6110. }
  6111. if (fileCreatedBefore !== undefined) {
  6112. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6113. (fileCreatedBefore as any).toISOString() :
  6114. fileCreatedBefore;
  6115. }
  6116. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6117. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6118. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6119. return {
  6120. url: toPathString(localVarUrlObj),
  6121. options: localVarRequestOptions,
  6122. };
  6123. },
  6124. /**
  6125. *
  6126. * @param {number} day
  6127. * @param {number} month
  6128. * @param {*} [options] Override http request option.
  6129. * @throws {RequiredError}
  6130. */
  6131. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6132. // verify required parameter 'day' is not null or undefined
  6133. assertParamExists('getMemoryLane', 'day', day)
  6134. // verify required parameter 'month' is not null or undefined
  6135. assertParamExists('getMemoryLane', 'month', month)
  6136. const localVarPath = `/asset/memory-lane`;
  6137. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6138. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6139. let baseOptions;
  6140. if (configuration) {
  6141. baseOptions = configuration.baseOptions;
  6142. }
  6143. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6144. const localVarHeaderParameter = {} as any;
  6145. const localVarQueryParameter = {} as any;
  6146. // authentication cookie required
  6147. // authentication api_key required
  6148. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6149. // authentication bearer required
  6150. // http bearer authentication required
  6151. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6152. if (day !== undefined) {
  6153. localVarQueryParameter['day'] = day;
  6154. }
  6155. if (month !== undefined) {
  6156. localVarQueryParameter['month'] = month;
  6157. }
  6158. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6159. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6160. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6161. return {
  6162. url: toPathString(localVarUrlObj),
  6163. options: localVarRequestOptions,
  6164. };
  6165. },
  6166. /**
  6167. *
  6168. * @param {number} [count]
  6169. * @param {*} [options] Override http request option.
  6170. * @throws {RequiredError}
  6171. */
  6172. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6173. const localVarPath = `/asset/random`;
  6174. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6175. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6176. let baseOptions;
  6177. if (configuration) {
  6178. baseOptions = configuration.baseOptions;
  6179. }
  6180. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6181. const localVarHeaderParameter = {} as any;
  6182. const localVarQueryParameter = {} as any;
  6183. // authentication cookie required
  6184. // authentication api_key required
  6185. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6186. // authentication bearer required
  6187. // http bearer authentication required
  6188. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6189. if (count !== undefined) {
  6190. localVarQueryParameter['count'] = count;
  6191. }
  6192. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6193. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6194. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6195. return {
  6196. url: toPathString(localVarUrlObj),
  6197. options: localVarRequestOptions,
  6198. };
  6199. },
  6200. /**
  6201. *
  6202. * @param {TimeBucketSize} size
  6203. * @param {string} [userId]
  6204. * @param {string} [albumId]
  6205. * @param {string} [personId]
  6206. * @param {boolean} [isArchived]
  6207. * @param {boolean} [isFavorite]
  6208. * @param {boolean} [isTrashed]
  6209. * @param {string} [key]
  6210. * @param {*} [options] Override http request option.
  6211. * @throws {RequiredError}
  6212. */
  6213. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6214. // verify required parameter 'size' is not null or undefined
  6215. assertParamExists('getTimeBuckets', 'size', size)
  6216. const localVarPath = `/asset/time-buckets`;
  6217. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6218. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6219. let baseOptions;
  6220. if (configuration) {
  6221. baseOptions = configuration.baseOptions;
  6222. }
  6223. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6224. const localVarHeaderParameter = {} as any;
  6225. const localVarQueryParameter = {} as any;
  6226. // authentication cookie required
  6227. // authentication api_key required
  6228. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6229. // authentication bearer required
  6230. // http bearer authentication required
  6231. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6232. if (size !== undefined) {
  6233. localVarQueryParameter['size'] = size;
  6234. }
  6235. if (userId !== undefined) {
  6236. localVarQueryParameter['userId'] = userId;
  6237. }
  6238. if (albumId !== undefined) {
  6239. localVarQueryParameter['albumId'] = albumId;
  6240. }
  6241. if (personId !== undefined) {
  6242. localVarQueryParameter['personId'] = personId;
  6243. }
  6244. if (isArchived !== undefined) {
  6245. localVarQueryParameter['isArchived'] = isArchived;
  6246. }
  6247. if (isFavorite !== undefined) {
  6248. localVarQueryParameter['isFavorite'] = isFavorite;
  6249. }
  6250. if (isTrashed !== undefined) {
  6251. localVarQueryParameter['isTrashed'] = isTrashed;
  6252. }
  6253. if (key !== undefined) {
  6254. localVarQueryParameter['key'] = key;
  6255. }
  6256. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6257. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6258. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6259. return {
  6260. url: toPathString(localVarUrlObj),
  6261. options: localVarRequestOptions,
  6262. };
  6263. },
  6264. /**
  6265. * Get all asset of a device that are in the database, ID only.
  6266. * @param {string} deviceId
  6267. * @param {*} [options] Override http request option.
  6268. * @throws {RequiredError}
  6269. */
  6270. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6271. // verify required parameter 'deviceId' is not null or undefined
  6272. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6273. const localVarPath = `/asset/{deviceId}`
  6274. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6275. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6276. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6277. let baseOptions;
  6278. if (configuration) {
  6279. baseOptions = configuration.baseOptions;
  6280. }
  6281. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6282. const localVarHeaderParameter = {} as any;
  6283. const localVarQueryParameter = {} as any;
  6284. // authentication cookie required
  6285. // authentication api_key required
  6286. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6287. // authentication bearer required
  6288. // http bearer authentication required
  6289. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6290. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6291. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6292. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6293. return {
  6294. url: toPathString(localVarUrlObj),
  6295. options: localVarRequestOptions,
  6296. };
  6297. },
  6298. /**
  6299. *
  6300. * @param {ImportAssetDto} importAssetDto
  6301. * @param {*} [options] Override http request option.
  6302. * @throws {RequiredError}
  6303. */
  6304. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6305. // verify required parameter 'importAssetDto' is not null or undefined
  6306. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  6307. const localVarPath = `/asset/import`;
  6308. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6309. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6310. let baseOptions;
  6311. if (configuration) {
  6312. baseOptions = configuration.baseOptions;
  6313. }
  6314. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6315. const localVarHeaderParameter = {} as any;
  6316. const localVarQueryParameter = {} as any;
  6317. // authentication cookie required
  6318. // authentication api_key required
  6319. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6320. // authentication bearer required
  6321. // http bearer authentication required
  6322. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6323. localVarHeaderParameter['Content-Type'] = 'application/json';
  6324. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6325. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6326. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6327. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  6328. return {
  6329. url: toPathString(localVarUrlObj),
  6330. options: localVarRequestOptions,
  6331. };
  6332. },
  6333. /**
  6334. *
  6335. * @param {BulkIdsDto} bulkIdsDto
  6336. * @param {*} [options] Override http request option.
  6337. * @throws {RequiredError}
  6338. */
  6339. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6340. // verify required parameter 'bulkIdsDto' is not null or undefined
  6341. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6342. const localVarPath = `/asset/restore`;
  6343. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6344. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6345. let baseOptions;
  6346. if (configuration) {
  6347. baseOptions = configuration.baseOptions;
  6348. }
  6349. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6350. const localVarHeaderParameter = {} as any;
  6351. const localVarQueryParameter = {} as any;
  6352. // authentication cookie required
  6353. // authentication api_key required
  6354. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6355. // authentication bearer required
  6356. // http bearer authentication required
  6357. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6358. localVarHeaderParameter['Content-Type'] = 'application/json';
  6359. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6360. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6361. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6362. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6363. return {
  6364. url: toPathString(localVarUrlObj),
  6365. options: localVarRequestOptions,
  6366. };
  6367. },
  6368. /**
  6369. *
  6370. * @param {*} [options] Override http request option.
  6371. * @throws {RequiredError}
  6372. */
  6373. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6374. const localVarPath = `/asset/trash/restore`;
  6375. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6376. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6377. let baseOptions;
  6378. if (configuration) {
  6379. baseOptions = configuration.baseOptions;
  6380. }
  6381. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6382. const localVarHeaderParameter = {} as any;
  6383. const localVarQueryParameter = {} as any;
  6384. // authentication cookie required
  6385. // authentication api_key required
  6386. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6387. // authentication bearer required
  6388. // http bearer authentication required
  6389. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6390. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6391. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6392. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6393. return {
  6394. url: toPathString(localVarUrlObj),
  6395. options: localVarRequestOptions,
  6396. };
  6397. },
  6398. /**
  6399. *
  6400. * @param {AssetJobsDto} assetJobsDto
  6401. * @param {*} [options] Override http request option.
  6402. * @throws {RequiredError}
  6403. */
  6404. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6405. // verify required parameter 'assetJobsDto' is not null or undefined
  6406. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  6407. const localVarPath = `/asset/jobs`;
  6408. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6409. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6410. let baseOptions;
  6411. if (configuration) {
  6412. baseOptions = configuration.baseOptions;
  6413. }
  6414. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6415. const localVarHeaderParameter = {} as any;
  6416. const localVarQueryParameter = {} as any;
  6417. // authentication cookie required
  6418. // authentication api_key required
  6419. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6420. // authentication bearer required
  6421. // http bearer authentication required
  6422. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6423. localVarHeaderParameter['Content-Type'] = 'application/json';
  6424. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6425. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6426. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6427. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  6428. return {
  6429. url: toPathString(localVarUrlObj),
  6430. options: localVarRequestOptions,
  6431. };
  6432. },
  6433. /**
  6434. *
  6435. * @param {SearchAssetDto} searchAssetDto
  6436. * @param {*} [options] Override http request option.
  6437. * @throws {RequiredError}
  6438. */
  6439. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6440. // verify required parameter 'searchAssetDto' is not null or undefined
  6441. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  6442. const localVarPath = `/asset/search`;
  6443. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6444. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6445. let baseOptions;
  6446. if (configuration) {
  6447. baseOptions = configuration.baseOptions;
  6448. }
  6449. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6450. const localVarHeaderParameter = {} as any;
  6451. const localVarQueryParameter = {} as any;
  6452. // authentication cookie required
  6453. // authentication api_key required
  6454. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6455. // authentication bearer required
  6456. // http bearer authentication required
  6457. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6458. localVarHeaderParameter['Content-Type'] = 'application/json';
  6459. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6460. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6461. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6462. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  6463. return {
  6464. url: toPathString(localVarUrlObj),
  6465. options: localVarRequestOptions,
  6466. };
  6467. },
  6468. /**
  6469. *
  6470. * @param {string} id
  6471. * @param {boolean} [isThumb]
  6472. * @param {boolean} [isWeb]
  6473. * @param {string} [key]
  6474. * @param {*} [options] Override http request option.
  6475. * @throws {RequiredError}
  6476. */
  6477. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6478. // verify required parameter 'id' is not null or undefined
  6479. assertParamExists('serveFile', 'id', id)
  6480. const localVarPath = `/asset/file/{id}`
  6481. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6482. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6483. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6484. let baseOptions;
  6485. if (configuration) {
  6486. baseOptions = configuration.baseOptions;
  6487. }
  6488. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6489. const localVarHeaderParameter = {} as any;
  6490. const localVarQueryParameter = {} as any;
  6491. // authentication cookie required
  6492. // authentication api_key required
  6493. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6494. // authentication bearer required
  6495. // http bearer authentication required
  6496. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6497. if (isThumb !== undefined) {
  6498. localVarQueryParameter['isThumb'] = isThumb;
  6499. }
  6500. if (isWeb !== undefined) {
  6501. localVarQueryParameter['isWeb'] = isWeb;
  6502. }
  6503. if (key !== undefined) {
  6504. localVarQueryParameter['key'] = key;
  6505. }
  6506. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6507. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6508. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6509. return {
  6510. url: toPathString(localVarUrlObj),
  6511. options: localVarRequestOptions,
  6512. };
  6513. },
  6514. /**
  6515. *
  6516. * @param {string} id
  6517. * @param {UpdateAssetDto} updateAssetDto
  6518. * @param {*} [options] Override http request option.
  6519. * @throws {RequiredError}
  6520. */
  6521. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6522. // verify required parameter 'id' is not null or undefined
  6523. assertParamExists('updateAsset', 'id', id)
  6524. // verify required parameter 'updateAssetDto' is not null or undefined
  6525. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  6526. const localVarPath = `/asset/{id}`
  6527. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6528. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6529. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6530. let baseOptions;
  6531. if (configuration) {
  6532. baseOptions = configuration.baseOptions;
  6533. }
  6534. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6535. const localVarHeaderParameter = {} as any;
  6536. const localVarQueryParameter = {} as any;
  6537. // authentication cookie required
  6538. // authentication api_key required
  6539. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6540. // authentication bearer required
  6541. // http bearer authentication required
  6542. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6543. localVarHeaderParameter['Content-Type'] = 'application/json';
  6544. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6545. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6546. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6547. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  6548. return {
  6549. url: toPathString(localVarUrlObj),
  6550. options: localVarRequestOptions,
  6551. };
  6552. },
  6553. /**
  6554. *
  6555. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  6556. * @param {*} [options] Override http request option.
  6557. * @throws {RequiredError}
  6558. */
  6559. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6560. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  6561. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  6562. const localVarPath = `/asset`;
  6563. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6564. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6565. let baseOptions;
  6566. if (configuration) {
  6567. baseOptions = configuration.baseOptions;
  6568. }
  6569. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6570. const localVarHeaderParameter = {} as any;
  6571. const localVarQueryParameter = {} as any;
  6572. // authentication cookie required
  6573. // authentication api_key required
  6574. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6575. // authentication bearer required
  6576. // http bearer authentication required
  6577. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6578. localVarHeaderParameter['Content-Type'] = 'application/json';
  6579. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6580. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6581. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6582. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  6583. return {
  6584. url: toPathString(localVarUrlObj),
  6585. options: localVarRequestOptions,
  6586. };
  6587. },
  6588. /**
  6589. *
  6590. * @param {UpdateStackParentDto} updateStackParentDto
  6591. * @param {*} [options] Override http request option.
  6592. * @throws {RequiredError}
  6593. */
  6594. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6595. // verify required parameter 'updateStackParentDto' is not null or undefined
  6596. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  6597. const localVarPath = `/asset/stack/parent`;
  6598. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6599. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6600. let baseOptions;
  6601. if (configuration) {
  6602. baseOptions = configuration.baseOptions;
  6603. }
  6604. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6605. const localVarHeaderParameter = {} as any;
  6606. const localVarQueryParameter = {} as any;
  6607. // authentication cookie required
  6608. // authentication api_key required
  6609. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6610. // authentication bearer required
  6611. // http bearer authentication required
  6612. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6613. localVarHeaderParameter['Content-Type'] = 'application/json';
  6614. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6615. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6616. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6617. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  6618. return {
  6619. url: toPathString(localVarUrlObj),
  6620. options: localVarRequestOptions,
  6621. };
  6622. },
  6623. /**
  6624. *
  6625. * @param {File} assetData
  6626. * @param {string} deviceAssetId
  6627. * @param {string} deviceId
  6628. * @param {string} fileCreatedAt
  6629. * @param {string} fileModifiedAt
  6630. * @param {boolean} isFavorite
  6631. * @param {string} [key]
  6632. * @param {string} [duration]
  6633. * @param {boolean} [isArchived]
  6634. * @param {boolean} [isExternal]
  6635. * @param {boolean} [isOffline]
  6636. * @param {boolean} [isReadOnly]
  6637. * @param {boolean} [isVisible]
  6638. * @param {string} [libraryId]
  6639. * @param {File} [livePhotoData]
  6640. * @param {File} [sidecarData]
  6641. * @param {*} [options] Override http request option.
  6642. * @throws {RequiredError}
  6643. */
  6644. 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> => {
  6645. // verify required parameter 'assetData' is not null or undefined
  6646. assertParamExists('uploadFile', 'assetData', assetData)
  6647. // verify required parameter 'deviceAssetId' is not null or undefined
  6648. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  6649. // verify required parameter 'deviceId' is not null or undefined
  6650. assertParamExists('uploadFile', 'deviceId', deviceId)
  6651. // verify required parameter 'fileCreatedAt' is not null or undefined
  6652. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  6653. // verify required parameter 'fileModifiedAt' is not null or undefined
  6654. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  6655. // verify required parameter 'isFavorite' is not null or undefined
  6656. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  6657. const localVarPath = `/asset/upload`;
  6658. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6659. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6660. let baseOptions;
  6661. if (configuration) {
  6662. baseOptions = configuration.baseOptions;
  6663. }
  6664. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6665. const localVarHeaderParameter = {} as any;
  6666. const localVarQueryParameter = {} as any;
  6667. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  6668. // authentication cookie required
  6669. // authentication api_key required
  6670. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6671. // authentication bearer required
  6672. // http bearer authentication required
  6673. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6674. if (key !== undefined) {
  6675. localVarQueryParameter['key'] = key;
  6676. }
  6677. if (assetData !== undefined) {
  6678. localVarFormParams.append('assetData', assetData as any);
  6679. }
  6680. if (deviceAssetId !== undefined) {
  6681. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  6682. }
  6683. if (deviceId !== undefined) {
  6684. localVarFormParams.append('deviceId', deviceId as any);
  6685. }
  6686. if (duration !== undefined) {
  6687. localVarFormParams.append('duration', duration as any);
  6688. }
  6689. if (fileCreatedAt !== undefined) {
  6690. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  6691. }
  6692. if (fileModifiedAt !== undefined) {
  6693. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  6694. }
  6695. if (isArchived !== undefined) {
  6696. localVarFormParams.append('isArchived', isArchived as any);
  6697. }
  6698. if (isExternal !== undefined) {
  6699. localVarFormParams.append('isExternal', isExternal as any);
  6700. }
  6701. if (isFavorite !== undefined) {
  6702. localVarFormParams.append('isFavorite', isFavorite as any);
  6703. }
  6704. if (isOffline !== undefined) {
  6705. localVarFormParams.append('isOffline', isOffline as any);
  6706. }
  6707. if (isReadOnly !== undefined) {
  6708. localVarFormParams.append('isReadOnly', isReadOnly as any);
  6709. }
  6710. if (isVisible !== undefined) {
  6711. localVarFormParams.append('isVisible', isVisible as any);
  6712. }
  6713. if (libraryId !== undefined) {
  6714. localVarFormParams.append('libraryId', libraryId as any);
  6715. }
  6716. if (livePhotoData !== undefined) {
  6717. localVarFormParams.append('livePhotoData', livePhotoData as any);
  6718. }
  6719. if (sidecarData !== undefined) {
  6720. localVarFormParams.append('sidecarData', sidecarData as any);
  6721. }
  6722. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  6723. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6724. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6725. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6726. localVarRequestOptions.data = localVarFormParams;
  6727. return {
  6728. url: toPathString(localVarUrlObj),
  6729. options: localVarRequestOptions,
  6730. };
  6731. },
  6732. }
  6733. };
  6734. /**
  6735. * AssetApi - functional programming interface
  6736. * @export
  6737. */
  6738. export const AssetApiFp = function(configuration?: Configuration) {
  6739. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  6740. return {
  6741. /**
  6742. * Checks if assets exist by checksums
  6743. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6744. * @param {*} [options] Override http request option.
  6745. * @throws {RequiredError}
  6746. */
  6747. async bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  6748. const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUploadCheck(assetBulkUploadCheckDto, options);
  6749. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6750. },
  6751. /**
  6752. * Check duplicated asset before uploading - for Web upload used
  6753. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  6754. * @param {string} [key]
  6755. * @param {*} [options] Override http request option.
  6756. * @throws {RequiredError}
  6757. */
  6758. async checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckDuplicateAssetResponseDto>> {
  6759. const localVarAxiosArgs = await localVarAxiosParamCreator.checkDuplicateAsset(checkDuplicateAssetDto, key, options);
  6760. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6761. },
  6762. /**
  6763. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6764. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6765. * @param {*} [options] Override http request option.
  6766. * @throws {RequiredError}
  6767. */
  6768. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  6769. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  6770. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6771. },
  6772. /**
  6773. *
  6774. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6775. * @param {*} [options] Override http request option.
  6776. * @throws {RequiredError}
  6777. */
  6778. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6779. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  6780. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6781. },
  6782. /**
  6783. *
  6784. * @param {AssetIdsDto} assetIdsDto
  6785. * @param {string} [key]
  6786. * @param {*} [options] Override http request option.
  6787. * @throws {RequiredError}
  6788. */
  6789. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6790. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  6791. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6792. },
  6793. /**
  6794. *
  6795. * @param {string} id
  6796. * @param {string} [key]
  6797. * @param {*} [options] Override http request option.
  6798. * @throws {RequiredError}
  6799. */
  6800. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6801. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  6802. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6803. },
  6804. /**
  6805. *
  6806. * @param {*} [options] Override http request option.
  6807. * @throws {RequiredError}
  6808. */
  6809. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6810. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  6811. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6812. },
  6813. /**
  6814. * Get all AssetEntity belong to the user
  6815. * @param {string} [userId]
  6816. * @param {boolean} [isFavorite]
  6817. * @param {boolean} [isArchived]
  6818. * @param {number} [skip]
  6819. * @param {string} [updatedAfter]
  6820. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6821. * @param {*} [options] Override http request option.
  6822. * @throws {RequiredError}
  6823. */
  6824. async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6825. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
  6826. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6827. },
  6828. /**
  6829. * Get a single asset\'s information
  6830. * @param {string} id
  6831. * @param {string} [key]
  6832. * @param {*} [options] Override http request option.
  6833. * @throws {RequiredError}
  6834. */
  6835. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  6836. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  6837. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6838. },
  6839. /**
  6840. *
  6841. * @param {*} [options] Override http request option.
  6842. * @throws {RequiredError}
  6843. */
  6844. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6845. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  6846. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6847. },
  6848. /**
  6849. *
  6850. * @param {boolean} [isArchived]
  6851. * @param {boolean} [isFavorite]
  6852. * @param {boolean} [isTrashed]
  6853. * @param {*} [options] Override http request option.
  6854. * @throws {RequiredError}
  6855. */
  6856. async getAssetStats(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  6857. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStats(isArchived, isFavorite, isTrashed, options);
  6858. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6859. },
  6860. /**
  6861. *
  6862. * @param {string} id
  6863. * @param {ThumbnailFormat} [format]
  6864. * @param {string} [key]
  6865. * @param {*} [options] Override http request option.
  6866. * @throws {RequiredError}
  6867. */
  6868. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6869. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  6870. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6871. },
  6872. /**
  6873. *
  6874. * @param {TimeBucketSize} size
  6875. * @param {string} timeBucket
  6876. * @param {string} [userId]
  6877. * @param {string} [albumId]
  6878. * @param {string} [personId]
  6879. * @param {boolean} [isArchived]
  6880. * @param {boolean} [isFavorite]
  6881. * @param {boolean} [isTrashed]
  6882. * @param {string} [key]
  6883. * @param {*} [options] Override http request option.
  6884. * @throws {RequiredError}
  6885. */
  6886. 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>>> {
  6887. const localVarAxiosArgs = await localVarAxiosParamCreator.getByTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, key, options);
  6888. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6889. },
  6890. /**
  6891. *
  6892. * @param {*} [options] Override http request option.
  6893. * @throws {RequiredError}
  6894. */
  6895. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  6896. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  6897. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6898. },
  6899. /**
  6900. *
  6901. * @param {*} [options] Override http request option.
  6902. * @throws {RequiredError}
  6903. */
  6904. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  6905. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  6906. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6907. },
  6908. /**
  6909. *
  6910. * @param {DownloadInfoDto} downloadInfoDto
  6911. * @param {string} [key]
  6912. * @param {*} [options] Override http request option.
  6913. * @throws {RequiredError}
  6914. */
  6915. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  6916. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  6917. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6918. },
  6919. /**
  6920. *
  6921. * @param {boolean} [isArchived]
  6922. * @param {boolean} [isFavorite]
  6923. * @param {string} [fileCreatedAfter]
  6924. * @param {string} [fileCreatedBefore]
  6925. * @param {*} [options] Override http request option.
  6926. * @throws {RequiredError}
  6927. */
  6928. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  6929. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  6930. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6931. },
  6932. /**
  6933. *
  6934. * @param {number} day
  6935. * @param {number} month
  6936. * @param {*} [options] Override http request option.
  6937. * @throws {RequiredError}
  6938. */
  6939. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  6940. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  6941. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6942. },
  6943. /**
  6944. *
  6945. * @param {number} [count]
  6946. * @param {*} [options] Override http request option.
  6947. * @throws {RequiredError}
  6948. */
  6949. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6950. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  6951. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6952. },
  6953. /**
  6954. *
  6955. * @param {TimeBucketSize} size
  6956. * @param {string} [userId]
  6957. * @param {string} [albumId]
  6958. * @param {string} [personId]
  6959. * @param {boolean} [isArchived]
  6960. * @param {boolean} [isFavorite]
  6961. * @param {boolean} [isTrashed]
  6962. * @param {string} [key]
  6963. * @param {*} [options] Override http request option.
  6964. * @throws {RequiredError}
  6965. */
  6966. 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>>> {
  6967. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, key, options);
  6968. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6969. },
  6970. /**
  6971. * Get all asset of a device that are in the database, ID only.
  6972. * @param {string} deviceId
  6973. * @param {*} [options] Override http request option.
  6974. * @throws {RequiredError}
  6975. */
  6976. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6977. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  6978. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6979. },
  6980. /**
  6981. *
  6982. * @param {ImportAssetDto} importAssetDto
  6983. * @param {*} [options] Override http request option.
  6984. * @throws {RequiredError}
  6985. */
  6986. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  6987. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  6988. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6989. },
  6990. /**
  6991. *
  6992. * @param {BulkIdsDto} bulkIdsDto
  6993. * @param {*} [options] Override http request option.
  6994. * @throws {RequiredError}
  6995. */
  6996. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6997. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  6998. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6999. },
  7000. /**
  7001. *
  7002. * @param {*} [options] Override http request option.
  7003. * @throws {RequiredError}
  7004. */
  7005. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7006. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7007. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7008. },
  7009. /**
  7010. *
  7011. * @param {AssetJobsDto} assetJobsDto
  7012. * @param {*} [options] Override http request option.
  7013. * @throws {RequiredError}
  7014. */
  7015. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7016. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7017. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7018. },
  7019. /**
  7020. *
  7021. * @param {SearchAssetDto} searchAssetDto
  7022. * @param {*} [options] Override http request option.
  7023. * @throws {RequiredError}
  7024. */
  7025. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7026. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  7027. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7028. },
  7029. /**
  7030. *
  7031. * @param {string} id
  7032. * @param {boolean} [isThumb]
  7033. * @param {boolean} [isWeb]
  7034. * @param {string} [key]
  7035. * @param {*} [options] Override http request option.
  7036. * @throws {RequiredError}
  7037. */
  7038. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7039. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7040. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7041. },
  7042. /**
  7043. *
  7044. * @param {string} id
  7045. * @param {UpdateAssetDto} updateAssetDto
  7046. * @param {*} [options] Override http request option.
  7047. * @throws {RequiredError}
  7048. */
  7049. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7050. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7051. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7052. },
  7053. /**
  7054. *
  7055. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7056. * @param {*} [options] Override http request option.
  7057. * @throws {RequiredError}
  7058. */
  7059. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7060. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7061. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7062. },
  7063. /**
  7064. *
  7065. * @param {UpdateStackParentDto} updateStackParentDto
  7066. * @param {*} [options] Override http request option.
  7067. * @throws {RequiredError}
  7068. */
  7069. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7070. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7071. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7072. },
  7073. /**
  7074. *
  7075. * @param {File} assetData
  7076. * @param {string} deviceAssetId
  7077. * @param {string} deviceId
  7078. * @param {string} fileCreatedAt
  7079. * @param {string} fileModifiedAt
  7080. * @param {boolean} isFavorite
  7081. * @param {string} [key]
  7082. * @param {string} [duration]
  7083. * @param {boolean} [isArchived]
  7084. * @param {boolean} [isExternal]
  7085. * @param {boolean} [isOffline]
  7086. * @param {boolean} [isReadOnly]
  7087. * @param {boolean} [isVisible]
  7088. * @param {string} [libraryId]
  7089. * @param {File} [livePhotoData]
  7090. * @param {File} [sidecarData]
  7091. * @param {*} [options] Override http request option.
  7092. * @throws {RequiredError}
  7093. */
  7094. 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>> {
  7095. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isExternal, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7096. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7097. },
  7098. }
  7099. };
  7100. /**
  7101. * AssetApi - factory interface
  7102. * @export
  7103. */
  7104. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7105. const localVarFp = AssetApiFp(configuration)
  7106. return {
  7107. /**
  7108. * Checks if assets exist by checksums
  7109. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  7110. * @param {*} [options] Override http request option.
  7111. * @throws {RequiredError}
  7112. */
  7113. bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7114. return localVarFp.bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7115. },
  7116. /**
  7117. * Check duplicated asset before uploading - for Web upload used
  7118. * @param {AssetApiCheckDuplicateAssetRequest} requestParameters Request parameters.
  7119. * @param {*} [options] Override http request option.
  7120. * @throws {RequiredError}
  7121. */
  7122. checkDuplicateAsset(requestParameters: AssetApiCheckDuplicateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<CheckDuplicateAssetResponseDto> {
  7123. return localVarFp.checkDuplicateAsset(requestParameters.checkDuplicateAssetDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7124. },
  7125. /**
  7126. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7127. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7128. * @param {*} [options] Override http request option.
  7129. * @throws {RequiredError}
  7130. */
  7131. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7132. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7133. },
  7134. /**
  7135. *
  7136. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7137. * @param {*} [options] Override http request option.
  7138. * @throws {RequiredError}
  7139. */
  7140. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7141. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7142. },
  7143. /**
  7144. *
  7145. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7146. * @param {*} [options] Override http request option.
  7147. * @throws {RequiredError}
  7148. */
  7149. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7150. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7151. },
  7152. /**
  7153. *
  7154. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7155. * @param {*} [options] Override http request option.
  7156. * @throws {RequiredError}
  7157. */
  7158. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7159. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7160. },
  7161. /**
  7162. *
  7163. * @param {*} [options] Override http request option.
  7164. * @throws {RequiredError}
  7165. */
  7166. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7167. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7168. },
  7169. /**
  7170. * Get all AssetEntity belong to the user
  7171. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7172. * @param {*} [options] Override http request option.
  7173. * @throws {RequiredError}
  7174. */
  7175. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7176. return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7177. },
  7178. /**
  7179. * Get a single asset\'s information
  7180. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7181. * @param {*} [options] Override http request option.
  7182. * @throws {RequiredError}
  7183. */
  7184. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7185. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7186. },
  7187. /**
  7188. *
  7189. * @param {*} [options] Override http request option.
  7190. * @throws {RequiredError}
  7191. */
  7192. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7193. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7194. },
  7195. /**
  7196. *
  7197. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  7198. * @param {*} [options] Override http request option.
  7199. * @throws {RequiredError}
  7200. */
  7201. getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7202. return localVarFp.getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7203. },
  7204. /**
  7205. *
  7206. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7207. * @param {*} [options] Override http request option.
  7208. * @throws {RequiredError}
  7209. */
  7210. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7211. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7212. },
  7213. /**
  7214. *
  7215. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  7216. * @param {*} [options] Override http request option.
  7217. * @throws {RequiredError}
  7218. */
  7219. getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7220. 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));
  7221. },
  7222. /**
  7223. *
  7224. * @param {*} [options] Override http request option.
  7225. * @throws {RequiredError}
  7226. */
  7227. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7228. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7229. },
  7230. /**
  7231. *
  7232. * @param {*} [options] Override http request option.
  7233. * @throws {RequiredError}
  7234. */
  7235. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7236. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7237. },
  7238. /**
  7239. *
  7240. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7241. * @param {*} [options] Override http request option.
  7242. * @throws {RequiredError}
  7243. */
  7244. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7245. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7246. },
  7247. /**
  7248. *
  7249. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7250. * @param {*} [options] Override http request option.
  7251. * @throws {RequiredError}
  7252. */
  7253. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7254. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7255. },
  7256. /**
  7257. *
  7258. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7259. * @param {*} [options] Override http request option.
  7260. * @throws {RequiredError}
  7261. */
  7262. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7263. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7264. },
  7265. /**
  7266. *
  7267. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7268. * @param {*} [options] Override http request option.
  7269. * @throws {RequiredError}
  7270. */
  7271. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7272. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7273. },
  7274. /**
  7275. *
  7276. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7277. * @param {*} [options] Override http request option.
  7278. * @throws {RequiredError}
  7279. */
  7280. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7281. 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));
  7282. },
  7283. /**
  7284. * Get all asset of a device that are in the database, ID only.
  7285. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7286. * @param {*} [options] Override http request option.
  7287. * @throws {RequiredError}
  7288. */
  7289. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7290. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7291. },
  7292. /**
  7293. *
  7294. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7295. * @param {*} [options] Override http request option.
  7296. * @throws {RequiredError}
  7297. */
  7298. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7299. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7300. },
  7301. /**
  7302. *
  7303. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7304. * @param {*} [options] Override http request option.
  7305. * @throws {RequiredError}
  7306. */
  7307. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7308. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7309. },
  7310. /**
  7311. *
  7312. * @param {*} [options] Override http request option.
  7313. * @throws {RequiredError}
  7314. */
  7315. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7316. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  7317. },
  7318. /**
  7319. *
  7320. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  7321. * @param {*} [options] Override http request option.
  7322. * @throws {RequiredError}
  7323. */
  7324. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7325. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  7326. },
  7327. /**
  7328. *
  7329. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  7330. * @param {*} [options] Override http request option.
  7331. * @throws {RequiredError}
  7332. */
  7333. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7334. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  7335. },
  7336. /**
  7337. *
  7338. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  7339. * @param {*} [options] Override http request option.
  7340. * @throws {RequiredError}
  7341. */
  7342. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7343. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  7344. },
  7345. /**
  7346. *
  7347. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  7348. * @param {*} [options] Override http request option.
  7349. * @throws {RequiredError}
  7350. */
  7351. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7352. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  7353. },
  7354. /**
  7355. *
  7356. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  7357. * @param {*} [options] Override http request option.
  7358. * @throws {RequiredError}
  7359. */
  7360. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7361. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  7362. },
  7363. /**
  7364. *
  7365. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  7366. * @param {*} [options] Override http request option.
  7367. * @throws {RequiredError}
  7368. */
  7369. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7370. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  7371. },
  7372. /**
  7373. *
  7374. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  7375. * @param {*} [options] Override http request option.
  7376. * @throws {RequiredError}
  7377. */
  7378. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7379. 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));
  7380. },
  7381. };
  7382. };
  7383. /**
  7384. * Request parameters for bulkUploadCheck operation in AssetApi.
  7385. * @export
  7386. * @interface AssetApiBulkUploadCheckRequest
  7387. */
  7388. export interface AssetApiBulkUploadCheckRequest {
  7389. /**
  7390. *
  7391. * @type {AssetBulkUploadCheckDto}
  7392. * @memberof AssetApiBulkUploadCheck
  7393. */
  7394. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  7395. }
  7396. /**
  7397. * Request parameters for checkDuplicateAsset operation in AssetApi.
  7398. * @export
  7399. * @interface AssetApiCheckDuplicateAssetRequest
  7400. */
  7401. export interface AssetApiCheckDuplicateAssetRequest {
  7402. /**
  7403. *
  7404. * @type {CheckDuplicateAssetDto}
  7405. * @memberof AssetApiCheckDuplicateAsset
  7406. */
  7407. readonly checkDuplicateAssetDto: CheckDuplicateAssetDto
  7408. /**
  7409. *
  7410. * @type {string}
  7411. * @memberof AssetApiCheckDuplicateAsset
  7412. */
  7413. readonly key?: string
  7414. }
  7415. /**
  7416. * Request parameters for checkExistingAssets operation in AssetApi.
  7417. * @export
  7418. * @interface AssetApiCheckExistingAssetsRequest
  7419. */
  7420. export interface AssetApiCheckExistingAssetsRequest {
  7421. /**
  7422. *
  7423. * @type {CheckExistingAssetsDto}
  7424. * @memberof AssetApiCheckExistingAssets
  7425. */
  7426. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  7427. }
  7428. /**
  7429. * Request parameters for deleteAssets operation in AssetApi.
  7430. * @export
  7431. * @interface AssetApiDeleteAssetsRequest
  7432. */
  7433. export interface AssetApiDeleteAssetsRequest {
  7434. /**
  7435. *
  7436. * @type {AssetBulkDeleteDto}
  7437. * @memberof AssetApiDeleteAssets
  7438. */
  7439. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  7440. }
  7441. /**
  7442. * Request parameters for downloadArchive operation in AssetApi.
  7443. * @export
  7444. * @interface AssetApiDownloadArchiveRequest
  7445. */
  7446. export interface AssetApiDownloadArchiveRequest {
  7447. /**
  7448. *
  7449. * @type {AssetIdsDto}
  7450. * @memberof AssetApiDownloadArchive
  7451. */
  7452. readonly assetIdsDto: AssetIdsDto
  7453. /**
  7454. *
  7455. * @type {string}
  7456. * @memberof AssetApiDownloadArchive
  7457. */
  7458. readonly key?: string
  7459. }
  7460. /**
  7461. * Request parameters for downloadFile operation in AssetApi.
  7462. * @export
  7463. * @interface AssetApiDownloadFileRequest
  7464. */
  7465. export interface AssetApiDownloadFileRequest {
  7466. /**
  7467. *
  7468. * @type {string}
  7469. * @memberof AssetApiDownloadFile
  7470. */
  7471. readonly id: string
  7472. /**
  7473. *
  7474. * @type {string}
  7475. * @memberof AssetApiDownloadFile
  7476. */
  7477. readonly key?: string
  7478. }
  7479. /**
  7480. * Request parameters for getAllAssets operation in AssetApi.
  7481. * @export
  7482. * @interface AssetApiGetAllAssetsRequest
  7483. */
  7484. export interface AssetApiGetAllAssetsRequest {
  7485. /**
  7486. *
  7487. * @type {string}
  7488. * @memberof AssetApiGetAllAssets
  7489. */
  7490. readonly userId?: string
  7491. /**
  7492. *
  7493. * @type {boolean}
  7494. * @memberof AssetApiGetAllAssets
  7495. */
  7496. readonly isFavorite?: boolean
  7497. /**
  7498. *
  7499. * @type {boolean}
  7500. * @memberof AssetApiGetAllAssets
  7501. */
  7502. readonly isArchived?: boolean
  7503. /**
  7504. *
  7505. * @type {number}
  7506. * @memberof AssetApiGetAllAssets
  7507. */
  7508. readonly skip?: number
  7509. /**
  7510. *
  7511. * @type {string}
  7512. * @memberof AssetApiGetAllAssets
  7513. */
  7514. readonly updatedAfter?: string
  7515. /**
  7516. * ETag of data already cached on the client
  7517. * @type {string}
  7518. * @memberof AssetApiGetAllAssets
  7519. */
  7520. readonly ifNoneMatch?: string
  7521. }
  7522. /**
  7523. * Request parameters for getAssetById operation in AssetApi.
  7524. * @export
  7525. * @interface AssetApiGetAssetByIdRequest
  7526. */
  7527. export interface AssetApiGetAssetByIdRequest {
  7528. /**
  7529. *
  7530. * @type {string}
  7531. * @memberof AssetApiGetAssetById
  7532. */
  7533. readonly id: string
  7534. /**
  7535. *
  7536. * @type {string}
  7537. * @memberof AssetApiGetAssetById
  7538. */
  7539. readonly key?: string
  7540. }
  7541. /**
  7542. * Request parameters for getAssetStats operation in AssetApi.
  7543. * @export
  7544. * @interface AssetApiGetAssetStatsRequest
  7545. */
  7546. export interface AssetApiGetAssetStatsRequest {
  7547. /**
  7548. *
  7549. * @type {boolean}
  7550. * @memberof AssetApiGetAssetStats
  7551. */
  7552. readonly isArchived?: boolean
  7553. /**
  7554. *
  7555. * @type {boolean}
  7556. * @memberof AssetApiGetAssetStats
  7557. */
  7558. readonly isFavorite?: boolean
  7559. /**
  7560. *
  7561. * @type {boolean}
  7562. * @memberof AssetApiGetAssetStats
  7563. */
  7564. readonly isTrashed?: boolean
  7565. }
  7566. /**
  7567. * Request parameters for getAssetThumbnail operation in AssetApi.
  7568. * @export
  7569. * @interface AssetApiGetAssetThumbnailRequest
  7570. */
  7571. export interface AssetApiGetAssetThumbnailRequest {
  7572. /**
  7573. *
  7574. * @type {string}
  7575. * @memberof AssetApiGetAssetThumbnail
  7576. */
  7577. readonly id: string
  7578. /**
  7579. *
  7580. * @type {ThumbnailFormat}
  7581. * @memberof AssetApiGetAssetThumbnail
  7582. */
  7583. readonly format?: ThumbnailFormat
  7584. /**
  7585. *
  7586. * @type {string}
  7587. * @memberof AssetApiGetAssetThumbnail
  7588. */
  7589. readonly key?: string
  7590. }
  7591. /**
  7592. * Request parameters for getByTimeBucket operation in AssetApi.
  7593. * @export
  7594. * @interface AssetApiGetByTimeBucketRequest
  7595. */
  7596. export interface AssetApiGetByTimeBucketRequest {
  7597. /**
  7598. *
  7599. * @type {TimeBucketSize}
  7600. * @memberof AssetApiGetByTimeBucket
  7601. */
  7602. readonly size: TimeBucketSize
  7603. /**
  7604. *
  7605. * @type {string}
  7606. * @memberof AssetApiGetByTimeBucket
  7607. */
  7608. readonly timeBucket: string
  7609. /**
  7610. *
  7611. * @type {string}
  7612. * @memberof AssetApiGetByTimeBucket
  7613. */
  7614. readonly userId?: string
  7615. /**
  7616. *
  7617. * @type {string}
  7618. * @memberof AssetApiGetByTimeBucket
  7619. */
  7620. readonly albumId?: string
  7621. /**
  7622. *
  7623. * @type {string}
  7624. * @memberof AssetApiGetByTimeBucket
  7625. */
  7626. readonly personId?: string
  7627. /**
  7628. *
  7629. * @type {boolean}
  7630. * @memberof AssetApiGetByTimeBucket
  7631. */
  7632. readonly isArchived?: boolean
  7633. /**
  7634. *
  7635. * @type {boolean}
  7636. * @memberof AssetApiGetByTimeBucket
  7637. */
  7638. readonly isFavorite?: boolean
  7639. /**
  7640. *
  7641. * @type {boolean}
  7642. * @memberof AssetApiGetByTimeBucket
  7643. */
  7644. readonly isTrashed?: boolean
  7645. /**
  7646. *
  7647. * @type {string}
  7648. * @memberof AssetApiGetByTimeBucket
  7649. */
  7650. readonly key?: string
  7651. }
  7652. /**
  7653. * Request parameters for getDownloadInfo operation in AssetApi.
  7654. * @export
  7655. * @interface AssetApiGetDownloadInfoRequest
  7656. */
  7657. export interface AssetApiGetDownloadInfoRequest {
  7658. /**
  7659. *
  7660. * @type {DownloadInfoDto}
  7661. * @memberof AssetApiGetDownloadInfo
  7662. */
  7663. readonly downloadInfoDto: DownloadInfoDto
  7664. /**
  7665. *
  7666. * @type {string}
  7667. * @memberof AssetApiGetDownloadInfo
  7668. */
  7669. readonly key?: string
  7670. }
  7671. /**
  7672. * Request parameters for getMapMarkers operation in AssetApi.
  7673. * @export
  7674. * @interface AssetApiGetMapMarkersRequest
  7675. */
  7676. export interface AssetApiGetMapMarkersRequest {
  7677. /**
  7678. *
  7679. * @type {boolean}
  7680. * @memberof AssetApiGetMapMarkers
  7681. */
  7682. readonly isArchived?: boolean
  7683. /**
  7684. *
  7685. * @type {boolean}
  7686. * @memberof AssetApiGetMapMarkers
  7687. */
  7688. readonly isFavorite?: boolean
  7689. /**
  7690. *
  7691. * @type {string}
  7692. * @memberof AssetApiGetMapMarkers
  7693. */
  7694. readonly fileCreatedAfter?: string
  7695. /**
  7696. *
  7697. * @type {string}
  7698. * @memberof AssetApiGetMapMarkers
  7699. */
  7700. readonly fileCreatedBefore?: string
  7701. }
  7702. /**
  7703. * Request parameters for getMemoryLane operation in AssetApi.
  7704. * @export
  7705. * @interface AssetApiGetMemoryLaneRequest
  7706. */
  7707. export interface AssetApiGetMemoryLaneRequest {
  7708. /**
  7709. *
  7710. * @type {number}
  7711. * @memberof AssetApiGetMemoryLane
  7712. */
  7713. readonly day: number
  7714. /**
  7715. *
  7716. * @type {number}
  7717. * @memberof AssetApiGetMemoryLane
  7718. */
  7719. readonly month: number
  7720. }
  7721. /**
  7722. * Request parameters for getRandom operation in AssetApi.
  7723. * @export
  7724. * @interface AssetApiGetRandomRequest
  7725. */
  7726. export interface AssetApiGetRandomRequest {
  7727. /**
  7728. *
  7729. * @type {number}
  7730. * @memberof AssetApiGetRandom
  7731. */
  7732. readonly count?: number
  7733. }
  7734. /**
  7735. * Request parameters for getTimeBuckets operation in AssetApi.
  7736. * @export
  7737. * @interface AssetApiGetTimeBucketsRequest
  7738. */
  7739. export interface AssetApiGetTimeBucketsRequest {
  7740. /**
  7741. *
  7742. * @type {TimeBucketSize}
  7743. * @memberof AssetApiGetTimeBuckets
  7744. */
  7745. readonly size: TimeBucketSize
  7746. /**
  7747. *
  7748. * @type {string}
  7749. * @memberof AssetApiGetTimeBuckets
  7750. */
  7751. readonly userId?: string
  7752. /**
  7753. *
  7754. * @type {string}
  7755. * @memberof AssetApiGetTimeBuckets
  7756. */
  7757. readonly albumId?: string
  7758. /**
  7759. *
  7760. * @type {string}
  7761. * @memberof AssetApiGetTimeBuckets
  7762. */
  7763. readonly personId?: string
  7764. /**
  7765. *
  7766. * @type {boolean}
  7767. * @memberof AssetApiGetTimeBuckets
  7768. */
  7769. readonly isArchived?: boolean
  7770. /**
  7771. *
  7772. * @type {boolean}
  7773. * @memberof AssetApiGetTimeBuckets
  7774. */
  7775. readonly isFavorite?: boolean
  7776. /**
  7777. *
  7778. * @type {boolean}
  7779. * @memberof AssetApiGetTimeBuckets
  7780. */
  7781. readonly isTrashed?: boolean
  7782. /**
  7783. *
  7784. * @type {string}
  7785. * @memberof AssetApiGetTimeBuckets
  7786. */
  7787. readonly key?: string
  7788. }
  7789. /**
  7790. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  7791. * @export
  7792. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  7793. */
  7794. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  7795. /**
  7796. *
  7797. * @type {string}
  7798. * @memberof AssetApiGetUserAssetsByDeviceId
  7799. */
  7800. readonly deviceId: string
  7801. }
  7802. /**
  7803. * Request parameters for importFile operation in AssetApi.
  7804. * @export
  7805. * @interface AssetApiImportFileRequest
  7806. */
  7807. export interface AssetApiImportFileRequest {
  7808. /**
  7809. *
  7810. * @type {ImportAssetDto}
  7811. * @memberof AssetApiImportFile
  7812. */
  7813. readonly importAssetDto: ImportAssetDto
  7814. }
  7815. /**
  7816. * Request parameters for restoreAssets operation in AssetApi.
  7817. * @export
  7818. * @interface AssetApiRestoreAssetsRequest
  7819. */
  7820. export interface AssetApiRestoreAssetsRequest {
  7821. /**
  7822. *
  7823. * @type {BulkIdsDto}
  7824. * @memberof AssetApiRestoreAssets
  7825. */
  7826. readonly bulkIdsDto: BulkIdsDto
  7827. }
  7828. /**
  7829. * Request parameters for runAssetJobs operation in AssetApi.
  7830. * @export
  7831. * @interface AssetApiRunAssetJobsRequest
  7832. */
  7833. export interface AssetApiRunAssetJobsRequest {
  7834. /**
  7835. *
  7836. * @type {AssetJobsDto}
  7837. * @memberof AssetApiRunAssetJobs
  7838. */
  7839. readonly assetJobsDto: AssetJobsDto
  7840. }
  7841. /**
  7842. * Request parameters for searchAsset operation in AssetApi.
  7843. * @export
  7844. * @interface AssetApiSearchAssetRequest
  7845. */
  7846. export interface AssetApiSearchAssetRequest {
  7847. /**
  7848. *
  7849. * @type {SearchAssetDto}
  7850. * @memberof AssetApiSearchAsset
  7851. */
  7852. readonly searchAssetDto: SearchAssetDto
  7853. }
  7854. /**
  7855. * Request parameters for serveFile operation in AssetApi.
  7856. * @export
  7857. * @interface AssetApiServeFileRequest
  7858. */
  7859. export interface AssetApiServeFileRequest {
  7860. /**
  7861. *
  7862. * @type {string}
  7863. * @memberof AssetApiServeFile
  7864. */
  7865. readonly id: string
  7866. /**
  7867. *
  7868. * @type {boolean}
  7869. * @memberof AssetApiServeFile
  7870. */
  7871. readonly isThumb?: boolean
  7872. /**
  7873. *
  7874. * @type {boolean}
  7875. * @memberof AssetApiServeFile
  7876. */
  7877. readonly isWeb?: boolean
  7878. /**
  7879. *
  7880. * @type {string}
  7881. * @memberof AssetApiServeFile
  7882. */
  7883. readonly key?: string
  7884. }
  7885. /**
  7886. * Request parameters for updateAsset operation in AssetApi.
  7887. * @export
  7888. * @interface AssetApiUpdateAssetRequest
  7889. */
  7890. export interface AssetApiUpdateAssetRequest {
  7891. /**
  7892. *
  7893. * @type {string}
  7894. * @memberof AssetApiUpdateAsset
  7895. */
  7896. readonly id: string
  7897. /**
  7898. *
  7899. * @type {UpdateAssetDto}
  7900. * @memberof AssetApiUpdateAsset
  7901. */
  7902. readonly updateAssetDto: UpdateAssetDto
  7903. }
  7904. /**
  7905. * Request parameters for updateAssets operation in AssetApi.
  7906. * @export
  7907. * @interface AssetApiUpdateAssetsRequest
  7908. */
  7909. export interface AssetApiUpdateAssetsRequest {
  7910. /**
  7911. *
  7912. * @type {AssetBulkUpdateDto}
  7913. * @memberof AssetApiUpdateAssets
  7914. */
  7915. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  7916. }
  7917. /**
  7918. * Request parameters for updateStackParent operation in AssetApi.
  7919. * @export
  7920. * @interface AssetApiUpdateStackParentRequest
  7921. */
  7922. export interface AssetApiUpdateStackParentRequest {
  7923. /**
  7924. *
  7925. * @type {UpdateStackParentDto}
  7926. * @memberof AssetApiUpdateStackParent
  7927. */
  7928. readonly updateStackParentDto: UpdateStackParentDto
  7929. }
  7930. /**
  7931. * Request parameters for uploadFile operation in AssetApi.
  7932. * @export
  7933. * @interface AssetApiUploadFileRequest
  7934. */
  7935. export interface AssetApiUploadFileRequest {
  7936. /**
  7937. *
  7938. * @type {File}
  7939. * @memberof AssetApiUploadFile
  7940. */
  7941. readonly assetData: File
  7942. /**
  7943. *
  7944. * @type {string}
  7945. * @memberof AssetApiUploadFile
  7946. */
  7947. readonly deviceAssetId: string
  7948. /**
  7949. *
  7950. * @type {string}
  7951. * @memberof AssetApiUploadFile
  7952. */
  7953. readonly deviceId: string
  7954. /**
  7955. *
  7956. * @type {string}
  7957. * @memberof AssetApiUploadFile
  7958. */
  7959. readonly fileCreatedAt: string
  7960. /**
  7961. *
  7962. * @type {string}
  7963. * @memberof AssetApiUploadFile
  7964. */
  7965. readonly fileModifiedAt: string
  7966. /**
  7967. *
  7968. * @type {boolean}
  7969. * @memberof AssetApiUploadFile
  7970. */
  7971. readonly isFavorite: boolean
  7972. /**
  7973. *
  7974. * @type {string}
  7975. * @memberof AssetApiUploadFile
  7976. */
  7977. readonly key?: string
  7978. /**
  7979. *
  7980. * @type {string}
  7981. * @memberof AssetApiUploadFile
  7982. */
  7983. readonly duration?: string
  7984. /**
  7985. *
  7986. * @type {boolean}
  7987. * @memberof AssetApiUploadFile
  7988. */
  7989. readonly isArchived?: boolean
  7990. /**
  7991. *
  7992. * @type {boolean}
  7993. * @memberof AssetApiUploadFile
  7994. */
  7995. readonly isExternal?: boolean
  7996. /**
  7997. *
  7998. * @type {boolean}
  7999. * @memberof AssetApiUploadFile
  8000. */
  8001. readonly isOffline?: boolean
  8002. /**
  8003. *
  8004. * @type {boolean}
  8005. * @memberof AssetApiUploadFile
  8006. */
  8007. readonly isReadOnly?: boolean
  8008. /**
  8009. *
  8010. * @type {boolean}
  8011. * @memberof AssetApiUploadFile
  8012. */
  8013. readonly isVisible?: boolean
  8014. /**
  8015. *
  8016. * @type {string}
  8017. * @memberof AssetApiUploadFile
  8018. */
  8019. readonly libraryId?: string
  8020. /**
  8021. *
  8022. * @type {File}
  8023. * @memberof AssetApiUploadFile
  8024. */
  8025. readonly livePhotoData?: File
  8026. /**
  8027. *
  8028. * @type {File}
  8029. * @memberof AssetApiUploadFile
  8030. */
  8031. readonly sidecarData?: File
  8032. }
  8033. /**
  8034. * AssetApi - object-oriented interface
  8035. * @export
  8036. * @class AssetApi
  8037. * @extends {BaseAPI}
  8038. */
  8039. export class AssetApi extends BaseAPI {
  8040. /**
  8041. * Checks if assets exist by checksums
  8042. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  8043. * @param {*} [options] Override http request option.
  8044. * @throws {RequiredError}
  8045. * @memberof AssetApi
  8046. */
  8047. public bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig) {
  8048. return AssetApiFp(this.configuration).bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  8049. }
  8050. /**
  8051. * Check duplicated asset before uploading - for Web upload used
  8052. * @param {AssetApiCheckDuplicateAssetRequest} requestParameters Request parameters.
  8053. * @param {*} [options] Override http request option.
  8054. * @throws {RequiredError}
  8055. * @memberof AssetApi
  8056. */
  8057. public checkDuplicateAsset(requestParameters: AssetApiCheckDuplicateAssetRequest, options?: AxiosRequestConfig) {
  8058. return AssetApiFp(this.configuration).checkDuplicateAsset(requestParameters.checkDuplicateAssetDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8059. }
  8060. /**
  8061. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  8062. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  8063. * @param {*} [options] Override http request option.
  8064. * @throws {RequiredError}
  8065. * @memberof AssetApi
  8066. */
  8067. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  8068. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  8069. }
  8070. /**
  8071. *
  8072. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  8073. * @param {*} [options] Override http request option.
  8074. * @throws {RequiredError}
  8075. * @memberof AssetApi
  8076. */
  8077. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  8078. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  8079. }
  8080. /**
  8081. *
  8082. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  8083. * @param {*} [options] Override http request option.
  8084. * @throws {RequiredError}
  8085. * @memberof AssetApi
  8086. */
  8087. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  8088. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8089. }
  8090. /**
  8091. *
  8092. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  8093. * @param {*} [options] Override http request option.
  8094. * @throws {RequiredError}
  8095. * @memberof AssetApi
  8096. */
  8097. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  8098. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8099. }
  8100. /**
  8101. *
  8102. * @param {*} [options] Override http request option.
  8103. * @throws {RequiredError}
  8104. * @memberof AssetApi
  8105. */
  8106. public emptyTrash(options?: AxiosRequestConfig) {
  8107. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  8108. }
  8109. /**
  8110. * Get all AssetEntity belong to the user
  8111. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  8112. * @param {*} [options] Override http request option.
  8113. * @throws {RequiredError}
  8114. * @memberof AssetApi
  8115. */
  8116. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  8117. 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));
  8118. }
  8119. /**
  8120. * Get a single asset\'s information
  8121. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8122. * @param {*} [options] Override http request option.
  8123. * @throws {RequiredError}
  8124. * @memberof AssetApi
  8125. */
  8126. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  8127. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8128. }
  8129. /**
  8130. *
  8131. * @param {*} [options] Override http request option.
  8132. * @throws {RequiredError}
  8133. * @memberof AssetApi
  8134. */
  8135. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  8136. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  8137. }
  8138. /**
  8139. *
  8140. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  8141. * @param {*} [options] Override http request option.
  8142. * @throws {RequiredError}
  8143. * @memberof AssetApi
  8144. */
  8145. public getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig) {
  8146. return AssetApiFp(this.configuration).getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  8147. }
  8148. /**
  8149. *
  8150. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8151. * @param {*} [options] Override http request option.
  8152. * @throws {RequiredError}
  8153. * @memberof AssetApi
  8154. */
  8155. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  8156. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8157. }
  8158. /**
  8159. *
  8160. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  8161. * @param {*} [options] Override http request option.
  8162. * @throws {RequiredError}
  8163. * @memberof AssetApi
  8164. */
  8165. public getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig) {
  8166. 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));
  8167. }
  8168. /**
  8169. *
  8170. * @param {*} [options] Override http request option.
  8171. * @throws {RequiredError}
  8172. * @memberof AssetApi
  8173. */
  8174. public getCuratedLocations(options?: AxiosRequestConfig) {
  8175. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  8176. }
  8177. /**
  8178. *
  8179. * @param {*} [options] Override http request option.
  8180. * @throws {RequiredError}
  8181. * @memberof AssetApi
  8182. */
  8183. public getCuratedObjects(options?: AxiosRequestConfig) {
  8184. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  8185. }
  8186. /**
  8187. *
  8188. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8189. * @param {*} [options] Override http request option.
  8190. * @throws {RequiredError}
  8191. * @memberof AssetApi
  8192. */
  8193. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  8194. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8195. }
  8196. /**
  8197. *
  8198. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8199. * @param {*} [options] Override http request option.
  8200. * @throws {RequiredError}
  8201. * @memberof AssetApi
  8202. */
  8203. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  8204. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  8205. }
  8206. /**
  8207. *
  8208. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8209. * @param {*} [options] Override http request option.
  8210. * @throws {RequiredError}
  8211. * @memberof AssetApi
  8212. */
  8213. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  8214. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  8215. }
  8216. /**
  8217. *
  8218. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8219. * @param {*} [options] Override http request option.
  8220. * @throws {RequiredError}
  8221. * @memberof AssetApi
  8222. */
  8223. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  8224. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  8225. }
  8226. /**
  8227. *
  8228. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8229. * @param {*} [options] Override http request option.
  8230. * @throws {RequiredError}
  8231. * @memberof AssetApi
  8232. */
  8233. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  8234. 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));
  8235. }
  8236. /**
  8237. * Get all asset of a device that are in the database, ID only.
  8238. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8239. * @param {*} [options] Override http request option.
  8240. * @throws {RequiredError}
  8241. * @memberof AssetApi
  8242. */
  8243. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  8244. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  8245. }
  8246. /**
  8247. *
  8248. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  8249. * @param {*} [options] Override http request option.
  8250. * @throws {RequiredError}
  8251. * @memberof AssetApi
  8252. */
  8253. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  8254. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8255. }
  8256. /**
  8257. *
  8258. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8259. * @param {*} [options] Override http request option.
  8260. * @throws {RequiredError}
  8261. * @memberof AssetApi
  8262. */
  8263. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8264. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8265. }
  8266. /**
  8267. *
  8268. * @param {*} [options] Override http request option.
  8269. * @throws {RequiredError}
  8270. * @memberof AssetApi
  8271. */
  8272. public restoreTrash(options?: AxiosRequestConfig) {
  8273. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8274. }
  8275. /**
  8276. *
  8277. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8278. * @param {*} [options] Override http request option.
  8279. * @throws {RequiredError}
  8280. * @memberof AssetApi
  8281. */
  8282. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8283. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8284. }
  8285. /**
  8286. *
  8287. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8288. * @param {*} [options] Override http request option.
  8289. * @throws {RequiredError}
  8290. * @memberof AssetApi
  8291. */
  8292. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8293. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8294. }
  8295. /**
  8296. *
  8297. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8298. * @param {*} [options] Override http request option.
  8299. * @throws {RequiredError}
  8300. * @memberof AssetApi
  8301. */
  8302. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8303. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8304. }
  8305. /**
  8306. *
  8307. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8308. * @param {*} [options] Override http request option.
  8309. * @throws {RequiredError}
  8310. * @memberof AssetApi
  8311. */
  8312. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  8313. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  8314. }
  8315. /**
  8316. *
  8317. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8318. * @param {*} [options] Override http request option.
  8319. * @throws {RequiredError}
  8320. * @memberof AssetApi
  8321. */
  8322. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  8323. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8324. }
  8325. /**
  8326. *
  8327. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8328. * @param {*} [options] Override http request option.
  8329. * @throws {RequiredError}
  8330. * @memberof AssetApi
  8331. */
  8332. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  8333. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  8334. }
  8335. /**
  8336. *
  8337. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8338. * @param {*} [options] Override http request option.
  8339. * @throws {RequiredError}
  8340. * @memberof AssetApi
  8341. */
  8342. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  8343. 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));
  8344. }
  8345. }
  8346. /**
  8347. * AuditApi - axios parameter creator
  8348. * @export
  8349. */
  8350. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  8351. return {
  8352. /**
  8353. *
  8354. * @param {FileReportFixDto} fileReportFixDto
  8355. * @param {*} [options] Override http request option.
  8356. * @throws {RequiredError}
  8357. */
  8358. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8359. // verify required parameter 'fileReportFixDto' is not null or undefined
  8360. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  8361. const localVarPath = `/audit/file-report/fix`;
  8362. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8363. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8364. let baseOptions;
  8365. if (configuration) {
  8366. baseOptions = configuration.baseOptions;
  8367. }
  8368. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8369. const localVarHeaderParameter = {} as any;
  8370. const localVarQueryParameter = {} as any;
  8371. // authentication cookie required
  8372. // authentication api_key required
  8373. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8374. // authentication bearer required
  8375. // http bearer authentication required
  8376. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8377. localVarHeaderParameter['Content-Type'] = 'application/json';
  8378. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8379. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8380. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8381. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  8382. return {
  8383. url: toPathString(localVarUrlObj),
  8384. options: localVarRequestOptions,
  8385. };
  8386. },
  8387. /**
  8388. *
  8389. * @param {EntityType} entityType
  8390. * @param {string} after
  8391. * @param {string} [userId]
  8392. * @param {*} [options] Override http request option.
  8393. * @throws {RequiredError}
  8394. */
  8395. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8396. // verify required parameter 'entityType' is not null or undefined
  8397. assertParamExists('getAuditDeletes', 'entityType', entityType)
  8398. // verify required parameter 'after' is not null or undefined
  8399. assertParamExists('getAuditDeletes', 'after', after)
  8400. const localVarPath = `/audit/deletes`;
  8401. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8402. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8403. let baseOptions;
  8404. if (configuration) {
  8405. baseOptions = configuration.baseOptions;
  8406. }
  8407. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8408. const localVarHeaderParameter = {} as any;
  8409. const localVarQueryParameter = {} as any;
  8410. // authentication cookie required
  8411. // authentication api_key required
  8412. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8413. // authentication bearer required
  8414. // http bearer authentication required
  8415. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8416. if (entityType !== undefined) {
  8417. localVarQueryParameter['entityType'] = entityType;
  8418. }
  8419. if (userId !== undefined) {
  8420. localVarQueryParameter['userId'] = userId;
  8421. }
  8422. if (after !== undefined) {
  8423. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  8424. (after as any).toISOString() :
  8425. after;
  8426. }
  8427. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8428. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8429. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8430. return {
  8431. url: toPathString(localVarUrlObj),
  8432. options: localVarRequestOptions,
  8433. };
  8434. },
  8435. /**
  8436. *
  8437. * @param {*} [options] Override http request option.
  8438. * @throws {RequiredError}
  8439. */
  8440. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8441. const localVarPath = `/audit/file-report`;
  8442. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8443. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8444. let baseOptions;
  8445. if (configuration) {
  8446. baseOptions = configuration.baseOptions;
  8447. }
  8448. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8449. const localVarHeaderParameter = {} as any;
  8450. const localVarQueryParameter = {} as any;
  8451. // authentication cookie required
  8452. // authentication api_key required
  8453. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8454. // authentication bearer required
  8455. // http bearer authentication required
  8456. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8457. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8458. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8459. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8460. return {
  8461. url: toPathString(localVarUrlObj),
  8462. options: localVarRequestOptions,
  8463. };
  8464. },
  8465. /**
  8466. *
  8467. * @param {FileChecksumDto} fileChecksumDto
  8468. * @param {*} [options] Override http request option.
  8469. * @throws {RequiredError}
  8470. */
  8471. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8472. // verify required parameter 'fileChecksumDto' is not null or undefined
  8473. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  8474. const localVarPath = `/audit/file-report/checksum`;
  8475. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8476. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8477. let baseOptions;
  8478. if (configuration) {
  8479. baseOptions = configuration.baseOptions;
  8480. }
  8481. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8482. const localVarHeaderParameter = {} as any;
  8483. const localVarQueryParameter = {} as any;
  8484. // authentication cookie required
  8485. // authentication api_key required
  8486. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8487. // authentication bearer required
  8488. // http bearer authentication required
  8489. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8490. localVarHeaderParameter['Content-Type'] = 'application/json';
  8491. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8492. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8493. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8494. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  8495. return {
  8496. url: toPathString(localVarUrlObj),
  8497. options: localVarRequestOptions,
  8498. };
  8499. },
  8500. }
  8501. };
  8502. /**
  8503. * AuditApi - functional programming interface
  8504. * @export
  8505. */
  8506. export const AuditApiFp = function(configuration?: Configuration) {
  8507. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  8508. return {
  8509. /**
  8510. *
  8511. * @param {FileReportFixDto} fileReportFixDto
  8512. * @param {*} [options] Override http request option.
  8513. * @throws {RequiredError}
  8514. */
  8515. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8516. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  8517. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8518. },
  8519. /**
  8520. *
  8521. * @param {EntityType} entityType
  8522. * @param {string} after
  8523. * @param {string} [userId]
  8524. * @param {*} [options] Override http request option.
  8525. * @throws {RequiredError}
  8526. */
  8527. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  8528. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  8529. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8530. },
  8531. /**
  8532. *
  8533. * @param {*} [options] Override http request option.
  8534. * @throws {RequiredError}
  8535. */
  8536. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  8537. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  8538. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8539. },
  8540. /**
  8541. *
  8542. * @param {FileChecksumDto} fileChecksumDto
  8543. * @param {*} [options] Override http request option.
  8544. * @throws {RequiredError}
  8545. */
  8546. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  8547. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  8548. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8549. },
  8550. }
  8551. };
  8552. /**
  8553. * AuditApi - factory interface
  8554. * @export
  8555. */
  8556. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8557. const localVarFp = AuditApiFp(configuration)
  8558. return {
  8559. /**
  8560. *
  8561. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8562. * @param {*} [options] Override http request option.
  8563. * @throws {RequiredError}
  8564. */
  8565. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8566. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  8567. },
  8568. /**
  8569. *
  8570. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8571. * @param {*} [options] Override http request option.
  8572. * @throws {RequiredError}
  8573. */
  8574. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  8575. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  8576. },
  8577. /**
  8578. *
  8579. * @param {*} [options] Override http request option.
  8580. * @throws {RequiredError}
  8581. */
  8582. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  8583. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  8584. },
  8585. /**
  8586. *
  8587. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8588. * @param {*} [options] Override http request option.
  8589. * @throws {RequiredError}
  8590. */
  8591. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  8592. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  8593. },
  8594. };
  8595. };
  8596. /**
  8597. * Request parameters for fixAuditFiles operation in AuditApi.
  8598. * @export
  8599. * @interface AuditApiFixAuditFilesRequest
  8600. */
  8601. export interface AuditApiFixAuditFilesRequest {
  8602. /**
  8603. *
  8604. * @type {FileReportFixDto}
  8605. * @memberof AuditApiFixAuditFiles
  8606. */
  8607. readonly fileReportFixDto: FileReportFixDto
  8608. }
  8609. /**
  8610. * Request parameters for getAuditDeletes operation in AuditApi.
  8611. * @export
  8612. * @interface AuditApiGetAuditDeletesRequest
  8613. */
  8614. export interface AuditApiGetAuditDeletesRequest {
  8615. /**
  8616. *
  8617. * @type {EntityType}
  8618. * @memberof AuditApiGetAuditDeletes
  8619. */
  8620. readonly entityType: EntityType
  8621. /**
  8622. *
  8623. * @type {string}
  8624. * @memberof AuditApiGetAuditDeletes
  8625. */
  8626. readonly after: string
  8627. /**
  8628. *
  8629. * @type {string}
  8630. * @memberof AuditApiGetAuditDeletes
  8631. */
  8632. readonly userId?: string
  8633. }
  8634. /**
  8635. * Request parameters for getFileChecksums operation in AuditApi.
  8636. * @export
  8637. * @interface AuditApiGetFileChecksumsRequest
  8638. */
  8639. export interface AuditApiGetFileChecksumsRequest {
  8640. /**
  8641. *
  8642. * @type {FileChecksumDto}
  8643. * @memberof AuditApiGetFileChecksums
  8644. */
  8645. readonly fileChecksumDto: FileChecksumDto
  8646. }
  8647. /**
  8648. * AuditApi - object-oriented interface
  8649. * @export
  8650. * @class AuditApi
  8651. * @extends {BaseAPI}
  8652. */
  8653. export class AuditApi extends BaseAPI {
  8654. /**
  8655. *
  8656. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8657. * @param {*} [options] Override http request option.
  8658. * @throws {RequiredError}
  8659. * @memberof AuditApi
  8660. */
  8661. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  8662. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  8663. }
  8664. /**
  8665. *
  8666. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8667. * @param {*} [options] Override http request option.
  8668. * @throws {RequiredError}
  8669. * @memberof AuditApi
  8670. */
  8671. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  8672. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  8673. }
  8674. /**
  8675. *
  8676. * @param {*} [options] Override http request option.
  8677. * @throws {RequiredError}
  8678. * @memberof AuditApi
  8679. */
  8680. public getAuditFiles(options?: AxiosRequestConfig) {
  8681. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  8682. }
  8683. /**
  8684. *
  8685. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8686. * @param {*} [options] Override http request option.
  8687. * @throws {RequiredError}
  8688. * @memberof AuditApi
  8689. */
  8690. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  8691. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  8692. }
  8693. }
  8694. /**
  8695. * AuthenticationApi - axios parameter creator
  8696. * @export
  8697. */
  8698. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  8699. return {
  8700. /**
  8701. *
  8702. * @param {SignUpDto} signUpDto
  8703. * @param {*} [options] Override http request option.
  8704. * @throws {RequiredError}
  8705. */
  8706. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8707. // verify required parameter 'signUpDto' is not null or undefined
  8708. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  8709. const localVarPath = `/auth/admin-sign-up`;
  8710. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8711. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8712. let baseOptions;
  8713. if (configuration) {
  8714. baseOptions = configuration.baseOptions;
  8715. }
  8716. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8717. const localVarHeaderParameter = {} as any;
  8718. const localVarQueryParameter = {} as any;
  8719. localVarHeaderParameter['Content-Type'] = 'application/json';
  8720. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8721. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8722. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8723. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  8724. return {
  8725. url: toPathString(localVarUrlObj),
  8726. options: localVarRequestOptions,
  8727. };
  8728. },
  8729. /**
  8730. *
  8731. * @param {ChangePasswordDto} changePasswordDto
  8732. * @param {*} [options] Override http request option.
  8733. * @throws {RequiredError}
  8734. */
  8735. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8736. // verify required parameter 'changePasswordDto' is not null or undefined
  8737. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  8738. const localVarPath = `/auth/change-password`;
  8739. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8740. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8741. let baseOptions;
  8742. if (configuration) {
  8743. baseOptions = configuration.baseOptions;
  8744. }
  8745. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8746. const localVarHeaderParameter = {} as any;
  8747. const localVarQueryParameter = {} as any;
  8748. // authentication cookie required
  8749. // authentication api_key required
  8750. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8751. // authentication bearer required
  8752. // http bearer authentication required
  8753. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8754. localVarHeaderParameter['Content-Type'] = 'application/json';
  8755. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8756. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8757. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8758. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  8759. return {
  8760. url: toPathString(localVarUrlObj),
  8761. options: localVarRequestOptions,
  8762. };
  8763. },
  8764. /**
  8765. *
  8766. * @param {*} [options] Override http request option.
  8767. * @throws {RequiredError}
  8768. */
  8769. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8770. const localVarPath = `/auth/devices`;
  8771. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8772. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8773. let baseOptions;
  8774. if (configuration) {
  8775. baseOptions = configuration.baseOptions;
  8776. }
  8777. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8778. const localVarHeaderParameter = {} as any;
  8779. const localVarQueryParameter = {} as any;
  8780. // authentication cookie required
  8781. // authentication api_key required
  8782. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8783. // authentication bearer required
  8784. // http bearer authentication required
  8785. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8786. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8787. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8788. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8789. return {
  8790. url: toPathString(localVarUrlObj),
  8791. options: localVarRequestOptions,
  8792. };
  8793. },
  8794. /**
  8795. *
  8796. * @param {LoginCredentialDto} loginCredentialDto
  8797. * @param {*} [options] Override http request option.
  8798. * @throws {RequiredError}
  8799. */
  8800. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8801. // verify required parameter 'loginCredentialDto' is not null or undefined
  8802. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  8803. const localVarPath = `/auth/login`;
  8804. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8805. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8806. let baseOptions;
  8807. if (configuration) {
  8808. baseOptions = configuration.baseOptions;
  8809. }
  8810. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8811. const localVarHeaderParameter = {} as any;
  8812. const localVarQueryParameter = {} as any;
  8813. localVarHeaderParameter['Content-Type'] = 'application/json';
  8814. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8815. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8816. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8817. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  8818. return {
  8819. url: toPathString(localVarUrlObj),
  8820. options: localVarRequestOptions,
  8821. };
  8822. },
  8823. /**
  8824. *
  8825. * @param {*} [options] Override http request option.
  8826. * @throws {RequiredError}
  8827. */
  8828. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8829. const localVarPath = `/auth/logout`;
  8830. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8831. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8832. let baseOptions;
  8833. if (configuration) {
  8834. baseOptions = configuration.baseOptions;
  8835. }
  8836. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8837. const localVarHeaderParameter = {} as any;
  8838. const localVarQueryParameter = {} as any;
  8839. // authentication cookie required
  8840. // authentication api_key required
  8841. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8842. // authentication bearer required
  8843. // http bearer authentication required
  8844. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8845. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8846. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8847. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8848. return {
  8849. url: toPathString(localVarUrlObj),
  8850. options: localVarRequestOptions,
  8851. };
  8852. },
  8853. /**
  8854. *
  8855. * @param {string} id
  8856. * @param {*} [options] Override http request option.
  8857. * @throws {RequiredError}
  8858. */
  8859. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8860. // verify required parameter 'id' is not null or undefined
  8861. assertParamExists('logoutAuthDevice', 'id', id)
  8862. const localVarPath = `/auth/devices/{id}`
  8863. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8864. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8865. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8866. let baseOptions;
  8867. if (configuration) {
  8868. baseOptions = configuration.baseOptions;
  8869. }
  8870. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8871. const localVarHeaderParameter = {} as any;
  8872. const localVarQueryParameter = {} as any;
  8873. // authentication cookie required
  8874. // authentication api_key required
  8875. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8876. // authentication bearer required
  8877. // http bearer authentication required
  8878. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8879. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8880. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8881. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8882. return {
  8883. url: toPathString(localVarUrlObj),
  8884. options: localVarRequestOptions,
  8885. };
  8886. },
  8887. /**
  8888. *
  8889. * @param {*} [options] Override http request option.
  8890. * @throws {RequiredError}
  8891. */
  8892. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8893. const localVarPath = `/auth/devices`;
  8894. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8895. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8896. let baseOptions;
  8897. if (configuration) {
  8898. baseOptions = configuration.baseOptions;
  8899. }
  8900. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8901. const localVarHeaderParameter = {} as any;
  8902. const localVarQueryParameter = {} as any;
  8903. // authentication cookie required
  8904. // authentication api_key required
  8905. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8906. // authentication bearer required
  8907. // http bearer authentication required
  8908. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8909. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8910. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8911. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8912. return {
  8913. url: toPathString(localVarUrlObj),
  8914. options: localVarRequestOptions,
  8915. };
  8916. },
  8917. /**
  8918. *
  8919. * @param {*} [options] Override http request option.
  8920. * @throws {RequiredError}
  8921. */
  8922. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8923. const localVarPath = `/auth/validateToken`;
  8924. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8925. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8926. let baseOptions;
  8927. if (configuration) {
  8928. baseOptions = configuration.baseOptions;
  8929. }
  8930. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8931. const localVarHeaderParameter = {} as any;
  8932. const localVarQueryParameter = {} as any;
  8933. // authentication cookie required
  8934. // authentication api_key required
  8935. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8936. // authentication bearer required
  8937. // http bearer authentication required
  8938. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8939. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8940. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8941. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8942. return {
  8943. url: toPathString(localVarUrlObj),
  8944. options: localVarRequestOptions,
  8945. };
  8946. },
  8947. }
  8948. };
  8949. /**
  8950. * AuthenticationApi - functional programming interface
  8951. * @export
  8952. */
  8953. export const AuthenticationApiFp = function(configuration?: Configuration) {
  8954. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  8955. return {
  8956. /**
  8957. *
  8958. * @param {SignUpDto} signUpDto
  8959. * @param {*} [options] Override http request option.
  8960. * @throws {RequiredError}
  8961. */
  8962. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  8963. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  8964. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8965. },
  8966. /**
  8967. *
  8968. * @param {ChangePasswordDto} changePasswordDto
  8969. * @param {*} [options] Override http request option.
  8970. * @throws {RequiredError}
  8971. */
  8972. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8973. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  8974. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8975. },
  8976. /**
  8977. *
  8978. * @param {*} [options] Override http request option.
  8979. * @throws {RequiredError}
  8980. */
  8981. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  8982. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  8983. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8984. },
  8985. /**
  8986. *
  8987. * @param {LoginCredentialDto} loginCredentialDto
  8988. * @param {*} [options] Override http request option.
  8989. * @throws {RequiredError}
  8990. */
  8991. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  8992. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  8993. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8994. },
  8995. /**
  8996. *
  8997. * @param {*} [options] Override http request option.
  8998. * @throws {RequiredError}
  8999. */
  9000. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  9001. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  9002. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9003. },
  9004. /**
  9005. *
  9006. * @param {string} id
  9007. * @param {*} [options] Override http request option.
  9008. * @throws {RequiredError}
  9009. */
  9010. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9011. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  9012. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9013. },
  9014. /**
  9015. *
  9016. * @param {*} [options] Override http request option.
  9017. * @throws {RequiredError}
  9018. */
  9019. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9020. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  9021. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9022. },
  9023. /**
  9024. *
  9025. * @param {*} [options] Override http request option.
  9026. * @throws {RequiredError}
  9027. */
  9028. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  9029. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  9030. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9031. },
  9032. }
  9033. };
  9034. /**
  9035. * AuthenticationApi - factory interface
  9036. * @export
  9037. */
  9038. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9039. const localVarFp = AuthenticationApiFp(configuration)
  9040. return {
  9041. /**
  9042. *
  9043. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9044. * @param {*} [options] Override http request option.
  9045. * @throws {RequiredError}
  9046. */
  9047. adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
  9048. return localVarFp.adminSignUp(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  9049. },
  9050. /**
  9051. *
  9052. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9053. * @param {*} [options] Override http request option.
  9054. * @throws {RequiredError}
  9055. */
  9056. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9057. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  9058. },
  9059. /**
  9060. *
  9061. * @param {*} [options] Override http request option.
  9062. * @throws {RequiredError}
  9063. */
  9064. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  9065. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  9066. },
  9067. /**
  9068. *
  9069. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9070. * @param {*} [options] Override http request option.
  9071. * @throws {RequiredError}
  9072. */
  9073. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9074. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  9075. },
  9076. /**
  9077. *
  9078. * @param {*} [options] Override http request option.
  9079. * @throws {RequiredError}
  9080. */
  9081. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  9082. return localVarFp.logout(options).then((request) => request(axios, basePath));
  9083. },
  9084. /**
  9085. *
  9086. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9087. * @param {*} [options] Override http request option.
  9088. * @throws {RequiredError}
  9089. */
  9090. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9091. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  9092. },
  9093. /**
  9094. *
  9095. * @param {*} [options] Override http request option.
  9096. * @throws {RequiredError}
  9097. */
  9098. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  9099. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  9100. },
  9101. /**
  9102. *
  9103. * @param {*} [options] Override http request option.
  9104. * @throws {RequiredError}
  9105. */
  9106. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  9107. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  9108. },
  9109. };
  9110. };
  9111. /**
  9112. * Request parameters for adminSignUp operation in AuthenticationApi.
  9113. * @export
  9114. * @interface AuthenticationApiAdminSignUpRequest
  9115. */
  9116. export interface AuthenticationApiAdminSignUpRequest {
  9117. /**
  9118. *
  9119. * @type {SignUpDto}
  9120. * @memberof AuthenticationApiAdminSignUp
  9121. */
  9122. readonly signUpDto: SignUpDto
  9123. }
  9124. /**
  9125. * Request parameters for changePassword operation in AuthenticationApi.
  9126. * @export
  9127. * @interface AuthenticationApiChangePasswordRequest
  9128. */
  9129. export interface AuthenticationApiChangePasswordRequest {
  9130. /**
  9131. *
  9132. * @type {ChangePasswordDto}
  9133. * @memberof AuthenticationApiChangePassword
  9134. */
  9135. readonly changePasswordDto: ChangePasswordDto
  9136. }
  9137. /**
  9138. * Request parameters for login operation in AuthenticationApi.
  9139. * @export
  9140. * @interface AuthenticationApiLoginRequest
  9141. */
  9142. export interface AuthenticationApiLoginRequest {
  9143. /**
  9144. *
  9145. * @type {LoginCredentialDto}
  9146. * @memberof AuthenticationApiLogin
  9147. */
  9148. readonly loginCredentialDto: LoginCredentialDto
  9149. }
  9150. /**
  9151. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  9152. * @export
  9153. * @interface AuthenticationApiLogoutAuthDeviceRequest
  9154. */
  9155. export interface AuthenticationApiLogoutAuthDeviceRequest {
  9156. /**
  9157. *
  9158. * @type {string}
  9159. * @memberof AuthenticationApiLogoutAuthDevice
  9160. */
  9161. readonly id: string
  9162. }
  9163. /**
  9164. * AuthenticationApi - object-oriented interface
  9165. * @export
  9166. * @class AuthenticationApi
  9167. * @extends {BaseAPI}
  9168. */
  9169. export class AuthenticationApi extends BaseAPI {
  9170. /**
  9171. *
  9172. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9173. * @param {*} [options] Override http request option.
  9174. * @throws {RequiredError}
  9175. * @memberof AuthenticationApi
  9176. */
  9177. public adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig) {
  9178. return AuthenticationApiFp(this.configuration).adminSignUp(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  9179. }
  9180. /**
  9181. *
  9182. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9183. * @param {*} [options] Override http request option.
  9184. * @throws {RequiredError}
  9185. * @memberof AuthenticationApi
  9186. */
  9187. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  9188. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  9189. }
  9190. /**
  9191. *
  9192. * @param {*} [options] Override http request option.
  9193. * @throws {RequiredError}
  9194. * @memberof AuthenticationApi
  9195. */
  9196. public getAuthDevices(options?: AxiosRequestConfig) {
  9197. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9198. }
  9199. /**
  9200. *
  9201. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9202. * @param {*} [options] Override http request option.
  9203. * @throws {RequiredError}
  9204. * @memberof AuthenticationApi
  9205. */
  9206. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  9207. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  9208. }
  9209. /**
  9210. *
  9211. * @param {*} [options] Override http request option.
  9212. * @throws {RequiredError}
  9213. * @memberof AuthenticationApi
  9214. */
  9215. public logout(options?: AxiosRequestConfig) {
  9216. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  9217. }
  9218. /**
  9219. *
  9220. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9221. * @param {*} [options] Override http request option.
  9222. * @throws {RequiredError}
  9223. * @memberof AuthenticationApi
  9224. */
  9225. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  9226. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9227. }
  9228. /**
  9229. *
  9230. * @param {*} [options] Override http request option.
  9231. * @throws {RequiredError}
  9232. * @memberof AuthenticationApi
  9233. */
  9234. public logoutAuthDevices(options?: AxiosRequestConfig) {
  9235. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9236. }
  9237. /**
  9238. *
  9239. * @param {*} [options] Override http request option.
  9240. * @throws {RequiredError}
  9241. * @memberof AuthenticationApi
  9242. */
  9243. public validateAccessToken(options?: AxiosRequestConfig) {
  9244. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  9245. }
  9246. }
  9247. /**
  9248. * JobApi - axios parameter creator
  9249. * @export
  9250. */
  9251. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  9252. return {
  9253. /**
  9254. *
  9255. * @param {*} [options] Override http request option.
  9256. * @throws {RequiredError}
  9257. */
  9258. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9259. const localVarPath = `/jobs`;
  9260. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9261. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9262. let baseOptions;
  9263. if (configuration) {
  9264. baseOptions = configuration.baseOptions;
  9265. }
  9266. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9267. const localVarHeaderParameter = {} as any;
  9268. const localVarQueryParameter = {} as any;
  9269. // authentication cookie required
  9270. // authentication api_key required
  9271. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9272. // authentication bearer required
  9273. // http bearer authentication required
  9274. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9275. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9276. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9277. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9278. return {
  9279. url: toPathString(localVarUrlObj),
  9280. options: localVarRequestOptions,
  9281. };
  9282. },
  9283. /**
  9284. *
  9285. * @param {JobName} id
  9286. * @param {JobCommandDto} jobCommandDto
  9287. * @param {*} [options] Override http request option.
  9288. * @throws {RequiredError}
  9289. */
  9290. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9291. // verify required parameter 'id' is not null or undefined
  9292. assertParamExists('sendJobCommand', 'id', id)
  9293. // verify required parameter 'jobCommandDto' is not null or undefined
  9294. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  9295. const localVarPath = `/jobs/{id}`
  9296. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9297. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9298. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9299. let baseOptions;
  9300. if (configuration) {
  9301. baseOptions = configuration.baseOptions;
  9302. }
  9303. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9304. const localVarHeaderParameter = {} as any;
  9305. const localVarQueryParameter = {} as any;
  9306. // authentication cookie required
  9307. // authentication api_key required
  9308. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9309. // authentication bearer required
  9310. // http bearer authentication required
  9311. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9312. localVarHeaderParameter['Content-Type'] = 'application/json';
  9313. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9314. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9315. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9316. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  9317. return {
  9318. url: toPathString(localVarUrlObj),
  9319. options: localVarRequestOptions,
  9320. };
  9321. },
  9322. }
  9323. };
  9324. /**
  9325. * JobApi - functional programming interface
  9326. * @export
  9327. */
  9328. export const JobApiFp = function(configuration?: Configuration) {
  9329. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  9330. return {
  9331. /**
  9332. *
  9333. * @param {*} [options] Override http request option.
  9334. * @throws {RequiredError}
  9335. */
  9336. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  9337. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  9338. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9339. },
  9340. /**
  9341. *
  9342. * @param {JobName} id
  9343. * @param {JobCommandDto} jobCommandDto
  9344. * @param {*} [options] Override http request option.
  9345. * @throws {RequiredError}
  9346. */
  9347. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  9348. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  9349. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9350. },
  9351. }
  9352. };
  9353. /**
  9354. * JobApi - factory interface
  9355. * @export
  9356. */
  9357. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9358. const localVarFp = JobApiFp(configuration)
  9359. return {
  9360. /**
  9361. *
  9362. * @param {*} [options] Override http request option.
  9363. * @throws {RequiredError}
  9364. */
  9365. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  9366. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  9367. },
  9368. /**
  9369. *
  9370. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9371. * @param {*} [options] Override http request option.
  9372. * @throws {RequiredError}
  9373. */
  9374. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  9375. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  9376. },
  9377. };
  9378. };
  9379. /**
  9380. * Request parameters for sendJobCommand operation in JobApi.
  9381. * @export
  9382. * @interface JobApiSendJobCommandRequest
  9383. */
  9384. export interface JobApiSendJobCommandRequest {
  9385. /**
  9386. *
  9387. * @type {JobName}
  9388. * @memberof JobApiSendJobCommand
  9389. */
  9390. readonly id: JobName
  9391. /**
  9392. *
  9393. * @type {JobCommandDto}
  9394. * @memberof JobApiSendJobCommand
  9395. */
  9396. readonly jobCommandDto: JobCommandDto
  9397. }
  9398. /**
  9399. * JobApi - object-oriented interface
  9400. * @export
  9401. * @class JobApi
  9402. * @extends {BaseAPI}
  9403. */
  9404. export class JobApi extends BaseAPI {
  9405. /**
  9406. *
  9407. * @param {*} [options] Override http request option.
  9408. * @throws {RequiredError}
  9409. * @memberof JobApi
  9410. */
  9411. public getAllJobsStatus(options?: AxiosRequestConfig) {
  9412. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  9413. }
  9414. /**
  9415. *
  9416. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9417. * @param {*} [options] Override http request option.
  9418. * @throws {RequiredError}
  9419. * @memberof JobApi
  9420. */
  9421. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  9422. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  9423. }
  9424. }
  9425. /**
  9426. * LibraryApi - axios parameter creator
  9427. * @export
  9428. */
  9429. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  9430. return {
  9431. /**
  9432. *
  9433. * @param {CreateLibraryDto} createLibraryDto
  9434. * @param {*} [options] Override http request option.
  9435. * @throws {RequiredError}
  9436. */
  9437. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9438. // verify required parameter 'createLibraryDto' is not null or undefined
  9439. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  9440. const localVarPath = `/library`;
  9441. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9442. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9443. let baseOptions;
  9444. if (configuration) {
  9445. baseOptions = configuration.baseOptions;
  9446. }
  9447. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9448. const localVarHeaderParameter = {} as any;
  9449. const localVarQueryParameter = {} as any;
  9450. // authentication cookie required
  9451. // authentication api_key required
  9452. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9453. // authentication bearer required
  9454. // http bearer authentication required
  9455. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9456. localVarHeaderParameter['Content-Type'] = 'application/json';
  9457. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9458. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9459. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9460. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  9461. return {
  9462. url: toPathString(localVarUrlObj),
  9463. options: localVarRequestOptions,
  9464. };
  9465. },
  9466. /**
  9467. *
  9468. * @param {string} id
  9469. * @param {*} [options] Override http request option.
  9470. * @throws {RequiredError}
  9471. */
  9472. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9473. // verify required parameter 'id' is not null or undefined
  9474. assertParamExists('deleteLibrary', 'id', id)
  9475. const localVarPath = `/library/{id}`
  9476. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9477. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9478. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9479. let baseOptions;
  9480. if (configuration) {
  9481. baseOptions = configuration.baseOptions;
  9482. }
  9483. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9484. const localVarHeaderParameter = {} as any;
  9485. const localVarQueryParameter = {} as any;
  9486. // authentication cookie required
  9487. // authentication api_key required
  9488. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9489. // authentication bearer required
  9490. // http bearer authentication required
  9491. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9492. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9493. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9494. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9495. return {
  9496. url: toPathString(localVarUrlObj),
  9497. options: localVarRequestOptions,
  9498. };
  9499. },
  9500. /**
  9501. *
  9502. * @param {*} [options] Override http request option.
  9503. * @throws {RequiredError}
  9504. */
  9505. getAllForUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9506. const localVarPath = `/library`;
  9507. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9508. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9509. let baseOptions;
  9510. if (configuration) {
  9511. baseOptions = configuration.baseOptions;
  9512. }
  9513. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9514. const localVarHeaderParameter = {} as any;
  9515. const localVarQueryParameter = {} as any;
  9516. // authentication cookie required
  9517. // authentication api_key required
  9518. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9519. // authentication bearer required
  9520. // http bearer authentication required
  9521. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9522. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9523. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9524. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9525. return {
  9526. url: toPathString(localVarUrlObj),
  9527. options: localVarRequestOptions,
  9528. };
  9529. },
  9530. /**
  9531. *
  9532. * @param {string} id
  9533. * @param {*} [options] Override http request option.
  9534. * @throws {RequiredError}
  9535. */
  9536. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9537. // verify required parameter 'id' is not null or undefined
  9538. assertParamExists('getLibraryInfo', 'id', id)
  9539. const localVarPath = `/library/{id}`
  9540. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9541. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9542. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9543. let baseOptions;
  9544. if (configuration) {
  9545. baseOptions = configuration.baseOptions;
  9546. }
  9547. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9548. const localVarHeaderParameter = {} as any;
  9549. const localVarQueryParameter = {} as any;
  9550. // authentication cookie required
  9551. // authentication api_key required
  9552. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9553. // authentication bearer required
  9554. // http bearer authentication required
  9555. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9556. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9557. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9558. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9559. return {
  9560. url: toPathString(localVarUrlObj),
  9561. options: localVarRequestOptions,
  9562. };
  9563. },
  9564. /**
  9565. *
  9566. * @param {string} id
  9567. * @param {*} [options] Override http request option.
  9568. * @throws {RequiredError}
  9569. */
  9570. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9571. // verify required parameter 'id' is not null or undefined
  9572. assertParamExists('getLibraryStatistics', 'id', id)
  9573. const localVarPath = `/library/{id}/statistics`
  9574. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9575. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9576. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9577. let baseOptions;
  9578. if (configuration) {
  9579. baseOptions = configuration.baseOptions;
  9580. }
  9581. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9582. const localVarHeaderParameter = {} as any;
  9583. const localVarQueryParameter = {} as any;
  9584. // authentication cookie required
  9585. // authentication api_key required
  9586. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9587. // authentication bearer required
  9588. // http bearer authentication required
  9589. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9590. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9591. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9592. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9593. return {
  9594. url: toPathString(localVarUrlObj),
  9595. options: localVarRequestOptions,
  9596. };
  9597. },
  9598. /**
  9599. *
  9600. * @param {string} id
  9601. * @param {*} [options] Override http request option.
  9602. * @throws {RequiredError}
  9603. */
  9604. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9605. // verify required parameter 'id' is not null or undefined
  9606. assertParamExists('removeOfflineFiles', 'id', id)
  9607. const localVarPath = `/library/{id}/removeOffline`
  9608. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9609. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9610. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9611. let baseOptions;
  9612. if (configuration) {
  9613. baseOptions = configuration.baseOptions;
  9614. }
  9615. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9616. const localVarHeaderParameter = {} as any;
  9617. const localVarQueryParameter = {} as any;
  9618. // authentication cookie required
  9619. // authentication api_key required
  9620. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9621. // authentication bearer required
  9622. // http bearer authentication required
  9623. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9624. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9625. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9626. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9627. return {
  9628. url: toPathString(localVarUrlObj),
  9629. options: localVarRequestOptions,
  9630. };
  9631. },
  9632. /**
  9633. *
  9634. * @param {string} id
  9635. * @param {ScanLibraryDto} scanLibraryDto
  9636. * @param {*} [options] Override http request option.
  9637. * @throws {RequiredError}
  9638. */
  9639. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9640. // verify required parameter 'id' is not null or undefined
  9641. assertParamExists('scanLibrary', 'id', id)
  9642. // verify required parameter 'scanLibraryDto' is not null or undefined
  9643. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  9644. const localVarPath = `/library/{id}/scan`
  9645. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9646. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9647. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9648. let baseOptions;
  9649. if (configuration) {
  9650. baseOptions = configuration.baseOptions;
  9651. }
  9652. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9653. const localVarHeaderParameter = {} as any;
  9654. const localVarQueryParameter = {} as any;
  9655. // authentication cookie required
  9656. // authentication api_key required
  9657. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9658. // authentication bearer required
  9659. // http bearer authentication required
  9660. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9661. localVarHeaderParameter['Content-Type'] = 'application/json';
  9662. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9663. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9664. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9665. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  9666. return {
  9667. url: toPathString(localVarUrlObj),
  9668. options: localVarRequestOptions,
  9669. };
  9670. },
  9671. /**
  9672. *
  9673. * @param {string} id
  9674. * @param {UpdateLibraryDto} updateLibraryDto
  9675. * @param {*} [options] Override http request option.
  9676. * @throws {RequiredError}
  9677. */
  9678. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9679. // verify required parameter 'id' is not null or undefined
  9680. assertParamExists('updateLibrary', 'id', id)
  9681. // verify required parameter 'updateLibraryDto' is not null or undefined
  9682. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  9683. const localVarPath = `/library/{id}`
  9684. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9685. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9686. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9687. let baseOptions;
  9688. if (configuration) {
  9689. baseOptions = configuration.baseOptions;
  9690. }
  9691. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9692. const localVarHeaderParameter = {} as any;
  9693. const localVarQueryParameter = {} as any;
  9694. // authentication cookie required
  9695. // authentication api_key required
  9696. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9697. // authentication bearer required
  9698. // http bearer authentication required
  9699. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9700. localVarHeaderParameter['Content-Type'] = 'application/json';
  9701. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9702. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9703. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9704. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  9705. return {
  9706. url: toPathString(localVarUrlObj),
  9707. options: localVarRequestOptions,
  9708. };
  9709. },
  9710. }
  9711. };
  9712. /**
  9713. * LibraryApi - functional programming interface
  9714. * @export
  9715. */
  9716. export const LibraryApiFp = function(configuration?: Configuration) {
  9717. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  9718. return {
  9719. /**
  9720. *
  9721. * @param {CreateLibraryDto} createLibraryDto
  9722. * @param {*} [options] Override http request option.
  9723. * @throws {RequiredError}
  9724. */
  9725. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9726. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  9727. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9728. },
  9729. /**
  9730. *
  9731. * @param {string} id
  9732. * @param {*} [options] Override http request option.
  9733. * @throws {RequiredError}
  9734. */
  9735. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9736. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  9737. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9738. },
  9739. /**
  9740. *
  9741. * @param {*} [options] Override http request option.
  9742. * @throws {RequiredError}
  9743. */
  9744. async getAllForUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  9745. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllForUser(options);
  9746. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9747. },
  9748. /**
  9749. *
  9750. * @param {string} id
  9751. * @param {*} [options] Override http request option.
  9752. * @throws {RequiredError}
  9753. */
  9754. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9755. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  9756. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9757. },
  9758. /**
  9759. *
  9760. * @param {string} id
  9761. * @param {*} [options] Override http request option.
  9762. * @throws {RequiredError}
  9763. */
  9764. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  9765. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  9766. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9767. },
  9768. /**
  9769. *
  9770. * @param {string} id
  9771. * @param {*} [options] Override http request option.
  9772. * @throws {RequiredError}
  9773. */
  9774. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9775. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  9776. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9777. },
  9778. /**
  9779. *
  9780. * @param {string} id
  9781. * @param {ScanLibraryDto} scanLibraryDto
  9782. * @param {*} [options] Override http request option.
  9783. * @throws {RequiredError}
  9784. */
  9785. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9786. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  9787. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9788. },
  9789. /**
  9790. *
  9791. * @param {string} id
  9792. * @param {UpdateLibraryDto} updateLibraryDto
  9793. * @param {*} [options] Override http request option.
  9794. * @throws {RequiredError}
  9795. */
  9796. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9797. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  9798. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9799. },
  9800. }
  9801. };
  9802. /**
  9803. * LibraryApi - factory interface
  9804. * @export
  9805. */
  9806. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9807. const localVarFp = LibraryApiFp(configuration)
  9808. return {
  9809. /**
  9810. *
  9811. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9812. * @param {*} [options] Override http request option.
  9813. * @throws {RequiredError}
  9814. */
  9815. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9816. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  9817. },
  9818. /**
  9819. *
  9820. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9821. * @param {*} [options] Override http request option.
  9822. * @throws {RequiredError}
  9823. */
  9824. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9825. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  9826. },
  9827. /**
  9828. *
  9829. * @param {*} [options] Override http request option.
  9830. * @throws {RequiredError}
  9831. */
  9832. getAllForUser(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  9833. return localVarFp.getAllForUser(options).then((request) => request(axios, basePath));
  9834. },
  9835. /**
  9836. *
  9837. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  9838. * @param {*} [options] Override http request option.
  9839. * @throws {RequiredError}
  9840. */
  9841. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9842. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  9843. },
  9844. /**
  9845. *
  9846. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  9847. * @param {*} [options] Override http request option.
  9848. * @throws {RequiredError}
  9849. */
  9850. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  9851. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  9852. },
  9853. /**
  9854. *
  9855. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  9856. * @param {*} [options] Override http request option.
  9857. * @throws {RequiredError}
  9858. */
  9859. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9860. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  9861. },
  9862. /**
  9863. *
  9864. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  9865. * @param {*} [options] Override http request option.
  9866. * @throws {RequiredError}
  9867. */
  9868. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9869. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  9870. },
  9871. /**
  9872. *
  9873. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  9874. * @param {*} [options] Override http request option.
  9875. * @throws {RequiredError}
  9876. */
  9877. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9878. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  9879. },
  9880. };
  9881. };
  9882. /**
  9883. * Request parameters for createLibrary operation in LibraryApi.
  9884. * @export
  9885. * @interface LibraryApiCreateLibraryRequest
  9886. */
  9887. export interface LibraryApiCreateLibraryRequest {
  9888. /**
  9889. *
  9890. * @type {CreateLibraryDto}
  9891. * @memberof LibraryApiCreateLibrary
  9892. */
  9893. readonly createLibraryDto: CreateLibraryDto
  9894. }
  9895. /**
  9896. * Request parameters for deleteLibrary operation in LibraryApi.
  9897. * @export
  9898. * @interface LibraryApiDeleteLibraryRequest
  9899. */
  9900. export interface LibraryApiDeleteLibraryRequest {
  9901. /**
  9902. *
  9903. * @type {string}
  9904. * @memberof LibraryApiDeleteLibrary
  9905. */
  9906. readonly id: string
  9907. }
  9908. /**
  9909. * Request parameters for getLibraryInfo operation in LibraryApi.
  9910. * @export
  9911. * @interface LibraryApiGetLibraryInfoRequest
  9912. */
  9913. export interface LibraryApiGetLibraryInfoRequest {
  9914. /**
  9915. *
  9916. * @type {string}
  9917. * @memberof LibraryApiGetLibraryInfo
  9918. */
  9919. readonly id: string
  9920. }
  9921. /**
  9922. * Request parameters for getLibraryStatistics operation in LibraryApi.
  9923. * @export
  9924. * @interface LibraryApiGetLibraryStatisticsRequest
  9925. */
  9926. export interface LibraryApiGetLibraryStatisticsRequest {
  9927. /**
  9928. *
  9929. * @type {string}
  9930. * @memberof LibraryApiGetLibraryStatistics
  9931. */
  9932. readonly id: string
  9933. }
  9934. /**
  9935. * Request parameters for removeOfflineFiles operation in LibraryApi.
  9936. * @export
  9937. * @interface LibraryApiRemoveOfflineFilesRequest
  9938. */
  9939. export interface LibraryApiRemoveOfflineFilesRequest {
  9940. /**
  9941. *
  9942. * @type {string}
  9943. * @memberof LibraryApiRemoveOfflineFiles
  9944. */
  9945. readonly id: string
  9946. }
  9947. /**
  9948. * Request parameters for scanLibrary operation in LibraryApi.
  9949. * @export
  9950. * @interface LibraryApiScanLibraryRequest
  9951. */
  9952. export interface LibraryApiScanLibraryRequest {
  9953. /**
  9954. *
  9955. * @type {string}
  9956. * @memberof LibraryApiScanLibrary
  9957. */
  9958. readonly id: string
  9959. /**
  9960. *
  9961. * @type {ScanLibraryDto}
  9962. * @memberof LibraryApiScanLibrary
  9963. */
  9964. readonly scanLibraryDto: ScanLibraryDto
  9965. }
  9966. /**
  9967. * Request parameters for updateLibrary operation in LibraryApi.
  9968. * @export
  9969. * @interface LibraryApiUpdateLibraryRequest
  9970. */
  9971. export interface LibraryApiUpdateLibraryRequest {
  9972. /**
  9973. *
  9974. * @type {string}
  9975. * @memberof LibraryApiUpdateLibrary
  9976. */
  9977. readonly id: string
  9978. /**
  9979. *
  9980. * @type {UpdateLibraryDto}
  9981. * @memberof LibraryApiUpdateLibrary
  9982. */
  9983. readonly updateLibraryDto: UpdateLibraryDto
  9984. }
  9985. /**
  9986. * LibraryApi - object-oriented interface
  9987. * @export
  9988. * @class LibraryApi
  9989. * @extends {BaseAPI}
  9990. */
  9991. export class LibraryApi extends BaseAPI {
  9992. /**
  9993. *
  9994. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9995. * @param {*} [options] Override http request option.
  9996. * @throws {RequiredError}
  9997. * @memberof LibraryApi
  9998. */
  9999. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  10000. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10001. }
  10002. /**
  10003. *
  10004. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10005. * @param {*} [options] Override http request option.
  10006. * @throws {RequiredError}
  10007. * @memberof LibraryApi
  10008. */
  10009. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  10010. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10011. }
  10012. /**
  10013. *
  10014. * @param {*} [options] Override http request option.
  10015. * @throws {RequiredError}
  10016. * @memberof LibraryApi
  10017. */
  10018. public getAllForUser(options?: AxiosRequestConfig) {
  10019. return LibraryApiFp(this.configuration).getAllForUser(options).then((request) => request(this.axios, this.basePath));
  10020. }
  10021. /**
  10022. *
  10023. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10024. * @param {*} [options] Override http request option.
  10025. * @throws {RequiredError}
  10026. * @memberof LibraryApi
  10027. */
  10028. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  10029. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10030. }
  10031. /**
  10032. *
  10033. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10034. * @param {*} [options] Override http request option.
  10035. * @throws {RequiredError}
  10036. * @memberof LibraryApi
  10037. */
  10038. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  10039. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10040. }
  10041. /**
  10042. *
  10043. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10044. * @param {*} [options] Override http request option.
  10045. * @throws {RequiredError}
  10046. * @memberof LibraryApi
  10047. */
  10048. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  10049. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10050. }
  10051. /**
  10052. *
  10053. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10054. * @param {*} [options] Override http request option.
  10055. * @throws {RequiredError}
  10056. * @memberof LibraryApi
  10057. */
  10058. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  10059. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10060. }
  10061. /**
  10062. *
  10063. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10064. * @param {*} [options] Override http request option.
  10065. * @throws {RequiredError}
  10066. * @memberof LibraryApi
  10067. */
  10068. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  10069. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10070. }
  10071. }
  10072. /**
  10073. * OAuthApi - axios parameter creator
  10074. * @export
  10075. */
  10076. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  10077. return {
  10078. /**
  10079. *
  10080. * @param {OAuthConfigDto} oAuthConfigDto
  10081. * @param {*} [options] Override http request option.
  10082. * @throws {RequiredError}
  10083. */
  10084. authorizeOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10085. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10086. assertParamExists('authorizeOAuth', 'oAuthConfigDto', oAuthConfigDto)
  10087. const localVarPath = `/oauth/authorize`;
  10088. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10089. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10090. let baseOptions;
  10091. if (configuration) {
  10092. baseOptions = configuration.baseOptions;
  10093. }
  10094. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10095. const localVarHeaderParameter = {} as any;
  10096. const localVarQueryParameter = {} as any;
  10097. localVarHeaderParameter['Content-Type'] = 'application/json';
  10098. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10099. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10100. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10101. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10102. return {
  10103. url: toPathString(localVarUrlObj),
  10104. options: localVarRequestOptions,
  10105. };
  10106. },
  10107. /**
  10108. *
  10109. * @param {OAuthCallbackDto} oAuthCallbackDto
  10110. * @param {*} [options] Override http request option.
  10111. * @throws {RequiredError}
  10112. */
  10113. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10114. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10115. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  10116. const localVarPath = `/oauth/callback`;
  10117. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10118. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10119. let baseOptions;
  10120. if (configuration) {
  10121. baseOptions = configuration.baseOptions;
  10122. }
  10123. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10124. const localVarHeaderParameter = {} as any;
  10125. const localVarQueryParameter = {} as any;
  10126. localVarHeaderParameter['Content-Type'] = 'application/json';
  10127. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10128. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10129. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10130. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10131. return {
  10132. url: toPathString(localVarUrlObj),
  10133. options: localVarRequestOptions,
  10134. };
  10135. },
  10136. /**
  10137. * @deprecated use feature flags and /oauth/authorize
  10138. * @param {OAuthConfigDto} oAuthConfigDto
  10139. * @param {*} [options] Override http request option.
  10140. * @deprecated
  10141. * @throws {RequiredError}
  10142. */
  10143. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10144. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10145. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  10146. const localVarPath = `/oauth/config`;
  10147. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10148. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10149. let baseOptions;
  10150. if (configuration) {
  10151. baseOptions = configuration.baseOptions;
  10152. }
  10153. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10154. const localVarHeaderParameter = {} as any;
  10155. const localVarQueryParameter = {} as any;
  10156. localVarHeaderParameter['Content-Type'] = 'application/json';
  10157. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10158. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10159. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10160. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10161. return {
  10162. url: toPathString(localVarUrlObj),
  10163. options: localVarRequestOptions,
  10164. };
  10165. },
  10166. /**
  10167. *
  10168. * @param {OAuthCallbackDto} oAuthCallbackDto
  10169. * @param {*} [options] Override http request option.
  10170. * @throws {RequiredError}
  10171. */
  10172. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10173. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10174. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  10175. const localVarPath = `/oauth/link`;
  10176. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10177. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10178. let baseOptions;
  10179. if (configuration) {
  10180. baseOptions = configuration.baseOptions;
  10181. }
  10182. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10183. const localVarHeaderParameter = {} as any;
  10184. const localVarQueryParameter = {} as any;
  10185. // authentication cookie required
  10186. // authentication api_key required
  10187. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10188. // authentication bearer required
  10189. // http bearer authentication required
  10190. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10191. localVarHeaderParameter['Content-Type'] = 'application/json';
  10192. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10193. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10194. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10195. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10196. return {
  10197. url: toPathString(localVarUrlObj),
  10198. options: localVarRequestOptions,
  10199. };
  10200. },
  10201. /**
  10202. *
  10203. * @param {*} [options] Override http request option.
  10204. * @throws {RequiredError}
  10205. */
  10206. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10207. const localVarPath = `/oauth/mobile-redirect`;
  10208. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10209. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10210. let baseOptions;
  10211. if (configuration) {
  10212. baseOptions = configuration.baseOptions;
  10213. }
  10214. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10215. const localVarHeaderParameter = {} as any;
  10216. const localVarQueryParameter = {} as any;
  10217. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10218. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10219. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10220. return {
  10221. url: toPathString(localVarUrlObj),
  10222. options: localVarRequestOptions,
  10223. };
  10224. },
  10225. /**
  10226. *
  10227. * @param {*} [options] Override http request option.
  10228. * @throws {RequiredError}
  10229. */
  10230. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10231. const localVarPath = `/oauth/unlink`;
  10232. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10233. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10234. let baseOptions;
  10235. if (configuration) {
  10236. baseOptions = configuration.baseOptions;
  10237. }
  10238. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10239. const localVarHeaderParameter = {} as any;
  10240. const localVarQueryParameter = {} as any;
  10241. // authentication cookie required
  10242. // authentication api_key required
  10243. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10244. // authentication bearer required
  10245. // http bearer authentication required
  10246. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10247. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10248. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10249. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10250. return {
  10251. url: toPathString(localVarUrlObj),
  10252. options: localVarRequestOptions,
  10253. };
  10254. },
  10255. }
  10256. };
  10257. /**
  10258. * OAuthApi - functional programming interface
  10259. * @export
  10260. */
  10261. export const OAuthApiFp = function(configuration?: Configuration) {
  10262. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  10263. return {
  10264. /**
  10265. *
  10266. * @param {OAuthConfigDto} oAuthConfigDto
  10267. * @param {*} [options] Override http request option.
  10268. * @throws {RequiredError}
  10269. */
  10270. async authorizeOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  10271. const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeOAuth(oAuthConfigDto, options);
  10272. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10273. },
  10274. /**
  10275. *
  10276. * @param {OAuthCallbackDto} oAuthCallbackDto
  10277. * @param {*} [options] Override http request option.
  10278. * @throws {RequiredError}
  10279. */
  10280. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10281. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  10282. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10283. },
  10284. /**
  10285. * @deprecated use feature flags and /oauth/authorize
  10286. * @param {OAuthConfigDto} oAuthConfigDto
  10287. * @param {*} [options] Override http request option.
  10288. * @deprecated
  10289. * @throws {RequiredError}
  10290. */
  10291. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  10292. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  10293. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10294. },
  10295. /**
  10296. *
  10297. * @param {OAuthCallbackDto} oAuthCallbackDto
  10298. * @param {*} [options] Override http request option.
  10299. * @throws {RequiredError}
  10300. */
  10301. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10302. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  10303. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10304. },
  10305. /**
  10306. *
  10307. * @param {*} [options] Override http request option.
  10308. * @throws {RequiredError}
  10309. */
  10310. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10311. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  10312. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10313. },
  10314. /**
  10315. *
  10316. * @param {*} [options] Override http request option.
  10317. * @throws {RequiredError}
  10318. */
  10319. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10320. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  10321. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10322. },
  10323. }
  10324. };
  10325. /**
  10326. * OAuthApi - factory interface
  10327. * @export
  10328. */
  10329. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10330. const localVarFp = OAuthApiFp(configuration)
  10331. return {
  10332. /**
  10333. *
  10334. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10335. * @param {*} [options] Override http request option.
  10336. * @throws {RequiredError}
  10337. */
  10338. authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  10339. return localVarFp.authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10340. },
  10341. /**
  10342. *
  10343. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10344. * @param {*} [options] Override http request option.
  10345. * @throws {RequiredError}
  10346. */
  10347. callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10348. return localVarFp.callback(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10349. },
  10350. /**
  10351. * @deprecated use feature flags and /oauth/authorize
  10352. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10353. * @param {*} [options] Override http request option.
  10354. * @deprecated
  10355. * @throws {RequiredError}
  10356. */
  10357. generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  10358. return localVarFp.generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10359. },
  10360. /**
  10361. *
  10362. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10363. * @param {*} [options] Override http request option.
  10364. * @throws {RequiredError}
  10365. */
  10366. link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10367. return localVarFp.link(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10368. },
  10369. /**
  10370. *
  10371. * @param {*} [options] Override http request option.
  10372. * @throws {RequiredError}
  10373. */
  10374. mobileRedirect(options?: AxiosRequestConfig): AxiosPromise<void> {
  10375. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  10376. },
  10377. /**
  10378. *
  10379. * @param {*} [options] Override http request option.
  10380. * @throws {RequiredError}
  10381. */
  10382. unlink(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10383. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  10384. },
  10385. };
  10386. };
  10387. /**
  10388. * Request parameters for authorizeOAuth operation in OAuthApi.
  10389. * @export
  10390. * @interface OAuthApiAuthorizeOAuthRequest
  10391. */
  10392. export interface OAuthApiAuthorizeOAuthRequest {
  10393. /**
  10394. *
  10395. * @type {OAuthConfigDto}
  10396. * @memberof OAuthApiAuthorizeOAuth
  10397. */
  10398. readonly oAuthConfigDto: OAuthConfigDto
  10399. }
  10400. /**
  10401. * Request parameters for callback operation in OAuthApi.
  10402. * @export
  10403. * @interface OAuthApiCallbackRequest
  10404. */
  10405. export interface OAuthApiCallbackRequest {
  10406. /**
  10407. *
  10408. * @type {OAuthCallbackDto}
  10409. * @memberof OAuthApiCallback
  10410. */
  10411. readonly oAuthCallbackDto: OAuthCallbackDto
  10412. }
  10413. /**
  10414. * Request parameters for generateConfig operation in OAuthApi.
  10415. * @export
  10416. * @interface OAuthApiGenerateConfigRequest
  10417. */
  10418. export interface OAuthApiGenerateConfigRequest {
  10419. /**
  10420. *
  10421. * @type {OAuthConfigDto}
  10422. * @memberof OAuthApiGenerateConfig
  10423. */
  10424. readonly oAuthConfigDto: OAuthConfigDto
  10425. }
  10426. /**
  10427. * Request parameters for link operation in OAuthApi.
  10428. * @export
  10429. * @interface OAuthApiLinkRequest
  10430. */
  10431. export interface OAuthApiLinkRequest {
  10432. /**
  10433. *
  10434. * @type {OAuthCallbackDto}
  10435. * @memberof OAuthApiLink
  10436. */
  10437. readonly oAuthCallbackDto: OAuthCallbackDto
  10438. }
  10439. /**
  10440. * OAuthApi - object-oriented interface
  10441. * @export
  10442. * @class OAuthApi
  10443. * @extends {BaseAPI}
  10444. */
  10445. export class OAuthApi extends BaseAPI {
  10446. /**
  10447. *
  10448. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10449. * @param {*} [options] Override http request option.
  10450. * @throws {RequiredError}
  10451. * @memberof OAuthApi
  10452. */
  10453. public authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig) {
  10454. return OAuthApiFp(this.configuration).authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10455. }
  10456. /**
  10457. *
  10458. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10459. * @param {*} [options] Override http request option.
  10460. * @throws {RequiredError}
  10461. * @memberof OAuthApi
  10462. */
  10463. public callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig) {
  10464. return OAuthApiFp(this.configuration).callback(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10465. }
  10466. /**
  10467. * @deprecated use feature flags and /oauth/authorize
  10468. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10469. * @param {*} [options] Override http request option.
  10470. * @deprecated
  10471. * @throws {RequiredError}
  10472. * @memberof OAuthApi
  10473. */
  10474. public generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig) {
  10475. return OAuthApiFp(this.configuration).generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10476. }
  10477. /**
  10478. *
  10479. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10480. * @param {*} [options] Override http request option.
  10481. * @throws {RequiredError}
  10482. * @memberof OAuthApi
  10483. */
  10484. public link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig) {
  10485. return OAuthApiFp(this.configuration).link(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10486. }
  10487. /**
  10488. *
  10489. * @param {*} [options] Override http request option.
  10490. * @throws {RequiredError}
  10491. * @memberof OAuthApi
  10492. */
  10493. public mobileRedirect(options?: AxiosRequestConfig) {
  10494. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  10495. }
  10496. /**
  10497. *
  10498. * @param {*} [options] Override http request option.
  10499. * @throws {RequiredError}
  10500. * @memberof OAuthApi
  10501. */
  10502. public unlink(options?: AxiosRequestConfig) {
  10503. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  10504. }
  10505. }
  10506. /**
  10507. * PartnerApi - axios parameter creator
  10508. * @export
  10509. */
  10510. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  10511. return {
  10512. /**
  10513. *
  10514. * @param {string} id
  10515. * @param {*} [options] Override http request option.
  10516. * @throws {RequiredError}
  10517. */
  10518. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10519. // verify required parameter 'id' is not null or undefined
  10520. assertParamExists('createPartner', 'id', id)
  10521. const localVarPath = `/partner/{id}`
  10522. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10523. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10524. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10525. let baseOptions;
  10526. if (configuration) {
  10527. baseOptions = configuration.baseOptions;
  10528. }
  10529. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10530. const localVarHeaderParameter = {} as any;
  10531. const localVarQueryParameter = {} as any;
  10532. // authentication cookie required
  10533. // authentication api_key required
  10534. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10535. // authentication bearer required
  10536. // http bearer authentication required
  10537. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10538. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10539. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10540. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10541. return {
  10542. url: toPathString(localVarUrlObj),
  10543. options: localVarRequestOptions,
  10544. };
  10545. },
  10546. /**
  10547. *
  10548. * @param {'shared-by' | 'shared-with'} direction
  10549. * @param {*} [options] Override http request option.
  10550. * @throws {RequiredError}
  10551. */
  10552. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10553. // verify required parameter 'direction' is not null or undefined
  10554. assertParamExists('getPartners', 'direction', direction)
  10555. const localVarPath = `/partner`;
  10556. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10557. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10558. let baseOptions;
  10559. if (configuration) {
  10560. baseOptions = configuration.baseOptions;
  10561. }
  10562. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10563. const localVarHeaderParameter = {} as any;
  10564. const localVarQueryParameter = {} as any;
  10565. // authentication cookie required
  10566. // authentication api_key required
  10567. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10568. // authentication bearer required
  10569. // http bearer authentication required
  10570. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10571. if (direction !== undefined) {
  10572. localVarQueryParameter['direction'] = direction;
  10573. }
  10574. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10575. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10576. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10577. return {
  10578. url: toPathString(localVarUrlObj),
  10579. options: localVarRequestOptions,
  10580. };
  10581. },
  10582. /**
  10583. *
  10584. * @param {string} id
  10585. * @param {*} [options] Override http request option.
  10586. * @throws {RequiredError}
  10587. */
  10588. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10589. // verify required parameter 'id' is not null or undefined
  10590. assertParamExists('removePartner', 'id', id)
  10591. const localVarPath = `/partner/{id}`
  10592. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10593. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10594. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10595. let baseOptions;
  10596. if (configuration) {
  10597. baseOptions = configuration.baseOptions;
  10598. }
  10599. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10600. const localVarHeaderParameter = {} as any;
  10601. const localVarQueryParameter = {} as any;
  10602. // authentication cookie required
  10603. // authentication api_key required
  10604. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10605. // authentication bearer required
  10606. // http bearer authentication required
  10607. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10608. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10609. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10610. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10611. return {
  10612. url: toPathString(localVarUrlObj),
  10613. options: localVarRequestOptions,
  10614. };
  10615. },
  10616. }
  10617. };
  10618. /**
  10619. * PartnerApi - functional programming interface
  10620. * @export
  10621. */
  10622. export const PartnerApiFp = function(configuration?: Configuration) {
  10623. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  10624. return {
  10625. /**
  10626. *
  10627. * @param {string} id
  10628. * @param {*} [options] Override http request option.
  10629. * @throws {RequiredError}
  10630. */
  10631. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10632. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  10633. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10634. },
  10635. /**
  10636. *
  10637. * @param {'shared-by' | 'shared-with'} direction
  10638. * @param {*} [options] Override http request option.
  10639. * @throws {RequiredError}
  10640. */
  10641. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  10642. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  10643. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10644. },
  10645. /**
  10646. *
  10647. * @param {string} id
  10648. * @param {*} [options] Override http request option.
  10649. * @throws {RequiredError}
  10650. */
  10651. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10652. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  10653. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10654. },
  10655. }
  10656. };
  10657. /**
  10658. * PartnerApi - factory interface
  10659. * @export
  10660. */
  10661. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10662. const localVarFp = PartnerApiFp(configuration)
  10663. return {
  10664. /**
  10665. *
  10666. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10667. * @param {*} [options] Override http request option.
  10668. * @throws {RequiredError}
  10669. */
  10670. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10671. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10672. },
  10673. /**
  10674. *
  10675. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10676. * @param {*} [options] Override http request option.
  10677. * @throws {RequiredError}
  10678. */
  10679. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  10680. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  10681. },
  10682. /**
  10683. *
  10684. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10685. * @param {*} [options] Override http request option.
  10686. * @throws {RequiredError}
  10687. */
  10688. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10689. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10690. },
  10691. };
  10692. };
  10693. /**
  10694. * Request parameters for createPartner operation in PartnerApi.
  10695. * @export
  10696. * @interface PartnerApiCreatePartnerRequest
  10697. */
  10698. export interface PartnerApiCreatePartnerRequest {
  10699. /**
  10700. *
  10701. * @type {string}
  10702. * @memberof PartnerApiCreatePartner
  10703. */
  10704. readonly id: string
  10705. }
  10706. /**
  10707. * Request parameters for getPartners operation in PartnerApi.
  10708. * @export
  10709. * @interface PartnerApiGetPartnersRequest
  10710. */
  10711. export interface PartnerApiGetPartnersRequest {
  10712. /**
  10713. *
  10714. * @type {'shared-by' | 'shared-with'}
  10715. * @memberof PartnerApiGetPartners
  10716. */
  10717. readonly direction: 'shared-by' | 'shared-with'
  10718. }
  10719. /**
  10720. * Request parameters for removePartner operation in PartnerApi.
  10721. * @export
  10722. * @interface PartnerApiRemovePartnerRequest
  10723. */
  10724. export interface PartnerApiRemovePartnerRequest {
  10725. /**
  10726. *
  10727. * @type {string}
  10728. * @memberof PartnerApiRemovePartner
  10729. */
  10730. readonly id: string
  10731. }
  10732. /**
  10733. * PartnerApi - object-oriented interface
  10734. * @export
  10735. * @class PartnerApi
  10736. * @extends {BaseAPI}
  10737. */
  10738. export class PartnerApi extends BaseAPI {
  10739. /**
  10740. *
  10741. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10742. * @param {*} [options] Override http request option.
  10743. * @throws {RequiredError}
  10744. * @memberof PartnerApi
  10745. */
  10746. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  10747. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10748. }
  10749. /**
  10750. *
  10751. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10752. * @param {*} [options] Override http request option.
  10753. * @throws {RequiredError}
  10754. * @memberof PartnerApi
  10755. */
  10756. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  10757. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  10758. }
  10759. /**
  10760. *
  10761. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10762. * @param {*} [options] Override http request option.
  10763. * @throws {RequiredError}
  10764. * @memberof PartnerApi
  10765. */
  10766. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  10767. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10768. }
  10769. }
  10770. /**
  10771. * PersonApi - axios parameter creator
  10772. * @export
  10773. */
  10774. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  10775. return {
  10776. /**
  10777. *
  10778. * @param {boolean} [withHidden]
  10779. * @param {*} [options] Override http request option.
  10780. * @throws {RequiredError}
  10781. */
  10782. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10783. const localVarPath = `/person`;
  10784. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10785. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10786. let baseOptions;
  10787. if (configuration) {
  10788. baseOptions = configuration.baseOptions;
  10789. }
  10790. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10791. const localVarHeaderParameter = {} as any;
  10792. const localVarQueryParameter = {} as any;
  10793. // authentication cookie required
  10794. // authentication api_key required
  10795. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10796. // authentication bearer required
  10797. // http bearer authentication required
  10798. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10799. if (withHidden !== undefined) {
  10800. localVarQueryParameter['withHidden'] = withHidden;
  10801. }
  10802. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10803. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10804. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10805. return {
  10806. url: toPathString(localVarUrlObj),
  10807. options: localVarRequestOptions,
  10808. };
  10809. },
  10810. /**
  10811. *
  10812. * @param {string} id
  10813. * @param {*} [options] Override http request option.
  10814. * @throws {RequiredError}
  10815. */
  10816. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10817. // verify required parameter 'id' is not null or undefined
  10818. assertParamExists('getPerson', 'id', id)
  10819. const localVarPath = `/person/{id}`
  10820. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10821. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10822. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10823. let baseOptions;
  10824. if (configuration) {
  10825. baseOptions = configuration.baseOptions;
  10826. }
  10827. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10828. const localVarHeaderParameter = {} as any;
  10829. const localVarQueryParameter = {} as any;
  10830. // authentication cookie required
  10831. // authentication api_key required
  10832. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10833. // authentication bearer required
  10834. // http bearer authentication required
  10835. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10836. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10837. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10838. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10839. return {
  10840. url: toPathString(localVarUrlObj),
  10841. options: localVarRequestOptions,
  10842. };
  10843. },
  10844. /**
  10845. *
  10846. * @param {string} id
  10847. * @param {*} [options] Override http request option.
  10848. * @throws {RequiredError}
  10849. */
  10850. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10851. // verify required parameter 'id' is not null or undefined
  10852. assertParamExists('getPersonAssets', 'id', id)
  10853. const localVarPath = `/person/{id}/assets`
  10854. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10855. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10856. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10857. let baseOptions;
  10858. if (configuration) {
  10859. baseOptions = configuration.baseOptions;
  10860. }
  10861. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10862. const localVarHeaderParameter = {} as any;
  10863. const localVarQueryParameter = {} as any;
  10864. // authentication cookie required
  10865. // authentication api_key required
  10866. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10867. // authentication bearer required
  10868. // http bearer authentication required
  10869. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10870. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10871. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10872. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10873. return {
  10874. url: toPathString(localVarUrlObj),
  10875. options: localVarRequestOptions,
  10876. };
  10877. },
  10878. /**
  10879. *
  10880. * @param {string} id
  10881. * @param {*} [options] Override http request option.
  10882. * @throws {RequiredError}
  10883. */
  10884. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10885. // verify required parameter 'id' is not null or undefined
  10886. assertParamExists('getPersonThumbnail', 'id', id)
  10887. const localVarPath = `/person/{id}/thumbnail`
  10888. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10889. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10890. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10891. let baseOptions;
  10892. if (configuration) {
  10893. baseOptions = configuration.baseOptions;
  10894. }
  10895. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10896. const localVarHeaderParameter = {} as any;
  10897. const localVarQueryParameter = {} as any;
  10898. // authentication cookie required
  10899. // authentication api_key required
  10900. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10901. // authentication bearer required
  10902. // http bearer authentication required
  10903. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10904. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10905. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10906. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10907. return {
  10908. url: toPathString(localVarUrlObj),
  10909. options: localVarRequestOptions,
  10910. };
  10911. },
  10912. /**
  10913. *
  10914. * @param {string} id
  10915. * @param {MergePersonDto} mergePersonDto
  10916. * @param {*} [options] Override http request option.
  10917. * @throws {RequiredError}
  10918. */
  10919. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10920. // verify required parameter 'id' is not null or undefined
  10921. assertParamExists('mergePerson', 'id', id)
  10922. // verify required parameter 'mergePersonDto' is not null or undefined
  10923. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  10924. const localVarPath = `/person/{id}/merge`
  10925. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  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: 'POST', ...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(mergePersonDto, localVarRequestOptions, configuration)
  10946. return {
  10947. url: toPathString(localVarUrlObj),
  10948. options: localVarRequestOptions,
  10949. };
  10950. },
  10951. /**
  10952. *
  10953. * @param {PeopleUpdateDto} peopleUpdateDto
  10954. * @param {*} [options] Override http request option.
  10955. * @throws {RequiredError}
  10956. */
  10957. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10958. // verify required parameter 'peopleUpdateDto' is not null or undefined
  10959. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  10960. const localVarPath = `/person`;
  10961. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10962. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10963. let baseOptions;
  10964. if (configuration) {
  10965. baseOptions = configuration.baseOptions;
  10966. }
  10967. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10968. const localVarHeaderParameter = {} as any;
  10969. const localVarQueryParameter = {} as any;
  10970. // authentication cookie required
  10971. // authentication api_key required
  10972. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10973. // authentication bearer required
  10974. // http bearer authentication required
  10975. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10976. localVarHeaderParameter['Content-Type'] = 'application/json';
  10977. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10978. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10979. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10980. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  10981. return {
  10982. url: toPathString(localVarUrlObj),
  10983. options: localVarRequestOptions,
  10984. };
  10985. },
  10986. /**
  10987. *
  10988. * @param {string} id
  10989. * @param {PersonUpdateDto} personUpdateDto
  10990. * @param {*} [options] Override http request option.
  10991. * @throws {RequiredError}
  10992. */
  10993. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10994. // verify required parameter 'id' is not null or undefined
  10995. assertParamExists('updatePerson', 'id', id)
  10996. // verify required parameter 'personUpdateDto' is not null or undefined
  10997. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  10998. const localVarPath = `/person/{id}`
  10999. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11000. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11001. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11002. let baseOptions;
  11003. if (configuration) {
  11004. baseOptions = configuration.baseOptions;
  11005. }
  11006. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11007. const localVarHeaderParameter = {} as any;
  11008. const localVarQueryParameter = {} as any;
  11009. // authentication cookie required
  11010. // authentication api_key required
  11011. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11012. // authentication bearer required
  11013. // http bearer authentication required
  11014. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11015. localVarHeaderParameter['Content-Type'] = 'application/json';
  11016. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11017. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11018. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11019. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  11020. return {
  11021. url: toPathString(localVarUrlObj),
  11022. options: localVarRequestOptions,
  11023. };
  11024. },
  11025. }
  11026. };
  11027. /**
  11028. * PersonApi - functional programming interface
  11029. * @export
  11030. */
  11031. export const PersonApiFp = function(configuration?: Configuration) {
  11032. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  11033. return {
  11034. /**
  11035. *
  11036. * @param {boolean} [withHidden]
  11037. * @param {*} [options] Override http request option.
  11038. * @throws {RequiredError}
  11039. */
  11040. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  11041. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  11042. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11043. },
  11044. /**
  11045. *
  11046. * @param {string} id
  11047. * @param {*} [options] Override http request option.
  11048. * @throws {RequiredError}
  11049. */
  11050. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11051. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  11052. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11053. },
  11054. /**
  11055. *
  11056. * @param {string} id
  11057. * @param {*} [options] Override http request option.
  11058. * @throws {RequiredError}
  11059. */
  11060. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  11061. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  11062. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11063. },
  11064. /**
  11065. *
  11066. * @param {string} id
  11067. * @param {*} [options] Override http request option.
  11068. * @throws {RequiredError}
  11069. */
  11070. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  11071. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  11072. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11073. },
  11074. /**
  11075. *
  11076. * @param {string} id
  11077. * @param {MergePersonDto} mergePersonDto
  11078. * @param {*} [options] Override http request option.
  11079. * @throws {RequiredError}
  11080. */
  11081. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11082. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  11083. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11084. },
  11085. /**
  11086. *
  11087. * @param {PeopleUpdateDto} peopleUpdateDto
  11088. * @param {*} [options] Override http request option.
  11089. * @throws {RequiredError}
  11090. */
  11091. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11092. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  11093. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11094. },
  11095. /**
  11096. *
  11097. * @param {string} id
  11098. * @param {PersonUpdateDto} personUpdateDto
  11099. * @param {*} [options] Override http request option.
  11100. * @throws {RequiredError}
  11101. */
  11102. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11103. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  11104. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11105. },
  11106. }
  11107. };
  11108. /**
  11109. * PersonApi - factory interface
  11110. * @export
  11111. */
  11112. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11113. const localVarFp = PersonApiFp(configuration)
  11114. return {
  11115. /**
  11116. *
  11117. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11118. * @param {*} [options] Override http request option.
  11119. * @throws {RequiredError}
  11120. */
  11121. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  11122. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11123. },
  11124. /**
  11125. *
  11126. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11127. * @param {*} [options] Override http request option.
  11128. * @throws {RequiredError}
  11129. */
  11130. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11131. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  11132. },
  11133. /**
  11134. *
  11135. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11136. * @param {*} [options] Override http request option.
  11137. * @throws {RequiredError}
  11138. */
  11139. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  11140. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  11141. },
  11142. /**
  11143. *
  11144. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11145. * @param {*} [options] Override http request option.
  11146. * @throws {RequiredError}
  11147. */
  11148. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  11149. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  11150. },
  11151. /**
  11152. *
  11153. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11154. * @param {*} [options] Override http request option.
  11155. * @throws {RequiredError}
  11156. */
  11157. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11158. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  11159. },
  11160. /**
  11161. *
  11162. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11163. * @param {*} [options] Override http request option.
  11164. * @throws {RequiredError}
  11165. */
  11166. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11167. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  11168. },
  11169. /**
  11170. *
  11171. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11172. * @param {*} [options] Override http request option.
  11173. * @throws {RequiredError}
  11174. */
  11175. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11176. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  11177. },
  11178. };
  11179. };
  11180. /**
  11181. * Request parameters for getAllPeople operation in PersonApi.
  11182. * @export
  11183. * @interface PersonApiGetAllPeopleRequest
  11184. */
  11185. export interface PersonApiGetAllPeopleRequest {
  11186. /**
  11187. *
  11188. * @type {boolean}
  11189. * @memberof PersonApiGetAllPeople
  11190. */
  11191. readonly withHidden?: boolean
  11192. }
  11193. /**
  11194. * Request parameters for getPerson operation in PersonApi.
  11195. * @export
  11196. * @interface PersonApiGetPersonRequest
  11197. */
  11198. export interface PersonApiGetPersonRequest {
  11199. /**
  11200. *
  11201. * @type {string}
  11202. * @memberof PersonApiGetPerson
  11203. */
  11204. readonly id: string
  11205. }
  11206. /**
  11207. * Request parameters for getPersonAssets operation in PersonApi.
  11208. * @export
  11209. * @interface PersonApiGetPersonAssetsRequest
  11210. */
  11211. export interface PersonApiGetPersonAssetsRequest {
  11212. /**
  11213. *
  11214. * @type {string}
  11215. * @memberof PersonApiGetPersonAssets
  11216. */
  11217. readonly id: string
  11218. }
  11219. /**
  11220. * Request parameters for getPersonThumbnail operation in PersonApi.
  11221. * @export
  11222. * @interface PersonApiGetPersonThumbnailRequest
  11223. */
  11224. export interface PersonApiGetPersonThumbnailRequest {
  11225. /**
  11226. *
  11227. * @type {string}
  11228. * @memberof PersonApiGetPersonThumbnail
  11229. */
  11230. readonly id: string
  11231. }
  11232. /**
  11233. * Request parameters for mergePerson operation in PersonApi.
  11234. * @export
  11235. * @interface PersonApiMergePersonRequest
  11236. */
  11237. export interface PersonApiMergePersonRequest {
  11238. /**
  11239. *
  11240. * @type {string}
  11241. * @memberof PersonApiMergePerson
  11242. */
  11243. readonly id: string
  11244. /**
  11245. *
  11246. * @type {MergePersonDto}
  11247. * @memberof PersonApiMergePerson
  11248. */
  11249. readonly mergePersonDto: MergePersonDto
  11250. }
  11251. /**
  11252. * Request parameters for updatePeople operation in PersonApi.
  11253. * @export
  11254. * @interface PersonApiUpdatePeopleRequest
  11255. */
  11256. export interface PersonApiUpdatePeopleRequest {
  11257. /**
  11258. *
  11259. * @type {PeopleUpdateDto}
  11260. * @memberof PersonApiUpdatePeople
  11261. */
  11262. readonly peopleUpdateDto: PeopleUpdateDto
  11263. }
  11264. /**
  11265. * Request parameters for updatePerson operation in PersonApi.
  11266. * @export
  11267. * @interface PersonApiUpdatePersonRequest
  11268. */
  11269. export interface PersonApiUpdatePersonRequest {
  11270. /**
  11271. *
  11272. * @type {string}
  11273. * @memberof PersonApiUpdatePerson
  11274. */
  11275. readonly id: string
  11276. /**
  11277. *
  11278. * @type {PersonUpdateDto}
  11279. * @memberof PersonApiUpdatePerson
  11280. */
  11281. readonly personUpdateDto: PersonUpdateDto
  11282. }
  11283. /**
  11284. * PersonApi - object-oriented interface
  11285. * @export
  11286. * @class PersonApi
  11287. * @extends {BaseAPI}
  11288. */
  11289. export class PersonApi extends BaseAPI {
  11290. /**
  11291. *
  11292. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11293. * @param {*} [options] Override http request option.
  11294. * @throws {RequiredError}
  11295. * @memberof PersonApi
  11296. */
  11297. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  11298. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11299. }
  11300. /**
  11301. *
  11302. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11303. * @param {*} [options] Override http request option.
  11304. * @throws {RequiredError}
  11305. * @memberof PersonApi
  11306. */
  11307. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  11308. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11309. }
  11310. /**
  11311. *
  11312. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11313. * @param {*} [options] Override http request option.
  11314. * @throws {RequiredError}
  11315. * @memberof PersonApi
  11316. */
  11317. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  11318. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11319. }
  11320. /**
  11321. *
  11322. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11323. * @param {*} [options] Override http request option.
  11324. * @throws {RequiredError}
  11325. * @memberof PersonApi
  11326. */
  11327. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  11328. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11329. }
  11330. /**
  11331. *
  11332. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11333. * @param {*} [options] Override http request option.
  11334. * @throws {RequiredError}
  11335. * @memberof PersonApi
  11336. */
  11337. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  11338. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  11339. }
  11340. /**
  11341. *
  11342. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11343. * @param {*} [options] Override http request option.
  11344. * @throws {RequiredError}
  11345. * @memberof PersonApi
  11346. */
  11347. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  11348. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11349. }
  11350. /**
  11351. *
  11352. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11353. * @param {*} [options] Override http request option.
  11354. * @throws {RequiredError}
  11355. * @memberof PersonApi
  11356. */
  11357. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  11358. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11359. }
  11360. }
  11361. /**
  11362. * SearchApi - axios parameter creator
  11363. * @export
  11364. */
  11365. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  11366. return {
  11367. /**
  11368. *
  11369. * @param {*} [options] Override http request option.
  11370. * @throws {RequiredError}
  11371. */
  11372. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11373. const localVarPath = `/search/explore`;
  11374. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11375. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11376. let baseOptions;
  11377. if (configuration) {
  11378. baseOptions = configuration.baseOptions;
  11379. }
  11380. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11381. const localVarHeaderParameter = {} as any;
  11382. const localVarQueryParameter = {} as any;
  11383. // authentication cookie required
  11384. // authentication api_key required
  11385. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11386. // authentication bearer required
  11387. // http bearer authentication required
  11388. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11389. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11390. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11391. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11392. return {
  11393. url: toPathString(localVarUrlObj),
  11394. options: localVarRequestOptions,
  11395. };
  11396. },
  11397. /**
  11398. *
  11399. * @param {string} [q]
  11400. * @param {string} [query]
  11401. * @param {boolean} [clip]
  11402. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11403. * @param {boolean} [isFavorite]
  11404. * @param {boolean} [isArchived]
  11405. * @param {string} [exifInfoCity]
  11406. * @param {string} [exifInfoState]
  11407. * @param {string} [exifInfoCountry]
  11408. * @param {string} [exifInfoMake]
  11409. * @param {string} [exifInfoModel]
  11410. * @param {string} [exifInfoProjectionType]
  11411. * @param {Array<string>} [smartInfoObjects]
  11412. * @param {Array<string>} [smartInfoTags]
  11413. * @param {boolean} [recent]
  11414. * @param {boolean} [motion]
  11415. * @param {*} [options] Override http request option.
  11416. * @throws {RequiredError}
  11417. */
  11418. 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> => {
  11419. const localVarPath = `/search`;
  11420. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11421. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11422. let baseOptions;
  11423. if (configuration) {
  11424. baseOptions = configuration.baseOptions;
  11425. }
  11426. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11427. const localVarHeaderParameter = {} as any;
  11428. const localVarQueryParameter = {} as any;
  11429. // authentication cookie required
  11430. // authentication api_key required
  11431. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11432. // authentication bearer required
  11433. // http bearer authentication required
  11434. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11435. if (q !== undefined) {
  11436. localVarQueryParameter['q'] = q;
  11437. }
  11438. if (query !== undefined) {
  11439. localVarQueryParameter['query'] = query;
  11440. }
  11441. if (clip !== undefined) {
  11442. localVarQueryParameter['clip'] = clip;
  11443. }
  11444. if (type !== undefined) {
  11445. localVarQueryParameter['type'] = type;
  11446. }
  11447. if (isFavorite !== undefined) {
  11448. localVarQueryParameter['isFavorite'] = isFavorite;
  11449. }
  11450. if (isArchived !== undefined) {
  11451. localVarQueryParameter['isArchived'] = isArchived;
  11452. }
  11453. if (exifInfoCity !== undefined) {
  11454. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  11455. }
  11456. if (exifInfoState !== undefined) {
  11457. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  11458. }
  11459. if (exifInfoCountry !== undefined) {
  11460. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  11461. }
  11462. if (exifInfoMake !== undefined) {
  11463. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  11464. }
  11465. if (exifInfoModel !== undefined) {
  11466. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  11467. }
  11468. if (exifInfoProjectionType !== undefined) {
  11469. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  11470. }
  11471. if (smartInfoObjects) {
  11472. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  11473. }
  11474. if (smartInfoTags) {
  11475. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  11476. }
  11477. if (recent !== undefined) {
  11478. localVarQueryParameter['recent'] = recent;
  11479. }
  11480. if (motion !== undefined) {
  11481. localVarQueryParameter['motion'] = motion;
  11482. }
  11483. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11484. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11485. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11486. return {
  11487. url: toPathString(localVarUrlObj),
  11488. options: localVarRequestOptions,
  11489. };
  11490. },
  11491. /**
  11492. *
  11493. * @param {string} name
  11494. * @param {*} [options] Override http request option.
  11495. * @throws {RequiredError}
  11496. */
  11497. searchPerson: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11498. // verify required parameter 'name' is not null or undefined
  11499. assertParamExists('searchPerson', 'name', name)
  11500. const localVarPath = `/search/person`;
  11501. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11502. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11503. let baseOptions;
  11504. if (configuration) {
  11505. baseOptions = configuration.baseOptions;
  11506. }
  11507. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11508. const localVarHeaderParameter = {} as any;
  11509. const localVarQueryParameter = {} as any;
  11510. // authentication cookie required
  11511. // authentication api_key required
  11512. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11513. // authentication bearer required
  11514. // http bearer authentication required
  11515. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11516. if (name !== undefined) {
  11517. localVarQueryParameter['name'] = name;
  11518. }
  11519. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11520. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11521. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11522. return {
  11523. url: toPathString(localVarUrlObj),
  11524. options: localVarRequestOptions,
  11525. };
  11526. },
  11527. }
  11528. };
  11529. /**
  11530. * SearchApi - functional programming interface
  11531. * @export
  11532. */
  11533. export const SearchApiFp = function(configuration?: Configuration) {
  11534. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  11535. return {
  11536. /**
  11537. *
  11538. * @param {*} [options] Override http request option.
  11539. * @throws {RequiredError}
  11540. */
  11541. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  11542. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  11543. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11544. },
  11545. /**
  11546. *
  11547. * @param {string} [q]
  11548. * @param {string} [query]
  11549. * @param {boolean} [clip]
  11550. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11551. * @param {boolean} [isFavorite]
  11552. * @param {boolean} [isArchived]
  11553. * @param {string} [exifInfoCity]
  11554. * @param {string} [exifInfoState]
  11555. * @param {string} [exifInfoCountry]
  11556. * @param {string} [exifInfoMake]
  11557. * @param {string} [exifInfoModel]
  11558. * @param {string} [exifInfoProjectionType]
  11559. * @param {Array<string>} [smartInfoObjects]
  11560. * @param {Array<string>} [smartInfoTags]
  11561. * @param {boolean} [recent]
  11562. * @param {boolean} [motion]
  11563. * @param {*} [options] Override http request option.
  11564. * @throws {RequiredError}
  11565. */
  11566. 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>> {
  11567. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  11568. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11569. },
  11570. /**
  11571. *
  11572. * @param {string} name
  11573. * @param {*} [options] Override http request option.
  11574. * @throws {RequiredError}
  11575. */
  11576. async searchPerson(name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  11577. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, options);
  11578. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11579. },
  11580. }
  11581. };
  11582. /**
  11583. * SearchApi - factory interface
  11584. * @export
  11585. */
  11586. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11587. const localVarFp = SearchApiFp(configuration)
  11588. return {
  11589. /**
  11590. *
  11591. * @param {*} [options] Override http request option.
  11592. * @throws {RequiredError}
  11593. */
  11594. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  11595. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  11596. },
  11597. /**
  11598. *
  11599. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11600. * @param {*} [options] Override http request option.
  11601. * @throws {RequiredError}
  11602. */
  11603. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  11604. 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));
  11605. },
  11606. /**
  11607. *
  11608. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11609. * @param {*} [options] Override http request option.
  11610. * @throws {RequiredError}
  11611. */
  11612. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  11613. return localVarFp.searchPerson(requestParameters.name, options).then((request) => request(axios, basePath));
  11614. },
  11615. };
  11616. };
  11617. /**
  11618. * Request parameters for search operation in SearchApi.
  11619. * @export
  11620. * @interface SearchApiSearchRequest
  11621. */
  11622. export interface SearchApiSearchRequest {
  11623. /**
  11624. *
  11625. * @type {string}
  11626. * @memberof SearchApiSearch
  11627. */
  11628. readonly q?: string
  11629. /**
  11630. *
  11631. * @type {string}
  11632. * @memberof SearchApiSearch
  11633. */
  11634. readonly query?: string
  11635. /**
  11636. *
  11637. * @type {boolean}
  11638. * @memberof SearchApiSearch
  11639. */
  11640. readonly clip?: boolean
  11641. /**
  11642. *
  11643. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  11644. * @memberof SearchApiSearch
  11645. */
  11646. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  11647. /**
  11648. *
  11649. * @type {boolean}
  11650. * @memberof SearchApiSearch
  11651. */
  11652. readonly isFavorite?: boolean
  11653. /**
  11654. *
  11655. * @type {boolean}
  11656. * @memberof SearchApiSearch
  11657. */
  11658. readonly isArchived?: boolean
  11659. /**
  11660. *
  11661. * @type {string}
  11662. * @memberof SearchApiSearch
  11663. */
  11664. readonly exifInfoCity?: string
  11665. /**
  11666. *
  11667. * @type {string}
  11668. * @memberof SearchApiSearch
  11669. */
  11670. readonly exifInfoState?: string
  11671. /**
  11672. *
  11673. * @type {string}
  11674. * @memberof SearchApiSearch
  11675. */
  11676. readonly exifInfoCountry?: string
  11677. /**
  11678. *
  11679. * @type {string}
  11680. * @memberof SearchApiSearch
  11681. */
  11682. readonly exifInfoMake?: string
  11683. /**
  11684. *
  11685. * @type {string}
  11686. * @memberof SearchApiSearch
  11687. */
  11688. readonly exifInfoModel?: string
  11689. /**
  11690. *
  11691. * @type {string}
  11692. * @memberof SearchApiSearch
  11693. */
  11694. readonly exifInfoProjectionType?: string
  11695. /**
  11696. *
  11697. * @type {Array<string>}
  11698. * @memberof SearchApiSearch
  11699. */
  11700. readonly smartInfoObjects?: Array<string>
  11701. /**
  11702. *
  11703. * @type {Array<string>}
  11704. * @memberof SearchApiSearch
  11705. */
  11706. readonly smartInfoTags?: Array<string>
  11707. /**
  11708. *
  11709. * @type {boolean}
  11710. * @memberof SearchApiSearch
  11711. */
  11712. readonly recent?: boolean
  11713. /**
  11714. *
  11715. * @type {boolean}
  11716. * @memberof SearchApiSearch
  11717. */
  11718. readonly motion?: boolean
  11719. }
  11720. /**
  11721. * Request parameters for searchPerson operation in SearchApi.
  11722. * @export
  11723. * @interface SearchApiSearchPersonRequest
  11724. */
  11725. export interface SearchApiSearchPersonRequest {
  11726. /**
  11727. *
  11728. * @type {string}
  11729. * @memberof SearchApiSearchPerson
  11730. */
  11731. readonly name: string
  11732. }
  11733. /**
  11734. * SearchApi - object-oriented interface
  11735. * @export
  11736. * @class SearchApi
  11737. * @extends {BaseAPI}
  11738. */
  11739. export class SearchApi extends BaseAPI {
  11740. /**
  11741. *
  11742. * @param {*} [options] Override http request option.
  11743. * @throws {RequiredError}
  11744. * @memberof SearchApi
  11745. */
  11746. public getExploreData(options?: AxiosRequestConfig) {
  11747. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  11748. }
  11749. /**
  11750. *
  11751. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11752. * @param {*} [options] Override http request option.
  11753. * @throws {RequiredError}
  11754. * @memberof SearchApi
  11755. */
  11756. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  11757. 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));
  11758. }
  11759. /**
  11760. *
  11761. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11762. * @param {*} [options] Override http request option.
  11763. * @throws {RequiredError}
  11764. * @memberof SearchApi
  11765. */
  11766. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  11767. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
  11768. }
  11769. }
  11770. /**
  11771. * ServerInfoApi - axios parameter creator
  11772. * @export
  11773. */
  11774. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  11775. return {
  11776. /**
  11777. *
  11778. * @param {*} [options] Override http request option.
  11779. * @throws {RequiredError}
  11780. */
  11781. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11782. const localVarPath = `/server-info/config`;
  11783. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11784. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11785. let baseOptions;
  11786. if (configuration) {
  11787. baseOptions = configuration.baseOptions;
  11788. }
  11789. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11790. const localVarHeaderParameter = {} as any;
  11791. const localVarQueryParameter = {} as any;
  11792. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11793. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11794. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11795. return {
  11796. url: toPathString(localVarUrlObj),
  11797. options: localVarRequestOptions,
  11798. };
  11799. },
  11800. /**
  11801. *
  11802. * @param {*} [options] Override http request option.
  11803. * @throws {RequiredError}
  11804. */
  11805. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11806. const localVarPath = `/server-info/features`;
  11807. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11808. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11809. let baseOptions;
  11810. if (configuration) {
  11811. baseOptions = configuration.baseOptions;
  11812. }
  11813. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11814. const localVarHeaderParameter = {} as any;
  11815. const localVarQueryParameter = {} as any;
  11816. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11817. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11818. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11819. return {
  11820. url: toPathString(localVarUrlObj),
  11821. options: localVarRequestOptions,
  11822. };
  11823. },
  11824. /**
  11825. *
  11826. * @param {*} [options] Override http request option.
  11827. * @throws {RequiredError}
  11828. */
  11829. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11830. const localVarPath = `/server-info`;
  11831. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11832. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11833. let baseOptions;
  11834. if (configuration) {
  11835. baseOptions = configuration.baseOptions;
  11836. }
  11837. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11838. const localVarHeaderParameter = {} as any;
  11839. const localVarQueryParameter = {} as any;
  11840. // authentication cookie required
  11841. // authentication api_key required
  11842. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11843. // authentication bearer required
  11844. // http bearer authentication required
  11845. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11846. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11847. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11848. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11849. return {
  11850. url: toPathString(localVarUrlObj),
  11851. options: localVarRequestOptions,
  11852. };
  11853. },
  11854. /**
  11855. *
  11856. * @param {*} [options] Override http request option.
  11857. * @throws {RequiredError}
  11858. */
  11859. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11860. const localVarPath = `/server-info/version`;
  11861. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11862. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11863. let baseOptions;
  11864. if (configuration) {
  11865. baseOptions = configuration.baseOptions;
  11866. }
  11867. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11868. const localVarHeaderParameter = {} as any;
  11869. const localVarQueryParameter = {} as any;
  11870. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11871. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11872. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11873. return {
  11874. url: toPathString(localVarUrlObj),
  11875. options: localVarRequestOptions,
  11876. };
  11877. },
  11878. /**
  11879. *
  11880. * @param {*} [options] Override http request option.
  11881. * @throws {RequiredError}
  11882. */
  11883. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11884. const localVarPath = `/server-info/stats`;
  11885. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11886. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11887. let baseOptions;
  11888. if (configuration) {
  11889. baseOptions = configuration.baseOptions;
  11890. }
  11891. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11892. const localVarHeaderParameter = {} as any;
  11893. const localVarQueryParameter = {} as any;
  11894. // authentication cookie required
  11895. // authentication api_key required
  11896. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11897. // authentication bearer required
  11898. // http bearer authentication required
  11899. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11900. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11901. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11902. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11903. return {
  11904. url: toPathString(localVarUrlObj),
  11905. options: localVarRequestOptions,
  11906. };
  11907. },
  11908. /**
  11909. *
  11910. * @param {*} [options] Override http request option.
  11911. * @throws {RequiredError}
  11912. */
  11913. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11914. const localVarPath = `/server-info/media-types`;
  11915. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11916. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11917. let baseOptions;
  11918. if (configuration) {
  11919. baseOptions = configuration.baseOptions;
  11920. }
  11921. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11922. const localVarHeaderParameter = {} as any;
  11923. const localVarQueryParameter = {} as any;
  11924. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11925. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11926. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11927. return {
  11928. url: toPathString(localVarUrlObj),
  11929. options: localVarRequestOptions,
  11930. };
  11931. },
  11932. /**
  11933. *
  11934. * @param {*} [options] Override http request option.
  11935. * @throws {RequiredError}
  11936. */
  11937. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11938. const localVarPath = `/server-info/ping`;
  11939. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11940. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11941. let baseOptions;
  11942. if (configuration) {
  11943. baseOptions = configuration.baseOptions;
  11944. }
  11945. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11946. const localVarHeaderParameter = {} as any;
  11947. const localVarQueryParameter = {} as any;
  11948. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11949. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11950. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11951. return {
  11952. url: toPathString(localVarUrlObj),
  11953. options: localVarRequestOptions,
  11954. };
  11955. },
  11956. }
  11957. };
  11958. /**
  11959. * ServerInfoApi - functional programming interface
  11960. * @export
  11961. */
  11962. export const ServerInfoApiFp = function(configuration?: Configuration) {
  11963. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  11964. return {
  11965. /**
  11966. *
  11967. * @param {*} [options] Override http request option.
  11968. * @throws {RequiredError}
  11969. */
  11970. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  11971. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  11972. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11973. },
  11974. /**
  11975. *
  11976. * @param {*} [options] Override http request option.
  11977. * @throws {RequiredError}
  11978. */
  11979. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  11980. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  11981. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11982. },
  11983. /**
  11984. *
  11985. * @param {*} [options] Override http request option.
  11986. * @throws {RequiredError}
  11987. */
  11988. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  11989. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(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 getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  11998. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(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 getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  12007. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(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 getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  12016. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(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 pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  12025. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  12026. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12027. },
  12028. }
  12029. };
  12030. /**
  12031. * ServerInfoApi - factory interface
  12032. * @export
  12033. */
  12034. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12035. const localVarFp = ServerInfoApiFp(configuration)
  12036. return {
  12037. /**
  12038. *
  12039. * @param {*} [options] Override http request option.
  12040. * @throws {RequiredError}
  12041. */
  12042. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  12043. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  12044. },
  12045. /**
  12046. *
  12047. * @param {*} [options] Override http request option.
  12048. * @throws {RequiredError}
  12049. */
  12050. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  12051. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  12052. },
  12053. /**
  12054. *
  12055. * @param {*} [options] Override http request option.
  12056. * @throws {RequiredError}
  12057. */
  12058. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  12059. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  12060. },
  12061. /**
  12062. *
  12063. * @param {*} [options] Override http request option.
  12064. * @throws {RequiredError}
  12065. */
  12066. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  12067. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  12068. },
  12069. /**
  12070. *
  12071. * @param {*} [options] Override http request option.
  12072. * @throws {RequiredError}
  12073. */
  12074. getStats(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  12075. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  12076. },
  12077. /**
  12078. *
  12079. * @param {*} [options] Override http request option.
  12080. * @throws {RequiredError}
  12081. */
  12082. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  12083. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  12084. },
  12085. /**
  12086. *
  12087. * @param {*} [options] Override http request option.
  12088. * @throws {RequiredError}
  12089. */
  12090. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  12091. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  12092. },
  12093. };
  12094. };
  12095. /**
  12096. * ServerInfoApi - object-oriented interface
  12097. * @export
  12098. * @class ServerInfoApi
  12099. * @extends {BaseAPI}
  12100. */
  12101. export class ServerInfoApi extends BaseAPI {
  12102. /**
  12103. *
  12104. * @param {*} [options] Override http request option.
  12105. * @throws {RequiredError}
  12106. * @memberof ServerInfoApi
  12107. */
  12108. public getServerConfig(options?: AxiosRequestConfig) {
  12109. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  12110. }
  12111. /**
  12112. *
  12113. * @param {*} [options] Override http request option.
  12114. * @throws {RequiredError}
  12115. * @memberof ServerInfoApi
  12116. */
  12117. public getServerFeatures(options?: AxiosRequestConfig) {
  12118. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  12119. }
  12120. /**
  12121. *
  12122. * @param {*} [options] Override http request option.
  12123. * @throws {RequiredError}
  12124. * @memberof ServerInfoApi
  12125. */
  12126. public getServerInfo(options?: AxiosRequestConfig) {
  12127. return ServerInfoApiFp(this.configuration).getServerInfo(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 getServerVersion(options?: AxiosRequestConfig) {
  12136. return ServerInfoApiFp(this.configuration).getServerVersion(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 getStats(options?: AxiosRequestConfig) {
  12145. return ServerInfoApiFp(this.configuration).getStats(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 getSupportedMediaTypes(options?: AxiosRequestConfig) {
  12154. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(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 pingServer(options?: AxiosRequestConfig) {
  12163. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  12164. }
  12165. }
  12166. /**
  12167. * SharedLinkApi - axios parameter creator
  12168. * @export
  12169. */
  12170. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  12171. return {
  12172. /**
  12173. *
  12174. * @param {string} id
  12175. * @param {AssetIdsDto} assetIdsDto
  12176. * @param {string} [key]
  12177. * @param {*} [options] Override http request option.
  12178. * @throws {RequiredError}
  12179. */
  12180. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12181. // verify required parameter 'id' is not null or undefined
  12182. assertParamExists('addSharedLinkAssets', 'id', id)
  12183. // verify required parameter 'assetIdsDto' is not null or undefined
  12184. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12185. const localVarPath = `/shared-link/{id}/assets`
  12186. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12187. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12188. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12189. let baseOptions;
  12190. if (configuration) {
  12191. baseOptions = configuration.baseOptions;
  12192. }
  12193. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12194. const localVarHeaderParameter = {} as any;
  12195. const localVarQueryParameter = {} as any;
  12196. // authentication cookie required
  12197. // authentication api_key required
  12198. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12199. // authentication bearer required
  12200. // http bearer authentication required
  12201. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12202. if (key !== undefined) {
  12203. localVarQueryParameter['key'] = key;
  12204. }
  12205. localVarHeaderParameter['Content-Type'] = 'application/json';
  12206. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12207. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12208. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12209. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12210. return {
  12211. url: toPathString(localVarUrlObj),
  12212. options: localVarRequestOptions,
  12213. };
  12214. },
  12215. /**
  12216. *
  12217. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12218. * @param {*} [options] Override http request option.
  12219. * @throws {RequiredError}
  12220. */
  12221. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12222. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  12223. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  12224. const localVarPath = `/shared-link`;
  12225. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12226. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12227. let baseOptions;
  12228. if (configuration) {
  12229. baseOptions = configuration.baseOptions;
  12230. }
  12231. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12232. const localVarHeaderParameter = {} as any;
  12233. const localVarQueryParameter = {} as any;
  12234. // authentication cookie required
  12235. // authentication api_key required
  12236. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12237. // authentication bearer required
  12238. // http bearer authentication required
  12239. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12240. localVarHeaderParameter['Content-Type'] = 'application/json';
  12241. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12242. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12243. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12244. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  12245. return {
  12246. url: toPathString(localVarUrlObj),
  12247. options: localVarRequestOptions,
  12248. };
  12249. },
  12250. /**
  12251. *
  12252. * @param {*} [options] Override http request option.
  12253. * @throws {RequiredError}
  12254. */
  12255. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12256. const localVarPath = `/shared-link`;
  12257. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12258. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12259. let baseOptions;
  12260. if (configuration) {
  12261. baseOptions = configuration.baseOptions;
  12262. }
  12263. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12264. const localVarHeaderParameter = {} as any;
  12265. const localVarQueryParameter = {} as any;
  12266. // authentication cookie required
  12267. // authentication api_key required
  12268. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12269. // authentication bearer required
  12270. // http bearer authentication required
  12271. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12272. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12273. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12274. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12275. return {
  12276. url: toPathString(localVarUrlObj),
  12277. options: localVarRequestOptions,
  12278. };
  12279. },
  12280. /**
  12281. *
  12282. * @param {string} [key]
  12283. * @param {*} [options] Override http request option.
  12284. * @throws {RequiredError}
  12285. */
  12286. getMySharedLink: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12287. const localVarPath = `/shared-link/me`;
  12288. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12289. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12290. let baseOptions;
  12291. if (configuration) {
  12292. baseOptions = configuration.baseOptions;
  12293. }
  12294. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12295. const localVarHeaderParameter = {} as any;
  12296. const localVarQueryParameter = {} as any;
  12297. // authentication cookie required
  12298. // authentication api_key required
  12299. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12300. // authentication bearer required
  12301. // http bearer authentication required
  12302. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12303. if (key !== undefined) {
  12304. localVarQueryParameter['key'] = key;
  12305. }
  12306. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12307. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12308. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12309. return {
  12310. url: toPathString(localVarUrlObj),
  12311. options: localVarRequestOptions,
  12312. };
  12313. },
  12314. /**
  12315. *
  12316. * @param {string} id
  12317. * @param {*} [options] Override http request option.
  12318. * @throws {RequiredError}
  12319. */
  12320. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12321. // verify required parameter 'id' is not null or undefined
  12322. assertParamExists('getSharedLinkById', 'id', id)
  12323. const localVarPath = `/shared-link/{id}`
  12324. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12325. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12326. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12327. let baseOptions;
  12328. if (configuration) {
  12329. baseOptions = configuration.baseOptions;
  12330. }
  12331. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12332. const localVarHeaderParameter = {} as any;
  12333. const localVarQueryParameter = {} as any;
  12334. // authentication cookie required
  12335. // authentication api_key required
  12336. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12337. // authentication bearer required
  12338. // http bearer authentication required
  12339. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12340. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12341. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12342. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12343. return {
  12344. url: toPathString(localVarUrlObj),
  12345. options: localVarRequestOptions,
  12346. };
  12347. },
  12348. /**
  12349. *
  12350. * @param {string} id
  12351. * @param {*} [options] Override http request option.
  12352. * @throws {RequiredError}
  12353. */
  12354. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12355. // verify required parameter 'id' is not null or undefined
  12356. assertParamExists('removeSharedLink', 'id', id)
  12357. const localVarPath = `/shared-link/{id}`
  12358. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12359. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12360. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12361. let baseOptions;
  12362. if (configuration) {
  12363. baseOptions = configuration.baseOptions;
  12364. }
  12365. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12366. const localVarHeaderParameter = {} as any;
  12367. const localVarQueryParameter = {} as any;
  12368. // authentication cookie required
  12369. // authentication api_key required
  12370. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12371. // authentication bearer required
  12372. // http bearer authentication required
  12373. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12374. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12375. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12376. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12377. return {
  12378. url: toPathString(localVarUrlObj),
  12379. options: localVarRequestOptions,
  12380. };
  12381. },
  12382. /**
  12383. *
  12384. * @param {string} id
  12385. * @param {AssetIdsDto} assetIdsDto
  12386. * @param {string} [key]
  12387. * @param {*} [options] Override http request option.
  12388. * @throws {RequiredError}
  12389. */
  12390. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12391. // verify required parameter 'id' is not null or undefined
  12392. assertParamExists('removeSharedLinkAssets', 'id', id)
  12393. // verify required parameter 'assetIdsDto' is not null or undefined
  12394. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12395. const localVarPath = `/shared-link/{id}/assets`
  12396. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12397. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12398. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12399. let baseOptions;
  12400. if (configuration) {
  12401. baseOptions = configuration.baseOptions;
  12402. }
  12403. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12404. const localVarHeaderParameter = {} as any;
  12405. const localVarQueryParameter = {} as any;
  12406. // authentication cookie required
  12407. // authentication api_key required
  12408. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12409. // authentication bearer required
  12410. // http bearer authentication required
  12411. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12412. if (key !== undefined) {
  12413. localVarQueryParameter['key'] = key;
  12414. }
  12415. localVarHeaderParameter['Content-Type'] = 'application/json';
  12416. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12417. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12418. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12419. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12420. return {
  12421. url: toPathString(localVarUrlObj),
  12422. options: localVarRequestOptions,
  12423. };
  12424. },
  12425. /**
  12426. *
  12427. * @param {string} id
  12428. * @param {SharedLinkEditDto} sharedLinkEditDto
  12429. * @param {*} [options] Override http request option.
  12430. * @throws {RequiredError}
  12431. */
  12432. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12433. // verify required parameter 'id' is not null or undefined
  12434. assertParamExists('updateSharedLink', 'id', id)
  12435. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  12436. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  12437. const localVarPath = `/shared-link/{id}`
  12438. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12439. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12440. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12441. let baseOptions;
  12442. if (configuration) {
  12443. baseOptions = configuration.baseOptions;
  12444. }
  12445. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  12446. const localVarHeaderParameter = {} as any;
  12447. const localVarQueryParameter = {} as any;
  12448. // authentication cookie required
  12449. // authentication api_key required
  12450. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12451. // authentication bearer required
  12452. // http bearer authentication required
  12453. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12454. localVarHeaderParameter['Content-Type'] = 'application/json';
  12455. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12456. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12457. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12458. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  12459. return {
  12460. url: toPathString(localVarUrlObj),
  12461. options: localVarRequestOptions,
  12462. };
  12463. },
  12464. }
  12465. };
  12466. /**
  12467. * SharedLinkApi - functional programming interface
  12468. * @export
  12469. */
  12470. export const SharedLinkApiFp = function(configuration?: Configuration) {
  12471. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  12472. return {
  12473. /**
  12474. *
  12475. * @param {string} id
  12476. * @param {AssetIdsDto} assetIdsDto
  12477. * @param {string} [key]
  12478. * @param {*} [options] Override http request option.
  12479. * @throws {RequiredError}
  12480. */
  12481. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12482. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  12483. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12484. },
  12485. /**
  12486. *
  12487. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12488. * @param {*} [options] Override http request option.
  12489. * @throws {RequiredError}
  12490. */
  12491. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12492. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  12493. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12494. },
  12495. /**
  12496. *
  12497. * @param {*} [options] Override http request option.
  12498. * @throws {RequiredError}
  12499. */
  12500. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  12501. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  12502. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12503. },
  12504. /**
  12505. *
  12506. * @param {string} [key]
  12507. * @param {*} [options] Override http request option.
  12508. * @throws {RequiredError}
  12509. */
  12510. async getMySharedLink(key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12511. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(key, options);
  12512. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12513. },
  12514. /**
  12515. *
  12516. * @param {string} id
  12517. * @param {*} [options] Override http request option.
  12518. * @throws {RequiredError}
  12519. */
  12520. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12521. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  12522. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12523. },
  12524. /**
  12525. *
  12526. * @param {string} id
  12527. * @param {*} [options] Override http request option.
  12528. * @throws {RequiredError}
  12529. */
  12530. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  12531. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  12532. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12533. },
  12534. /**
  12535. *
  12536. * @param {string} id
  12537. * @param {AssetIdsDto} assetIdsDto
  12538. * @param {string} [key]
  12539. * @param {*} [options] Override http request option.
  12540. * @throws {RequiredError}
  12541. */
  12542. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12543. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  12544. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12545. },
  12546. /**
  12547. *
  12548. * @param {string} id
  12549. * @param {SharedLinkEditDto} sharedLinkEditDto
  12550. * @param {*} [options] Override http request option.
  12551. * @throws {RequiredError}
  12552. */
  12553. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12554. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  12555. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12556. },
  12557. }
  12558. };
  12559. /**
  12560. * SharedLinkApi - factory interface
  12561. * @export
  12562. */
  12563. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12564. const localVarFp = SharedLinkApiFp(configuration)
  12565. return {
  12566. /**
  12567. *
  12568. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12569. * @param {*} [options] Override http request option.
  12570. * @throws {RequiredError}
  12571. */
  12572. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12573. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12574. },
  12575. /**
  12576. *
  12577. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12578. * @param {*} [options] Override http request option.
  12579. * @throws {RequiredError}
  12580. */
  12581. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12582. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  12583. },
  12584. /**
  12585. *
  12586. * @param {*} [options] Override http request option.
  12587. * @throws {RequiredError}
  12588. */
  12589. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  12590. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  12591. },
  12592. /**
  12593. *
  12594. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12595. * @param {*} [options] Override http request option.
  12596. * @throws {RequiredError}
  12597. */
  12598. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12599. return localVarFp.getMySharedLink(requestParameters.key, options).then((request) => request(axios, basePath));
  12600. },
  12601. /**
  12602. *
  12603. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12604. * @param {*} [options] Override http request option.
  12605. * @throws {RequiredError}
  12606. */
  12607. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12608. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  12609. },
  12610. /**
  12611. *
  12612. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12613. * @param {*} [options] Override http request option.
  12614. * @throws {RequiredError}
  12615. */
  12616. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  12617. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  12618. },
  12619. /**
  12620. *
  12621. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12622. * @param {*} [options] Override http request option.
  12623. * @throws {RequiredError}
  12624. */
  12625. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12626. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12627. },
  12628. /**
  12629. *
  12630. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12631. * @param {*} [options] Override http request option.
  12632. * @throws {RequiredError}
  12633. */
  12634. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12635. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  12636. },
  12637. };
  12638. };
  12639. /**
  12640. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  12641. * @export
  12642. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  12643. */
  12644. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  12645. /**
  12646. *
  12647. * @type {string}
  12648. * @memberof SharedLinkApiAddSharedLinkAssets
  12649. */
  12650. readonly id: string
  12651. /**
  12652. *
  12653. * @type {AssetIdsDto}
  12654. * @memberof SharedLinkApiAddSharedLinkAssets
  12655. */
  12656. readonly assetIdsDto: AssetIdsDto
  12657. /**
  12658. *
  12659. * @type {string}
  12660. * @memberof SharedLinkApiAddSharedLinkAssets
  12661. */
  12662. readonly key?: string
  12663. }
  12664. /**
  12665. * Request parameters for createSharedLink operation in SharedLinkApi.
  12666. * @export
  12667. * @interface SharedLinkApiCreateSharedLinkRequest
  12668. */
  12669. export interface SharedLinkApiCreateSharedLinkRequest {
  12670. /**
  12671. *
  12672. * @type {SharedLinkCreateDto}
  12673. * @memberof SharedLinkApiCreateSharedLink
  12674. */
  12675. readonly sharedLinkCreateDto: SharedLinkCreateDto
  12676. }
  12677. /**
  12678. * Request parameters for getMySharedLink operation in SharedLinkApi.
  12679. * @export
  12680. * @interface SharedLinkApiGetMySharedLinkRequest
  12681. */
  12682. export interface SharedLinkApiGetMySharedLinkRequest {
  12683. /**
  12684. *
  12685. * @type {string}
  12686. * @memberof SharedLinkApiGetMySharedLink
  12687. */
  12688. readonly key?: string
  12689. }
  12690. /**
  12691. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  12692. * @export
  12693. * @interface SharedLinkApiGetSharedLinkByIdRequest
  12694. */
  12695. export interface SharedLinkApiGetSharedLinkByIdRequest {
  12696. /**
  12697. *
  12698. * @type {string}
  12699. * @memberof SharedLinkApiGetSharedLinkById
  12700. */
  12701. readonly id: string
  12702. }
  12703. /**
  12704. * Request parameters for removeSharedLink operation in SharedLinkApi.
  12705. * @export
  12706. * @interface SharedLinkApiRemoveSharedLinkRequest
  12707. */
  12708. export interface SharedLinkApiRemoveSharedLinkRequest {
  12709. /**
  12710. *
  12711. * @type {string}
  12712. * @memberof SharedLinkApiRemoveSharedLink
  12713. */
  12714. readonly id: string
  12715. }
  12716. /**
  12717. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  12718. * @export
  12719. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  12720. */
  12721. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  12722. /**
  12723. *
  12724. * @type {string}
  12725. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12726. */
  12727. readonly id: string
  12728. /**
  12729. *
  12730. * @type {AssetIdsDto}
  12731. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12732. */
  12733. readonly assetIdsDto: AssetIdsDto
  12734. /**
  12735. *
  12736. * @type {string}
  12737. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12738. */
  12739. readonly key?: string
  12740. }
  12741. /**
  12742. * Request parameters for updateSharedLink operation in SharedLinkApi.
  12743. * @export
  12744. * @interface SharedLinkApiUpdateSharedLinkRequest
  12745. */
  12746. export interface SharedLinkApiUpdateSharedLinkRequest {
  12747. /**
  12748. *
  12749. * @type {string}
  12750. * @memberof SharedLinkApiUpdateSharedLink
  12751. */
  12752. readonly id: string
  12753. /**
  12754. *
  12755. * @type {SharedLinkEditDto}
  12756. * @memberof SharedLinkApiUpdateSharedLink
  12757. */
  12758. readonly sharedLinkEditDto: SharedLinkEditDto
  12759. }
  12760. /**
  12761. * SharedLinkApi - object-oriented interface
  12762. * @export
  12763. * @class SharedLinkApi
  12764. * @extends {BaseAPI}
  12765. */
  12766. export class SharedLinkApi extends BaseAPI {
  12767. /**
  12768. *
  12769. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12770. * @param {*} [options] Override http request option.
  12771. * @throws {RequiredError}
  12772. * @memberof SharedLinkApi
  12773. */
  12774. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12775. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12776. }
  12777. /**
  12778. *
  12779. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12780. * @param {*} [options] Override http request option.
  12781. * @throws {RequiredError}
  12782. * @memberof SharedLinkApi
  12783. */
  12784. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  12785. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  12786. }
  12787. /**
  12788. *
  12789. * @param {*} [options] Override http request option.
  12790. * @throws {RequiredError}
  12791. * @memberof SharedLinkApi
  12792. */
  12793. public getAllSharedLinks(options?: AxiosRequestConfig) {
  12794. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  12795. }
  12796. /**
  12797. *
  12798. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12799. * @param {*} [options] Override http request option.
  12800. * @throws {RequiredError}
  12801. * @memberof SharedLinkApi
  12802. */
  12803. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  12804. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12805. }
  12806. /**
  12807. *
  12808. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12809. * @param {*} [options] Override http request option.
  12810. * @throws {RequiredError}
  12811. * @memberof SharedLinkApi
  12812. */
  12813. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  12814. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12815. }
  12816. /**
  12817. *
  12818. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12819. * @param {*} [options] Override http request option.
  12820. * @throws {RequiredError}
  12821. * @memberof SharedLinkApi
  12822. */
  12823. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  12824. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12825. }
  12826. /**
  12827. *
  12828. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12829. * @param {*} [options] Override http request option.
  12830. * @throws {RequiredError}
  12831. * @memberof SharedLinkApi
  12832. */
  12833. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12834. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12835. }
  12836. /**
  12837. *
  12838. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12839. * @param {*} [options] Override http request option.
  12840. * @throws {RequiredError}
  12841. * @memberof SharedLinkApi
  12842. */
  12843. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  12844. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  12845. }
  12846. }
  12847. /**
  12848. * SystemConfigApi - axios parameter creator
  12849. * @export
  12850. */
  12851. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  12852. return {
  12853. /**
  12854. *
  12855. * @param {*} [options] Override http request option.
  12856. * @throws {RequiredError}
  12857. */
  12858. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12859. const localVarPath = `/system-config`;
  12860. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12861. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12862. let baseOptions;
  12863. if (configuration) {
  12864. baseOptions = configuration.baseOptions;
  12865. }
  12866. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12867. const localVarHeaderParameter = {} as any;
  12868. const localVarQueryParameter = {} as any;
  12869. // authentication cookie required
  12870. // authentication api_key required
  12871. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12872. // authentication bearer required
  12873. // http bearer authentication required
  12874. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12875. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12876. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12877. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12878. return {
  12879. url: toPathString(localVarUrlObj),
  12880. options: localVarRequestOptions,
  12881. };
  12882. },
  12883. /**
  12884. *
  12885. * @param {*} [options] Override http request option.
  12886. * @throws {RequiredError}
  12887. */
  12888. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12889. const localVarPath = `/system-config/defaults`;
  12890. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12891. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12892. let baseOptions;
  12893. if (configuration) {
  12894. baseOptions = configuration.baseOptions;
  12895. }
  12896. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12897. const localVarHeaderParameter = {} as any;
  12898. const localVarQueryParameter = {} as any;
  12899. // authentication cookie required
  12900. // authentication api_key required
  12901. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12902. // authentication bearer required
  12903. // http bearer authentication required
  12904. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12905. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12906. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12907. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12908. return {
  12909. url: toPathString(localVarUrlObj),
  12910. options: localVarRequestOptions,
  12911. };
  12912. },
  12913. /**
  12914. *
  12915. * @param {*} [options] Override http request option.
  12916. * @throws {RequiredError}
  12917. */
  12918. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12919. const localVarPath = `/system-config/storage-template-options`;
  12920. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12921. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12922. let baseOptions;
  12923. if (configuration) {
  12924. baseOptions = configuration.baseOptions;
  12925. }
  12926. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12927. const localVarHeaderParameter = {} as any;
  12928. const localVarQueryParameter = {} as any;
  12929. // authentication cookie required
  12930. // authentication api_key required
  12931. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12932. // authentication bearer required
  12933. // http bearer authentication required
  12934. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12935. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12936. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12937. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12938. return {
  12939. url: toPathString(localVarUrlObj),
  12940. options: localVarRequestOptions,
  12941. };
  12942. },
  12943. /**
  12944. *
  12945. * @param {SystemConfigDto} systemConfigDto
  12946. * @param {*} [options] Override http request option.
  12947. * @throws {RequiredError}
  12948. */
  12949. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12950. // verify required parameter 'systemConfigDto' is not null or undefined
  12951. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  12952. const localVarPath = `/system-config`;
  12953. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12954. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12955. let baseOptions;
  12956. if (configuration) {
  12957. baseOptions = configuration.baseOptions;
  12958. }
  12959. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12960. const localVarHeaderParameter = {} as any;
  12961. const localVarQueryParameter = {} as any;
  12962. // authentication cookie required
  12963. // authentication api_key required
  12964. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12965. // authentication bearer required
  12966. // http bearer authentication required
  12967. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12968. localVarHeaderParameter['Content-Type'] = 'application/json';
  12969. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12970. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12971. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12972. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  12973. return {
  12974. url: toPathString(localVarUrlObj),
  12975. options: localVarRequestOptions,
  12976. };
  12977. },
  12978. }
  12979. };
  12980. /**
  12981. * SystemConfigApi - functional programming interface
  12982. * @export
  12983. */
  12984. export const SystemConfigApiFp = function(configuration?: Configuration) {
  12985. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  12986. return {
  12987. /**
  12988. *
  12989. * @param {*} [options] Override http request option.
  12990. * @throws {RequiredError}
  12991. */
  12992. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  12993. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  12994. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12995. },
  12996. /**
  12997. *
  12998. * @param {*} [options] Override http request option.
  12999. * @throws {RequiredError}
  13000. */
  13001. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13002. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  13003. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13004. },
  13005. /**
  13006. *
  13007. * @param {*} [options] Override http request option.
  13008. * @throws {RequiredError}
  13009. */
  13010. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  13011. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  13012. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13013. },
  13014. /**
  13015. *
  13016. * @param {SystemConfigDto} systemConfigDto
  13017. * @param {*} [options] Override http request option.
  13018. * @throws {RequiredError}
  13019. */
  13020. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13021. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  13022. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13023. },
  13024. }
  13025. };
  13026. /**
  13027. * SystemConfigApi - factory interface
  13028. * @export
  13029. */
  13030. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13031. const localVarFp = SystemConfigApiFp(configuration)
  13032. return {
  13033. /**
  13034. *
  13035. * @param {*} [options] Override http request option.
  13036. * @throws {RequiredError}
  13037. */
  13038. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13039. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  13040. },
  13041. /**
  13042. *
  13043. * @param {*} [options] Override http request option.
  13044. * @throws {RequiredError}
  13045. */
  13046. getDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13047. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  13048. },
  13049. /**
  13050. *
  13051. * @param {*} [options] Override http request option.
  13052. * @throws {RequiredError}
  13053. */
  13054. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  13055. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  13056. },
  13057. /**
  13058. *
  13059. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13060. * @param {*} [options] Override http request option.
  13061. * @throws {RequiredError}
  13062. */
  13063. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13064. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  13065. },
  13066. };
  13067. };
  13068. /**
  13069. * Request parameters for updateConfig operation in SystemConfigApi.
  13070. * @export
  13071. * @interface SystemConfigApiUpdateConfigRequest
  13072. */
  13073. export interface SystemConfigApiUpdateConfigRequest {
  13074. /**
  13075. *
  13076. * @type {SystemConfigDto}
  13077. * @memberof SystemConfigApiUpdateConfig
  13078. */
  13079. readonly systemConfigDto: SystemConfigDto
  13080. }
  13081. /**
  13082. * SystemConfigApi - object-oriented interface
  13083. * @export
  13084. * @class SystemConfigApi
  13085. * @extends {BaseAPI}
  13086. */
  13087. export class SystemConfigApi extends BaseAPI {
  13088. /**
  13089. *
  13090. * @param {*} [options] Override http request option.
  13091. * @throws {RequiredError}
  13092. * @memberof SystemConfigApi
  13093. */
  13094. public getConfig(options?: AxiosRequestConfig) {
  13095. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  13096. }
  13097. /**
  13098. *
  13099. * @param {*} [options] Override http request option.
  13100. * @throws {RequiredError}
  13101. * @memberof SystemConfigApi
  13102. */
  13103. public getDefaults(options?: AxiosRequestConfig) {
  13104. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  13105. }
  13106. /**
  13107. *
  13108. * @param {*} [options] Override http request option.
  13109. * @throws {RequiredError}
  13110. * @memberof SystemConfigApi
  13111. */
  13112. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  13113. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  13114. }
  13115. /**
  13116. *
  13117. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13118. * @param {*} [options] Override http request option.
  13119. * @throws {RequiredError}
  13120. * @memberof SystemConfigApi
  13121. */
  13122. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  13123. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  13124. }
  13125. }
  13126. /**
  13127. * TagApi - axios parameter creator
  13128. * @export
  13129. */
  13130. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  13131. return {
  13132. /**
  13133. *
  13134. * @param {CreateTagDto} createTagDto
  13135. * @param {*} [options] Override http request option.
  13136. * @throws {RequiredError}
  13137. */
  13138. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13139. // verify required parameter 'createTagDto' is not null or undefined
  13140. assertParamExists('createTag', 'createTagDto', createTagDto)
  13141. const localVarPath = `/tag`;
  13142. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13143. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13144. let baseOptions;
  13145. if (configuration) {
  13146. baseOptions = configuration.baseOptions;
  13147. }
  13148. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13149. const localVarHeaderParameter = {} as any;
  13150. const localVarQueryParameter = {} as any;
  13151. // authentication cookie required
  13152. // authentication api_key required
  13153. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13154. // authentication bearer required
  13155. // http bearer authentication required
  13156. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13157. localVarHeaderParameter['Content-Type'] = 'application/json';
  13158. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13159. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13160. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13161. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  13162. return {
  13163. url: toPathString(localVarUrlObj),
  13164. options: localVarRequestOptions,
  13165. };
  13166. },
  13167. /**
  13168. *
  13169. * @param {string} id
  13170. * @param {*} [options] Override http request option.
  13171. * @throws {RequiredError}
  13172. */
  13173. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13174. // verify required parameter 'id' is not null or undefined
  13175. assertParamExists('deleteTag', 'id', id)
  13176. const localVarPath = `/tag/{id}`
  13177. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13178. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13179. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13180. let baseOptions;
  13181. if (configuration) {
  13182. baseOptions = configuration.baseOptions;
  13183. }
  13184. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13185. const localVarHeaderParameter = {} as any;
  13186. const localVarQueryParameter = {} as any;
  13187. // authentication cookie required
  13188. // authentication api_key required
  13189. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13190. // authentication bearer required
  13191. // http bearer authentication required
  13192. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13193. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13194. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13195. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13196. return {
  13197. url: toPathString(localVarUrlObj),
  13198. options: localVarRequestOptions,
  13199. };
  13200. },
  13201. /**
  13202. *
  13203. * @param {*} [options] Override http request option.
  13204. * @throws {RequiredError}
  13205. */
  13206. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13207. const localVarPath = `/tag`;
  13208. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13209. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13210. let baseOptions;
  13211. if (configuration) {
  13212. baseOptions = configuration.baseOptions;
  13213. }
  13214. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13215. const localVarHeaderParameter = {} as any;
  13216. const localVarQueryParameter = {} as any;
  13217. // authentication cookie required
  13218. // authentication api_key required
  13219. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13220. // authentication bearer required
  13221. // http bearer authentication required
  13222. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13223. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13224. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13225. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13226. return {
  13227. url: toPathString(localVarUrlObj),
  13228. options: localVarRequestOptions,
  13229. };
  13230. },
  13231. /**
  13232. *
  13233. * @param {string} id
  13234. * @param {*} [options] Override http request option.
  13235. * @throws {RequiredError}
  13236. */
  13237. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13238. // verify required parameter 'id' is not null or undefined
  13239. assertParamExists('getTagAssets', 'id', id)
  13240. const localVarPath = `/tag/{id}/assets`
  13241. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13242. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13243. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13244. let baseOptions;
  13245. if (configuration) {
  13246. baseOptions = configuration.baseOptions;
  13247. }
  13248. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13249. const localVarHeaderParameter = {} as any;
  13250. const localVarQueryParameter = {} as any;
  13251. // authentication cookie required
  13252. // authentication api_key required
  13253. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13254. // authentication bearer required
  13255. // http bearer authentication required
  13256. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13257. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13258. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13259. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13260. return {
  13261. url: toPathString(localVarUrlObj),
  13262. options: localVarRequestOptions,
  13263. };
  13264. },
  13265. /**
  13266. *
  13267. * @param {string} id
  13268. * @param {*} [options] Override http request option.
  13269. * @throws {RequiredError}
  13270. */
  13271. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13272. // verify required parameter 'id' is not null or undefined
  13273. assertParamExists('getTagById', 'id', id)
  13274. const localVarPath = `/tag/{id}`
  13275. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13276. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13277. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13278. let baseOptions;
  13279. if (configuration) {
  13280. baseOptions = configuration.baseOptions;
  13281. }
  13282. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13283. const localVarHeaderParameter = {} as any;
  13284. const localVarQueryParameter = {} as any;
  13285. // authentication cookie required
  13286. // authentication api_key required
  13287. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13288. // authentication bearer required
  13289. // http bearer authentication required
  13290. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13291. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13292. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13293. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13294. return {
  13295. url: toPathString(localVarUrlObj),
  13296. options: localVarRequestOptions,
  13297. };
  13298. },
  13299. /**
  13300. *
  13301. * @param {string} id
  13302. * @param {AssetIdsDto} assetIdsDto
  13303. * @param {*} [options] Override http request option.
  13304. * @throws {RequiredError}
  13305. */
  13306. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13307. // verify required parameter 'id' is not null or undefined
  13308. assertParamExists('tagAssets', 'id', id)
  13309. // verify required parameter 'assetIdsDto' is not null or undefined
  13310. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  13311. const localVarPath = `/tag/{id}/assets`
  13312. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13313. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13314. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13315. let baseOptions;
  13316. if (configuration) {
  13317. baseOptions = configuration.baseOptions;
  13318. }
  13319. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13320. const localVarHeaderParameter = {} as any;
  13321. const localVarQueryParameter = {} as any;
  13322. // authentication cookie required
  13323. // authentication api_key required
  13324. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13325. // authentication bearer required
  13326. // http bearer authentication required
  13327. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13328. localVarHeaderParameter['Content-Type'] = 'application/json';
  13329. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13330. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13331. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13332. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13333. return {
  13334. url: toPathString(localVarUrlObj),
  13335. options: localVarRequestOptions,
  13336. };
  13337. },
  13338. /**
  13339. *
  13340. * @param {string} id
  13341. * @param {AssetIdsDto} assetIdsDto
  13342. * @param {*} [options] Override http request option.
  13343. * @throws {RequiredError}
  13344. */
  13345. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13346. // verify required parameter 'id' is not null or undefined
  13347. assertParamExists('untagAssets', 'id', id)
  13348. // verify required parameter 'assetIdsDto' is not null or undefined
  13349. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  13350. const localVarPath = `/tag/{id}/assets`
  13351. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13352. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13353. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13354. let baseOptions;
  13355. if (configuration) {
  13356. baseOptions = configuration.baseOptions;
  13357. }
  13358. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13359. const localVarHeaderParameter = {} as any;
  13360. const localVarQueryParameter = {} as any;
  13361. // authentication cookie required
  13362. // authentication api_key required
  13363. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13364. // authentication bearer required
  13365. // http bearer authentication required
  13366. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13367. localVarHeaderParameter['Content-Type'] = 'application/json';
  13368. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13369. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13370. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13371. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13372. return {
  13373. url: toPathString(localVarUrlObj),
  13374. options: localVarRequestOptions,
  13375. };
  13376. },
  13377. /**
  13378. *
  13379. * @param {string} id
  13380. * @param {UpdateTagDto} updateTagDto
  13381. * @param {*} [options] Override http request option.
  13382. * @throws {RequiredError}
  13383. */
  13384. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13385. // verify required parameter 'id' is not null or undefined
  13386. assertParamExists('updateTag', 'id', id)
  13387. // verify required parameter 'updateTagDto' is not null or undefined
  13388. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  13389. const localVarPath = `/tag/{id}`
  13390. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13391. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13392. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13393. let baseOptions;
  13394. if (configuration) {
  13395. baseOptions = configuration.baseOptions;
  13396. }
  13397. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13398. const localVarHeaderParameter = {} as any;
  13399. const localVarQueryParameter = {} as any;
  13400. // authentication cookie required
  13401. // authentication api_key required
  13402. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13403. // authentication bearer required
  13404. // http bearer authentication required
  13405. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13406. localVarHeaderParameter['Content-Type'] = 'application/json';
  13407. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13408. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13409. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13410. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  13411. return {
  13412. url: toPathString(localVarUrlObj),
  13413. options: localVarRequestOptions,
  13414. };
  13415. },
  13416. }
  13417. };
  13418. /**
  13419. * TagApi - functional programming interface
  13420. * @export
  13421. */
  13422. export const TagApiFp = function(configuration?: Configuration) {
  13423. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  13424. return {
  13425. /**
  13426. *
  13427. * @param {CreateTagDto} createTagDto
  13428. * @param {*} [options] Override http request option.
  13429. * @throws {RequiredError}
  13430. */
  13431. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13432. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  13433. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13434. },
  13435. /**
  13436. *
  13437. * @param {string} id
  13438. * @param {*} [options] Override http request option.
  13439. * @throws {RequiredError}
  13440. */
  13441. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13442. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  13443. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13444. },
  13445. /**
  13446. *
  13447. * @param {*} [options] Override http request option.
  13448. * @throws {RequiredError}
  13449. */
  13450. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  13451. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  13452. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13453. },
  13454. /**
  13455. *
  13456. * @param {string} id
  13457. * @param {*} [options] Override http request option.
  13458. * @throws {RequiredError}
  13459. */
  13460. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  13461. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  13462. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13463. },
  13464. /**
  13465. *
  13466. * @param {string} id
  13467. * @param {*} [options] Override http request option.
  13468. * @throws {RequiredError}
  13469. */
  13470. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13471. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  13472. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13473. },
  13474. /**
  13475. *
  13476. * @param {string} id
  13477. * @param {AssetIdsDto} assetIdsDto
  13478. * @param {*} [options] Override http request option.
  13479. * @throws {RequiredError}
  13480. */
  13481. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13482. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  13483. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13484. },
  13485. /**
  13486. *
  13487. * @param {string} id
  13488. * @param {AssetIdsDto} assetIdsDto
  13489. * @param {*} [options] Override http request option.
  13490. * @throws {RequiredError}
  13491. */
  13492. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13493. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  13494. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13495. },
  13496. /**
  13497. *
  13498. * @param {string} id
  13499. * @param {UpdateTagDto} updateTagDto
  13500. * @param {*} [options] Override http request option.
  13501. * @throws {RequiredError}
  13502. */
  13503. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13504. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  13505. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13506. },
  13507. }
  13508. };
  13509. /**
  13510. * TagApi - factory interface
  13511. * @export
  13512. */
  13513. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13514. const localVarFp = TagApiFp(configuration)
  13515. return {
  13516. /**
  13517. *
  13518. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13519. * @param {*} [options] Override http request option.
  13520. * @throws {RequiredError}
  13521. */
  13522. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13523. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  13524. },
  13525. /**
  13526. *
  13527. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13528. * @param {*} [options] Override http request option.
  13529. * @throws {RequiredError}
  13530. */
  13531. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13532. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  13533. },
  13534. /**
  13535. *
  13536. * @param {*} [options] Override http request option.
  13537. * @throws {RequiredError}
  13538. */
  13539. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  13540. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  13541. },
  13542. /**
  13543. *
  13544. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13545. * @param {*} [options] Override http request option.
  13546. * @throws {RequiredError}
  13547. */
  13548. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  13549. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  13550. },
  13551. /**
  13552. *
  13553. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13554. * @param {*} [options] Override http request option.
  13555. * @throws {RequiredError}
  13556. */
  13557. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13558. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  13559. },
  13560. /**
  13561. *
  13562. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13563. * @param {*} [options] Override http request option.
  13564. * @throws {RequiredError}
  13565. */
  13566. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13567. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13568. },
  13569. /**
  13570. *
  13571. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13572. * @param {*} [options] Override http request option.
  13573. * @throws {RequiredError}
  13574. */
  13575. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13576. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13577. },
  13578. /**
  13579. *
  13580. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13581. * @param {*} [options] Override http request option.
  13582. * @throws {RequiredError}
  13583. */
  13584. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13585. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  13586. },
  13587. };
  13588. };
  13589. /**
  13590. * Request parameters for createTag operation in TagApi.
  13591. * @export
  13592. * @interface TagApiCreateTagRequest
  13593. */
  13594. export interface TagApiCreateTagRequest {
  13595. /**
  13596. *
  13597. * @type {CreateTagDto}
  13598. * @memberof TagApiCreateTag
  13599. */
  13600. readonly createTagDto: CreateTagDto
  13601. }
  13602. /**
  13603. * Request parameters for deleteTag operation in TagApi.
  13604. * @export
  13605. * @interface TagApiDeleteTagRequest
  13606. */
  13607. export interface TagApiDeleteTagRequest {
  13608. /**
  13609. *
  13610. * @type {string}
  13611. * @memberof TagApiDeleteTag
  13612. */
  13613. readonly id: string
  13614. }
  13615. /**
  13616. * Request parameters for getTagAssets operation in TagApi.
  13617. * @export
  13618. * @interface TagApiGetTagAssetsRequest
  13619. */
  13620. export interface TagApiGetTagAssetsRequest {
  13621. /**
  13622. *
  13623. * @type {string}
  13624. * @memberof TagApiGetTagAssets
  13625. */
  13626. readonly id: string
  13627. }
  13628. /**
  13629. * Request parameters for getTagById operation in TagApi.
  13630. * @export
  13631. * @interface TagApiGetTagByIdRequest
  13632. */
  13633. export interface TagApiGetTagByIdRequest {
  13634. /**
  13635. *
  13636. * @type {string}
  13637. * @memberof TagApiGetTagById
  13638. */
  13639. readonly id: string
  13640. }
  13641. /**
  13642. * Request parameters for tagAssets operation in TagApi.
  13643. * @export
  13644. * @interface TagApiTagAssetsRequest
  13645. */
  13646. export interface TagApiTagAssetsRequest {
  13647. /**
  13648. *
  13649. * @type {string}
  13650. * @memberof TagApiTagAssets
  13651. */
  13652. readonly id: string
  13653. /**
  13654. *
  13655. * @type {AssetIdsDto}
  13656. * @memberof TagApiTagAssets
  13657. */
  13658. readonly assetIdsDto: AssetIdsDto
  13659. }
  13660. /**
  13661. * Request parameters for untagAssets operation in TagApi.
  13662. * @export
  13663. * @interface TagApiUntagAssetsRequest
  13664. */
  13665. export interface TagApiUntagAssetsRequest {
  13666. /**
  13667. *
  13668. * @type {string}
  13669. * @memberof TagApiUntagAssets
  13670. */
  13671. readonly id: string
  13672. /**
  13673. *
  13674. * @type {AssetIdsDto}
  13675. * @memberof TagApiUntagAssets
  13676. */
  13677. readonly assetIdsDto: AssetIdsDto
  13678. }
  13679. /**
  13680. * Request parameters for updateTag operation in TagApi.
  13681. * @export
  13682. * @interface TagApiUpdateTagRequest
  13683. */
  13684. export interface TagApiUpdateTagRequest {
  13685. /**
  13686. *
  13687. * @type {string}
  13688. * @memberof TagApiUpdateTag
  13689. */
  13690. readonly id: string
  13691. /**
  13692. *
  13693. * @type {UpdateTagDto}
  13694. * @memberof TagApiUpdateTag
  13695. */
  13696. readonly updateTagDto: UpdateTagDto
  13697. }
  13698. /**
  13699. * TagApi - object-oriented interface
  13700. * @export
  13701. * @class TagApi
  13702. * @extends {BaseAPI}
  13703. */
  13704. export class TagApi extends BaseAPI {
  13705. /**
  13706. *
  13707. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13708. * @param {*} [options] Override http request option.
  13709. * @throws {RequiredError}
  13710. * @memberof TagApi
  13711. */
  13712. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  13713. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  13714. }
  13715. /**
  13716. *
  13717. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13718. * @param {*} [options] Override http request option.
  13719. * @throws {RequiredError}
  13720. * @memberof TagApi
  13721. */
  13722. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  13723. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13724. }
  13725. /**
  13726. *
  13727. * @param {*} [options] Override http request option.
  13728. * @throws {RequiredError}
  13729. * @memberof TagApi
  13730. */
  13731. public getAllTags(options?: AxiosRequestConfig) {
  13732. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  13733. }
  13734. /**
  13735. *
  13736. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13737. * @param {*} [options] Override http request option.
  13738. * @throws {RequiredError}
  13739. * @memberof TagApi
  13740. */
  13741. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  13742. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13743. }
  13744. /**
  13745. *
  13746. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13747. * @param {*} [options] Override http request option.
  13748. * @throws {RequiredError}
  13749. * @memberof TagApi
  13750. */
  13751. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  13752. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13753. }
  13754. /**
  13755. *
  13756. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13757. * @param {*} [options] Override http request option.
  13758. * @throws {RequiredError}
  13759. * @memberof TagApi
  13760. */
  13761. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  13762. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13763. }
  13764. /**
  13765. *
  13766. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13767. * @param {*} [options] Override http request option.
  13768. * @throws {RequiredError}
  13769. * @memberof TagApi
  13770. */
  13771. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  13772. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13773. }
  13774. /**
  13775. *
  13776. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13777. * @param {*} [options] Override http request option.
  13778. * @throws {RequiredError}
  13779. * @memberof TagApi
  13780. */
  13781. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  13782. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  13783. }
  13784. }
  13785. /**
  13786. * UserApi - axios parameter creator
  13787. * @export
  13788. */
  13789. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  13790. return {
  13791. /**
  13792. *
  13793. * @param {File} file
  13794. * @param {*} [options] Override http request option.
  13795. * @throws {RequiredError}
  13796. */
  13797. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13798. // verify required parameter 'file' is not null or undefined
  13799. assertParamExists('createProfileImage', 'file', file)
  13800. const localVarPath = `/user/profile-image`;
  13801. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13802. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13803. let baseOptions;
  13804. if (configuration) {
  13805. baseOptions = configuration.baseOptions;
  13806. }
  13807. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13808. const localVarHeaderParameter = {} as any;
  13809. const localVarQueryParameter = {} as any;
  13810. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  13811. // authentication cookie required
  13812. // authentication api_key required
  13813. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13814. // authentication bearer required
  13815. // http bearer authentication required
  13816. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13817. if (file !== undefined) {
  13818. localVarFormParams.append('file', file as any);
  13819. }
  13820. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  13821. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13822. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13823. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13824. localVarRequestOptions.data = localVarFormParams;
  13825. return {
  13826. url: toPathString(localVarUrlObj),
  13827. options: localVarRequestOptions,
  13828. };
  13829. },
  13830. /**
  13831. *
  13832. * @param {CreateUserDto} createUserDto
  13833. * @param {*} [options] Override http request option.
  13834. * @throws {RequiredError}
  13835. */
  13836. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13837. // verify required parameter 'createUserDto' is not null or undefined
  13838. assertParamExists('createUser', 'createUserDto', createUserDto)
  13839. const localVarPath = `/user`;
  13840. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13841. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13842. let baseOptions;
  13843. if (configuration) {
  13844. baseOptions = configuration.baseOptions;
  13845. }
  13846. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13847. const localVarHeaderParameter = {} as any;
  13848. const localVarQueryParameter = {} as any;
  13849. // authentication cookie required
  13850. // authentication api_key required
  13851. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13852. // authentication bearer required
  13853. // http bearer authentication required
  13854. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13855. localVarHeaderParameter['Content-Type'] = 'application/json';
  13856. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13857. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13858. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13859. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  13860. return {
  13861. url: toPathString(localVarUrlObj),
  13862. options: localVarRequestOptions,
  13863. };
  13864. },
  13865. /**
  13866. *
  13867. * @param {string} id
  13868. * @param {*} [options] Override http request option.
  13869. * @throws {RequiredError}
  13870. */
  13871. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13872. // verify required parameter 'id' is not null or undefined
  13873. assertParamExists('deleteUser', 'id', id)
  13874. const localVarPath = `/user/{id}`
  13875. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13876. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13877. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13878. let baseOptions;
  13879. if (configuration) {
  13880. baseOptions = configuration.baseOptions;
  13881. }
  13882. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13883. const localVarHeaderParameter = {} as any;
  13884. const localVarQueryParameter = {} as any;
  13885. // authentication cookie required
  13886. // authentication api_key required
  13887. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13888. // authentication bearer required
  13889. // http bearer authentication required
  13890. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13891. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13892. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13893. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13894. return {
  13895. url: toPathString(localVarUrlObj),
  13896. options: localVarRequestOptions,
  13897. };
  13898. },
  13899. /**
  13900. *
  13901. * @param {boolean} isAll
  13902. * @param {*} [options] Override http request option.
  13903. * @throws {RequiredError}
  13904. */
  13905. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13906. // verify required parameter 'isAll' is not null or undefined
  13907. assertParamExists('getAllUsers', 'isAll', isAll)
  13908. const localVarPath = `/user`;
  13909. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13910. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13911. let baseOptions;
  13912. if (configuration) {
  13913. baseOptions = configuration.baseOptions;
  13914. }
  13915. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13916. const localVarHeaderParameter = {} as any;
  13917. const localVarQueryParameter = {} as any;
  13918. // authentication cookie required
  13919. // authentication api_key required
  13920. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13921. // authentication bearer required
  13922. // http bearer authentication required
  13923. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13924. if (isAll !== undefined) {
  13925. localVarQueryParameter['isAll'] = isAll;
  13926. }
  13927. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13928. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13929. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13930. return {
  13931. url: toPathString(localVarUrlObj),
  13932. options: localVarRequestOptions,
  13933. };
  13934. },
  13935. /**
  13936. *
  13937. * @param {*} [options] Override http request option.
  13938. * @throws {RequiredError}
  13939. */
  13940. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13941. const localVarPath = `/user/me`;
  13942. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13943. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13944. let baseOptions;
  13945. if (configuration) {
  13946. baseOptions = configuration.baseOptions;
  13947. }
  13948. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13949. const localVarHeaderParameter = {} as any;
  13950. const localVarQueryParameter = {} as any;
  13951. // authentication cookie required
  13952. // authentication api_key required
  13953. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13954. // authentication bearer required
  13955. // http bearer authentication required
  13956. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13957. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13958. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13959. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13960. return {
  13961. url: toPathString(localVarUrlObj),
  13962. options: localVarRequestOptions,
  13963. };
  13964. },
  13965. /**
  13966. *
  13967. * @param {string} id
  13968. * @param {*} [options] Override http request option.
  13969. * @throws {RequiredError}
  13970. */
  13971. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13972. // verify required parameter 'id' is not null or undefined
  13973. assertParamExists('getProfileImage', 'id', id)
  13974. const localVarPath = `/user/profile-image/{id}`
  13975. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13976. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13977. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13978. let baseOptions;
  13979. if (configuration) {
  13980. baseOptions = configuration.baseOptions;
  13981. }
  13982. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13983. const localVarHeaderParameter = {} as any;
  13984. const localVarQueryParameter = {} as any;
  13985. // authentication cookie required
  13986. // authentication api_key required
  13987. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13988. // authentication bearer required
  13989. // http bearer authentication required
  13990. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13991. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13992. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13993. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13994. return {
  13995. url: toPathString(localVarUrlObj),
  13996. options: localVarRequestOptions,
  13997. };
  13998. },
  13999. /**
  14000. *
  14001. * @param {string} id
  14002. * @param {*} [options] Override http request option.
  14003. * @throws {RequiredError}
  14004. */
  14005. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14006. // verify required parameter 'id' is not null or undefined
  14007. assertParamExists('getUserById', 'id', id)
  14008. const localVarPath = `/user/info/{id}`
  14009. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14010. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14011. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14012. let baseOptions;
  14013. if (configuration) {
  14014. baseOptions = configuration.baseOptions;
  14015. }
  14016. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14017. const localVarHeaderParameter = {} as any;
  14018. const localVarQueryParameter = {} as any;
  14019. // authentication cookie required
  14020. // authentication api_key required
  14021. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14022. // authentication bearer required
  14023. // http bearer authentication required
  14024. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14025. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14026. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14027. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14028. return {
  14029. url: toPathString(localVarUrlObj),
  14030. options: localVarRequestOptions,
  14031. };
  14032. },
  14033. /**
  14034. *
  14035. * @param {boolean} [admin]
  14036. * @param {*} [options] Override http request option.
  14037. * @throws {RequiredError}
  14038. */
  14039. getUserCount: async (admin?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14040. const localVarPath = `/user/count`;
  14041. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14042. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14043. let baseOptions;
  14044. if (configuration) {
  14045. baseOptions = configuration.baseOptions;
  14046. }
  14047. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14048. const localVarHeaderParameter = {} as any;
  14049. const localVarQueryParameter = {} as any;
  14050. // authentication cookie required
  14051. // authentication api_key required
  14052. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14053. // authentication bearer required
  14054. // http bearer authentication required
  14055. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14056. if (admin !== undefined) {
  14057. localVarQueryParameter['admin'] = admin;
  14058. }
  14059. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14060. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14061. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14062. return {
  14063. url: toPathString(localVarUrlObj),
  14064. options: localVarRequestOptions,
  14065. };
  14066. },
  14067. /**
  14068. *
  14069. * @param {string} id
  14070. * @param {*} [options] Override http request option.
  14071. * @throws {RequiredError}
  14072. */
  14073. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14074. // verify required parameter 'id' is not null or undefined
  14075. assertParamExists('restoreUser', 'id', id)
  14076. const localVarPath = `/user/{id}/restore`
  14077. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14078. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14079. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14080. let baseOptions;
  14081. if (configuration) {
  14082. baseOptions = configuration.baseOptions;
  14083. }
  14084. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14085. const localVarHeaderParameter = {} as any;
  14086. const localVarQueryParameter = {} as any;
  14087. // authentication cookie required
  14088. // authentication api_key required
  14089. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14090. // authentication bearer required
  14091. // http bearer authentication required
  14092. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14093. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14094. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14095. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14096. return {
  14097. url: toPathString(localVarUrlObj),
  14098. options: localVarRequestOptions,
  14099. };
  14100. },
  14101. /**
  14102. *
  14103. * @param {UpdateUserDto} updateUserDto
  14104. * @param {*} [options] Override http request option.
  14105. * @throws {RequiredError}
  14106. */
  14107. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14108. // verify required parameter 'updateUserDto' is not null or undefined
  14109. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  14110. const localVarPath = `/user`;
  14111. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14112. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14113. let baseOptions;
  14114. if (configuration) {
  14115. baseOptions = configuration.baseOptions;
  14116. }
  14117. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14118. const localVarHeaderParameter = {} as any;
  14119. const localVarQueryParameter = {} as any;
  14120. // authentication cookie required
  14121. // authentication api_key required
  14122. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14123. // authentication bearer required
  14124. // http bearer authentication required
  14125. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14126. localVarHeaderParameter['Content-Type'] = 'application/json';
  14127. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14128. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14129. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14130. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  14131. return {
  14132. url: toPathString(localVarUrlObj),
  14133. options: localVarRequestOptions,
  14134. };
  14135. },
  14136. }
  14137. };
  14138. /**
  14139. * UserApi - functional programming interface
  14140. * @export
  14141. */
  14142. export const UserApiFp = function(configuration?: Configuration) {
  14143. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  14144. return {
  14145. /**
  14146. *
  14147. * @param {File} file
  14148. * @param {*} [options] Override http request option.
  14149. * @throws {RequiredError}
  14150. */
  14151. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  14152. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  14153. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14154. },
  14155. /**
  14156. *
  14157. * @param {CreateUserDto} createUserDto
  14158. * @param {*} [options] Override http request option.
  14159. * @throws {RequiredError}
  14160. */
  14161. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14162. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  14163. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14164. },
  14165. /**
  14166. *
  14167. * @param {string} id
  14168. * @param {*} [options] Override http request option.
  14169. * @throws {RequiredError}
  14170. */
  14171. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14172. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  14173. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14174. },
  14175. /**
  14176. *
  14177. * @param {boolean} isAll
  14178. * @param {*} [options] Override http request option.
  14179. * @throws {RequiredError}
  14180. */
  14181. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  14182. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  14183. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14184. },
  14185. /**
  14186. *
  14187. * @param {*} [options] Override http request option.
  14188. * @throws {RequiredError}
  14189. */
  14190. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14191. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  14192. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14193. },
  14194. /**
  14195. *
  14196. * @param {string} id
  14197. * @param {*} [options] Override http request option.
  14198. * @throws {RequiredError}
  14199. */
  14200. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14201. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  14202. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14203. },
  14204. /**
  14205. *
  14206. * @param {string} id
  14207. * @param {*} [options] Override http request option.
  14208. * @throws {RequiredError}
  14209. */
  14210. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14211. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  14212. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14213. },
  14214. /**
  14215. *
  14216. * @param {boolean} [admin]
  14217. * @param {*} [options] Override http request option.
  14218. * @throws {RequiredError}
  14219. */
  14220. async getUserCount(admin?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  14221. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(admin, options);
  14222. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14223. },
  14224. /**
  14225. *
  14226. * @param {string} id
  14227. * @param {*} [options] Override http request option.
  14228. * @throws {RequiredError}
  14229. */
  14230. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14231. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  14232. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14233. },
  14234. /**
  14235. *
  14236. * @param {UpdateUserDto} updateUserDto
  14237. * @param {*} [options] Override http request option.
  14238. * @throws {RequiredError}
  14239. */
  14240. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14241. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  14242. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14243. },
  14244. }
  14245. };
  14246. /**
  14247. * UserApi - factory interface
  14248. * @export
  14249. */
  14250. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14251. const localVarFp = UserApiFp(configuration)
  14252. return {
  14253. /**
  14254. *
  14255. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14256. * @param {*} [options] Override http request option.
  14257. * @throws {RequiredError}
  14258. */
  14259. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  14260. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  14261. },
  14262. /**
  14263. *
  14264. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14265. * @param {*} [options] Override http request option.
  14266. * @throws {RequiredError}
  14267. */
  14268. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14269. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  14270. },
  14271. /**
  14272. *
  14273. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14274. * @param {*} [options] Override http request option.
  14275. * @throws {RequiredError}
  14276. */
  14277. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14278. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14279. },
  14280. /**
  14281. *
  14282. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14283. * @param {*} [options] Override http request option.
  14284. * @throws {RequiredError}
  14285. */
  14286. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  14287. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  14288. },
  14289. /**
  14290. *
  14291. * @param {*} [options] Override http request option.
  14292. * @throws {RequiredError}
  14293. */
  14294. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14295. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  14296. },
  14297. /**
  14298. *
  14299. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14300. * @param {*} [options] Override http request option.
  14301. * @throws {RequiredError}
  14302. */
  14303. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14304. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  14305. },
  14306. /**
  14307. *
  14308. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14309. * @param {*} [options] Override http request option.
  14310. * @throws {RequiredError}
  14311. */
  14312. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14313. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  14314. },
  14315. /**
  14316. *
  14317. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14318. * @param {*} [options] Override http request option.
  14319. * @throws {RequiredError}
  14320. */
  14321. getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig): AxiosPromise<UserCountResponseDto> {
  14322. return localVarFp.getUserCount(requestParameters.admin, options).then((request) => request(axios, basePath));
  14323. },
  14324. /**
  14325. *
  14326. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14327. * @param {*} [options] Override http request option.
  14328. * @throws {RequiredError}
  14329. */
  14330. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14331. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14332. },
  14333. /**
  14334. *
  14335. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14336. * @param {*} [options] Override http request option.
  14337. * @throws {RequiredError}
  14338. */
  14339. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14340. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  14341. },
  14342. };
  14343. };
  14344. /**
  14345. * Request parameters for createProfileImage operation in UserApi.
  14346. * @export
  14347. * @interface UserApiCreateProfileImageRequest
  14348. */
  14349. export interface UserApiCreateProfileImageRequest {
  14350. /**
  14351. *
  14352. * @type {File}
  14353. * @memberof UserApiCreateProfileImage
  14354. */
  14355. readonly file: File
  14356. }
  14357. /**
  14358. * Request parameters for createUser operation in UserApi.
  14359. * @export
  14360. * @interface UserApiCreateUserRequest
  14361. */
  14362. export interface UserApiCreateUserRequest {
  14363. /**
  14364. *
  14365. * @type {CreateUserDto}
  14366. * @memberof UserApiCreateUser
  14367. */
  14368. readonly createUserDto: CreateUserDto
  14369. }
  14370. /**
  14371. * Request parameters for deleteUser operation in UserApi.
  14372. * @export
  14373. * @interface UserApiDeleteUserRequest
  14374. */
  14375. export interface UserApiDeleteUserRequest {
  14376. /**
  14377. *
  14378. * @type {string}
  14379. * @memberof UserApiDeleteUser
  14380. */
  14381. readonly id: string
  14382. }
  14383. /**
  14384. * Request parameters for getAllUsers operation in UserApi.
  14385. * @export
  14386. * @interface UserApiGetAllUsersRequest
  14387. */
  14388. export interface UserApiGetAllUsersRequest {
  14389. /**
  14390. *
  14391. * @type {boolean}
  14392. * @memberof UserApiGetAllUsers
  14393. */
  14394. readonly isAll: boolean
  14395. }
  14396. /**
  14397. * Request parameters for getProfileImage operation in UserApi.
  14398. * @export
  14399. * @interface UserApiGetProfileImageRequest
  14400. */
  14401. export interface UserApiGetProfileImageRequest {
  14402. /**
  14403. *
  14404. * @type {string}
  14405. * @memberof UserApiGetProfileImage
  14406. */
  14407. readonly id: string
  14408. }
  14409. /**
  14410. * Request parameters for getUserById operation in UserApi.
  14411. * @export
  14412. * @interface UserApiGetUserByIdRequest
  14413. */
  14414. export interface UserApiGetUserByIdRequest {
  14415. /**
  14416. *
  14417. * @type {string}
  14418. * @memberof UserApiGetUserById
  14419. */
  14420. readonly id: string
  14421. }
  14422. /**
  14423. * Request parameters for getUserCount operation in UserApi.
  14424. * @export
  14425. * @interface UserApiGetUserCountRequest
  14426. */
  14427. export interface UserApiGetUserCountRequest {
  14428. /**
  14429. *
  14430. * @type {boolean}
  14431. * @memberof UserApiGetUserCount
  14432. */
  14433. readonly admin?: boolean
  14434. }
  14435. /**
  14436. * Request parameters for restoreUser operation in UserApi.
  14437. * @export
  14438. * @interface UserApiRestoreUserRequest
  14439. */
  14440. export interface UserApiRestoreUserRequest {
  14441. /**
  14442. *
  14443. * @type {string}
  14444. * @memberof UserApiRestoreUser
  14445. */
  14446. readonly id: string
  14447. }
  14448. /**
  14449. * Request parameters for updateUser operation in UserApi.
  14450. * @export
  14451. * @interface UserApiUpdateUserRequest
  14452. */
  14453. export interface UserApiUpdateUserRequest {
  14454. /**
  14455. *
  14456. * @type {UpdateUserDto}
  14457. * @memberof UserApiUpdateUser
  14458. */
  14459. readonly updateUserDto: UpdateUserDto
  14460. }
  14461. /**
  14462. * UserApi - object-oriented interface
  14463. * @export
  14464. * @class UserApi
  14465. * @extends {BaseAPI}
  14466. */
  14467. export class UserApi extends BaseAPI {
  14468. /**
  14469. *
  14470. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14471. * @param {*} [options] Override http request option.
  14472. * @throws {RequiredError}
  14473. * @memberof UserApi
  14474. */
  14475. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  14476. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  14477. }
  14478. /**
  14479. *
  14480. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14481. * @param {*} [options] Override http request option.
  14482. * @throws {RequiredError}
  14483. * @memberof UserApi
  14484. */
  14485. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  14486. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  14487. }
  14488. /**
  14489. *
  14490. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14491. * @param {*} [options] Override http request option.
  14492. * @throws {RequiredError}
  14493. * @memberof UserApi
  14494. */
  14495. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  14496. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14497. }
  14498. /**
  14499. *
  14500. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14501. * @param {*} [options] Override http request option.
  14502. * @throws {RequiredError}
  14503. * @memberof UserApi
  14504. */
  14505. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  14506. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  14507. }
  14508. /**
  14509. *
  14510. * @param {*} [options] Override http request option.
  14511. * @throws {RequiredError}
  14512. * @memberof UserApi
  14513. */
  14514. public getMyUserInfo(options?: AxiosRequestConfig) {
  14515. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  14516. }
  14517. /**
  14518. *
  14519. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14520. * @param {*} [options] Override http request option.
  14521. * @throws {RequiredError}
  14522. * @memberof UserApi
  14523. */
  14524. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  14525. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14526. }
  14527. /**
  14528. *
  14529. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14530. * @param {*} [options] Override http request option.
  14531. * @throws {RequiredError}
  14532. * @memberof UserApi
  14533. */
  14534. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  14535. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14536. }
  14537. /**
  14538. *
  14539. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14540. * @param {*} [options] Override http request option.
  14541. * @throws {RequiredError}
  14542. * @memberof UserApi
  14543. */
  14544. public getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig) {
  14545. return UserApiFp(this.configuration).getUserCount(requestParameters.admin, options).then((request) => request(this.axios, this.basePath));
  14546. }
  14547. /**
  14548. *
  14549. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14550. * @param {*} [options] Override http request option.
  14551. * @throws {RequiredError}
  14552. * @memberof UserApi
  14553. */
  14554. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  14555. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14556. }
  14557. /**
  14558. *
  14559. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14560. * @param {*} [options] Override http request option.
  14561. * @throws {RequiredError}
  14562. * @memberof UserApi
  14563. */
  14564. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  14565. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  14566. }
  14567. }