api.ts 592 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.86.0
  8. *
  9. *
  10. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  11. * https://openapi-generator.tech
  12. * Do not edit the class manually.
  13. */
  14. import type { Configuration } from './configuration';
  15. import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
  16. import globalAxios from 'axios';
  17. // Some imports not used depending on template conditions
  18. // @ts-ignore
  19. import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
  20. import type { RequestArgs } from './base';
  21. // @ts-ignore
  22. import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
  23. /**
  24. *
  25. * @export
  26. * @interface APIKeyCreateDto
  27. */
  28. export interface APIKeyCreateDto {
  29. /**
  30. *
  31. * @type {string}
  32. * @memberof APIKeyCreateDto
  33. */
  34. 'name'?: string;
  35. }
  36. /**
  37. *
  38. * @export
  39. * @interface APIKeyCreateResponseDto
  40. */
  41. export interface APIKeyCreateResponseDto {
  42. /**
  43. *
  44. * @type {APIKeyResponseDto}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'apiKey': APIKeyResponseDto;
  48. /**
  49. *
  50. * @type {string}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'secret': string;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'createdAt': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'id': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'name': string;
  79. /**
  80. *
  81. * @type {string}
  82. * @memberof APIKeyResponseDto
  83. */
  84. 'updatedAt': string;
  85. }
  86. /**
  87. *
  88. * @export
  89. * @interface APIKeyUpdateDto
  90. */
  91. export interface APIKeyUpdateDto {
  92. /**
  93. *
  94. * @type {string}
  95. * @memberof APIKeyUpdateDto
  96. */
  97. 'name': string;
  98. }
  99. /**
  100. *
  101. * @export
  102. * @interface ActivityCreateDto
  103. */
  104. export interface ActivityCreateDto {
  105. /**
  106. *
  107. * @type {string}
  108. * @memberof ActivityCreateDto
  109. */
  110. 'albumId': string;
  111. /**
  112. *
  113. * @type {string}
  114. * @memberof ActivityCreateDto
  115. */
  116. 'assetId'?: string;
  117. /**
  118. *
  119. * @type {string}
  120. * @memberof ActivityCreateDto
  121. */
  122. 'comment'?: string;
  123. /**
  124. *
  125. * @type {ReactionType}
  126. * @memberof ActivityCreateDto
  127. */
  128. 'type': ReactionType;
  129. }
  130. /**
  131. *
  132. * @export
  133. * @interface ActivityResponseDto
  134. */
  135. export interface ActivityResponseDto {
  136. /**
  137. *
  138. * @type {string}
  139. * @memberof ActivityResponseDto
  140. */
  141. 'assetId': string | null;
  142. /**
  143. *
  144. * @type {string}
  145. * @memberof ActivityResponseDto
  146. */
  147. 'comment'?: string | null;
  148. /**
  149. *
  150. * @type {string}
  151. * @memberof ActivityResponseDto
  152. */
  153. 'createdAt': string;
  154. /**
  155. *
  156. * @type {string}
  157. * @memberof ActivityResponseDto
  158. */
  159. 'id': string;
  160. /**
  161. *
  162. * @type {string}
  163. * @memberof ActivityResponseDto
  164. */
  165. 'type': ActivityResponseDtoTypeEnum;
  166. /**
  167. *
  168. * @type {UserDto}
  169. * @memberof ActivityResponseDto
  170. */
  171. 'user': UserDto;
  172. }
  173. export const ActivityResponseDtoTypeEnum = {
  174. Comment: 'comment',
  175. Like: 'like'
  176. } as const;
  177. export type ActivityResponseDtoTypeEnum = typeof ActivityResponseDtoTypeEnum[keyof typeof ActivityResponseDtoTypeEnum];
  178. /**
  179. *
  180. * @export
  181. * @interface ActivityStatisticsResponseDto
  182. */
  183. export interface ActivityStatisticsResponseDto {
  184. /**
  185. *
  186. * @type {number}
  187. * @memberof ActivityStatisticsResponseDto
  188. */
  189. 'comments': number;
  190. }
  191. /**
  192. *
  193. * @export
  194. * @interface AddUsersDto
  195. */
  196. export interface AddUsersDto {
  197. /**
  198. *
  199. * @type {Array<string>}
  200. * @memberof AddUsersDto
  201. */
  202. 'sharedUserIds': Array<string>;
  203. }
  204. /**
  205. *
  206. * @export
  207. * @interface AlbumCountResponseDto
  208. */
  209. export interface AlbumCountResponseDto {
  210. /**
  211. *
  212. * @type {number}
  213. * @memberof AlbumCountResponseDto
  214. */
  215. 'notShared': number;
  216. /**
  217. *
  218. * @type {number}
  219. * @memberof AlbumCountResponseDto
  220. */
  221. 'owned': number;
  222. /**
  223. *
  224. * @type {number}
  225. * @memberof AlbumCountResponseDto
  226. */
  227. 'shared': number;
  228. }
  229. /**
  230. *
  231. * @export
  232. * @interface AlbumResponseDto
  233. */
  234. export interface AlbumResponseDto {
  235. /**
  236. *
  237. * @type {string}
  238. * @memberof AlbumResponseDto
  239. */
  240. 'albumName': string;
  241. /**
  242. *
  243. * @type {string}
  244. * @memberof AlbumResponseDto
  245. */
  246. 'albumThumbnailAssetId': string | null;
  247. /**
  248. *
  249. * @type {number}
  250. * @memberof AlbumResponseDto
  251. */
  252. 'assetCount': number;
  253. /**
  254. *
  255. * @type {Array<AssetResponseDto>}
  256. * @memberof AlbumResponseDto
  257. */
  258. 'assets': Array<AssetResponseDto>;
  259. /**
  260. *
  261. * @type {string}
  262. * @memberof AlbumResponseDto
  263. */
  264. 'createdAt': string;
  265. /**
  266. *
  267. * @type {string}
  268. * @memberof AlbumResponseDto
  269. */
  270. 'description': string;
  271. /**
  272. *
  273. * @type {string}
  274. * @memberof AlbumResponseDto
  275. */
  276. 'endDate'?: string;
  277. /**
  278. *
  279. * @type {boolean}
  280. * @memberof AlbumResponseDto
  281. */
  282. 'hasSharedLink': boolean;
  283. /**
  284. *
  285. * @type {string}
  286. * @memberof AlbumResponseDto
  287. */
  288. 'id': string;
  289. /**
  290. *
  291. * @type {boolean}
  292. * @memberof AlbumResponseDto
  293. */
  294. 'isActivityEnabled': boolean;
  295. /**
  296. *
  297. * @type {string}
  298. * @memberof AlbumResponseDto
  299. */
  300. 'lastModifiedAssetTimestamp'?: string;
  301. /**
  302. *
  303. * @type {UserResponseDto}
  304. * @memberof AlbumResponseDto
  305. */
  306. 'owner': UserResponseDto;
  307. /**
  308. *
  309. * @type {string}
  310. * @memberof AlbumResponseDto
  311. */
  312. 'ownerId': string;
  313. /**
  314. *
  315. * @type {boolean}
  316. * @memberof AlbumResponseDto
  317. */
  318. 'shared': boolean;
  319. /**
  320. *
  321. * @type {Array<UserResponseDto>}
  322. * @memberof AlbumResponseDto
  323. */
  324. 'sharedUsers': Array<UserResponseDto>;
  325. /**
  326. *
  327. * @type {string}
  328. * @memberof AlbumResponseDto
  329. */
  330. 'startDate'?: string;
  331. /**
  332. *
  333. * @type {string}
  334. * @memberof AlbumResponseDto
  335. */
  336. 'updatedAt': string;
  337. }
  338. /**
  339. *
  340. * @export
  341. * @interface AllJobStatusResponseDto
  342. */
  343. export interface AllJobStatusResponseDto {
  344. /**
  345. *
  346. * @type {JobStatusDto}
  347. * @memberof AllJobStatusResponseDto
  348. */
  349. 'backgroundTask': JobStatusDto;
  350. /**
  351. *
  352. * @type {JobStatusDto}
  353. * @memberof AllJobStatusResponseDto
  354. */
  355. 'clipEncoding': JobStatusDto;
  356. /**
  357. *
  358. * @type {JobStatusDto}
  359. * @memberof AllJobStatusResponseDto
  360. */
  361. 'library': JobStatusDto;
  362. /**
  363. *
  364. * @type {JobStatusDto}
  365. * @memberof AllJobStatusResponseDto
  366. */
  367. 'metadataExtraction': JobStatusDto;
  368. /**
  369. *
  370. * @type {JobStatusDto}
  371. * @memberof AllJobStatusResponseDto
  372. */
  373. 'migration': JobStatusDto;
  374. /**
  375. *
  376. * @type {JobStatusDto}
  377. * @memberof AllJobStatusResponseDto
  378. */
  379. 'objectTagging': JobStatusDto;
  380. /**
  381. *
  382. * @type {JobStatusDto}
  383. * @memberof AllJobStatusResponseDto
  384. */
  385. 'recognizeFaces': JobStatusDto;
  386. /**
  387. *
  388. * @type {JobStatusDto}
  389. * @memberof AllJobStatusResponseDto
  390. */
  391. 'search': JobStatusDto;
  392. /**
  393. *
  394. * @type {JobStatusDto}
  395. * @memberof AllJobStatusResponseDto
  396. */
  397. 'sidecar': JobStatusDto;
  398. /**
  399. *
  400. * @type {JobStatusDto}
  401. * @memberof AllJobStatusResponseDto
  402. */
  403. 'storageTemplateMigration': JobStatusDto;
  404. /**
  405. *
  406. * @type {JobStatusDto}
  407. * @memberof AllJobStatusResponseDto
  408. */
  409. 'thumbnailGeneration': JobStatusDto;
  410. /**
  411. *
  412. * @type {JobStatusDto}
  413. * @memberof AllJobStatusResponseDto
  414. */
  415. 'videoConversion': JobStatusDto;
  416. }
  417. /**
  418. *
  419. * @export
  420. * @interface AssetBulkDeleteDto
  421. */
  422. export interface AssetBulkDeleteDto {
  423. /**
  424. *
  425. * @type {boolean}
  426. * @memberof AssetBulkDeleteDto
  427. */
  428. 'force'?: boolean;
  429. /**
  430. *
  431. * @type {Array<string>}
  432. * @memberof AssetBulkDeleteDto
  433. */
  434. 'ids': Array<string>;
  435. }
  436. /**
  437. *
  438. * @export
  439. * @interface AssetBulkUpdateDto
  440. */
  441. export interface AssetBulkUpdateDto {
  442. /**
  443. *
  444. * @type {Array<string>}
  445. * @memberof AssetBulkUpdateDto
  446. */
  447. 'ids': Array<string>;
  448. /**
  449. *
  450. * @type {boolean}
  451. * @memberof AssetBulkUpdateDto
  452. */
  453. 'isArchived'?: boolean;
  454. /**
  455. *
  456. * @type {boolean}
  457. * @memberof AssetBulkUpdateDto
  458. */
  459. 'isFavorite'?: boolean;
  460. /**
  461. *
  462. * @type {boolean}
  463. * @memberof AssetBulkUpdateDto
  464. */
  465. 'removeParent'?: boolean;
  466. /**
  467. *
  468. * @type {string}
  469. * @memberof AssetBulkUpdateDto
  470. */
  471. 'stackParentId'?: string;
  472. }
  473. /**
  474. *
  475. * @export
  476. * @interface AssetBulkUploadCheckDto
  477. */
  478. export interface AssetBulkUploadCheckDto {
  479. /**
  480. *
  481. * @type {Array<AssetBulkUploadCheckItem>}
  482. * @memberof AssetBulkUploadCheckDto
  483. */
  484. 'assets': Array<AssetBulkUploadCheckItem>;
  485. }
  486. /**
  487. *
  488. * @export
  489. * @interface AssetBulkUploadCheckItem
  490. */
  491. export interface AssetBulkUploadCheckItem {
  492. /**
  493. * base64 or hex encoded sha1 hash
  494. * @type {string}
  495. * @memberof AssetBulkUploadCheckItem
  496. */
  497. 'checksum': string;
  498. /**
  499. *
  500. * @type {string}
  501. * @memberof AssetBulkUploadCheckItem
  502. */
  503. 'id': string;
  504. }
  505. /**
  506. *
  507. * @export
  508. * @interface AssetBulkUploadCheckResponseDto
  509. */
  510. export interface AssetBulkUploadCheckResponseDto {
  511. /**
  512. *
  513. * @type {Array<AssetBulkUploadCheckResult>}
  514. * @memberof AssetBulkUploadCheckResponseDto
  515. */
  516. 'results': Array<AssetBulkUploadCheckResult>;
  517. }
  518. /**
  519. *
  520. * @export
  521. * @interface AssetBulkUploadCheckResult
  522. */
  523. export interface AssetBulkUploadCheckResult {
  524. /**
  525. *
  526. * @type {string}
  527. * @memberof AssetBulkUploadCheckResult
  528. */
  529. 'action': AssetBulkUploadCheckResultActionEnum;
  530. /**
  531. *
  532. * @type {string}
  533. * @memberof AssetBulkUploadCheckResult
  534. */
  535. 'assetId'?: string;
  536. /**
  537. *
  538. * @type {string}
  539. * @memberof AssetBulkUploadCheckResult
  540. */
  541. 'id': string;
  542. /**
  543. *
  544. * @type {string}
  545. * @memberof AssetBulkUploadCheckResult
  546. */
  547. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  548. }
  549. export const AssetBulkUploadCheckResultActionEnum = {
  550. Accept: 'accept',
  551. Reject: 'reject'
  552. } as const;
  553. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  554. export const AssetBulkUploadCheckResultReasonEnum = {
  555. Duplicate: 'duplicate',
  556. UnsupportedFormat: 'unsupported-format'
  557. } as const;
  558. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  559. /**
  560. *
  561. * @export
  562. * @interface AssetFileUploadResponseDto
  563. */
  564. export interface AssetFileUploadResponseDto {
  565. /**
  566. *
  567. * @type {boolean}
  568. * @memberof AssetFileUploadResponseDto
  569. */
  570. 'duplicate': boolean;
  571. /**
  572. *
  573. * @type {string}
  574. * @memberof AssetFileUploadResponseDto
  575. */
  576. 'id': string;
  577. }
  578. /**
  579. *
  580. * @export
  581. * @interface AssetIdsDto
  582. */
  583. export interface AssetIdsDto {
  584. /**
  585. *
  586. * @type {Array<string>}
  587. * @memberof AssetIdsDto
  588. */
  589. 'assetIds': Array<string>;
  590. }
  591. /**
  592. *
  593. * @export
  594. * @interface AssetIdsResponseDto
  595. */
  596. export interface AssetIdsResponseDto {
  597. /**
  598. *
  599. * @type {string}
  600. * @memberof AssetIdsResponseDto
  601. */
  602. 'assetId': string;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof AssetIdsResponseDto
  607. */
  608. 'error'?: AssetIdsResponseDtoErrorEnum;
  609. /**
  610. *
  611. * @type {boolean}
  612. * @memberof AssetIdsResponseDto
  613. */
  614. 'success': boolean;
  615. }
  616. export const AssetIdsResponseDtoErrorEnum = {
  617. Duplicate: 'duplicate',
  618. NoPermission: 'no_permission',
  619. NotFound: 'not_found'
  620. } as const;
  621. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  622. /**
  623. *
  624. * @export
  625. * @enum {string}
  626. */
  627. export const AssetJobName = {
  628. RegenerateThumbnail: 'regenerate-thumbnail',
  629. RefreshMetadata: 'refresh-metadata',
  630. TranscodeVideo: 'transcode-video'
  631. } as const;
  632. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  633. /**
  634. *
  635. * @export
  636. * @interface AssetJobsDto
  637. */
  638. export interface AssetJobsDto {
  639. /**
  640. *
  641. * @type {Array<string>}
  642. * @memberof AssetJobsDto
  643. */
  644. 'assetIds': Array<string>;
  645. /**
  646. *
  647. * @type {AssetJobName}
  648. * @memberof AssetJobsDto
  649. */
  650. 'name': AssetJobName;
  651. }
  652. /**
  653. *
  654. * @export
  655. * @interface AssetResponseDto
  656. */
  657. export interface AssetResponseDto {
  658. /**
  659. * base64 encoded sha1 hash
  660. * @type {string}
  661. * @memberof AssetResponseDto
  662. */
  663. 'checksum': string;
  664. /**
  665. *
  666. * @type {string}
  667. * @memberof AssetResponseDto
  668. */
  669. 'deviceAssetId': string;
  670. /**
  671. *
  672. * @type {string}
  673. * @memberof AssetResponseDto
  674. */
  675. 'deviceId': string;
  676. /**
  677. *
  678. * @type {string}
  679. * @memberof AssetResponseDto
  680. */
  681. 'duration': string;
  682. /**
  683. *
  684. * @type {ExifResponseDto}
  685. * @memberof AssetResponseDto
  686. */
  687. 'exifInfo'?: ExifResponseDto;
  688. /**
  689. *
  690. * @type {string}
  691. * @memberof AssetResponseDto
  692. */
  693. 'fileCreatedAt': string;
  694. /**
  695. *
  696. * @type {string}
  697. * @memberof AssetResponseDto
  698. */
  699. 'fileModifiedAt': string;
  700. /**
  701. *
  702. * @type {boolean}
  703. * @memberof AssetResponseDto
  704. */
  705. 'hasMetadata': boolean;
  706. /**
  707. *
  708. * @type {string}
  709. * @memberof AssetResponseDto
  710. */
  711. 'id': string;
  712. /**
  713. *
  714. * @type {boolean}
  715. * @memberof AssetResponseDto
  716. */
  717. 'isArchived': boolean;
  718. /**
  719. *
  720. * @type {boolean}
  721. * @memberof AssetResponseDto
  722. */
  723. 'isExternal': boolean;
  724. /**
  725. *
  726. * @type {boolean}
  727. * @memberof AssetResponseDto
  728. */
  729. 'isFavorite': boolean;
  730. /**
  731. *
  732. * @type {boolean}
  733. * @memberof AssetResponseDto
  734. */
  735. 'isOffline': boolean;
  736. /**
  737. *
  738. * @type {boolean}
  739. * @memberof AssetResponseDto
  740. */
  741. 'isReadOnly': boolean;
  742. /**
  743. *
  744. * @type {boolean}
  745. * @memberof AssetResponseDto
  746. */
  747. 'isTrashed': boolean;
  748. /**
  749. *
  750. * @type {string}
  751. * @memberof AssetResponseDto
  752. */
  753. 'libraryId': string;
  754. /**
  755. *
  756. * @type {string}
  757. * @memberof AssetResponseDto
  758. */
  759. 'livePhotoVideoId'?: string | null;
  760. /**
  761. *
  762. * @type {string}
  763. * @memberof AssetResponseDto
  764. */
  765. 'localDateTime': string;
  766. /**
  767. *
  768. * @type {string}
  769. * @memberof AssetResponseDto
  770. */
  771. 'originalFileName': string;
  772. /**
  773. *
  774. * @type {string}
  775. * @memberof AssetResponseDto
  776. */
  777. 'originalPath': string;
  778. /**
  779. *
  780. * @type {UserResponseDto}
  781. * @memberof AssetResponseDto
  782. */
  783. 'owner'?: UserResponseDto;
  784. /**
  785. *
  786. * @type {string}
  787. * @memberof AssetResponseDto
  788. */
  789. 'ownerId': string;
  790. /**
  791. *
  792. * @type {Array<PersonResponseDto>}
  793. * @memberof AssetResponseDto
  794. */
  795. 'people'?: Array<PersonResponseDto>;
  796. /**
  797. *
  798. * @type {boolean}
  799. * @memberof AssetResponseDto
  800. */
  801. 'resized': boolean;
  802. /**
  803. *
  804. * @type {SmartInfoResponseDto}
  805. * @memberof AssetResponseDto
  806. */
  807. 'smartInfo'?: SmartInfoResponseDto;
  808. /**
  809. *
  810. * @type {Array<AssetResponseDto>}
  811. * @memberof AssetResponseDto
  812. */
  813. 'stack'?: Array<AssetResponseDto>;
  814. /**
  815. *
  816. * @type {number}
  817. * @memberof AssetResponseDto
  818. */
  819. 'stackCount': number | null;
  820. /**
  821. *
  822. * @type {string}
  823. * @memberof AssetResponseDto
  824. */
  825. 'stackParentId'?: string | null;
  826. /**
  827. *
  828. * @type {Array<TagResponseDto>}
  829. * @memberof AssetResponseDto
  830. */
  831. 'tags'?: Array<TagResponseDto>;
  832. /**
  833. *
  834. * @type {string}
  835. * @memberof AssetResponseDto
  836. */
  837. 'thumbhash': string | null;
  838. /**
  839. *
  840. * @type {AssetTypeEnum}
  841. * @memberof AssetResponseDto
  842. */
  843. 'type': AssetTypeEnum;
  844. /**
  845. *
  846. * @type {string}
  847. * @memberof AssetResponseDto
  848. */
  849. 'updatedAt': string;
  850. }
  851. /**
  852. *
  853. * @export
  854. * @interface AssetStatsResponseDto
  855. */
  856. export interface AssetStatsResponseDto {
  857. /**
  858. *
  859. * @type {number}
  860. * @memberof AssetStatsResponseDto
  861. */
  862. 'images': number;
  863. /**
  864. *
  865. * @type {number}
  866. * @memberof AssetStatsResponseDto
  867. */
  868. 'total': number;
  869. /**
  870. *
  871. * @type {number}
  872. * @memberof AssetStatsResponseDto
  873. */
  874. 'videos': number;
  875. }
  876. /**
  877. *
  878. * @export
  879. * @enum {string}
  880. */
  881. export const AssetTypeEnum = {
  882. Image: 'IMAGE',
  883. Video: 'VIDEO',
  884. Audio: 'AUDIO',
  885. Other: 'OTHER'
  886. } as const;
  887. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  888. /**
  889. *
  890. * @export
  891. * @enum {string}
  892. */
  893. export const AudioCodec = {
  894. Mp3: 'mp3',
  895. Aac: 'aac',
  896. Libopus: 'libopus'
  897. } as const;
  898. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  899. /**
  900. *
  901. * @export
  902. * @interface AuditDeletesResponseDto
  903. */
  904. export interface AuditDeletesResponseDto {
  905. /**
  906. *
  907. * @type {Array<string>}
  908. * @memberof AuditDeletesResponseDto
  909. */
  910. 'ids': Array<string>;
  911. /**
  912. *
  913. * @type {boolean}
  914. * @memberof AuditDeletesResponseDto
  915. */
  916. 'needsFullSync': boolean;
  917. }
  918. /**
  919. *
  920. * @export
  921. * @interface AuthDeviceResponseDto
  922. */
  923. export interface AuthDeviceResponseDto {
  924. /**
  925. *
  926. * @type {string}
  927. * @memberof AuthDeviceResponseDto
  928. */
  929. 'createdAt': string;
  930. /**
  931. *
  932. * @type {boolean}
  933. * @memberof AuthDeviceResponseDto
  934. */
  935. 'current': boolean;
  936. /**
  937. *
  938. * @type {string}
  939. * @memberof AuthDeviceResponseDto
  940. */
  941. 'deviceOS': string;
  942. /**
  943. *
  944. * @type {string}
  945. * @memberof AuthDeviceResponseDto
  946. */
  947. 'deviceType': string;
  948. /**
  949. *
  950. * @type {string}
  951. * @memberof AuthDeviceResponseDto
  952. */
  953. 'id': string;
  954. /**
  955. *
  956. * @type {string}
  957. * @memberof AuthDeviceResponseDto
  958. */
  959. 'updatedAt': string;
  960. }
  961. /**
  962. *
  963. * @export
  964. * @interface BulkIdResponseDto
  965. */
  966. export interface BulkIdResponseDto {
  967. /**
  968. *
  969. * @type {string}
  970. * @memberof BulkIdResponseDto
  971. */
  972. 'error'?: BulkIdResponseDtoErrorEnum;
  973. /**
  974. *
  975. * @type {string}
  976. * @memberof BulkIdResponseDto
  977. */
  978. 'id': string;
  979. /**
  980. *
  981. * @type {boolean}
  982. * @memberof BulkIdResponseDto
  983. */
  984. 'success': boolean;
  985. }
  986. export const BulkIdResponseDtoErrorEnum = {
  987. Duplicate: 'duplicate',
  988. NoPermission: 'no_permission',
  989. NotFound: 'not_found',
  990. Unknown: 'unknown'
  991. } as const;
  992. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  993. /**
  994. *
  995. * @export
  996. * @interface BulkIdsDto
  997. */
  998. export interface BulkIdsDto {
  999. /**
  1000. *
  1001. * @type {Array<string>}
  1002. * @memberof BulkIdsDto
  1003. */
  1004. 'ids': Array<string>;
  1005. }
  1006. /**
  1007. *
  1008. * @export
  1009. * @interface CLIPConfig
  1010. */
  1011. export interface CLIPConfig {
  1012. /**
  1013. *
  1014. * @type {boolean}
  1015. * @memberof CLIPConfig
  1016. */
  1017. 'enabled': boolean;
  1018. /**
  1019. *
  1020. * @type {CLIPMode}
  1021. * @memberof CLIPConfig
  1022. */
  1023. 'mode'?: CLIPMode;
  1024. /**
  1025. *
  1026. * @type {string}
  1027. * @memberof CLIPConfig
  1028. */
  1029. 'modelName': string;
  1030. /**
  1031. *
  1032. * @type {ModelType}
  1033. * @memberof CLIPConfig
  1034. */
  1035. 'modelType'?: ModelType;
  1036. }
  1037. /**
  1038. *
  1039. * @export
  1040. * @enum {string}
  1041. */
  1042. export const CLIPMode = {
  1043. Vision: 'vision',
  1044. Text: 'text'
  1045. } as const;
  1046. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  1047. /**
  1048. *
  1049. * @export
  1050. * @enum {string}
  1051. */
  1052. export const CQMode = {
  1053. Auto: 'auto',
  1054. Cqp: 'cqp',
  1055. Icq: 'icq'
  1056. } as const;
  1057. export type CQMode = typeof CQMode[keyof typeof CQMode];
  1058. /**
  1059. *
  1060. * @export
  1061. * @interface ChangePasswordDto
  1062. */
  1063. export interface ChangePasswordDto {
  1064. /**
  1065. *
  1066. * @type {string}
  1067. * @memberof ChangePasswordDto
  1068. */
  1069. 'newPassword': string;
  1070. /**
  1071. *
  1072. * @type {string}
  1073. * @memberof ChangePasswordDto
  1074. */
  1075. 'password': string;
  1076. }
  1077. /**
  1078. *
  1079. * @export
  1080. * @interface CheckExistingAssetsDto
  1081. */
  1082. export interface CheckExistingAssetsDto {
  1083. /**
  1084. *
  1085. * @type {Array<string>}
  1086. * @memberof CheckExistingAssetsDto
  1087. */
  1088. 'deviceAssetIds': Array<string>;
  1089. /**
  1090. *
  1091. * @type {string}
  1092. * @memberof CheckExistingAssetsDto
  1093. */
  1094. 'deviceId': string;
  1095. }
  1096. /**
  1097. *
  1098. * @export
  1099. * @interface CheckExistingAssetsResponseDto
  1100. */
  1101. export interface CheckExistingAssetsResponseDto {
  1102. /**
  1103. *
  1104. * @type {Array<string>}
  1105. * @memberof CheckExistingAssetsResponseDto
  1106. */
  1107. 'existingIds': Array<string>;
  1108. }
  1109. /**
  1110. *
  1111. * @export
  1112. * @enum {string}
  1113. */
  1114. export const CitiesFile = {
  1115. Cities15000: 'cities15000',
  1116. Cities5000: 'cities5000',
  1117. Cities1000: 'cities1000',
  1118. Cities500: 'cities500'
  1119. } as const;
  1120. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1121. /**
  1122. *
  1123. * @export
  1124. * @interface ClassificationConfig
  1125. */
  1126. export interface ClassificationConfig {
  1127. /**
  1128. *
  1129. * @type {boolean}
  1130. * @memberof ClassificationConfig
  1131. */
  1132. 'enabled': boolean;
  1133. /**
  1134. *
  1135. * @type {number}
  1136. * @memberof ClassificationConfig
  1137. */
  1138. 'minScore': number;
  1139. /**
  1140. *
  1141. * @type {string}
  1142. * @memberof ClassificationConfig
  1143. */
  1144. 'modelName': string;
  1145. /**
  1146. *
  1147. * @type {ModelType}
  1148. * @memberof ClassificationConfig
  1149. */
  1150. 'modelType'?: ModelType;
  1151. }
  1152. /**
  1153. *
  1154. * @export
  1155. * @enum {string}
  1156. */
  1157. export const Colorspace = {
  1158. Srgb: 'srgb',
  1159. P3: 'p3'
  1160. } as const;
  1161. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1162. /**
  1163. *
  1164. * @export
  1165. * @interface CreateAlbumDto
  1166. */
  1167. export interface CreateAlbumDto {
  1168. /**
  1169. *
  1170. * @type {string}
  1171. * @memberof CreateAlbumDto
  1172. */
  1173. 'albumName': string;
  1174. /**
  1175. *
  1176. * @type {Array<string>}
  1177. * @memberof CreateAlbumDto
  1178. */
  1179. 'assetIds'?: Array<string>;
  1180. /**
  1181. *
  1182. * @type {string}
  1183. * @memberof CreateAlbumDto
  1184. */
  1185. 'description'?: string;
  1186. /**
  1187. *
  1188. * @type {Array<string>}
  1189. * @memberof CreateAlbumDto
  1190. */
  1191. 'sharedWithUserIds'?: Array<string>;
  1192. }
  1193. /**
  1194. *
  1195. * @export
  1196. * @interface CreateLibraryDto
  1197. */
  1198. export interface CreateLibraryDto {
  1199. /**
  1200. *
  1201. * @type {Array<string>}
  1202. * @memberof CreateLibraryDto
  1203. */
  1204. 'exclusionPatterns'?: Array<string>;
  1205. /**
  1206. *
  1207. * @type {Array<string>}
  1208. * @memberof CreateLibraryDto
  1209. */
  1210. 'importPaths'?: Array<string>;
  1211. /**
  1212. *
  1213. * @type {boolean}
  1214. * @memberof CreateLibraryDto
  1215. */
  1216. 'isVisible'?: boolean;
  1217. /**
  1218. *
  1219. * @type {string}
  1220. * @memberof CreateLibraryDto
  1221. */
  1222. 'name'?: string;
  1223. /**
  1224. *
  1225. * @type {LibraryType}
  1226. * @memberof CreateLibraryDto
  1227. */
  1228. 'type': LibraryType;
  1229. }
  1230. /**
  1231. *
  1232. * @export
  1233. * @interface CreateProfileImageResponseDto
  1234. */
  1235. export interface CreateProfileImageResponseDto {
  1236. /**
  1237. *
  1238. * @type {string}
  1239. * @memberof CreateProfileImageResponseDto
  1240. */
  1241. 'profileImagePath': string;
  1242. /**
  1243. *
  1244. * @type {string}
  1245. * @memberof CreateProfileImageResponseDto
  1246. */
  1247. 'userId': string;
  1248. }
  1249. /**
  1250. *
  1251. * @export
  1252. * @interface CreateTagDto
  1253. */
  1254. export interface CreateTagDto {
  1255. /**
  1256. *
  1257. * @type {string}
  1258. * @memberof CreateTagDto
  1259. */
  1260. 'name': string;
  1261. /**
  1262. *
  1263. * @type {TagTypeEnum}
  1264. * @memberof CreateTagDto
  1265. */
  1266. 'type': TagTypeEnum;
  1267. }
  1268. /**
  1269. *
  1270. * @export
  1271. * @interface CreateUserDto
  1272. */
  1273. export interface CreateUserDto {
  1274. /**
  1275. *
  1276. * @type {string}
  1277. * @memberof CreateUserDto
  1278. */
  1279. 'email': string;
  1280. /**
  1281. *
  1282. * @type {string}
  1283. * @memberof CreateUserDto
  1284. */
  1285. 'externalPath'?: string | null;
  1286. /**
  1287. *
  1288. * @type {boolean}
  1289. * @memberof CreateUserDto
  1290. */
  1291. 'memoriesEnabled'?: boolean;
  1292. /**
  1293. *
  1294. * @type {string}
  1295. * @memberof CreateUserDto
  1296. */
  1297. 'name': string;
  1298. /**
  1299. *
  1300. * @type {string}
  1301. * @memberof CreateUserDto
  1302. */
  1303. 'password': string;
  1304. /**
  1305. *
  1306. * @type {string}
  1307. * @memberof CreateUserDto
  1308. */
  1309. 'storageLabel'?: string | null;
  1310. }
  1311. /**
  1312. *
  1313. * @export
  1314. * @interface CuratedLocationsResponseDto
  1315. */
  1316. export interface CuratedLocationsResponseDto {
  1317. /**
  1318. *
  1319. * @type {string}
  1320. * @memberof CuratedLocationsResponseDto
  1321. */
  1322. 'city': string;
  1323. /**
  1324. *
  1325. * @type {string}
  1326. * @memberof CuratedLocationsResponseDto
  1327. */
  1328. 'deviceAssetId': string;
  1329. /**
  1330. *
  1331. * @type {string}
  1332. * @memberof CuratedLocationsResponseDto
  1333. */
  1334. 'deviceId': string;
  1335. /**
  1336. *
  1337. * @type {string}
  1338. * @memberof CuratedLocationsResponseDto
  1339. */
  1340. 'id': string;
  1341. /**
  1342. *
  1343. * @type {string}
  1344. * @memberof CuratedLocationsResponseDto
  1345. */
  1346. 'resizePath': string;
  1347. }
  1348. /**
  1349. *
  1350. * @export
  1351. * @interface CuratedObjectsResponseDto
  1352. */
  1353. export interface CuratedObjectsResponseDto {
  1354. /**
  1355. *
  1356. * @type {string}
  1357. * @memberof CuratedObjectsResponseDto
  1358. */
  1359. 'deviceAssetId': string;
  1360. /**
  1361. *
  1362. * @type {string}
  1363. * @memberof CuratedObjectsResponseDto
  1364. */
  1365. 'deviceId': string;
  1366. /**
  1367. *
  1368. * @type {string}
  1369. * @memberof CuratedObjectsResponseDto
  1370. */
  1371. 'id': string;
  1372. /**
  1373. *
  1374. * @type {string}
  1375. * @memberof CuratedObjectsResponseDto
  1376. */
  1377. 'object': string;
  1378. /**
  1379. *
  1380. * @type {string}
  1381. * @memberof CuratedObjectsResponseDto
  1382. */
  1383. 'resizePath': string;
  1384. }
  1385. /**
  1386. *
  1387. * @export
  1388. * @interface DownloadArchiveInfo
  1389. */
  1390. export interface DownloadArchiveInfo {
  1391. /**
  1392. *
  1393. * @type {Array<string>}
  1394. * @memberof DownloadArchiveInfo
  1395. */
  1396. 'assetIds': Array<string>;
  1397. /**
  1398. *
  1399. * @type {number}
  1400. * @memberof DownloadArchiveInfo
  1401. */
  1402. 'size': number;
  1403. }
  1404. /**
  1405. *
  1406. * @export
  1407. * @interface DownloadInfoDto
  1408. */
  1409. export interface DownloadInfoDto {
  1410. /**
  1411. *
  1412. * @type {string}
  1413. * @memberof DownloadInfoDto
  1414. */
  1415. 'albumId'?: string;
  1416. /**
  1417. *
  1418. * @type {number}
  1419. * @memberof DownloadInfoDto
  1420. */
  1421. 'archiveSize'?: number;
  1422. /**
  1423. *
  1424. * @type {Array<string>}
  1425. * @memberof DownloadInfoDto
  1426. */
  1427. 'assetIds'?: Array<string>;
  1428. /**
  1429. *
  1430. * @type {string}
  1431. * @memberof DownloadInfoDto
  1432. */
  1433. 'userId'?: string;
  1434. }
  1435. /**
  1436. *
  1437. * @export
  1438. * @interface DownloadResponseDto
  1439. */
  1440. export interface DownloadResponseDto {
  1441. /**
  1442. *
  1443. * @type {Array<DownloadArchiveInfo>}
  1444. * @memberof DownloadResponseDto
  1445. */
  1446. 'archives': Array<DownloadArchiveInfo>;
  1447. /**
  1448. *
  1449. * @type {number}
  1450. * @memberof DownloadResponseDto
  1451. */
  1452. 'totalSize': number;
  1453. }
  1454. /**
  1455. *
  1456. * @export
  1457. * @enum {string}
  1458. */
  1459. export const EntityType = {
  1460. Asset: 'ASSET',
  1461. Album: 'ALBUM'
  1462. } as const;
  1463. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1464. /**
  1465. *
  1466. * @export
  1467. * @interface ExifResponseDto
  1468. */
  1469. export interface ExifResponseDto {
  1470. /**
  1471. *
  1472. * @type {string}
  1473. * @memberof ExifResponseDto
  1474. */
  1475. 'city'?: string | null;
  1476. /**
  1477. *
  1478. * @type {string}
  1479. * @memberof ExifResponseDto
  1480. */
  1481. 'country'?: string | null;
  1482. /**
  1483. *
  1484. * @type {string}
  1485. * @memberof ExifResponseDto
  1486. */
  1487. 'dateTimeOriginal'?: string | null;
  1488. /**
  1489. *
  1490. * @type {string}
  1491. * @memberof ExifResponseDto
  1492. */
  1493. 'description'?: string | null;
  1494. /**
  1495. *
  1496. * @type {number}
  1497. * @memberof ExifResponseDto
  1498. */
  1499. 'exifImageHeight'?: number | null;
  1500. /**
  1501. *
  1502. * @type {number}
  1503. * @memberof ExifResponseDto
  1504. */
  1505. 'exifImageWidth'?: number | null;
  1506. /**
  1507. *
  1508. * @type {string}
  1509. * @memberof ExifResponseDto
  1510. */
  1511. 'exposureTime'?: string | null;
  1512. /**
  1513. *
  1514. * @type {number}
  1515. * @memberof ExifResponseDto
  1516. */
  1517. 'fNumber'?: number | null;
  1518. /**
  1519. *
  1520. * @type {number}
  1521. * @memberof ExifResponseDto
  1522. */
  1523. 'fileSizeInByte'?: number | null;
  1524. /**
  1525. *
  1526. * @type {number}
  1527. * @memberof ExifResponseDto
  1528. */
  1529. 'focalLength'?: number | null;
  1530. /**
  1531. *
  1532. * @type {number}
  1533. * @memberof ExifResponseDto
  1534. */
  1535. 'iso'?: number | null;
  1536. /**
  1537. *
  1538. * @type {number}
  1539. * @memberof ExifResponseDto
  1540. */
  1541. 'latitude'?: number | null;
  1542. /**
  1543. *
  1544. * @type {string}
  1545. * @memberof ExifResponseDto
  1546. */
  1547. 'lensModel'?: string | null;
  1548. /**
  1549. *
  1550. * @type {number}
  1551. * @memberof ExifResponseDto
  1552. */
  1553. 'longitude'?: number | null;
  1554. /**
  1555. *
  1556. * @type {string}
  1557. * @memberof ExifResponseDto
  1558. */
  1559. 'make'?: string | null;
  1560. /**
  1561. *
  1562. * @type {string}
  1563. * @memberof ExifResponseDto
  1564. */
  1565. 'model'?: string | null;
  1566. /**
  1567. *
  1568. * @type {string}
  1569. * @memberof ExifResponseDto
  1570. */
  1571. 'modifyDate'?: string | null;
  1572. /**
  1573. *
  1574. * @type {string}
  1575. * @memberof ExifResponseDto
  1576. */
  1577. 'orientation'?: string | null;
  1578. /**
  1579. *
  1580. * @type {string}
  1581. * @memberof ExifResponseDto
  1582. */
  1583. 'projectionType'?: string | null;
  1584. /**
  1585. *
  1586. * @type {string}
  1587. * @memberof ExifResponseDto
  1588. */
  1589. 'state'?: string | null;
  1590. /**
  1591. *
  1592. * @type {string}
  1593. * @memberof ExifResponseDto
  1594. */
  1595. 'timeZone'?: string | null;
  1596. }
  1597. /**
  1598. *
  1599. * @export
  1600. * @interface FileChecksumDto
  1601. */
  1602. export interface FileChecksumDto {
  1603. /**
  1604. *
  1605. * @type {Array<string>}
  1606. * @memberof FileChecksumDto
  1607. */
  1608. 'filenames': Array<string>;
  1609. }
  1610. /**
  1611. *
  1612. * @export
  1613. * @interface FileChecksumResponseDto
  1614. */
  1615. export interface FileChecksumResponseDto {
  1616. /**
  1617. *
  1618. * @type {string}
  1619. * @memberof FileChecksumResponseDto
  1620. */
  1621. 'checksum': string;
  1622. /**
  1623. *
  1624. * @type {string}
  1625. * @memberof FileChecksumResponseDto
  1626. */
  1627. 'filename': string;
  1628. }
  1629. /**
  1630. *
  1631. * @export
  1632. * @interface FileReportDto
  1633. */
  1634. export interface FileReportDto {
  1635. /**
  1636. *
  1637. * @type {Array<string>}
  1638. * @memberof FileReportDto
  1639. */
  1640. 'extras': Array<string>;
  1641. /**
  1642. *
  1643. * @type {Array<FileReportItemDto>}
  1644. * @memberof FileReportDto
  1645. */
  1646. 'orphans': Array<FileReportItemDto>;
  1647. }
  1648. /**
  1649. *
  1650. * @export
  1651. * @interface FileReportFixDto
  1652. */
  1653. export interface FileReportFixDto {
  1654. /**
  1655. *
  1656. * @type {Array<FileReportItemDto>}
  1657. * @memberof FileReportFixDto
  1658. */
  1659. 'items': Array<FileReportItemDto>;
  1660. }
  1661. /**
  1662. *
  1663. * @export
  1664. * @interface FileReportItemDto
  1665. */
  1666. export interface FileReportItemDto {
  1667. /**
  1668. *
  1669. * @type {string}
  1670. * @memberof FileReportItemDto
  1671. */
  1672. 'checksum'?: string;
  1673. /**
  1674. *
  1675. * @type {string}
  1676. * @memberof FileReportItemDto
  1677. */
  1678. 'entityId': string;
  1679. /**
  1680. *
  1681. * @type {PathEntityType}
  1682. * @memberof FileReportItemDto
  1683. */
  1684. 'entityType': PathEntityType;
  1685. /**
  1686. *
  1687. * @type {PathType}
  1688. * @memberof FileReportItemDto
  1689. */
  1690. 'pathType': PathType;
  1691. /**
  1692. *
  1693. * @type {string}
  1694. * @memberof FileReportItemDto
  1695. */
  1696. 'pathValue': string;
  1697. }
  1698. /**
  1699. *
  1700. * @export
  1701. * @interface ImportAssetDto
  1702. */
  1703. export interface ImportAssetDto {
  1704. /**
  1705. *
  1706. * @type {string}
  1707. * @memberof ImportAssetDto
  1708. */
  1709. 'assetPath': string;
  1710. /**
  1711. *
  1712. * @type {string}
  1713. * @memberof ImportAssetDto
  1714. */
  1715. 'deviceAssetId': string;
  1716. /**
  1717. *
  1718. * @type {string}
  1719. * @memberof ImportAssetDto
  1720. */
  1721. 'deviceId': string;
  1722. /**
  1723. *
  1724. * @type {string}
  1725. * @memberof ImportAssetDto
  1726. */
  1727. 'duration'?: string;
  1728. /**
  1729. *
  1730. * @type {string}
  1731. * @memberof ImportAssetDto
  1732. */
  1733. 'fileCreatedAt': string;
  1734. /**
  1735. *
  1736. * @type {string}
  1737. * @memberof ImportAssetDto
  1738. */
  1739. 'fileModifiedAt': string;
  1740. /**
  1741. *
  1742. * @type {boolean}
  1743. * @memberof ImportAssetDto
  1744. */
  1745. 'isArchived'?: boolean;
  1746. /**
  1747. *
  1748. * @type {boolean}
  1749. * @memberof ImportAssetDto
  1750. */
  1751. 'isExternal'?: boolean;
  1752. /**
  1753. *
  1754. * @type {boolean}
  1755. * @memberof ImportAssetDto
  1756. */
  1757. 'isFavorite'?: boolean;
  1758. /**
  1759. *
  1760. * @type {boolean}
  1761. * @memberof ImportAssetDto
  1762. */
  1763. 'isOffline'?: boolean;
  1764. /**
  1765. *
  1766. * @type {boolean}
  1767. * @memberof ImportAssetDto
  1768. */
  1769. 'isReadOnly'?: boolean;
  1770. /**
  1771. *
  1772. * @type {boolean}
  1773. * @memberof ImportAssetDto
  1774. */
  1775. 'isVisible'?: boolean;
  1776. /**
  1777. *
  1778. * @type {string}
  1779. * @memberof ImportAssetDto
  1780. */
  1781. 'libraryId'?: string;
  1782. /**
  1783. *
  1784. * @type {string}
  1785. * @memberof ImportAssetDto
  1786. */
  1787. 'sidecarPath'?: string;
  1788. }
  1789. /**
  1790. *
  1791. * @export
  1792. * @enum {string}
  1793. */
  1794. export const JobCommand = {
  1795. Start: 'start',
  1796. Pause: 'pause',
  1797. Resume: 'resume',
  1798. Empty: 'empty'
  1799. } as const;
  1800. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1801. /**
  1802. *
  1803. * @export
  1804. * @interface JobCommandDto
  1805. */
  1806. export interface JobCommandDto {
  1807. /**
  1808. *
  1809. * @type {JobCommand}
  1810. * @memberof JobCommandDto
  1811. */
  1812. 'command': JobCommand;
  1813. /**
  1814. *
  1815. * @type {boolean}
  1816. * @memberof JobCommandDto
  1817. */
  1818. 'force': boolean;
  1819. }
  1820. /**
  1821. *
  1822. * @export
  1823. * @interface JobCountsDto
  1824. */
  1825. export interface JobCountsDto {
  1826. /**
  1827. *
  1828. * @type {number}
  1829. * @memberof JobCountsDto
  1830. */
  1831. 'active': number;
  1832. /**
  1833. *
  1834. * @type {number}
  1835. * @memberof JobCountsDto
  1836. */
  1837. 'completed': number;
  1838. /**
  1839. *
  1840. * @type {number}
  1841. * @memberof JobCountsDto
  1842. */
  1843. 'delayed': number;
  1844. /**
  1845. *
  1846. * @type {number}
  1847. * @memberof JobCountsDto
  1848. */
  1849. 'failed': number;
  1850. /**
  1851. *
  1852. * @type {number}
  1853. * @memberof JobCountsDto
  1854. */
  1855. 'paused': number;
  1856. /**
  1857. *
  1858. * @type {number}
  1859. * @memberof JobCountsDto
  1860. */
  1861. 'waiting': number;
  1862. }
  1863. /**
  1864. *
  1865. * @export
  1866. * @enum {string}
  1867. */
  1868. export const JobName = {
  1869. ThumbnailGeneration: 'thumbnailGeneration',
  1870. MetadataExtraction: 'metadataExtraction',
  1871. VideoConversion: 'videoConversion',
  1872. ObjectTagging: 'objectTagging',
  1873. RecognizeFaces: 'recognizeFaces',
  1874. ClipEncoding: 'clipEncoding',
  1875. BackgroundTask: 'backgroundTask',
  1876. StorageTemplateMigration: 'storageTemplateMigration',
  1877. Migration: 'migration',
  1878. Search: 'search',
  1879. Sidecar: 'sidecar',
  1880. Library: 'library'
  1881. } as const;
  1882. export type JobName = typeof JobName[keyof typeof JobName];
  1883. /**
  1884. *
  1885. * @export
  1886. * @interface JobSettingsDto
  1887. */
  1888. export interface JobSettingsDto {
  1889. /**
  1890. *
  1891. * @type {number}
  1892. * @memberof JobSettingsDto
  1893. */
  1894. 'concurrency': number;
  1895. }
  1896. /**
  1897. *
  1898. * @export
  1899. * @interface JobStatusDto
  1900. */
  1901. export interface JobStatusDto {
  1902. /**
  1903. *
  1904. * @type {JobCountsDto}
  1905. * @memberof JobStatusDto
  1906. */
  1907. 'jobCounts': JobCountsDto;
  1908. /**
  1909. *
  1910. * @type {QueueStatusDto}
  1911. * @memberof JobStatusDto
  1912. */
  1913. 'queueStatus': QueueStatusDto;
  1914. }
  1915. /**
  1916. *
  1917. * @export
  1918. * @interface LibraryResponseDto
  1919. */
  1920. export interface LibraryResponseDto {
  1921. /**
  1922. *
  1923. * @type {number}
  1924. * @memberof LibraryResponseDto
  1925. */
  1926. 'assetCount': number;
  1927. /**
  1928. *
  1929. * @type {string}
  1930. * @memberof LibraryResponseDto
  1931. */
  1932. 'createdAt': string;
  1933. /**
  1934. *
  1935. * @type {Array<string>}
  1936. * @memberof LibraryResponseDto
  1937. */
  1938. 'exclusionPatterns': Array<string>;
  1939. /**
  1940. *
  1941. * @type {string}
  1942. * @memberof LibraryResponseDto
  1943. */
  1944. 'id': string;
  1945. /**
  1946. *
  1947. * @type {Array<string>}
  1948. * @memberof LibraryResponseDto
  1949. */
  1950. 'importPaths': Array<string>;
  1951. /**
  1952. *
  1953. * @type {string}
  1954. * @memberof LibraryResponseDto
  1955. */
  1956. 'name': string;
  1957. /**
  1958. *
  1959. * @type {string}
  1960. * @memberof LibraryResponseDto
  1961. */
  1962. 'ownerId': string;
  1963. /**
  1964. *
  1965. * @type {string}
  1966. * @memberof LibraryResponseDto
  1967. */
  1968. 'refreshedAt': string | null;
  1969. /**
  1970. *
  1971. * @type {LibraryType}
  1972. * @memberof LibraryResponseDto
  1973. */
  1974. 'type': LibraryType;
  1975. /**
  1976. *
  1977. * @type {string}
  1978. * @memberof LibraryResponseDto
  1979. */
  1980. 'updatedAt': string;
  1981. }
  1982. /**
  1983. *
  1984. * @export
  1985. * @interface LibraryStatsResponseDto
  1986. */
  1987. export interface LibraryStatsResponseDto {
  1988. /**
  1989. *
  1990. * @type {number}
  1991. * @memberof LibraryStatsResponseDto
  1992. */
  1993. 'photos': number;
  1994. /**
  1995. *
  1996. * @type {number}
  1997. * @memberof LibraryStatsResponseDto
  1998. */
  1999. 'total': number;
  2000. /**
  2001. *
  2002. * @type {number}
  2003. * @memberof LibraryStatsResponseDto
  2004. */
  2005. 'usage': number;
  2006. /**
  2007. *
  2008. * @type {number}
  2009. * @memberof LibraryStatsResponseDto
  2010. */
  2011. 'videos': number;
  2012. }
  2013. /**
  2014. *
  2015. * @export
  2016. * @enum {string}
  2017. */
  2018. export const LibraryType = {
  2019. Upload: 'UPLOAD',
  2020. External: 'EXTERNAL'
  2021. } as const;
  2022. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  2023. /**
  2024. *
  2025. * @export
  2026. * @interface LoginCredentialDto
  2027. */
  2028. export interface LoginCredentialDto {
  2029. /**
  2030. *
  2031. * @type {string}
  2032. * @memberof LoginCredentialDto
  2033. */
  2034. 'email': string;
  2035. /**
  2036. *
  2037. * @type {string}
  2038. * @memberof LoginCredentialDto
  2039. */
  2040. 'password': string;
  2041. }
  2042. /**
  2043. *
  2044. * @export
  2045. * @interface LoginResponseDto
  2046. */
  2047. export interface LoginResponseDto {
  2048. /**
  2049. *
  2050. * @type {string}
  2051. * @memberof LoginResponseDto
  2052. */
  2053. 'accessToken': string;
  2054. /**
  2055. *
  2056. * @type {boolean}
  2057. * @memberof LoginResponseDto
  2058. */
  2059. 'isAdmin': boolean;
  2060. /**
  2061. *
  2062. * @type {string}
  2063. * @memberof LoginResponseDto
  2064. */
  2065. 'name': string;
  2066. /**
  2067. *
  2068. * @type {string}
  2069. * @memberof LoginResponseDto
  2070. */
  2071. 'profileImagePath': string;
  2072. /**
  2073. *
  2074. * @type {boolean}
  2075. * @memberof LoginResponseDto
  2076. */
  2077. 'shouldChangePassword': boolean;
  2078. /**
  2079. *
  2080. * @type {string}
  2081. * @memberof LoginResponseDto
  2082. */
  2083. 'userEmail': string;
  2084. /**
  2085. *
  2086. * @type {string}
  2087. * @memberof LoginResponseDto
  2088. */
  2089. 'userId': string;
  2090. }
  2091. /**
  2092. *
  2093. * @export
  2094. * @interface LogoutResponseDto
  2095. */
  2096. export interface LogoutResponseDto {
  2097. /**
  2098. *
  2099. * @type {string}
  2100. * @memberof LogoutResponseDto
  2101. */
  2102. 'redirectUri': string;
  2103. /**
  2104. *
  2105. * @type {boolean}
  2106. * @memberof LogoutResponseDto
  2107. */
  2108. 'successful': boolean;
  2109. }
  2110. /**
  2111. *
  2112. * @export
  2113. * @interface MapMarkerResponseDto
  2114. */
  2115. export interface MapMarkerResponseDto {
  2116. /**
  2117. *
  2118. * @type {string}
  2119. * @memberof MapMarkerResponseDto
  2120. */
  2121. 'id': string;
  2122. /**
  2123. *
  2124. * @type {number}
  2125. * @memberof MapMarkerResponseDto
  2126. */
  2127. 'lat': number;
  2128. /**
  2129. *
  2130. * @type {number}
  2131. * @memberof MapMarkerResponseDto
  2132. */
  2133. 'lon': number;
  2134. }
  2135. /**
  2136. *
  2137. * @export
  2138. * @enum {string}
  2139. */
  2140. export const MapTheme = {
  2141. Light: 'light',
  2142. Dark: 'dark'
  2143. } as const;
  2144. export type MapTheme = typeof MapTheme[keyof typeof MapTheme];
  2145. /**
  2146. *
  2147. * @export
  2148. * @interface MemoryLaneResponseDto
  2149. */
  2150. export interface MemoryLaneResponseDto {
  2151. /**
  2152. *
  2153. * @type {Array<AssetResponseDto>}
  2154. * @memberof MemoryLaneResponseDto
  2155. */
  2156. 'assets': Array<AssetResponseDto>;
  2157. /**
  2158. *
  2159. * @type {string}
  2160. * @memberof MemoryLaneResponseDto
  2161. */
  2162. 'title': string;
  2163. }
  2164. /**
  2165. *
  2166. * @export
  2167. * @interface MergePersonDto
  2168. */
  2169. export interface MergePersonDto {
  2170. /**
  2171. *
  2172. * @type {Array<string>}
  2173. * @memberof MergePersonDto
  2174. */
  2175. 'ids': Array<string>;
  2176. }
  2177. /**
  2178. *
  2179. * @export
  2180. * @enum {string}
  2181. */
  2182. export const ModelType = {
  2183. ImageClassification: 'image-classification',
  2184. FacialRecognition: 'facial-recognition',
  2185. Clip: 'clip'
  2186. } as const;
  2187. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2188. /**
  2189. *
  2190. * @export
  2191. * @interface OAuthAuthorizeResponseDto
  2192. */
  2193. export interface OAuthAuthorizeResponseDto {
  2194. /**
  2195. *
  2196. * @type {string}
  2197. * @memberof OAuthAuthorizeResponseDto
  2198. */
  2199. 'url': string;
  2200. }
  2201. /**
  2202. *
  2203. * @export
  2204. * @interface OAuthCallbackDto
  2205. */
  2206. export interface OAuthCallbackDto {
  2207. /**
  2208. *
  2209. * @type {string}
  2210. * @memberof OAuthCallbackDto
  2211. */
  2212. 'url': string;
  2213. }
  2214. /**
  2215. *
  2216. * @export
  2217. * @interface OAuthConfigDto
  2218. */
  2219. export interface OAuthConfigDto {
  2220. /**
  2221. *
  2222. * @type {string}
  2223. * @memberof OAuthConfigDto
  2224. */
  2225. 'redirectUri': string;
  2226. }
  2227. /**
  2228. *
  2229. * @export
  2230. * @interface OAuthConfigResponseDto
  2231. */
  2232. export interface OAuthConfigResponseDto {
  2233. /**
  2234. *
  2235. * @type {boolean}
  2236. * @memberof OAuthConfigResponseDto
  2237. */
  2238. 'autoLaunch'?: boolean;
  2239. /**
  2240. *
  2241. * @type {string}
  2242. * @memberof OAuthConfigResponseDto
  2243. */
  2244. 'buttonText'?: string;
  2245. /**
  2246. *
  2247. * @type {boolean}
  2248. * @memberof OAuthConfigResponseDto
  2249. */
  2250. 'enabled': boolean;
  2251. /**
  2252. *
  2253. * @type {boolean}
  2254. * @memberof OAuthConfigResponseDto
  2255. */
  2256. 'passwordLoginEnabled': boolean;
  2257. /**
  2258. *
  2259. * @type {string}
  2260. * @memberof OAuthConfigResponseDto
  2261. */
  2262. 'url'?: string;
  2263. }
  2264. /**
  2265. *
  2266. * @export
  2267. * @interface PartnerResponseDto
  2268. */
  2269. export interface PartnerResponseDto {
  2270. /**
  2271. *
  2272. * @type {UserAvatarColor}
  2273. * @memberof PartnerResponseDto
  2274. */
  2275. 'avatarColor': UserAvatarColor;
  2276. /**
  2277. *
  2278. * @type {string}
  2279. * @memberof PartnerResponseDto
  2280. */
  2281. 'createdAt': string;
  2282. /**
  2283. *
  2284. * @type {string}
  2285. * @memberof PartnerResponseDto
  2286. */
  2287. 'deletedAt': string | null;
  2288. /**
  2289. *
  2290. * @type {string}
  2291. * @memberof PartnerResponseDto
  2292. */
  2293. 'email': string;
  2294. /**
  2295. *
  2296. * @type {string}
  2297. * @memberof PartnerResponseDto
  2298. */
  2299. 'externalPath': string | null;
  2300. /**
  2301. *
  2302. * @type {string}
  2303. * @memberof PartnerResponseDto
  2304. */
  2305. 'id': string;
  2306. /**
  2307. *
  2308. * @type {boolean}
  2309. * @memberof PartnerResponseDto
  2310. */
  2311. 'inTimeline'?: boolean;
  2312. /**
  2313. *
  2314. * @type {boolean}
  2315. * @memberof PartnerResponseDto
  2316. */
  2317. 'isAdmin': boolean;
  2318. /**
  2319. *
  2320. * @type {boolean}
  2321. * @memberof PartnerResponseDto
  2322. */
  2323. 'memoriesEnabled'?: boolean;
  2324. /**
  2325. *
  2326. * @type {string}
  2327. * @memberof PartnerResponseDto
  2328. */
  2329. 'name': string;
  2330. /**
  2331. *
  2332. * @type {string}
  2333. * @memberof PartnerResponseDto
  2334. */
  2335. 'oauthId': string;
  2336. /**
  2337. *
  2338. * @type {string}
  2339. * @memberof PartnerResponseDto
  2340. */
  2341. 'profileImagePath': string;
  2342. /**
  2343. *
  2344. * @type {boolean}
  2345. * @memberof PartnerResponseDto
  2346. */
  2347. 'shouldChangePassword': boolean;
  2348. /**
  2349. *
  2350. * @type {string}
  2351. * @memberof PartnerResponseDto
  2352. */
  2353. 'storageLabel': string | null;
  2354. /**
  2355. *
  2356. * @type {string}
  2357. * @memberof PartnerResponseDto
  2358. */
  2359. 'updatedAt': string;
  2360. }
  2361. /**
  2362. *
  2363. * @export
  2364. * @enum {string}
  2365. */
  2366. export const PathEntityType = {
  2367. Asset: 'asset',
  2368. Person: 'person',
  2369. User: 'user'
  2370. } as const;
  2371. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2372. /**
  2373. *
  2374. * @export
  2375. * @enum {string}
  2376. */
  2377. export const PathType = {
  2378. Original: 'original',
  2379. JpegThumbnail: 'jpeg_thumbnail',
  2380. WebpThumbnail: 'webp_thumbnail',
  2381. EncodedVideo: 'encoded_video',
  2382. Sidecar: 'sidecar',
  2383. Face: 'face',
  2384. Profile: 'profile'
  2385. } as const;
  2386. export type PathType = typeof PathType[keyof typeof PathType];
  2387. /**
  2388. *
  2389. * @export
  2390. * @interface PeopleResponseDto
  2391. */
  2392. export interface PeopleResponseDto {
  2393. /**
  2394. *
  2395. * @type {Array<PersonResponseDto>}
  2396. * @memberof PeopleResponseDto
  2397. */
  2398. 'people': Array<PersonResponseDto>;
  2399. /**
  2400. *
  2401. * @type {number}
  2402. * @memberof PeopleResponseDto
  2403. */
  2404. 'total': number;
  2405. /**
  2406. *
  2407. * @type {number}
  2408. * @memberof PeopleResponseDto
  2409. */
  2410. 'visible': number;
  2411. }
  2412. /**
  2413. *
  2414. * @export
  2415. * @interface PeopleUpdateDto
  2416. */
  2417. export interface PeopleUpdateDto {
  2418. /**
  2419. *
  2420. * @type {Array<PeopleUpdateItem>}
  2421. * @memberof PeopleUpdateDto
  2422. */
  2423. 'people': Array<PeopleUpdateItem>;
  2424. }
  2425. /**
  2426. *
  2427. * @export
  2428. * @interface PeopleUpdateItem
  2429. */
  2430. export interface PeopleUpdateItem {
  2431. /**
  2432. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2433. * @type {string}
  2434. * @memberof PeopleUpdateItem
  2435. */
  2436. 'birthDate'?: string | null;
  2437. /**
  2438. * Asset is used to get the feature face thumbnail.
  2439. * @type {string}
  2440. * @memberof PeopleUpdateItem
  2441. */
  2442. 'featureFaceAssetId'?: string;
  2443. /**
  2444. * Person id.
  2445. * @type {string}
  2446. * @memberof PeopleUpdateItem
  2447. */
  2448. 'id': string;
  2449. /**
  2450. * Person visibility
  2451. * @type {boolean}
  2452. * @memberof PeopleUpdateItem
  2453. */
  2454. 'isHidden'?: boolean;
  2455. /**
  2456. * Person name.
  2457. * @type {string}
  2458. * @memberof PeopleUpdateItem
  2459. */
  2460. 'name'?: string;
  2461. }
  2462. /**
  2463. *
  2464. * @export
  2465. * @interface PersonResponseDto
  2466. */
  2467. export interface PersonResponseDto {
  2468. /**
  2469. *
  2470. * @type {string}
  2471. * @memberof PersonResponseDto
  2472. */
  2473. 'birthDate': string | null;
  2474. /**
  2475. *
  2476. * @type {string}
  2477. * @memberof PersonResponseDto
  2478. */
  2479. 'id': string;
  2480. /**
  2481. *
  2482. * @type {boolean}
  2483. * @memberof PersonResponseDto
  2484. */
  2485. 'isHidden': boolean;
  2486. /**
  2487. *
  2488. * @type {string}
  2489. * @memberof PersonResponseDto
  2490. */
  2491. 'name': string;
  2492. /**
  2493. *
  2494. * @type {string}
  2495. * @memberof PersonResponseDto
  2496. */
  2497. 'thumbnailPath': string;
  2498. }
  2499. /**
  2500. *
  2501. * @export
  2502. * @interface PersonStatisticsResponseDto
  2503. */
  2504. export interface PersonStatisticsResponseDto {
  2505. /**
  2506. *
  2507. * @type {number}
  2508. * @memberof PersonStatisticsResponseDto
  2509. */
  2510. 'assets': number;
  2511. }
  2512. /**
  2513. *
  2514. * @export
  2515. * @interface PersonUpdateDto
  2516. */
  2517. export interface PersonUpdateDto {
  2518. /**
  2519. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2520. * @type {string}
  2521. * @memberof PersonUpdateDto
  2522. */
  2523. 'birthDate'?: string | null;
  2524. /**
  2525. * Asset is used to get the feature face thumbnail.
  2526. * @type {string}
  2527. * @memberof PersonUpdateDto
  2528. */
  2529. 'featureFaceAssetId'?: string;
  2530. /**
  2531. * Person visibility
  2532. * @type {boolean}
  2533. * @memberof PersonUpdateDto
  2534. */
  2535. 'isHidden'?: boolean;
  2536. /**
  2537. * Person name.
  2538. * @type {string}
  2539. * @memberof PersonUpdateDto
  2540. */
  2541. 'name'?: string;
  2542. }
  2543. /**
  2544. *
  2545. * @export
  2546. * @interface QueueStatusDto
  2547. */
  2548. export interface QueueStatusDto {
  2549. /**
  2550. *
  2551. * @type {boolean}
  2552. * @memberof QueueStatusDto
  2553. */
  2554. 'isActive': boolean;
  2555. /**
  2556. *
  2557. * @type {boolean}
  2558. * @memberof QueueStatusDto
  2559. */
  2560. 'isPaused': boolean;
  2561. }
  2562. /**
  2563. *
  2564. * @export
  2565. * @enum {string}
  2566. */
  2567. export const ReactionLevel = {
  2568. Album: 'album',
  2569. Asset: 'asset'
  2570. } as const;
  2571. export type ReactionLevel = typeof ReactionLevel[keyof typeof ReactionLevel];
  2572. /**
  2573. *
  2574. * @export
  2575. * @enum {string}
  2576. */
  2577. export const ReactionType = {
  2578. Comment: 'comment',
  2579. Like: 'like'
  2580. } as const;
  2581. export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
  2582. /**
  2583. *
  2584. * @export
  2585. * @interface RecognitionConfig
  2586. */
  2587. export interface RecognitionConfig {
  2588. /**
  2589. *
  2590. * @type {boolean}
  2591. * @memberof RecognitionConfig
  2592. */
  2593. 'enabled': boolean;
  2594. /**
  2595. *
  2596. * @type {number}
  2597. * @memberof RecognitionConfig
  2598. */
  2599. 'maxDistance': number;
  2600. /**
  2601. *
  2602. * @type {number}
  2603. * @memberof RecognitionConfig
  2604. */
  2605. 'minFaces': number;
  2606. /**
  2607. *
  2608. * @type {number}
  2609. * @memberof RecognitionConfig
  2610. */
  2611. 'minScore': number;
  2612. /**
  2613. *
  2614. * @type {string}
  2615. * @memberof RecognitionConfig
  2616. */
  2617. 'modelName': string;
  2618. /**
  2619. *
  2620. * @type {ModelType}
  2621. * @memberof RecognitionConfig
  2622. */
  2623. 'modelType'?: ModelType;
  2624. }
  2625. /**
  2626. *
  2627. * @export
  2628. * @interface ScanLibraryDto
  2629. */
  2630. export interface ScanLibraryDto {
  2631. /**
  2632. *
  2633. * @type {boolean}
  2634. * @memberof ScanLibraryDto
  2635. */
  2636. 'refreshAllFiles'?: boolean;
  2637. /**
  2638. *
  2639. * @type {boolean}
  2640. * @memberof ScanLibraryDto
  2641. */
  2642. 'refreshModifiedFiles'?: boolean;
  2643. }
  2644. /**
  2645. *
  2646. * @export
  2647. * @interface SearchAlbumResponseDto
  2648. */
  2649. export interface SearchAlbumResponseDto {
  2650. /**
  2651. *
  2652. * @type {number}
  2653. * @memberof SearchAlbumResponseDto
  2654. */
  2655. 'count': number;
  2656. /**
  2657. *
  2658. * @type {Array<SearchFacetResponseDto>}
  2659. * @memberof SearchAlbumResponseDto
  2660. */
  2661. 'facets': Array<SearchFacetResponseDto>;
  2662. /**
  2663. *
  2664. * @type {Array<AlbumResponseDto>}
  2665. * @memberof SearchAlbumResponseDto
  2666. */
  2667. 'items': Array<AlbumResponseDto>;
  2668. /**
  2669. *
  2670. * @type {number}
  2671. * @memberof SearchAlbumResponseDto
  2672. */
  2673. 'total': number;
  2674. }
  2675. /**
  2676. *
  2677. * @export
  2678. * @interface SearchAssetDto
  2679. */
  2680. export interface SearchAssetDto {
  2681. /**
  2682. *
  2683. * @type {string}
  2684. * @memberof SearchAssetDto
  2685. */
  2686. 'searchTerm': string;
  2687. }
  2688. /**
  2689. *
  2690. * @export
  2691. * @interface SearchAssetResponseDto
  2692. */
  2693. export interface SearchAssetResponseDto {
  2694. /**
  2695. *
  2696. * @type {number}
  2697. * @memberof SearchAssetResponseDto
  2698. */
  2699. 'count': number;
  2700. /**
  2701. *
  2702. * @type {Array<SearchFacetResponseDto>}
  2703. * @memberof SearchAssetResponseDto
  2704. */
  2705. 'facets': Array<SearchFacetResponseDto>;
  2706. /**
  2707. *
  2708. * @type {Array<AssetResponseDto>}
  2709. * @memberof SearchAssetResponseDto
  2710. */
  2711. 'items': Array<AssetResponseDto>;
  2712. /**
  2713. *
  2714. * @type {number}
  2715. * @memberof SearchAssetResponseDto
  2716. */
  2717. 'total': number;
  2718. }
  2719. /**
  2720. *
  2721. * @export
  2722. * @interface SearchExploreItem
  2723. */
  2724. export interface SearchExploreItem {
  2725. /**
  2726. *
  2727. * @type {AssetResponseDto}
  2728. * @memberof SearchExploreItem
  2729. */
  2730. 'data': AssetResponseDto;
  2731. /**
  2732. *
  2733. * @type {string}
  2734. * @memberof SearchExploreItem
  2735. */
  2736. 'value': string;
  2737. }
  2738. /**
  2739. *
  2740. * @export
  2741. * @interface SearchExploreResponseDto
  2742. */
  2743. export interface SearchExploreResponseDto {
  2744. /**
  2745. *
  2746. * @type {string}
  2747. * @memberof SearchExploreResponseDto
  2748. */
  2749. 'fieldName': string;
  2750. /**
  2751. *
  2752. * @type {Array<SearchExploreItem>}
  2753. * @memberof SearchExploreResponseDto
  2754. */
  2755. 'items': Array<SearchExploreItem>;
  2756. }
  2757. /**
  2758. *
  2759. * @export
  2760. * @interface SearchFacetCountResponseDto
  2761. */
  2762. export interface SearchFacetCountResponseDto {
  2763. /**
  2764. *
  2765. * @type {number}
  2766. * @memberof SearchFacetCountResponseDto
  2767. */
  2768. 'count': number;
  2769. /**
  2770. *
  2771. * @type {string}
  2772. * @memberof SearchFacetCountResponseDto
  2773. */
  2774. 'value': string;
  2775. }
  2776. /**
  2777. *
  2778. * @export
  2779. * @interface SearchFacetResponseDto
  2780. */
  2781. export interface SearchFacetResponseDto {
  2782. /**
  2783. *
  2784. * @type {Array<SearchFacetCountResponseDto>}
  2785. * @memberof SearchFacetResponseDto
  2786. */
  2787. 'counts': Array<SearchFacetCountResponseDto>;
  2788. /**
  2789. *
  2790. * @type {string}
  2791. * @memberof SearchFacetResponseDto
  2792. */
  2793. 'fieldName': string;
  2794. }
  2795. /**
  2796. *
  2797. * @export
  2798. * @interface SearchResponseDto
  2799. */
  2800. export interface SearchResponseDto {
  2801. /**
  2802. *
  2803. * @type {SearchAlbumResponseDto}
  2804. * @memberof SearchResponseDto
  2805. */
  2806. 'albums': SearchAlbumResponseDto;
  2807. /**
  2808. *
  2809. * @type {SearchAssetResponseDto}
  2810. * @memberof SearchResponseDto
  2811. */
  2812. 'assets': SearchAssetResponseDto;
  2813. }
  2814. /**
  2815. *
  2816. * @export
  2817. * @interface ServerConfigDto
  2818. */
  2819. export interface ServerConfigDto {
  2820. /**
  2821. *
  2822. * @type {boolean}
  2823. * @memberof ServerConfigDto
  2824. */
  2825. 'isInitialized': boolean;
  2826. /**
  2827. *
  2828. * @type {string}
  2829. * @memberof ServerConfigDto
  2830. */
  2831. 'loginPageMessage': string;
  2832. /**
  2833. *
  2834. * @type {string}
  2835. * @memberof ServerConfigDto
  2836. */
  2837. 'oauthButtonText': string;
  2838. /**
  2839. *
  2840. * @type {number}
  2841. * @memberof ServerConfigDto
  2842. */
  2843. 'trashDays': number;
  2844. }
  2845. /**
  2846. *
  2847. * @export
  2848. * @interface ServerFeaturesDto
  2849. */
  2850. export interface ServerFeaturesDto {
  2851. /**
  2852. *
  2853. * @type {boolean}
  2854. * @memberof ServerFeaturesDto
  2855. */
  2856. 'clipEncode': boolean;
  2857. /**
  2858. *
  2859. * @type {boolean}
  2860. * @memberof ServerFeaturesDto
  2861. */
  2862. 'configFile': boolean;
  2863. /**
  2864. *
  2865. * @type {boolean}
  2866. * @memberof ServerFeaturesDto
  2867. */
  2868. 'facialRecognition': boolean;
  2869. /**
  2870. *
  2871. * @type {boolean}
  2872. * @memberof ServerFeaturesDto
  2873. */
  2874. 'map': boolean;
  2875. /**
  2876. *
  2877. * @type {boolean}
  2878. * @memberof ServerFeaturesDto
  2879. */
  2880. 'oauth': boolean;
  2881. /**
  2882. *
  2883. * @type {boolean}
  2884. * @memberof ServerFeaturesDto
  2885. */
  2886. 'oauthAutoLaunch': boolean;
  2887. /**
  2888. *
  2889. * @type {boolean}
  2890. * @memberof ServerFeaturesDto
  2891. */
  2892. 'passwordLogin': boolean;
  2893. /**
  2894. *
  2895. * @type {boolean}
  2896. * @memberof ServerFeaturesDto
  2897. */
  2898. 'reverseGeocoding': boolean;
  2899. /**
  2900. *
  2901. * @type {boolean}
  2902. * @memberof ServerFeaturesDto
  2903. */
  2904. 'search': boolean;
  2905. /**
  2906. *
  2907. * @type {boolean}
  2908. * @memberof ServerFeaturesDto
  2909. */
  2910. 'sidecar': boolean;
  2911. /**
  2912. *
  2913. * @type {boolean}
  2914. * @memberof ServerFeaturesDto
  2915. */
  2916. 'tagImage': boolean;
  2917. /**
  2918. *
  2919. * @type {boolean}
  2920. * @memberof ServerFeaturesDto
  2921. */
  2922. 'trash': boolean;
  2923. }
  2924. /**
  2925. *
  2926. * @export
  2927. * @interface ServerInfoResponseDto
  2928. */
  2929. export interface ServerInfoResponseDto {
  2930. /**
  2931. *
  2932. * @type {string}
  2933. * @memberof ServerInfoResponseDto
  2934. */
  2935. 'diskAvailable': string;
  2936. /**
  2937. *
  2938. * @type {number}
  2939. * @memberof ServerInfoResponseDto
  2940. */
  2941. 'diskAvailableRaw': number;
  2942. /**
  2943. *
  2944. * @type {string}
  2945. * @memberof ServerInfoResponseDto
  2946. */
  2947. 'diskSize': string;
  2948. /**
  2949. *
  2950. * @type {number}
  2951. * @memberof ServerInfoResponseDto
  2952. */
  2953. 'diskSizeRaw': number;
  2954. /**
  2955. *
  2956. * @type {number}
  2957. * @memberof ServerInfoResponseDto
  2958. */
  2959. 'diskUsagePercentage': number;
  2960. /**
  2961. *
  2962. * @type {string}
  2963. * @memberof ServerInfoResponseDto
  2964. */
  2965. 'diskUse': string;
  2966. /**
  2967. *
  2968. * @type {number}
  2969. * @memberof ServerInfoResponseDto
  2970. */
  2971. 'diskUseRaw': number;
  2972. }
  2973. /**
  2974. *
  2975. * @export
  2976. * @interface ServerMediaTypesResponseDto
  2977. */
  2978. export interface ServerMediaTypesResponseDto {
  2979. /**
  2980. *
  2981. * @type {Array<string>}
  2982. * @memberof ServerMediaTypesResponseDto
  2983. */
  2984. 'image': Array<string>;
  2985. /**
  2986. *
  2987. * @type {Array<string>}
  2988. * @memberof ServerMediaTypesResponseDto
  2989. */
  2990. 'sidecar': Array<string>;
  2991. /**
  2992. *
  2993. * @type {Array<string>}
  2994. * @memberof ServerMediaTypesResponseDto
  2995. */
  2996. 'video': Array<string>;
  2997. }
  2998. /**
  2999. *
  3000. * @export
  3001. * @interface ServerPingResponse
  3002. */
  3003. export interface ServerPingResponse {
  3004. /**
  3005. *
  3006. * @type {string}
  3007. * @memberof ServerPingResponse
  3008. */
  3009. 'res': string;
  3010. }
  3011. /**
  3012. *
  3013. * @export
  3014. * @interface ServerStatsResponseDto
  3015. */
  3016. export interface ServerStatsResponseDto {
  3017. /**
  3018. *
  3019. * @type {number}
  3020. * @memberof ServerStatsResponseDto
  3021. */
  3022. 'photos': number;
  3023. /**
  3024. *
  3025. * @type {number}
  3026. * @memberof ServerStatsResponseDto
  3027. */
  3028. 'usage': number;
  3029. /**
  3030. *
  3031. * @type {Array<UsageByUserDto>}
  3032. * @memberof ServerStatsResponseDto
  3033. */
  3034. 'usageByUser': Array<UsageByUserDto>;
  3035. /**
  3036. *
  3037. * @type {number}
  3038. * @memberof ServerStatsResponseDto
  3039. */
  3040. 'videos': number;
  3041. }
  3042. /**
  3043. *
  3044. * @export
  3045. * @interface ServerThemeDto
  3046. */
  3047. export interface ServerThemeDto {
  3048. /**
  3049. *
  3050. * @type {string}
  3051. * @memberof ServerThemeDto
  3052. */
  3053. 'customCss': string;
  3054. }
  3055. /**
  3056. *
  3057. * @export
  3058. * @interface ServerVersionResponseDto
  3059. */
  3060. export interface ServerVersionResponseDto {
  3061. /**
  3062. *
  3063. * @type {number}
  3064. * @memberof ServerVersionResponseDto
  3065. */
  3066. 'major': number;
  3067. /**
  3068. *
  3069. * @type {number}
  3070. * @memberof ServerVersionResponseDto
  3071. */
  3072. 'minor': number;
  3073. /**
  3074. *
  3075. * @type {number}
  3076. * @memberof ServerVersionResponseDto
  3077. */
  3078. 'patch': number;
  3079. }
  3080. /**
  3081. *
  3082. * @export
  3083. * @interface SharedLinkCreateDto
  3084. */
  3085. export interface SharedLinkCreateDto {
  3086. /**
  3087. *
  3088. * @type {string}
  3089. * @memberof SharedLinkCreateDto
  3090. */
  3091. 'albumId'?: string;
  3092. /**
  3093. *
  3094. * @type {boolean}
  3095. * @memberof SharedLinkCreateDto
  3096. */
  3097. 'allowDownload'?: boolean;
  3098. /**
  3099. *
  3100. * @type {boolean}
  3101. * @memberof SharedLinkCreateDto
  3102. */
  3103. 'allowUpload'?: boolean;
  3104. /**
  3105. *
  3106. * @type {Array<string>}
  3107. * @memberof SharedLinkCreateDto
  3108. */
  3109. 'assetIds'?: Array<string>;
  3110. /**
  3111. *
  3112. * @type {string}
  3113. * @memberof SharedLinkCreateDto
  3114. */
  3115. 'description'?: string;
  3116. /**
  3117. *
  3118. * @type {string}
  3119. * @memberof SharedLinkCreateDto
  3120. */
  3121. 'expiresAt'?: string | null;
  3122. /**
  3123. *
  3124. * @type {string}
  3125. * @memberof SharedLinkCreateDto
  3126. */
  3127. 'password'?: string;
  3128. /**
  3129. *
  3130. * @type {boolean}
  3131. * @memberof SharedLinkCreateDto
  3132. */
  3133. 'showMetadata'?: boolean;
  3134. /**
  3135. *
  3136. * @type {SharedLinkType}
  3137. * @memberof SharedLinkCreateDto
  3138. */
  3139. 'type': SharedLinkType;
  3140. }
  3141. /**
  3142. *
  3143. * @export
  3144. * @interface SharedLinkEditDto
  3145. */
  3146. export interface SharedLinkEditDto {
  3147. /**
  3148. *
  3149. * @type {boolean}
  3150. * @memberof SharedLinkEditDto
  3151. */
  3152. 'allowDownload'?: boolean;
  3153. /**
  3154. *
  3155. * @type {boolean}
  3156. * @memberof SharedLinkEditDto
  3157. */
  3158. 'allowUpload'?: boolean;
  3159. /**
  3160. * Few clients cannot send null to set the expiryTime to never. Setting this flag and not sending expiryAt is considered as null instead. Clients that can send null values can ignore this.
  3161. * @type {boolean}
  3162. * @memberof SharedLinkEditDto
  3163. */
  3164. 'changeExpiryTime'?: boolean;
  3165. /**
  3166. *
  3167. * @type {string}
  3168. * @memberof SharedLinkEditDto
  3169. */
  3170. 'description'?: string;
  3171. /**
  3172. *
  3173. * @type {string}
  3174. * @memberof SharedLinkEditDto
  3175. */
  3176. 'expiresAt'?: string | null;
  3177. /**
  3178. *
  3179. * @type {string}
  3180. * @memberof SharedLinkEditDto
  3181. */
  3182. 'password'?: string;
  3183. /**
  3184. *
  3185. * @type {boolean}
  3186. * @memberof SharedLinkEditDto
  3187. */
  3188. 'showMetadata'?: boolean;
  3189. }
  3190. /**
  3191. *
  3192. * @export
  3193. * @interface SharedLinkResponseDto
  3194. */
  3195. export interface SharedLinkResponseDto {
  3196. /**
  3197. *
  3198. * @type {AlbumResponseDto}
  3199. * @memberof SharedLinkResponseDto
  3200. */
  3201. 'album'?: AlbumResponseDto;
  3202. /**
  3203. *
  3204. * @type {boolean}
  3205. * @memberof SharedLinkResponseDto
  3206. */
  3207. 'allowDownload': boolean;
  3208. /**
  3209. *
  3210. * @type {boolean}
  3211. * @memberof SharedLinkResponseDto
  3212. */
  3213. 'allowUpload': boolean;
  3214. /**
  3215. *
  3216. * @type {Array<AssetResponseDto>}
  3217. * @memberof SharedLinkResponseDto
  3218. */
  3219. 'assets': Array<AssetResponseDto>;
  3220. /**
  3221. *
  3222. * @type {string}
  3223. * @memberof SharedLinkResponseDto
  3224. */
  3225. 'createdAt': string;
  3226. /**
  3227. *
  3228. * @type {string}
  3229. * @memberof SharedLinkResponseDto
  3230. */
  3231. 'description': string | null;
  3232. /**
  3233. *
  3234. * @type {string}
  3235. * @memberof SharedLinkResponseDto
  3236. */
  3237. 'expiresAt': string | null;
  3238. /**
  3239. *
  3240. * @type {string}
  3241. * @memberof SharedLinkResponseDto
  3242. */
  3243. 'id': string;
  3244. /**
  3245. *
  3246. * @type {string}
  3247. * @memberof SharedLinkResponseDto
  3248. */
  3249. 'key': string;
  3250. /**
  3251. *
  3252. * @type {string}
  3253. * @memberof SharedLinkResponseDto
  3254. */
  3255. 'password': string | null;
  3256. /**
  3257. *
  3258. * @type {boolean}
  3259. * @memberof SharedLinkResponseDto
  3260. */
  3261. 'showMetadata': boolean;
  3262. /**
  3263. *
  3264. * @type {string}
  3265. * @memberof SharedLinkResponseDto
  3266. */
  3267. 'token'?: string | null;
  3268. /**
  3269. *
  3270. * @type {SharedLinkType}
  3271. * @memberof SharedLinkResponseDto
  3272. */
  3273. 'type': SharedLinkType;
  3274. /**
  3275. *
  3276. * @type {string}
  3277. * @memberof SharedLinkResponseDto
  3278. */
  3279. 'userId': string;
  3280. }
  3281. /**
  3282. *
  3283. * @export
  3284. * @enum {string}
  3285. */
  3286. export const SharedLinkType = {
  3287. Album: 'ALBUM',
  3288. Individual: 'INDIVIDUAL'
  3289. } as const;
  3290. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3291. /**
  3292. *
  3293. * @export
  3294. * @interface SignUpDto
  3295. */
  3296. export interface SignUpDto {
  3297. /**
  3298. *
  3299. * @type {string}
  3300. * @memberof SignUpDto
  3301. */
  3302. 'email': string;
  3303. /**
  3304. *
  3305. * @type {string}
  3306. * @memberof SignUpDto
  3307. */
  3308. 'name': string;
  3309. /**
  3310. *
  3311. * @type {string}
  3312. * @memberof SignUpDto
  3313. */
  3314. 'password': string;
  3315. }
  3316. /**
  3317. *
  3318. * @export
  3319. * @interface SmartInfoResponseDto
  3320. */
  3321. export interface SmartInfoResponseDto {
  3322. /**
  3323. *
  3324. * @type {Array<string>}
  3325. * @memberof SmartInfoResponseDto
  3326. */
  3327. 'objects'?: Array<string> | null;
  3328. /**
  3329. *
  3330. * @type {Array<string>}
  3331. * @memberof SmartInfoResponseDto
  3332. */
  3333. 'tags'?: Array<string> | null;
  3334. }
  3335. /**
  3336. *
  3337. * @export
  3338. * @interface SystemConfigDto
  3339. */
  3340. export interface SystemConfigDto {
  3341. /**
  3342. *
  3343. * @type {SystemConfigFFmpegDto}
  3344. * @memberof SystemConfigDto
  3345. */
  3346. 'ffmpeg': SystemConfigFFmpegDto;
  3347. /**
  3348. *
  3349. * @type {SystemConfigJobDto}
  3350. * @memberof SystemConfigDto
  3351. */
  3352. 'job': SystemConfigJobDto;
  3353. /**
  3354. *
  3355. * @type {SystemConfigLibraryDto}
  3356. * @memberof SystemConfigDto
  3357. */
  3358. 'library': SystemConfigLibraryDto;
  3359. /**
  3360. *
  3361. * @type {SystemConfigMachineLearningDto}
  3362. * @memberof SystemConfigDto
  3363. */
  3364. 'machineLearning': SystemConfigMachineLearningDto;
  3365. /**
  3366. *
  3367. * @type {SystemConfigMapDto}
  3368. * @memberof SystemConfigDto
  3369. */
  3370. 'map': SystemConfigMapDto;
  3371. /**
  3372. *
  3373. * @type {SystemConfigNewVersionCheckDto}
  3374. * @memberof SystemConfigDto
  3375. */
  3376. 'newVersionCheck': SystemConfigNewVersionCheckDto;
  3377. /**
  3378. *
  3379. * @type {SystemConfigOAuthDto}
  3380. * @memberof SystemConfigDto
  3381. */
  3382. 'oauth': SystemConfigOAuthDto;
  3383. /**
  3384. *
  3385. * @type {SystemConfigPasswordLoginDto}
  3386. * @memberof SystemConfigDto
  3387. */
  3388. 'passwordLogin': SystemConfigPasswordLoginDto;
  3389. /**
  3390. *
  3391. * @type {SystemConfigReverseGeocodingDto}
  3392. * @memberof SystemConfigDto
  3393. */
  3394. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3395. /**
  3396. *
  3397. * @type {SystemConfigStorageTemplateDto}
  3398. * @memberof SystemConfigDto
  3399. */
  3400. 'storageTemplate': SystemConfigStorageTemplateDto;
  3401. /**
  3402. *
  3403. * @type {SystemConfigThemeDto}
  3404. * @memberof SystemConfigDto
  3405. */
  3406. 'theme': SystemConfigThemeDto;
  3407. /**
  3408. *
  3409. * @type {SystemConfigThumbnailDto}
  3410. * @memberof SystemConfigDto
  3411. */
  3412. 'thumbnail': SystemConfigThumbnailDto;
  3413. /**
  3414. *
  3415. * @type {SystemConfigTrashDto}
  3416. * @memberof SystemConfigDto
  3417. */
  3418. 'trash': SystemConfigTrashDto;
  3419. }
  3420. /**
  3421. *
  3422. * @export
  3423. * @interface SystemConfigFFmpegDto
  3424. */
  3425. export interface SystemConfigFFmpegDto {
  3426. /**
  3427. *
  3428. * @type {TranscodeHWAccel}
  3429. * @memberof SystemConfigFFmpegDto
  3430. */
  3431. 'accel': TranscodeHWAccel;
  3432. /**
  3433. *
  3434. * @type {number}
  3435. * @memberof SystemConfigFFmpegDto
  3436. */
  3437. 'bframes': number;
  3438. /**
  3439. *
  3440. * @type {CQMode}
  3441. * @memberof SystemConfigFFmpegDto
  3442. */
  3443. 'cqMode': CQMode;
  3444. /**
  3445. *
  3446. * @type {number}
  3447. * @memberof SystemConfigFFmpegDto
  3448. */
  3449. 'crf': number;
  3450. /**
  3451. *
  3452. * @type {number}
  3453. * @memberof SystemConfigFFmpegDto
  3454. */
  3455. 'gopSize': number;
  3456. /**
  3457. *
  3458. * @type {string}
  3459. * @memberof SystemConfigFFmpegDto
  3460. */
  3461. 'maxBitrate': string;
  3462. /**
  3463. *
  3464. * @type {number}
  3465. * @memberof SystemConfigFFmpegDto
  3466. */
  3467. 'npl': number;
  3468. /**
  3469. *
  3470. * @type {string}
  3471. * @memberof SystemConfigFFmpegDto
  3472. */
  3473. 'preset': string;
  3474. /**
  3475. *
  3476. * @type {number}
  3477. * @memberof SystemConfigFFmpegDto
  3478. */
  3479. 'refs': number;
  3480. /**
  3481. *
  3482. * @type {AudioCodec}
  3483. * @memberof SystemConfigFFmpegDto
  3484. */
  3485. 'targetAudioCodec': AudioCodec;
  3486. /**
  3487. *
  3488. * @type {string}
  3489. * @memberof SystemConfigFFmpegDto
  3490. */
  3491. 'targetResolution': string;
  3492. /**
  3493. *
  3494. * @type {VideoCodec}
  3495. * @memberof SystemConfigFFmpegDto
  3496. */
  3497. 'targetVideoCodec': VideoCodec;
  3498. /**
  3499. *
  3500. * @type {boolean}
  3501. * @memberof SystemConfigFFmpegDto
  3502. */
  3503. 'temporalAQ': boolean;
  3504. /**
  3505. *
  3506. * @type {number}
  3507. * @memberof SystemConfigFFmpegDto
  3508. */
  3509. 'threads': number;
  3510. /**
  3511. *
  3512. * @type {ToneMapping}
  3513. * @memberof SystemConfigFFmpegDto
  3514. */
  3515. 'tonemap': ToneMapping;
  3516. /**
  3517. *
  3518. * @type {TranscodePolicy}
  3519. * @memberof SystemConfigFFmpegDto
  3520. */
  3521. 'transcode': TranscodePolicy;
  3522. /**
  3523. *
  3524. * @type {boolean}
  3525. * @memberof SystemConfigFFmpegDto
  3526. */
  3527. 'twoPass': boolean;
  3528. }
  3529. /**
  3530. *
  3531. * @export
  3532. * @interface SystemConfigJobDto
  3533. */
  3534. export interface SystemConfigJobDto {
  3535. /**
  3536. *
  3537. * @type {JobSettingsDto}
  3538. * @memberof SystemConfigJobDto
  3539. */
  3540. 'backgroundTask': JobSettingsDto;
  3541. /**
  3542. *
  3543. * @type {JobSettingsDto}
  3544. * @memberof SystemConfigJobDto
  3545. */
  3546. 'clipEncoding': JobSettingsDto;
  3547. /**
  3548. *
  3549. * @type {JobSettingsDto}
  3550. * @memberof SystemConfigJobDto
  3551. */
  3552. 'library': JobSettingsDto;
  3553. /**
  3554. *
  3555. * @type {JobSettingsDto}
  3556. * @memberof SystemConfigJobDto
  3557. */
  3558. 'metadataExtraction': JobSettingsDto;
  3559. /**
  3560. *
  3561. * @type {JobSettingsDto}
  3562. * @memberof SystemConfigJobDto
  3563. */
  3564. 'migration': JobSettingsDto;
  3565. /**
  3566. *
  3567. * @type {JobSettingsDto}
  3568. * @memberof SystemConfigJobDto
  3569. */
  3570. 'objectTagging': JobSettingsDto;
  3571. /**
  3572. *
  3573. * @type {JobSettingsDto}
  3574. * @memberof SystemConfigJobDto
  3575. */
  3576. 'recognizeFaces': JobSettingsDto;
  3577. /**
  3578. *
  3579. * @type {JobSettingsDto}
  3580. * @memberof SystemConfigJobDto
  3581. */
  3582. 'search': JobSettingsDto;
  3583. /**
  3584. *
  3585. * @type {JobSettingsDto}
  3586. * @memberof SystemConfigJobDto
  3587. */
  3588. 'sidecar': JobSettingsDto;
  3589. /**
  3590. *
  3591. * @type {JobSettingsDto}
  3592. * @memberof SystemConfigJobDto
  3593. */
  3594. 'storageTemplateMigration': JobSettingsDto;
  3595. /**
  3596. *
  3597. * @type {JobSettingsDto}
  3598. * @memberof SystemConfigJobDto
  3599. */
  3600. 'thumbnailGeneration': JobSettingsDto;
  3601. /**
  3602. *
  3603. * @type {JobSettingsDto}
  3604. * @memberof SystemConfigJobDto
  3605. */
  3606. 'videoConversion': JobSettingsDto;
  3607. }
  3608. /**
  3609. *
  3610. * @export
  3611. * @interface SystemConfigLibraryDto
  3612. */
  3613. export interface SystemConfigLibraryDto {
  3614. /**
  3615. *
  3616. * @type {SystemConfigLibraryScanDto}
  3617. * @memberof SystemConfigLibraryDto
  3618. */
  3619. 'scan': SystemConfigLibraryScanDto;
  3620. }
  3621. /**
  3622. *
  3623. * @export
  3624. * @interface SystemConfigLibraryScanDto
  3625. */
  3626. export interface SystemConfigLibraryScanDto {
  3627. /**
  3628. *
  3629. * @type {string}
  3630. * @memberof SystemConfigLibraryScanDto
  3631. */
  3632. 'cronExpression': string;
  3633. /**
  3634. *
  3635. * @type {boolean}
  3636. * @memberof SystemConfigLibraryScanDto
  3637. */
  3638. 'enabled': boolean;
  3639. }
  3640. /**
  3641. *
  3642. * @export
  3643. * @interface SystemConfigMachineLearningDto
  3644. */
  3645. export interface SystemConfigMachineLearningDto {
  3646. /**
  3647. *
  3648. * @type {ClassificationConfig}
  3649. * @memberof SystemConfigMachineLearningDto
  3650. */
  3651. 'classification': ClassificationConfig;
  3652. /**
  3653. *
  3654. * @type {CLIPConfig}
  3655. * @memberof SystemConfigMachineLearningDto
  3656. */
  3657. 'clip': CLIPConfig;
  3658. /**
  3659. *
  3660. * @type {boolean}
  3661. * @memberof SystemConfigMachineLearningDto
  3662. */
  3663. 'enabled': boolean;
  3664. /**
  3665. *
  3666. * @type {RecognitionConfig}
  3667. * @memberof SystemConfigMachineLearningDto
  3668. */
  3669. 'facialRecognition': RecognitionConfig;
  3670. /**
  3671. *
  3672. * @type {string}
  3673. * @memberof SystemConfigMachineLearningDto
  3674. */
  3675. 'url': string;
  3676. }
  3677. /**
  3678. *
  3679. * @export
  3680. * @interface SystemConfigMapDto
  3681. */
  3682. export interface SystemConfigMapDto {
  3683. /**
  3684. *
  3685. * @type {string}
  3686. * @memberof SystemConfigMapDto
  3687. */
  3688. 'darkStyle': string;
  3689. /**
  3690. *
  3691. * @type {boolean}
  3692. * @memberof SystemConfigMapDto
  3693. */
  3694. 'enabled': boolean;
  3695. /**
  3696. *
  3697. * @type {string}
  3698. * @memberof SystemConfigMapDto
  3699. */
  3700. 'lightStyle': string;
  3701. }
  3702. /**
  3703. *
  3704. * @export
  3705. * @interface SystemConfigNewVersionCheckDto
  3706. */
  3707. export interface SystemConfigNewVersionCheckDto {
  3708. /**
  3709. *
  3710. * @type {boolean}
  3711. * @memberof SystemConfigNewVersionCheckDto
  3712. */
  3713. 'enabled': boolean;
  3714. }
  3715. /**
  3716. *
  3717. * @export
  3718. * @interface SystemConfigOAuthDto
  3719. */
  3720. export interface SystemConfigOAuthDto {
  3721. /**
  3722. *
  3723. * @type {boolean}
  3724. * @memberof SystemConfigOAuthDto
  3725. */
  3726. 'autoLaunch': boolean;
  3727. /**
  3728. *
  3729. * @type {boolean}
  3730. * @memberof SystemConfigOAuthDto
  3731. */
  3732. 'autoRegister': boolean;
  3733. /**
  3734. *
  3735. * @type {string}
  3736. * @memberof SystemConfigOAuthDto
  3737. */
  3738. 'buttonText': string;
  3739. /**
  3740. *
  3741. * @type {string}
  3742. * @memberof SystemConfigOAuthDto
  3743. */
  3744. 'clientId': string;
  3745. /**
  3746. *
  3747. * @type {string}
  3748. * @memberof SystemConfigOAuthDto
  3749. */
  3750. 'clientSecret': string;
  3751. /**
  3752. *
  3753. * @type {boolean}
  3754. * @memberof SystemConfigOAuthDto
  3755. */
  3756. 'enabled': boolean;
  3757. /**
  3758. *
  3759. * @type {string}
  3760. * @memberof SystemConfigOAuthDto
  3761. */
  3762. 'issuerUrl': string;
  3763. /**
  3764. *
  3765. * @type {boolean}
  3766. * @memberof SystemConfigOAuthDto
  3767. */
  3768. 'mobileOverrideEnabled': boolean;
  3769. /**
  3770. *
  3771. * @type {string}
  3772. * @memberof SystemConfigOAuthDto
  3773. */
  3774. 'mobileRedirectUri': string;
  3775. /**
  3776. *
  3777. * @type {string}
  3778. * @memberof SystemConfigOAuthDto
  3779. */
  3780. 'scope': string;
  3781. /**
  3782. *
  3783. * @type {string}
  3784. * @memberof SystemConfigOAuthDto
  3785. */
  3786. 'storageLabelClaim': string;
  3787. }
  3788. /**
  3789. *
  3790. * @export
  3791. * @interface SystemConfigPasswordLoginDto
  3792. */
  3793. export interface SystemConfigPasswordLoginDto {
  3794. /**
  3795. *
  3796. * @type {boolean}
  3797. * @memberof SystemConfigPasswordLoginDto
  3798. */
  3799. 'enabled': boolean;
  3800. }
  3801. /**
  3802. *
  3803. * @export
  3804. * @interface SystemConfigReverseGeocodingDto
  3805. */
  3806. export interface SystemConfigReverseGeocodingDto {
  3807. /**
  3808. *
  3809. * @type {CitiesFile}
  3810. * @memberof SystemConfigReverseGeocodingDto
  3811. */
  3812. 'citiesFileOverride': CitiesFile;
  3813. /**
  3814. *
  3815. * @type {boolean}
  3816. * @memberof SystemConfigReverseGeocodingDto
  3817. */
  3818. 'enabled': boolean;
  3819. }
  3820. /**
  3821. *
  3822. * @export
  3823. * @interface SystemConfigStorageTemplateDto
  3824. */
  3825. export interface SystemConfigStorageTemplateDto {
  3826. /**
  3827. *
  3828. * @type {string}
  3829. * @memberof SystemConfigStorageTemplateDto
  3830. */
  3831. 'template': string;
  3832. }
  3833. /**
  3834. *
  3835. * @export
  3836. * @interface SystemConfigTemplateStorageOptionDto
  3837. */
  3838. export interface SystemConfigTemplateStorageOptionDto {
  3839. /**
  3840. *
  3841. * @type {Array<string>}
  3842. * @memberof SystemConfigTemplateStorageOptionDto
  3843. */
  3844. 'dayOptions': Array<string>;
  3845. /**
  3846. *
  3847. * @type {Array<string>}
  3848. * @memberof SystemConfigTemplateStorageOptionDto
  3849. */
  3850. 'hourOptions': Array<string>;
  3851. /**
  3852. *
  3853. * @type {Array<string>}
  3854. * @memberof SystemConfigTemplateStorageOptionDto
  3855. */
  3856. 'minuteOptions': Array<string>;
  3857. /**
  3858. *
  3859. * @type {Array<string>}
  3860. * @memberof SystemConfigTemplateStorageOptionDto
  3861. */
  3862. 'monthOptions': Array<string>;
  3863. /**
  3864. *
  3865. * @type {Array<string>}
  3866. * @memberof SystemConfigTemplateStorageOptionDto
  3867. */
  3868. 'presetOptions': Array<string>;
  3869. /**
  3870. *
  3871. * @type {Array<string>}
  3872. * @memberof SystemConfigTemplateStorageOptionDto
  3873. */
  3874. 'secondOptions': Array<string>;
  3875. /**
  3876. *
  3877. * @type {Array<string>}
  3878. * @memberof SystemConfigTemplateStorageOptionDto
  3879. */
  3880. 'weekOptions': Array<string>;
  3881. /**
  3882. *
  3883. * @type {Array<string>}
  3884. * @memberof SystemConfigTemplateStorageOptionDto
  3885. */
  3886. 'yearOptions': Array<string>;
  3887. }
  3888. /**
  3889. *
  3890. * @export
  3891. * @interface SystemConfigThemeDto
  3892. */
  3893. export interface SystemConfigThemeDto {
  3894. /**
  3895. *
  3896. * @type {string}
  3897. * @memberof SystemConfigThemeDto
  3898. */
  3899. 'customCss': string;
  3900. }
  3901. /**
  3902. *
  3903. * @export
  3904. * @interface SystemConfigThumbnailDto
  3905. */
  3906. export interface SystemConfigThumbnailDto {
  3907. /**
  3908. *
  3909. * @type {Colorspace}
  3910. * @memberof SystemConfigThumbnailDto
  3911. */
  3912. 'colorspace': Colorspace;
  3913. /**
  3914. *
  3915. * @type {number}
  3916. * @memberof SystemConfigThumbnailDto
  3917. */
  3918. 'jpegSize': number;
  3919. /**
  3920. *
  3921. * @type {number}
  3922. * @memberof SystemConfigThumbnailDto
  3923. */
  3924. 'quality': number;
  3925. /**
  3926. *
  3927. * @type {number}
  3928. * @memberof SystemConfigThumbnailDto
  3929. */
  3930. 'webpSize': number;
  3931. }
  3932. /**
  3933. *
  3934. * @export
  3935. * @interface SystemConfigTrashDto
  3936. */
  3937. export interface SystemConfigTrashDto {
  3938. /**
  3939. *
  3940. * @type {number}
  3941. * @memberof SystemConfigTrashDto
  3942. */
  3943. 'days': number;
  3944. /**
  3945. *
  3946. * @type {boolean}
  3947. * @memberof SystemConfigTrashDto
  3948. */
  3949. 'enabled': boolean;
  3950. }
  3951. /**
  3952. *
  3953. * @export
  3954. * @interface TagResponseDto
  3955. */
  3956. export interface TagResponseDto {
  3957. /**
  3958. *
  3959. * @type {string}
  3960. * @memberof TagResponseDto
  3961. */
  3962. 'id': string;
  3963. /**
  3964. *
  3965. * @type {string}
  3966. * @memberof TagResponseDto
  3967. */
  3968. 'name': string;
  3969. /**
  3970. *
  3971. * @type {TagTypeEnum}
  3972. * @memberof TagResponseDto
  3973. */
  3974. 'type': TagTypeEnum;
  3975. /**
  3976. *
  3977. * @type {string}
  3978. * @memberof TagResponseDto
  3979. */
  3980. 'userId': string;
  3981. }
  3982. /**
  3983. *
  3984. * @export
  3985. * @enum {string}
  3986. */
  3987. export const TagTypeEnum = {
  3988. Object: 'OBJECT',
  3989. Face: 'FACE',
  3990. Custom: 'CUSTOM'
  3991. } as const;
  3992. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3993. /**
  3994. *
  3995. * @export
  3996. * @enum {string}
  3997. */
  3998. export const ThumbnailFormat = {
  3999. Jpeg: 'JPEG',
  4000. Webp: 'WEBP'
  4001. } as const;
  4002. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  4003. /**
  4004. *
  4005. * @export
  4006. * @interface TimeBucketResponseDto
  4007. */
  4008. export interface TimeBucketResponseDto {
  4009. /**
  4010. *
  4011. * @type {number}
  4012. * @memberof TimeBucketResponseDto
  4013. */
  4014. 'count': number;
  4015. /**
  4016. *
  4017. * @type {string}
  4018. * @memberof TimeBucketResponseDto
  4019. */
  4020. 'timeBucket': string;
  4021. }
  4022. /**
  4023. *
  4024. * @export
  4025. * @enum {string}
  4026. */
  4027. export const TimeBucketSize = {
  4028. Day: 'DAY',
  4029. Month: 'MONTH'
  4030. } as const;
  4031. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  4032. /**
  4033. *
  4034. * @export
  4035. * @enum {string}
  4036. */
  4037. export const ToneMapping = {
  4038. Hable: 'hable',
  4039. Mobius: 'mobius',
  4040. Reinhard: 'reinhard',
  4041. Disabled: 'disabled'
  4042. } as const;
  4043. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  4044. /**
  4045. *
  4046. * @export
  4047. * @enum {string}
  4048. */
  4049. export const TranscodeHWAccel = {
  4050. Nvenc: 'nvenc',
  4051. Qsv: 'qsv',
  4052. Vaapi: 'vaapi',
  4053. Rkmpp: 'rkmpp',
  4054. Disabled: 'disabled'
  4055. } as const;
  4056. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  4057. /**
  4058. *
  4059. * @export
  4060. * @enum {string}
  4061. */
  4062. export const TranscodePolicy = {
  4063. All: 'all',
  4064. Optimal: 'optimal',
  4065. Required: 'required',
  4066. Disabled: 'disabled'
  4067. } as const;
  4068. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  4069. /**
  4070. *
  4071. * @export
  4072. * @interface UpdateAlbumDto
  4073. */
  4074. export interface UpdateAlbumDto {
  4075. /**
  4076. *
  4077. * @type {string}
  4078. * @memberof UpdateAlbumDto
  4079. */
  4080. 'albumName'?: string;
  4081. /**
  4082. *
  4083. * @type {string}
  4084. * @memberof UpdateAlbumDto
  4085. */
  4086. 'albumThumbnailAssetId'?: string;
  4087. /**
  4088. *
  4089. * @type {string}
  4090. * @memberof UpdateAlbumDto
  4091. */
  4092. 'description'?: string;
  4093. /**
  4094. *
  4095. * @type {boolean}
  4096. * @memberof UpdateAlbumDto
  4097. */
  4098. 'isActivityEnabled'?: boolean;
  4099. }
  4100. /**
  4101. *
  4102. * @export
  4103. * @interface UpdateAssetDto
  4104. */
  4105. export interface UpdateAssetDto {
  4106. /**
  4107. *
  4108. * @type {string}
  4109. * @memberof UpdateAssetDto
  4110. */
  4111. 'description'?: string;
  4112. /**
  4113. *
  4114. * @type {boolean}
  4115. * @memberof UpdateAssetDto
  4116. */
  4117. 'isArchived'?: boolean;
  4118. /**
  4119. *
  4120. * @type {boolean}
  4121. * @memberof UpdateAssetDto
  4122. */
  4123. 'isFavorite'?: boolean;
  4124. }
  4125. /**
  4126. *
  4127. * @export
  4128. * @interface UpdateLibraryDto
  4129. */
  4130. export interface UpdateLibraryDto {
  4131. /**
  4132. *
  4133. * @type {Array<string>}
  4134. * @memberof UpdateLibraryDto
  4135. */
  4136. 'exclusionPatterns'?: Array<string>;
  4137. /**
  4138. *
  4139. * @type {Array<string>}
  4140. * @memberof UpdateLibraryDto
  4141. */
  4142. 'importPaths'?: Array<string>;
  4143. /**
  4144. *
  4145. * @type {boolean}
  4146. * @memberof UpdateLibraryDto
  4147. */
  4148. 'isVisible'?: boolean;
  4149. /**
  4150. *
  4151. * @type {string}
  4152. * @memberof UpdateLibraryDto
  4153. */
  4154. 'name'?: string;
  4155. }
  4156. /**
  4157. *
  4158. * @export
  4159. * @interface UpdatePartnerDto
  4160. */
  4161. export interface UpdatePartnerDto {
  4162. /**
  4163. *
  4164. * @type {boolean}
  4165. * @memberof UpdatePartnerDto
  4166. */
  4167. 'inTimeline': boolean;
  4168. }
  4169. /**
  4170. *
  4171. * @export
  4172. * @interface UpdateStackParentDto
  4173. */
  4174. export interface UpdateStackParentDto {
  4175. /**
  4176. *
  4177. * @type {string}
  4178. * @memberof UpdateStackParentDto
  4179. */
  4180. 'newParentId': string;
  4181. /**
  4182. *
  4183. * @type {string}
  4184. * @memberof UpdateStackParentDto
  4185. */
  4186. 'oldParentId': string;
  4187. }
  4188. /**
  4189. *
  4190. * @export
  4191. * @interface UpdateTagDto
  4192. */
  4193. export interface UpdateTagDto {
  4194. /**
  4195. *
  4196. * @type {string}
  4197. * @memberof UpdateTagDto
  4198. */
  4199. 'name'?: string;
  4200. }
  4201. /**
  4202. *
  4203. * @export
  4204. * @interface UpdateUserDto
  4205. */
  4206. export interface UpdateUserDto {
  4207. /**
  4208. *
  4209. * @type {UserAvatarColor}
  4210. * @memberof UpdateUserDto
  4211. */
  4212. 'avatarColor'?: UserAvatarColor;
  4213. /**
  4214. *
  4215. * @type {string}
  4216. * @memberof UpdateUserDto
  4217. */
  4218. 'email'?: string;
  4219. /**
  4220. *
  4221. * @type {string}
  4222. * @memberof UpdateUserDto
  4223. */
  4224. 'externalPath'?: string;
  4225. /**
  4226. *
  4227. * @type {string}
  4228. * @memberof UpdateUserDto
  4229. */
  4230. 'id': string;
  4231. /**
  4232. *
  4233. * @type {boolean}
  4234. * @memberof UpdateUserDto
  4235. */
  4236. 'isAdmin'?: boolean;
  4237. /**
  4238. *
  4239. * @type {boolean}
  4240. * @memberof UpdateUserDto
  4241. */
  4242. 'memoriesEnabled'?: boolean;
  4243. /**
  4244. *
  4245. * @type {string}
  4246. * @memberof UpdateUserDto
  4247. */
  4248. 'name'?: string;
  4249. /**
  4250. *
  4251. * @type {string}
  4252. * @memberof UpdateUserDto
  4253. */
  4254. 'password'?: string;
  4255. /**
  4256. *
  4257. * @type {boolean}
  4258. * @memberof UpdateUserDto
  4259. */
  4260. 'shouldChangePassword'?: boolean;
  4261. /**
  4262. *
  4263. * @type {string}
  4264. * @memberof UpdateUserDto
  4265. */
  4266. 'storageLabel'?: string;
  4267. }
  4268. /**
  4269. *
  4270. * @export
  4271. * @interface UsageByUserDto
  4272. */
  4273. export interface UsageByUserDto {
  4274. /**
  4275. *
  4276. * @type {number}
  4277. * @memberof UsageByUserDto
  4278. */
  4279. 'photos': number;
  4280. /**
  4281. *
  4282. * @type {number}
  4283. * @memberof UsageByUserDto
  4284. */
  4285. 'usage': number;
  4286. /**
  4287. *
  4288. * @type {string}
  4289. * @memberof UsageByUserDto
  4290. */
  4291. 'userId': string;
  4292. /**
  4293. *
  4294. * @type {string}
  4295. * @memberof UsageByUserDto
  4296. */
  4297. 'userName': string;
  4298. /**
  4299. *
  4300. * @type {number}
  4301. * @memberof UsageByUserDto
  4302. */
  4303. 'videos': number;
  4304. }
  4305. /**
  4306. *
  4307. * @export
  4308. * @enum {string}
  4309. */
  4310. export const UserAvatarColor = {
  4311. Primary: 'primary',
  4312. Pink: 'pink',
  4313. Red: 'red',
  4314. Yellow: 'yellow',
  4315. Blue: 'blue',
  4316. Green: 'green',
  4317. Purple: 'purple',
  4318. Orange: 'orange',
  4319. Gray: 'gray',
  4320. Amber: 'amber'
  4321. } as const;
  4322. export type UserAvatarColor = typeof UserAvatarColor[keyof typeof UserAvatarColor];
  4323. /**
  4324. *
  4325. * @export
  4326. * @interface UserDto
  4327. */
  4328. export interface UserDto {
  4329. /**
  4330. *
  4331. * @type {UserAvatarColor}
  4332. * @memberof UserDto
  4333. */
  4334. 'avatarColor': UserAvatarColor;
  4335. /**
  4336. *
  4337. * @type {string}
  4338. * @memberof UserDto
  4339. */
  4340. 'email': string;
  4341. /**
  4342. *
  4343. * @type {string}
  4344. * @memberof UserDto
  4345. */
  4346. 'id': string;
  4347. /**
  4348. *
  4349. * @type {string}
  4350. * @memberof UserDto
  4351. */
  4352. 'name': string;
  4353. /**
  4354. *
  4355. * @type {string}
  4356. * @memberof UserDto
  4357. */
  4358. 'profileImagePath': string;
  4359. }
  4360. /**
  4361. *
  4362. * @export
  4363. * @interface UserResponseDto
  4364. */
  4365. export interface UserResponseDto {
  4366. /**
  4367. *
  4368. * @type {UserAvatarColor}
  4369. * @memberof UserResponseDto
  4370. */
  4371. 'avatarColor': UserAvatarColor;
  4372. /**
  4373. *
  4374. * @type {string}
  4375. * @memberof UserResponseDto
  4376. */
  4377. 'createdAt': string;
  4378. /**
  4379. *
  4380. * @type {string}
  4381. * @memberof UserResponseDto
  4382. */
  4383. 'deletedAt': string | null;
  4384. /**
  4385. *
  4386. * @type {string}
  4387. * @memberof UserResponseDto
  4388. */
  4389. 'email': string;
  4390. /**
  4391. *
  4392. * @type {string}
  4393. * @memberof UserResponseDto
  4394. */
  4395. 'externalPath': string | null;
  4396. /**
  4397. *
  4398. * @type {string}
  4399. * @memberof UserResponseDto
  4400. */
  4401. 'id': string;
  4402. /**
  4403. *
  4404. * @type {boolean}
  4405. * @memberof UserResponseDto
  4406. */
  4407. 'isAdmin': boolean;
  4408. /**
  4409. *
  4410. * @type {boolean}
  4411. * @memberof UserResponseDto
  4412. */
  4413. 'memoriesEnabled'?: boolean;
  4414. /**
  4415. *
  4416. * @type {string}
  4417. * @memberof UserResponseDto
  4418. */
  4419. 'name': string;
  4420. /**
  4421. *
  4422. * @type {string}
  4423. * @memberof UserResponseDto
  4424. */
  4425. 'oauthId': string;
  4426. /**
  4427. *
  4428. * @type {string}
  4429. * @memberof UserResponseDto
  4430. */
  4431. 'profileImagePath': string;
  4432. /**
  4433. *
  4434. * @type {boolean}
  4435. * @memberof UserResponseDto
  4436. */
  4437. 'shouldChangePassword': boolean;
  4438. /**
  4439. *
  4440. * @type {string}
  4441. * @memberof UserResponseDto
  4442. */
  4443. 'storageLabel': string | null;
  4444. /**
  4445. *
  4446. * @type {string}
  4447. * @memberof UserResponseDto
  4448. */
  4449. 'updatedAt': string;
  4450. }
  4451. /**
  4452. *
  4453. * @export
  4454. * @interface ValidateAccessTokenResponseDto
  4455. */
  4456. export interface ValidateAccessTokenResponseDto {
  4457. /**
  4458. *
  4459. * @type {boolean}
  4460. * @memberof ValidateAccessTokenResponseDto
  4461. */
  4462. 'authStatus': boolean;
  4463. }
  4464. /**
  4465. *
  4466. * @export
  4467. * @enum {string}
  4468. */
  4469. export const VideoCodec = {
  4470. H264: 'h264',
  4471. Hevc: 'hevc',
  4472. Vp9: 'vp9'
  4473. } as const;
  4474. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4475. /**
  4476. * APIKeyApi - axios parameter creator
  4477. * @export
  4478. */
  4479. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4480. return {
  4481. /**
  4482. *
  4483. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4484. * @param {*} [options] Override http request option.
  4485. * @throws {RequiredError}
  4486. */
  4487. createApiKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4488. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4489. assertParamExists('createApiKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4490. const localVarPath = `/api-key`;
  4491. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4492. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4493. let baseOptions;
  4494. if (configuration) {
  4495. baseOptions = configuration.baseOptions;
  4496. }
  4497. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4498. const localVarHeaderParameter = {} as any;
  4499. const localVarQueryParameter = {} as any;
  4500. // authentication cookie required
  4501. // authentication api_key required
  4502. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4503. // authentication bearer required
  4504. // http bearer authentication required
  4505. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4506. localVarHeaderParameter['Content-Type'] = 'application/json';
  4507. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4508. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4509. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4510. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4511. return {
  4512. url: toPathString(localVarUrlObj),
  4513. options: localVarRequestOptions,
  4514. };
  4515. },
  4516. /**
  4517. *
  4518. * @param {string} id
  4519. * @param {*} [options] Override http request option.
  4520. * @throws {RequiredError}
  4521. */
  4522. deleteApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4523. // verify required parameter 'id' is not null or undefined
  4524. assertParamExists('deleteApiKey', 'id', id)
  4525. const localVarPath = `/api-key/{id}`
  4526. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4527. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4528. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4529. let baseOptions;
  4530. if (configuration) {
  4531. baseOptions = configuration.baseOptions;
  4532. }
  4533. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4534. const localVarHeaderParameter = {} as any;
  4535. const localVarQueryParameter = {} as any;
  4536. // authentication cookie required
  4537. // authentication api_key required
  4538. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4539. // authentication bearer required
  4540. // http bearer authentication required
  4541. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4542. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4543. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4544. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4545. return {
  4546. url: toPathString(localVarUrlObj),
  4547. options: localVarRequestOptions,
  4548. };
  4549. },
  4550. /**
  4551. *
  4552. * @param {string} id
  4553. * @param {*} [options] Override http request option.
  4554. * @throws {RequiredError}
  4555. */
  4556. getApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4557. // verify required parameter 'id' is not null or undefined
  4558. assertParamExists('getApiKey', 'id', id)
  4559. const localVarPath = `/api-key/{id}`
  4560. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4561. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4562. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4563. let baseOptions;
  4564. if (configuration) {
  4565. baseOptions = configuration.baseOptions;
  4566. }
  4567. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4568. const localVarHeaderParameter = {} as any;
  4569. const localVarQueryParameter = {} as any;
  4570. // authentication cookie required
  4571. // authentication api_key required
  4572. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4573. // authentication bearer required
  4574. // http bearer authentication required
  4575. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4576. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4577. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4578. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4579. return {
  4580. url: toPathString(localVarUrlObj),
  4581. options: localVarRequestOptions,
  4582. };
  4583. },
  4584. /**
  4585. *
  4586. * @param {*} [options] Override http request option.
  4587. * @throws {RequiredError}
  4588. */
  4589. getApiKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4590. const localVarPath = `/api-key`;
  4591. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4592. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4593. let baseOptions;
  4594. if (configuration) {
  4595. baseOptions = configuration.baseOptions;
  4596. }
  4597. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4598. const localVarHeaderParameter = {} as any;
  4599. const localVarQueryParameter = {} as any;
  4600. // authentication cookie required
  4601. // authentication api_key required
  4602. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4603. // authentication bearer required
  4604. // http bearer authentication required
  4605. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4606. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4607. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4608. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4609. return {
  4610. url: toPathString(localVarUrlObj),
  4611. options: localVarRequestOptions,
  4612. };
  4613. },
  4614. /**
  4615. *
  4616. * @param {string} id
  4617. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4618. * @param {*} [options] Override http request option.
  4619. * @throws {RequiredError}
  4620. */
  4621. updateApiKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4622. // verify required parameter 'id' is not null or undefined
  4623. assertParamExists('updateApiKey', 'id', id)
  4624. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4625. assertParamExists('updateApiKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4626. const localVarPath = `/api-key/{id}`
  4627. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4628. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4629. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4630. let baseOptions;
  4631. if (configuration) {
  4632. baseOptions = configuration.baseOptions;
  4633. }
  4634. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4635. const localVarHeaderParameter = {} as any;
  4636. const localVarQueryParameter = {} as any;
  4637. // authentication cookie required
  4638. // authentication api_key required
  4639. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4640. // authentication bearer required
  4641. // http bearer authentication required
  4642. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4643. localVarHeaderParameter['Content-Type'] = 'application/json';
  4644. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4645. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4646. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4647. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4648. return {
  4649. url: toPathString(localVarUrlObj),
  4650. options: localVarRequestOptions,
  4651. };
  4652. },
  4653. }
  4654. };
  4655. /**
  4656. * APIKeyApi - functional programming interface
  4657. * @export
  4658. */
  4659. export const APIKeyApiFp = function(configuration?: Configuration) {
  4660. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4661. return {
  4662. /**
  4663. *
  4664. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4665. * @param {*} [options] Override http request option.
  4666. * @throws {RequiredError}
  4667. */
  4668. async createApiKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4669. const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(aPIKeyCreateDto, options);
  4670. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4671. },
  4672. /**
  4673. *
  4674. * @param {string} id
  4675. * @param {*} [options] Override http request option.
  4676. * @throws {RequiredError}
  4677. */
  4678. async deleteApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4679. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(id, options);
  4680. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4681. },
  4682. /**
  4683. *
  4684. * @param {string} id
  4685. * @param {*} [options] Override http request option.
  4686. * @throws {RequiredError}
  4687. */
  4688. async getApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4689. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(id, options);
  4690. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4691. },
  4692. /**
  4693. *
  4694. * @param {*} [options] Override http request option.
  4695. * @throws {RequiredError}
  4696. */
  4697. async getApiKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4698. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKeys(options);
  4699. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4700. },
  4701. /**
  4702. *
  4703. * @param {string} id
  4704. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4705. * @param {*} [options] Override http request option.
  4706. * @throws {RequiredError}
  4707. */
  4708. async updateApiKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4709. const localVarAxiosArgs = await localVarAxiosParamCreator.updateApiKey(id, aPIKeyUpdateDto, options);
  4710. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4711. },
  4712. }
  4713. };
  4714. /**
  4715. * APIKeyApi - factory interface
  4716. * @export
  4717. */
  4718. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4719. const localVarFp = APIKeyApiFp(configuration)
  4720. return {
  4721. /**
  4722. *
  4723. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4724. * @param {*} [options] Override http request option.
  4725. * @throws {RequiredError}
  4726. */
  4727. createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4728. return localVarFp.createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4729. },
  4730. /**
  4731. *
  4732. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4733. * @param {*} [options] Override http request option.
  4734. * @throws {RequiredError}
  4735. */
  4736. deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4737. return localVarFp.deleteApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4738. },
  4739. /**
  4740. *
  4741. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4742. * @param {*} [options] Override http request option.
  4743. * @throws {RequiredError}
  4744. */
  4745. getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4746. return localVarFp.getApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4747. },
  4748. /**
  4749. *
  4750. * @param {*} [options] Override http request option.
  4751. * @throws {RequiredError}
  4752. */
  4753. getApiKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4754. return localVarFp.getApiKeys(options).then((request) => request(axios, basePath));
  4755. },
  4756. /**
  4757. *
  4758. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4759. * @param {*} [options] Override http request option.
  4760. * @throws {RequiredError}
  4761. */
  4762. updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4763. return localVarFp.updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4764. },
  4765. };
  4766. };
  4767. /**
  4768. * Request parameters for createApiKey operation in APIKeyApi.
  4769. * @export
  4770. * @interface APIKeyApiCreateApiKeyRequest
  4771. */
  4772. export interface APIKeyApiCreateApiKeyRequest {
  4773. /**
  4774. *
  4775. * @type {APIKeyCreateDto}
  4776. * @memberof APIKeyApiCreateApiKey
  4777. */
  4778. readonly aPIKeyCreateDto: APIKeyCreateDto
  4779. }
  4780. /**
  4781. * Request parameters for deleteApiKey operation in APIKeyApi.
  4782. * @export
  4783. * @interface APIKeyApiDeleteApiKeyRequest
  4784. */
  4785. export interface APIKeyApiDeleteApiKeyRequest {
  4786. /**
  4787. *
  4788. * @type {string}
  4789. * @memberof APIKeyApiDeleteApiKey
  4790. */
  4791. readonly id: string
  4792. }
  4793. /**
  4794. * Request parameters for getApiKey operation in APIKeyApi.
  4795. * @export
  4796. * @interface APIKeyApiGetApiKeyRequest
  4797. */
  4798. export interface APIKeyApiGetApiKeyRequest {
  4799. /**
  4800. *
  4801. * @type {string}
  4802. * @memberof APIKeyApiGetApiKey
  4803. */
  4804. readonly id: string
  4805. }
  4806. /**
  4807. * Request parameters for updateApiKey operation in APIKeyApi.
  4808. * @export
  4809. * @interface APIKeyApiUpdateApiKeyRequest
  4810. */
  4811. export interface APIKeyApiUpdateApiKeyRequest {
  4812. /**
  4813. *
  4814. * @type {string}
  4815. * @memberof APIKeyApiUpdateApiKey
  4816. */
  4817. readonly id: string
  4818. /**
  4819. *
  4820. * @type {APIKeyUpdateDto}
  4821. * @memberof APIKeyApiUpdateApiKey
  4822. */
  4823. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4824. }
  4825. /**
  4826. * APIKeyApi - object-oriented interface
  4827. * @export
  4828. * @class APIKeyApi
  4829. * @extends {BaseAPI}
  4830. */
  4831. export class APIKeyApi extends BaseAPI {
  4832. /**
  4833. *
  4834. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4835. * @param {*} [options] Override http request option.
  4836. * @throws {RequiredError}
  4837. * @memberof APIKeyApi
  4838. */
  4839. public createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig) {
  4840. return APIKeyApiFp(this.configuration).createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4841. }
  4842. /**
  4843. *
  4844. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4845. * @param {*} [options] Override http request option.
  4846. * @throws {RequiredError}
  4847. * @memberof APIKeyApi
  4848. */
  4849. public deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig) {
  4850. return APIKeyApiFp(this.configuration).deleteApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4851. }
  4852. /**
  4853. *
  4854. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4855. * @param {*} [options] Override http request option.
  4856. * @throws {RequiredError}
  4857. * @memberof APIKeyApi
  4858. */
  4859. public getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig) {
  4860. return APIKeyApiFp(this.configuration).getApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4861. }
  4862. /**
  4863. *
  4864. * @param {*} [options] Override http request option.
  4865. * @throws {RequiredError}
  4866. * @memberof APIKeyApi
  4867. */
  4868. public getApiKeys(options?: AxiosRequestConfig) {
  4869. return APIKeyApiFp(this.configuration).getApiKeys(options).then((request) => request(this.axios, this.basePath));
  4870. }
  4871. /**
  4872. *
  4873. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4874. * @param {*} [options] Override http request option.
  4875. * @throws {RequiredError}
  4876. * @memberof APIKeyApi
  4877. */
  4878. public updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig) {
  4879. return APIKeyApiFp(this.configuration).updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4880. }
  4881. }
  4882. /**
  4883. * ActivityApi - axios parameter creator
  4884. * @export
  4885. */
  4886. export const ActivityApiAxiosParamCreator = function (configuration?: Configuration) {
  4887. return {
  4888. /**
  4889. *
  4890. * @param {ActivityCreateDto} activityCreateDto
  4891. * @param {*} [options] Override http request option.
  4892. * @throws {RequiredError}
  4893. */
  4894. createActivity: async (activityCreateDto: ActivityCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4895. // verify required parameter 'activityCreateDto' is not null or undefined
  4896. assertParamExists('createActivity', 'activityCreateDto', activityCreateDto)
  4897. const localVarPath = `/activity`;
  4898. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4899. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4900. let baseOptions;
  4901. if (configuration) {
  4902. baseOptions = configuration.baseOptions;
  4903. }
  4904. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4905. const localVarHeaderParameter = {} as any;
  4906. const localVarQueryParameter = {} as any;
  4907. // authentication cookie required
  4908. // authentication api_key required
  4909. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4910. // authentication bearer required
  4911. // http bearer authentication required
  4912. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4913. localVarHeaderParameter['Content-Type'] = 'application/json';
  4914. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4915. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4916. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4917. localVarRequestOptions.data = serializeDataIfNeeded(activityCreateDto, localVarRequestOptions, configuration)
  4918. return {
  4919. url: toPathString(localVarUrlObj),
  4920. options: localVarRequestOptions,
  4921. };
  4922. },
  4923. /**
  4924. *
  4925. * @param {string} id
  4926. * @param {*} [options] Override http request option.
  4927. * @throws {RequiredError}
  4928. */
  4929. deleteActivity: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4930. // verify required parameter 'id' is not null or undefined
  4931. assertParamExists('deleteActivity', 'id', id)
  4932. const localVarPath = `/activity/{id}`
  4933. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4934. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4935. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4936. let baseOptions;
  4937. if (configuration) {
  4938. baseOptions = configuration.baseOptions;
  4939. }
  4940. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4941. const localVarHeaderParameter = {} as any;
  4942. const localVarQueryParameter = {} as any;
  4943. // authentication cookie required
  4944. // authentication api_key required
  4945. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4946. // authentication bearer required
  4947. // http bearer authentication required
  4948. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4949. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4950. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4951. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4952. return {
  4953. url: toPathString(localVarUrlObj),
  4954. options: localVarRequestOptions,
  4955. };
  4956. },
  4957. /**
  4958. *
  4959. * @param {string} albumId
  4960. * @param {string} [assetId]
  4961. * @param {ReactionType} [type]
  4962. * @param {ReactionLevel} [level]
  4963. * @param {string} [userId]
  4964. * @param {*} [options] Override http request option.
  4965. * @throws {RequiredError}
  4966. */
  4967. getActivities: async (albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4968. // verify required parameter 'albumId' is not null or undefined
  4969. assertParamExists('getActivities', 'albumId', albumId)
  4970. const localVarPath = `/activity`;
  4971. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4972. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4973. let baseOptions;
  4974. if (configuration) {
  4975. baseOptions = configuration.baseOptions;
  4976. }
  4977. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4978. const localVarHeaderParameter = {} as any;
  4979. const localVarQueryParameter = {} as any;
  4980. // authentication cookie required
  4981. // authentication api_key required
  4982. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4983. // authentication bearer required
  4984. // http bearer authentication required
  4985. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4986. if (albumId !== undefined) {
  4987. localVarQueryParameter['albumId'] = albumId;
  4988. }
  4989. if (assetId !== undefined) {
  4990. localVarQueryParameter['assetId'] = assetId;
  4991. }
  4992. if (type !== undefined) {
  4993. localVarQueryParameter['type'] = type;
  4994. }
  4995. if (level !== undefined) {
  4996. localVarQueryParameter['level'] = level;
  4997. }
  4998. if (userId !== undefined) {
  4999. localVarQueryParameter['userId'] = userId;
  5000. }
  5001. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5002. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5003. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5004. return {
  5005. url: toPathString(localVarUrlObj),
  5006. options: localVarRequestOptions,
  5007. };
  5008. },
  5009. /**
  5010. *
  5011. * @param {string} albumId
  5012. * @param {string} [assetId]
  5013. * @param {*} [options] Override http request option.
  5014. * @throws {RequiredError}
  5015. */
  5016. getActivityStatistics: async (albumId: string, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5017. // verify required parameter 'albumId' is not null or undefined
  5018. assertParamExists('getActivityStatistics', 'albumId', albumId)
  5019. const localVarPath = `/activity/statistics`;
  5020. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5021. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5022. let baseOptions;
  5023. if (configuration) {
  5024. baseOptions = configuration.baseOptions;
  5025. }
  5026. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5027. const localVarHeaderParameter = {} as any;
  5028. const localVarQueryParameter = {} as any;
  5029. // authentication cookie required
  5030. // authentication api_key required
  5031. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5032. // authentication bearer required
  5033. // http bearer authentication required
  5034. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5035. if (albumId !== undefined) {
  5036. localVarQueryParameter['albumId'] = albumId;
  5037. }
  5038. if (assetId !== undefined) {
  5039. localVarQueryParameter['assetId'] = assetId;
  5040. }
  5041. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5042. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5043. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5044. return {
  5045. url: toPathString(localVarUrlObj),
  5046. options: localVarRequestOptions,
  5047. };
  5048. },
  5049. }
  5050. };
  5051. /**
  5052. * ActivityApi - functional programming interface
  5053. * @export
  5054. */
  5055. export const ActivityApiFp = function(configuration?: Configuration) {
  5056. const localVarAxiosParamCreator = ActivityApiAxiosParamCreator(configuration)
  5057. return {
  5058. /**
  5059. *
  5060. * @param {ActivityCreateDto} activityCreateDto
  5061. * @param {*} [options] Override http request option.
  5062. * @throws {RequiredError}
  5063. */
  5064. async createActivity(activityCreateDto: ActivityCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityResponseDto>> {
  5065. const localVarAxiosArgs = await localVarAxiosParamCreator.createActivity(activityCreateDto, options);
  5066. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5067. },
  5068. /**
  5069. *
  5070. * @param {string} id
  5071. * @param {*} [options] Override http request option.
  5072. * @throws {RequiredError}
  5073. */
  5074. async deleteActivity(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5075. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivity(id, options);
  5076. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5077. },
  5078. /**
  5079. *
  5080. * @param {string} albumId
  5081. * @param {string} [assetId]
  5082. * @param {ReactionType} [type]
  5083. * @param {ReactionLevel} [level]
  5084. * @param {string} [userId]
  5085. * @param {*} [options] Override http request option.
  5086. * @throws {RequiredError}
  5087. */
  5088. async getActivities(albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
  5089. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, level, userId, options);
  5090. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5091. },
  5092. /**
  5093. *
  5094. * @param {string} albumId
  5095. * @param {string} [assetId]
  5096. * @param {*} [options] Override http request option.
  5097. * @throws {RequiredError}
  5098. */
  5099. async getActivityStatistics(albumId: string, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityStatisticsResponseDto>> {
  5100. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivityStatistics(albumId, assetId, options);
  5101. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5102. },
  5103. }
  5104. };
  5105. /**
  5106. * ActivityApi - factory interface
  5107. * @export
  5108. */
  5109. export const ActivityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5110. const localVarFp = ActivityApiFp(configuration)
  5111. return {
  5112. /**
  5113. *
  5114. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5115. * @param {*} [options] Override http request option.
  5116. * @throws {RequiredError}
  5117. */
  5118. createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityResponseDto> {
  5119. return localVarFp.createActivity(requestParameters.activityCreateDto, options).then((request) => request(axios, basePath));
  5120. },
  5121. /**
  5122. *
  5123. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5124. * @param {*} [options] Override http request option.
  5125. * @throws {RequiredError}
  5126. */
  5127. deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5128. return localVarFp.deleteActivity(requestParameters.id, options).then((request) => request(axios, basePath));
  5129. },
  5130. /**
  5131. *
  5132. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5133. * @param {*} [options] Override http request option.
  5134. * @throws {RequiredError}
  5135. */
  5136. getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ActivityResponseDto>> {
  5137. return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(axios, basePath));
  5138. },
  5139. /**
  5140. *
  5141. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5142. * @param {*} [options] Override http request option.
  5143. * @throws {RequiredError}
  5144. */
  5145. getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityStatisticsResponseDto> {
  5146. return localVarFp.getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5147. },
  5148. };
  5149. };
  5150. /**
  5151. * Request parameters for createActivity operation in ActivityApi.
  5152. * @export
  5153. * @interface ActivityApiCreateActivityRequest
  5154. */
  5155. export interface ActivityApiCreateActivityRequest {
  5156. /**
  5157. *
  5158. * @type {ActivityCreateDto}
  5159. * @memberof ActivityApiCreateActivity
  5160. */
  5161. readonly activityCreateDto: ActivityCreateDto
  5162. }
  5163. /**
  5164. * Request parameters for deleteActivity operation in ActivityApi.
  5165. * @export
  5166. * @interface ActivityApiDeleteActivityRequest
  5167. */
  5168. export interface ActivityApiDeleteActivityRequest {
  5169. /**
  5170. *
  5171. * @type {string}
  5172. * @memberof ActivityApiDeleteActivity
  5173. */
  5174. readonly id: string
  5175. }
  5176. /**
  5177. * Request parameters for getActivities operation in ActivityApi.
  5178. * @export
  5179. * @interface ActivityApiGetActivitiesRequest
  5180. */
  5181. export interface ActivityApiGetActivitiesRequest {
  5182. /**
  5183. *
  5184. * @type {string}
  5185. * @memberof ActivityApiGetActivities
  5186. */
  5187. readonly albumId: string
  5188. /**
  5189. *
  5190. * @type {string}
  5191. * @memberof ActivityApiGetActivities
  5192. */
  5193. readonly assetId?: string
  5194. /**
  5195. *
  5196. * @type {ReactionType}
  5197. * @memberof ActivityApiGetActivities
  5198. */
  5199. readonly type?: ReactionType
  5200. /**
  5201. *
  5202. * @type {ReactionLevel}
  5203. * @memberof ActivityApiGetActivities
  5204. */
  5205. readonly level?: ReactionLevel
  5206. /**
  5207. *
  5208. * @type {string}
  5209. * @memberof ActivityApiGetActivities
  5210. */
  5211. readonly userId?: string
  5212. }
  5213. /**
  5214. * Request parameters for getActivityStatistics operation in ActivityApi.
  5215. * @export
  5216. * @interface ActivityApiGetActivityStatisticsRequest
  5217. */
  5218. export interface ActivityApiGetActivityStatisticsRequest {
  5219. /**
  5220. *
  5221. * @type {string}
  5222. * @memberof ActivityApiGetActivityStatistics
  5223. */
  5224. readonly albumId: string
  5225. /**
  5226. *
  5227. * @type {string}
  5228. * @memberof ActivityApiGetActivityStatistics
  5229. */
  5230. readonly assetId?: string
  5231. }
  5232. /**
  5233. * ActivityApi - object-oriented interface
  5234. * @export
  5235. * @class ActivityApi
  5236. * @extends {BaseAPI}
  5237. */
  5238. export class ActivityApi extends BaseAPI {
  5239. /**
  5240. *
  5241. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5242. * @param {*} [options] Override http request option.
  5243. * @throws {RequiredError}
  5244. * @memberof ActivityApi
  5245. */
  5246. public createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig) {
  5247. return ActivityApiFp(this.configuration).createActivity(requestParameters.activityCreateDto, options).then((request) => request(this.axios, this.basePath));
  5248. }
  5249. /**
  5250. *
  5251. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5252. * @param {*} [options] Override http request option.
  5253. * @throws {RequiredError}
  5254. * @memberof ActivityApi
  5255. */
  5256. public deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig) {
  5257. return ActivityApiFp(this.configuration).deleteActivity(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5258. }
  5259. /**
  5260. *
  5261. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5262. * @param {*} [options] Override http request option.
  5263. * @throws {RequiredError}
  5264. * @memberof ActivityApi
  5265. */
  5266. public getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig) {
  5267. return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5268. }
  5269. /**
  5270. *
  5271. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5272. * @param {*} [options] Override http request option.
  5273. * @throws {RequiredError}
  5274. * @memberof ActivityApi
  5275. */
  5276. public getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig) {
  5277. return ActivityApiFp(this.configuration).getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5278. }
  5279. }
  5280. /**
  5281. * AlbumApi - axios parameter creator
  5282. * @export
  5283. */
  5284. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  5285. return {
  5286. /**
  5287. *
  5288. * @param {string} id
  5289. * @param {BulkIdsDto} bulkIdsDto
  5290. * @param {string} [key]
  5291. * @param {*} [options] Override http request option.
  5292. * @throws {RequiredError}
  5293. */
  5294. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5295. // verify required parameter 'id' is not null or undefined
  5296. assertParamExists('addAssetsToAlbum', 'id', id)
  5297. // verify required parameter 'bulkIdsDto' is not null or undefined
  5298. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  5299. const localVarPath = `/album/{id}/assets`
  5300. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5301. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5302. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5303. let baseOptions;
  5304. if (configuration) {
  5305. baseOptions = configuration.baseOptions;
  5306. }
  5307. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5308. const localVarHeaderParameter = {} as any;
  5309. const localVarQueryParameter = {} as any;
  5310. // authentication cookie required
  5311. // authentication api_key required
  5312. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5313. // authentication bearer required
  5314. // http bearer authentication required
  5315. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5316. if (key !== undefined) {
  5317. localVarQueryParameter['key'] = key;
  5318. }
  5319. localVarHeaderParameter['Content-Type'] = 'application/json';
  5320. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5321. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5322. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5323. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5324. return {
  5325. url: toPathString(localVarUrlObj),
  5326. options: localVarRequestOptions,
  5327. };
  5328. },
  5329. /**
  5330. *
  5331. * @param {string} id
  5332. * @param {AddUsersDto} addUsersDto
  5333. * @param {*} [options] Override http request option.
  5334. * @throws {RequiredError}
  5335. */
  5336. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5337. // verify required parameter 'id' is not null or undefined
  5338. assertParamExists('addUsersToAlbum', 'id', id)
  5339. // verify required parameter 'addUsersDto' is not null or undefined
  5340. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  5341. const localVarPath = `/album/{id}/users`
  5342. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5343. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5344. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5345. let baseOptions;
  5346. if (configuration) {
  5347. baseOptions = configuration.baseOptions;
  5348. }
  5349. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5350. const localVarHeaderParameter = {} as any;
  5351. const localVarQueryParameter = {} as any;
  5352. // authentication cookie required
  5353. // authentication api_key required
  5354. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5355. // authentication bearer required
  5356. // http bearer authentication required
  5357. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5358. localVarHeaderParameter['Content-Type'] = 'application/json';
  5359. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5360. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5361. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5362. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  5363. return {
  5364. url: toPathString(localVarUrlObj),
  5365. options: localVarRequestOptions,
  5366. };
  5367. },
  5368. /**
  5369. *
  5370. * @param {CreateAlbumDto} createAlbumDto
  5371. * @param {*} [options] Override http request option.
  5372. * @throws {RequiredError}
  5373. */
  5374. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5375. // verify required parameter 'createAlbumDto' is not null or undefined
  5376. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  5377. const localVarPath = `/album`;
  5378. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5379. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5380. let baseOptions;
  5381. if (configuration) {
  5382. baseOptions = configuration.baseOptions;
  5383. }
  5384. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5385. const localVarHeaderParameter = {} as any;
  5386. const localVarQueryParameter = {} as any;
  5387. // authentication cookie required
  5388. // authentication api_key required
  5389. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5390. // authentication bearer required
  5391. // http bearer authentication required
  5392. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5393. localVarHeaderParameter['Content-Type'] = 'application/json';
  5394. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5395. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5396. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5397. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  5398. return {
  5399. url: toPathString(localVarUrlObj),
  5400. options: localVarRequestOptions,
  5401. };
  5402. },
  5403. /**
  5404. *
  5405. * @param {string} id
  5406. * @param {*} [options] Override http request option.
  5407. * @throws {RequiredError}
  5408. */
  5409. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5410. // verify required parameter 'id' is not null or undefined
  5411. assertParamExists('deleteAlbum', 'id', id)
  5412. const localVarPath = `/album/{id}`
  5413. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5414. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5415. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5416. let baseOptions;
  5417. if (configuration) {
  5418. baseOptions = configuration.baseOptions;
  5419. }
  5420. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5421. const localVarHeaderParameter = {} as any;
  5422. const localVarQueryParameter = {} as any;
  5423. // authentication cookie required
  5424. // authentication api_key required
  5425. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5426. // authentication bearer required
  5427. // http bearer authentication required
  5428. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5429. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5430. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5431. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5432. return {
  5433. url: toPathString(localVarUrlObj),
  5434. options: localVarRequestOptions,
  5435. };
  5436. },
  5437. /**
  5438. *
  5439. * @param {*} [options] Override http request option.
  5440. * @throws {RequiredError}
  5441. */
  5442. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5443. const localVarPath = `/album/count`;
  5444. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5445. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5446. let baseOptions;
  5447. if (configuration) {
  5448. baseOptions = configuration.baseOptions;
  5449. }
  5450. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5451. const localVarHeaderParameter = {} as any;
  5452. const localVarQueryParameter = {} as any;
  5453. // authentication cookie required
  5454. // authentication api_key required
  5455. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5456. // authentication bearer required
  5457. // http bearer authentication required
  5458. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5459. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5460. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5461. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5462. return {
  5463. url: toPathString(localVarUrlObj),
  5464. options: localVarRequestOptions,
  5465. };
  5466. },
  5467. /**
  5468. *
  5469. * @param {string} id
  5470. * @param {boolean} [withoutAssets]
  5471. * @param {string} [key]
  5472. * @param {*} [options] Override http request option.
  5473. * @throws {RequiredError}
  5474. */
  5475. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5476. // verify required parameter 'id' is not null or undefined
  5477. assertParamExists('getAlbumInfo', 'id', id)
  5478. const localVarPath = `/album/{id}`
  5479. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5480. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5481. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5482. let baseOptions;
  5483. if (configuration) {
  5484. baseOptions = configuration.baseOptions;
  5485. }
  5486. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5487. const localVarHeaderParameter = {} as any;
  5488. const localVarQueryParameter = {} as any;
  5489. // authentication cookie required
  5490. // authentication api_key required
  5491. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5492. // authentication bearer required
  5493. // http bearer authentication required
  5494. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5495. if (withoutAssets !== undefined) {
  5496. localVarQueryParameter['withoutAssets'] = withoutAssets;
  5497. }
  5498. if (key !== undefined) {
  5499. localVarQueryParameter['key'] = key;
  5500. }
  5501. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5502. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5503. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5504. return {
  5505. url: toPathString(localVarUrlObj),
  5506. options: localVarRequestOptions,
  5507. };
  5508. },
  5509. /**
  5510. *
  5511. * @param {boolean} [shared]
  5512. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5513. * @param {*} [options] Override http request option.
  5514. * @throws {RequiredError}
  5515. */
  5516. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5517. const localVarPath = `/album`;
  5518. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5519. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5520. let baseOptions;
  5521. if (configuration) {
  5522. baseOptions = configuration.baseOptions;
  5523. }
  5524. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5525. const localVarHeaderParameter = {} as any;
  5526. const localVarQueryParameter = {} as any;
  5527. // authentication cookie required
  5528. // authentication api_key required
  5529. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5530. // authentication bearer required
  5531. // http bearer authentication required
  5532. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5533. if (shared !== undefined) {
  5534. localVarQueryParameter['shared'] = shared;
  5535. }
  5536. if (assetId !== undefined) {
  5537. localVarQueryParameter['assetId'] = assetId;
  5538. }
  5539. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5540. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5541. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5542. return {
  5543. url: toPathString(localVarUrlObj),
  5544. options: localVarRequestOptions,
  5545. };
  5546. },
  5547. /**
  5548. *
  5549. * @param {string} id
  5550. * @param {BulkIdsDto} bulkIdsDto
  5551. * @param {*} [options] Override http request option.
  5552. * @throws {RequiredError}
  5553. */
  5554. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5555. // verify required parameter 'id' is not null or undefined
  5556. assertParamExists('removeAssetFromAlbum', 'id', id)
  5557. // verify required parameter 'bulkIdsDto' is not null or undefined
  5558. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  5559. const localVarPath = `/album/{id}/assets`
  5560. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5561. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5562. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5563. let baseOptions;
  5564. if (configuration) {
  5565. baseOptions = configuration.baseOptions;
  5566. }
  5567. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5568. const localVarHeaderParameter = {} as any;
  5569. const localVarQueryParameter = {} as any;
  5570. // authentication cookie required
  5571. // authentication api_key required
  5572. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5573. // authentication bearer required
  5574. // http bearer authentication required
  5575. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5576. localVarHeaderParameter['Content-Type'] = 'application/json';
  5577. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5578. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5579. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5580. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5581. return {
  5582. url: toPathString(localVarUrlObj),
  5583. options: localVarRequestOptions,
  5584. };
  5585. },
  5586. /**
  5587. *
  5588. * @param {string} id
  5589. * @param {string} userId
  5590. * @param {*} [options] Override http request option.
  5591. * @throws {RequiredError}
  5592. */
  5593. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5594. // verify required parameter 'id' is not null or undefined
  5595. assertParamExists('removeUserFromAlbum', 'id', id)
  5596. // verify required parameter 'userId' is not null or undefined
  5597. assertParamExists('removeUserFromAlbum', 'userId', userId)
  5598. const localVarPath = `/album/{id}/user/{userId}`
  5599. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  5600. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  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: 'DELETE', ...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. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5617. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5618. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5619. return {
  5620. url: toPathString(localVarUrlObj),
  5621. options: localVarRequestOptions,
  5622. };
  5623. },
  5624. /**
  5625. *
  5626. * @param {string} id
  5627. * @param {UpdateAlbumDto} updateAlbumDto
  5628. * @param {*} [options] Override http request option.
  5629. * @throws {RequiredError}
  5630. */
  5631. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5632. // verify required parameter 'id' is not null or undefined
  5633. assertParamExists('updateAlbumInfo', 'id', id)
  5634. // verify required parameter 'updateAlbumDto' is not null or undefined
  5635. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  5636. const localVarPath = `/album/{id}`
  5637. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5638. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5639. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5640. let baseOptions;
  5641. if (configuration) {
  5642. baseOptions = configuration.baseOptions;
  5643. }
  5644. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  5645. const localVarHeaderParameter = {} as any;
  5646. const localVarQueryParameter = {} as any;
  5647. // authentication cookie required
  5648. // authentication api_key required
  5649. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5650. // authentication bearer required
  5651. // http bearer authentication required
  5652. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5653. localVarHeaderParameter['Content-Type'] = 'application/json';
  5654. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5655. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5656. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5657. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  5658. return {
  5659. url: toPathString(localVarUrlObj),
  5660. options: localVarRequestOptions,
  5661. };
  5662. },
  5663. }
  5664. };
  5665. /**
  5666. * AlbumApi - functional programming interface
  5667. * @export
  5668. */
  5669. export const AlbumApiFp = function(configuration?: Configuration) {
  5670. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  5671. return {
  5672. /**
  5673. *
  5674. * @param {string} id
  5675. * @param {BulkIdsDto} bulkIdsDto
  5676. * @param {string} [key]
  5677. * @param {*} [options] Override http request option.
  5678. * @throws {RequiredError}
  5679. */
  5680. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5681. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  5682. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5683. },
  5684. /**
  5685. *
  5686. * @param {string} id
  5687. * @param {AddUsersDto} addUsersDto
  5688. * @param {*} [options] Override http request option.
  5689. * @throws {RequiredError}
  5690. */
  5691. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5692. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5693. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5694. },
  5695. /**
  5696. *
  5697. * @param {CreateAlbumDto} createAlbumDto
  5698. * @param {*} [options] Override http request option.
  5699. * @throws {RequiredError}
  5700. */
  5701. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5702. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5703. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5704. },
  5705. /**
  5706. *
  5707. * @param {string} id
  5708. * @param {*} [options] Override http request option.
  5709. * @throws {RequiredError}
  5710. */
  5711. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5712. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5713. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5714. },
  5715. /**
  5716. *
  5717. * @param {*} [options] Override http request option.
  5718. * @throws {RequiredError}
  5719. */
  5720. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5721. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5722. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5723. },
  5724. /**
  5725. *
  5726. * @param {string} id
  5727. * @param {boolean} [withoutAssets]
  5728. * @param {string} [key]
  5729. * @param {*} [options] Override http request option.
  5730. * @throws {RequiredError}
  5731. */
  5732. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5733. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5734. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5735. },
  5736. /**
  5737. *
  5738. * @param {boolean} [shared]
  5739. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5740. * @param {*} [options] Override http request option.
  5741. * @throws {RequiredError}
  5742. */
  5743. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5744. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5745. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5746. },
  5747. /**
  5748. *
  5749. * @param {string} id
  5750. * @param {BulkIdsDto} bulkIdsDto
  5751. * @param {*} [options] Override http request option.
  5752. * @throws {RequiredError}
  5753. */
  5754. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5755. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5756. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5757. },
  5758. /**
  5759. *
  5760. * @param {string} id
  5761. * @param {string} userId
  5762. * @param {*} [options] Override http request option.
  5763. * @throws {RequiredError}
  5764. */
  5765. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5766. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5767. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5768. },
  5769. /**
  5770. *
  5771. * @param {string} id
  5772. * @param {UpdateAlbumDto} updateAlbumDto
  5773. * @param {*} [options] Override http request option.
  5774. * @throws {RequiredError}
  5775. */
  5776. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5777. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5778. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5779. },
  5780. }
  5781. };
  5782. /**
  5783. * AlbumApi - factory interface
  5784. * @export
  5785. */
  5786. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5787. const localVarFp = AlbumApiFp(configuration)
  5788. return {
  5789. /**
  5790. *
  5791. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5792. * @param {*} [options] Override http request option.
  5793. * @throws {RequiredError}
  5794. */
  5795. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5796. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5797. },
  5798. /**
  5799. *
  5800. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5801. * @param {*} [options] Override http request option.
  5802. * @throws {RequiredError}
  5803. */
  5804. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5805. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5806. },
  5807. /**
  5808. *
  5809. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5810. * @param {*} [options] Override http request option.
  5811. * @throws {RequiredError}
  5812. */
  5813. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5814. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5815. },
  5816. /**
  5817. *
  5818. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5819. * @param {*} [options] Override http request option.
  5820. * @throws {RequiredError}
  5821. */
  5822. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5823. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5824. },
  5825. /**
  5826. *
  5827. * @param {*} [options] Override http request option.
  5828. * @throws {RequiredError}
  5829. */
  5830. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5831. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5832. },
  5833. /**
  5834. *
  5835. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5836. * @param {*} [options] Override http request option.
  5837. * @throws {RequiredError}
  5838. */
  5839. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5840. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5841. },
  5842. /**
  5843. *
  5844. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5845. * @param {*} [options] Override http request option.
  5846. * @throws {RequiredError}
  5847. */
  5848. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5849. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5850. },
  5851. /**
  5852. *
  5853. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5854. * @param {*} [options] Override http request option.
  5855. * @throws {RequiredError}
  5856. */
  5857. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5858. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5859. },
  5860. /**
  5861. *
  5862. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5863. * @param {*} [options] Override http request option.
  5864. * @throws {RequiredError}
  5865. */
  5866. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5867. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5868. },
  5869. /**
  5870. *
  5871. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5872. * @param {*} [options] Override http request option.
  5873. * @throws {RequiredError}
  5874. */
  5875. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5876. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5877. },
  5878. };
  5879. };
  5880. /**
  5881. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5882. * @export
  5883. * @interface AlbumApiAddAssetsToAlbumRequest
  5884. */
  5885. export interface AlbumApiAddAssetsToAlbumRequest {
  5886. /**
  5887. *
  5888. * @type {string}
  5889. * @memberof AlbumApiAddAssetsToAlbum
  5890. */
  5891. readonly id: string
  5892. /**
  5893. *
  5894. * @type {BulkIdsDto}
  5895. * @memberof AlbumApiAddAssetsToAlbum
  5896. */
  5897. readonly bulkIdsDto: BulkIdsDto
  5898. /**
  5899. *
  5900. * @type {string}
  5901. * @memberof AlbumApiAddAssetsToAlbum
  5902. */
  5903. readonly key?: string
  5904. }
  5905. /**
  5906. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5907. * @export
  5908. * @interface AlbumApiAddUsersToAlbumRequest
  5909. */
  5910. export interface AlbumApiAddUsersToAlbumRequest {
  5911. /**
  5912. *
  5913. * @type {string}
  5914. * @memberof AlbumApiAddUsersToAlbum
  5915. */
  5916. readonly id: string
  5917. /**
  5918. *
  5919. * @type {AddUsersDto}
  5920. * @memberof AlbumApiAddUsersToAlbum
  5921. */
  5922. readonly addUsersDto: AddUsersDto
  5923. }
  5924. /**
  5925. * Request parameters for createAlbum operation in AlbumApi.
  5926. * @export
  5927. * @interface AlbumApiCreateAlbumRequest
  5928. */
  5929. export interface AlbumApiCreateAlbumRequest {
  5930. /**
  5931. *
  5932. * @type {CreateAlbumDto}
  5933. * @memberof AlbumApiCreateAlbum
  5934. */
  5935. readonly createAlbumDto: CreateAlbumDto
  5936. }
  5937. /**
  5938. * Request parameters for deleteAlbum operation in AlbumApi.
  5939. * @export
  5940. * @interface AlbumApiDeleteAlbumRequest
  5941. */
  5942. export interface AlbumApiDeleteAlbumRequest {
  5943. /**
  5944. *
  5945. * @type {string}
  5946. * @memberof AlbumApiDeleteAlbum
  5947. */
  5948. readonly id: string
  5949. }
  5950. /**
  5951. * Request parameters for getAlbumInfo operation in AlbumApi.
  5952. * @export
  5953. * @interface AlbumApiGetAlbumInfoRequest
  5954. */
  5955. export interface AlbumApiGetAlbumInfoRequest {
  5956. /**
  5957. *
  5958. * @type {string}
  5959. * @memberof AlbumApiGetAlbumInfo
  5960. */
  5961. readonly id: string
  5962. /**
  5963. *
  5964. * @type {boolean}
  5965. * @memberof AlbumApiGetAlbumInfo
  5966. */
  5967. readonly withoutAssets?: boolean
  5968. /**
  5969. *
  5970. * @type {string}
  5971. * @memberof AlbumApiGetAlbumInfo
  5972. */
  5973. readonly key?: string
  5974. }
  5975. /**
  5976. * Request parameters for getAllAlbums operation in AlbumApi.
  5977. * @export
  5978. * @interface AlbumApiGetAllAlbumsRequest
  5979. */
  5980. export interface AlbumApiGetAllAlbumsRequest {
  5981. /**
  5982. *
  5983. * @type {boolean}
  5984. * @memberof AlbumApiGetAllAlbums
  5985. */
  5986. readonly shared?: boolean
  5987. /**
  5988. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5989. * @type {string}
  5990. * @memberof AlbumApiGetAllAlbums
  5991. */
  5992. readonly assetId?: string
  5993. }
  5994. /**
  5995. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5996. * @export
  5997. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5998. */
  5999. export interface AlbumApiRemoveAssetFromAlbumRequest {
  6000. /**
  6001. *
  6002. * @type {string}
  6003. * @memberof AlbumApiRemoveAssetFromAlbum
  6004. */
  6005. readonly id: string
  6006. /**
  6007. *
  6008. * @type {BulkIdsDto}
  6009. * @memberof AlbumApiRemoveAssetFromAlbum
  6010. */
  6011. readonly bulkIdsDto: BulkIdsDto
  6012. }
  6013. /**
  6014. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  6015. * @export
  6016. * @interface AlbumApiRemoveUserFromAlbumRequest
  6017. */
  6018. export interface AlbumApiRemoveUserFromAlbumRequest {
  6019. /**
  6020. *
  6021. * @type {string}
  6022. * @memberof AlbumApiRemoveUserFromAlbum
  6023. */
  6024. readonly id: string
  6025. /**
  6026. *
  6027. * @type {string}
  6028. * @memberof AlbumApiRemoveUserFromAlbum
  6029. */
  6030. readonly userId: string
  6031. }
  6032. /**
  6033. * Request parameters for updateAlbumInfo operation in AlbumApi.
  6034. * @export
  6035. * @interface AlbumApiUpdateAlbumInfoRequest
  6036. */
  6037. export interface AlbumApiUpdateAlbumInfoRequest {
  6038. /**
  6039. *
  6040. * @type {string}
  6041. * @memberof AlbumApiUpdateAlbumInfo
  6042. */
  6043. readonly id: string
  6044. /**
  6045. *
  6046. * @type {UpdateAlbumDto}
  6047. * @memberof AlbumApiUpdateAlbumInfo
  6048. */
  6049. readonly updateAlbumDto: UpdateAlbumDto
  6050. }
  6051. /**
  6052. * AlbumApi - object-oriented interface
  6053. * @export
  6054. * @class AlbumApi
  6055. * @extends {BaseAPI}
  6056. */
  6057. export class AlbumApi extends BaseAPI {
  6058. /**
  6059. *
  6060. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  6061. * @param {*} [options] Override http request option.
  6062. * @throws {RequiredError}
  6063. * @memberof AlbumApi
  6064. */
  6065. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  6066. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6067. }
  6068. /**
  6069. *
  6070. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  6071. * @param {*} [options] Override http request option.
  6072. * @throws {RequiredError}
  6073. * @memberof AlbumApi
  6074. */
  6075. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  6076. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  6077. }
  6078. /**
  6079. *
  6080. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  6081. * @param {*} [options] Override http request option.
  6082. * @throws {RequiredError}
  6083. * @memberof AlbumApi
  6084. */
  6085. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  6086. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  6087. }
  6088. /**
  6089. *
  6090. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  6091. * @param {*} [options] Override http request option.
  6092. * @throws {RequiredError}
  6093. * @memberof AlbumApi
  6094. */
  6095. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  6096. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  6097. }
  6098. /**
  6099. *
  6100. * @param {*} [options] Override http request option.
  6101. * @throws {RequiredError}
  6102. * @memberof AlbumApi
  6103. */
  6104. public getAlbumCount(options?: AxiosRequestConfig) {
  6105. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  6106. }
  6107. /**
  6108. *
  6109. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  6110. * @param {*} [options] Override http request option.
  6111. * @throws {RequiredError}
  6112. * @memberof AlbumApi
  6113. */
  6114. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  6115. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6116. }
  6117. /**
  6118. *
  6119. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  6120. * @param {*} [options] Override http request option.
  6121. * @throws {RequiredError}
  6122. * @memberof AlbumApi
  6123. */
  6124. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  6125. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  6126. }
  6127. /**
  6128. *
  6129. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  6130. * @param {*} [options] Override http request option.
  6131. * @throws {RequiredError}
  6132. * @memberof AlbumApi
  6133. */
  6134. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  6135. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  6136. }
  6137. /**
  6138. *
  6139. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  6140. * @param {*} [options] Override http request option.
  6141. * @throws {RequiredError}
  6142. * @memberof AlbumApi
  6143. */
  6144. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  6145. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  6146. }
  6147. /**
  6148. *
  6149. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  6150. * @param {*} [options] Override http request option.
  6151. * @throws {RequiredError}
  6152. * @memberof AlbumApi
  6153. */
  6154. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  6155. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  6156. }
  6157. }
  6158. /**
  6159. * AssetApi - axios parameter creator
  6160. * @export
  6161. */
  6162. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  6163. return {
  6164. /**
  6165. * Checks if assets exist by checksums
  6166. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6167. * @param {*} [options] Override http request option.
  6168. * @throws {RequiredError}
  6169. */
  6170. checkBulkUpload: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6171. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  6172. assertParamExists('checkBulkUpload', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  6173. const localVarPath = `/asset/bulk-upload-check`;
  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: 'POST', ...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. localVarHeaderParameter['Content-Type'] = 'application/json';
  6190. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6191. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6192. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6193. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  6194. return {
  6195. url: toPathString(localVarUrlObj),
  6196. options: localVarRequestOptions,
  6197. };
  6198. },
  6199. /**
  6200. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6201. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6202. * @param {*} [options] Override http request option.
  6203. * @throws {RequiredError}
  6204. */
  6205. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6206. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  6207. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  6208. const localVarPath = `/asset/exist`;
  6209. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6210. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6211. let baseOptions;
  6212. if (configuration) {
  6213. baseOptions = configuration.baseOptions;
  6214. }
  6215. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6216. const localVarHeaderParameter = {} as any;
  6217. const localVarQueryParameter = {} as any;
  6218. // authentication cookie required
  6219. // authentication api_key required
  6220. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6221. // authentication bearer required
  6222. // http bearer authentication required
  6223. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6224. localVarHeaderParameter['Content-Type'] = 'application/json';
  6225. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6226. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6227. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6228. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  6229. return {
  6230. url: toPathString(localVarUrlObj),
  6231. options: localVarRequestOptions,
  6232. };
  6233. },
  6234. /**
  6235. *
  6236. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6237. * @param {*} [options] Override http request option.
  6238. * @throws {RequiredError}
  6239. */
  6240. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6241. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  6242. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  6243. const localVarPath = `/asset`;
  6244. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6245. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6246. let baseOptions;
  6247. if (configuration) {
  6248. baseOptions = configuration.baseOptions;
  6249. }
  6250. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6251. const localVarHeaderParameter = {} as any;
  6252. const localVarQueryParameter = {} as any;
  6253. // authentication cookie required
  6254. // authentication api_key required
  6255. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6256. // authentication bearer required
  6257. // http bearer authentication required
  6258. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6259. localVarHeaderParameter['Content-Type'] = 'application/json';
  6260. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6261. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6262. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6263. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  6264. return {
  6265. url: toPathString(localVarUrlObj),
  6266. options: localVarRequestOptions,
  6267. };
  6268. },
  6269. /**
  6270. *
  6271. * @param {AssetIdsDto} assetIdsDto
  6272. * @param {string} [key]
  6273. * @param {*} [options] Override http request option.
  6274. * @throws {RequiredError}
  6275. */
  6276. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6277. // verify required parameter 'assetIdsDto' is not null or undefined
  6278. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  6279. const localVarPath = `/asset/download/archive`;
  6280. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6281. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6282. let baseOptions;
  6283. if (configuration) {
  6284. baseOptions = configuration.baseOptions;
  6285. }
  6286. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6287. const localVarHeaderParameter = {} as any;
  6288. const localVarQueryParameter = {} as any;
  6289. // authentication cookie required
  6290. // authentication api_key required
  6291. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6292. // authentication bearer required
  6293. // http bearer authentication required
  6294. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6295. if (key !== undefined) {
  6296. localVarQueryParameter['key'] = key;
  6297. }
  6298. localVarHeaderParameter['Content-Type'] = 'application/json';
  6299. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6300. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6301. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6302. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  6303. return {
  6304. url: toPathString(localVarUrlObj),
  6305. options: localVarRequestOptions,
  6306. };
  6307. },
  6308. /**
  6309. *
  6310. * @param {string} id
  6311. * @param {string} [key]
  6312. * @param {*} [options] Override http request option.
  6313. * @throws {RequiredError}
  6314. */
  6315. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6316. // verify required parameter 'id' is not null or undefined
  6317. assertParamExists('downloadFile', 'id', id)
  6318. const localVarPath = `/asset/download/{id}`
  6319. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6320. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6321. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6322. let baseOptions;
  6323. if (configuration) {
  6324. baseOptions = configuration.baseOptions;
  6325. }
  6326. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6327. const localVarHeaderParameter = {} as any;
  6328. const localVarQueryParameter = {} as any;
  6329. // authentication cookie required
  6330. // authentication api_key required
  6331. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6332. // authentication bearer required
  6333. // http bearer authentication required
  6334. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6335. if (key !== undefined) {
  6336. localVarQueryParameter['key'] = key;
  6337. }
  6338. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6339. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6340. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6341. return {
  6342. url: toPathString(localVarUrlObj),
  6343. options: localVarRequestOptions,
  6344. };
  6345. },
  6346. /**
  6347. *
  6348. * @param {*} [options] Override http request option.
  6349. * @throws {RequiredError}
  6350. */
  6351. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6352. const localVarPath = `/asset/trash/empty`;
  6353. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6354. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6355. let baseOptions;
  6356. if (configuration) {
  6357. baseOptions = configuration.baseOptions;
  6358. }
  6359. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6360. const localVarHeaderParameter = {} as any;
  6361. const localVarQueryParameter = {} as any;
  6362. // authentication cookie required
  6363. // authentication api_key required
  6364. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6365. // authentication bearer required
  6366. // http bearer authentication required
  6367. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6368. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6369. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6370. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6371. return {
  6372. url: toPathString(localVarUrlObj),
  6373. options: localVarRequestOptions,
  6374. };
  6375. },
  6376. /**
  6377. * Get all AssetEntity belong to the user
  6378. * @param {number} [skip]
  6379. * @param {number} [take]
  6380. * @param {string} [userId]
  6381. * @param {boolean} [isFavorite]
  6382. * @param {boolean} [isArchived]
  6383. * @param {string} [updatedAfter]
  6384. * @param {string} [updatedBefore]
  6385. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6386. * @param {*} [options] Override http request option.
  6387. * @throws {RequiredError}
  6388. */
  6389. getAllAssets: async (skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6390. const localVarPath = `/asset`;
  6391. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6392. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6393. let baseOptions;
  6394. if (configuration) {
  6395. baseOptions = configuration.baseOptions;
  6396. }
  6397. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6398. const localVarHeaderParameter = {} as any;
  6399. const localVarQueryParameter = {} as any;
  6400. // authentication cookie required
  6401. // authentication api_key required
  6402. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6403. // authentication bearer required
  6404. // http bearer authentication required
  6405. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6406. if (skip !== undefined) {
  6407. localVarQueryParameter['skip'] = skip;
  6408. }
  6409. if (take !== undefined) {
  6410. localVarQueryParameter['take'] = take;
  6411. }
  6412. if (userId !== undefined) {
  6413. localVarQueryParameter['userId'] = userId;
  6414. }
  6415. if (isFavorite !== undefined) {
  6416. localVarQueryParameter['isFavorite'] = isFavorite;
  6417. }
  6418. if (isArchived !== undefined) {
  6419. localVarQueryParameter['isArchived'] = isArchived;
  6420. }
  6421. if (updatedAfter !== undefined) {
  6422. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  6423. (updatedAfter as any).toISOString() :
  6424. updatedAfter;
  6425. }
  6426. if (updatedBefore !== undefined) {
  6427. localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
  6428. (updatedBefore as any).toISOString() :
  6429. updatedBefore;
  6430. }
  6431. if (ifNoneMatch != null) {
  6432. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  6433. }
  6434. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6435. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6436. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6437. return {
  6438. url: toPathString(localVarUrlObj),
  6439. options: localVarRequestOptions,
  6440. };
  6441. },
  6442. /**
  6443. * Get a single asset\'s information
  6444. * @param {string} id
  6445. * @param {string} [key]
  6446. * @param {*} [options] Override http request option.
  6447. * @throws {RequiredError}
  6448. */
  6449. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6450. // verify required parameter 'id' is not null or undefined
  6451. assertParamExists('getAssetById', 'id', id)
  6452. const localVarPath = `/asset/assetById/{id}`
  6453. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6454. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6455. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6456. let baseOptions;
  6457. if (configuration) {
  6458. baseOptions = configuration.baseOptions;
  6459. }
  6460. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6461. const localVarHeaderParameter = {} as any;
  6462. const localVarQueryParameter = {} as any;
  6463. // authentication cookie required
  6464. // authentication api_key required
  6465. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6466. // authentication bearer required
  6467. // http bearer authentication required
  6468. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6469. if (key !== undefined) {
  6470. localVarQueryParameter['key'] = key;
  6471. }
  6472. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6473. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6474. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6475. return {
  6476. url: toPathString(localVarUrlObj),
  6477. options: localVarRequestOptions,
  6478. };
  6479. },
  6480. /**
  6481. *
  6482. * @param {*} [options] Override http request option.
  6483. * @throws {RequiredError}
  6484. */
  6485. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6486. const localVarPath = `/asset/search-terms`;
  6487. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6488. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6489. let baseOptions;
  6490. if (configuration) {
  6491. baseOptions = configuration.baseOptions;
  6492. }
  6493. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6494. const localVarHeaderParameter = {} as any;
  6495. const localVarQueryParameter = {} as any;
  6496. // authentication cookie required
  6497. // authentication api_key required
  6498. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6499. // authentication bearer required
  6500. // http bearer authentication required
  6501. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6502. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6503. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6504. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6505. return {
  6506. url: toPathString(localVarUrlObj),
  6507. options: localVarRequestOptions,
  6508. };
  6509. },
  6510. /**
  6511. *
  6512. * @param {boolean} [isArchived]
  6513. * @param {boolean} [isFavorite]
  6514. * @param {boolean} [isTrashed]
  6515. * @param {*} [options] Override http request option.
  6516. * @throws {RequiredError}
  6517. */
  6518. getAssetStatistics: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6519. const localVarPath = `/asset/statistics`;
  6520. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6521. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6522. let baseOptions;
  6523. if (configuration) {
  6524. baseOptions = configuration.baseOptions;
  6525. }
  6526. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6527. const localVarHeaderParameter = {} as any;
  6528. const localVarQueryParameter = {} as any;
  6529. // authentication cookie required
  6530. // authentication api_key required
  6531. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6532. // authentication bearer required
  6533. // http bearer authentication required
  6534. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6535. if (isArchived !== undefined) {
  6536. localVarQueryParameter['isArchived'] = isArchived;
  6537. }
  6538. if (isFavorite !== undefined) {
  6539. localVarQueryParameter['isFavorite'] = isFavorite;
  6540. }
  6541. if (isTrashed !== undefined) {
  6542. localVarQueryParameter['isTrashed'] = isTrashed;
  6543. }
  6544. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6545. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6546. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6547. return {
  6548. url: toPathString(localVarUrlObj),
  6549. options: localVarRequestOptions,
  6550. };
  6551. },
  6552. /**
  6553. *
  6554. * @param {string} id
  6555. * @param {ThumbnailFormat} [format]
  6556. * @param {string} [key]
  6557. * @param {*} [options] Override http request option.
  6558. * @throws {RequiredError}
  6559. */
  6560. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6561. // verify required parameter 'id' is not null or undefined
  6562. assertParamExists('getAssetThumbnail', 'id', id)
  6563. const localVarPath = `/asset/thumbnail/{id}`
  6564. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6565. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6566. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6567. let baseOptions;
  6568. if (configuration) {
  6569. baseOptions = configuration.baseOptions;
  6570. }
  6571. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6572. const localVarHeaderParameter = {} as any;
  6573. const localVarQueryParameter = {} as any;
  6574. // authentication cookie required
  6575. // authentication api_key required
  6576. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6577. // authentication bearer required
  6578. // http bearer authentication required
  6579. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6580. if (format !== undefined) {
  6581. localVarQueryParameter['format'] = format;
  6582. }
  6583. if (key !== undefined) {
  6584. localVarQueryParameter['key'] = key;
  6585. }
  6586. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6587. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6588. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6589. return {
  6590. url: toPathString(localVarUrlObj),
  6591. options: localVarRequestOptions,
  6592. };
  6593. },
  6594. /**
  6595. *
  6596. * @param {*} [options] Override http request option.
  6597. * @throws {RequiredError}
  6598. */
  6599. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6600. const localVarPath = `/asset/curated-locations`;
  6601. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6602. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6603. let baseOptions;
  6604. if (configuration) {
  6605. baseOptions = configuration.baseOptions;
  6606. }
  6607. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6608. const localVarHeaderParameter = {} as any;
  6609. const localVarQueryParameter = {} as any;
  6610. // authentication cookie required
  6611. // authentication api_key required
  6612. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6613. // authentication bearer required
  6614. // http bearer authentication required
  6615. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6616. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6617. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6618. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6619. return {
  6620. url: toPathString(localVarUrlObj),
  6621. options: localVarRequestOptions,
  6622. };
  6623. },
  6624. /**
  6625. *
  6626. * @param {*} [options] Override http request option.
  6627. * @throws {RequiredError}
  6628. */
  6629. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6630. const localVarPath = `/asset/curated-objects`;
  6631. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6632. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6633. let baseOptions;
  6634. if (configuration) {
  6635. baseOptions = configuration.baseOptions;
  6636. }
  6637. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6638. const localVarHeaderParameter = {} as any;
  6639. const localVarQueryParameter = {} as any;
  6640. // authentication cookie required
  6641. // authentication api_key required
  6642. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6643. // authentication bearer required
  6644. // http bearer authentication required
  6645. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6646. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6647. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6648. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6649. return {
  6650. url: toPathString(localVarUrlObj),
  6651. options: localVarRequestOptions,
  6652. };
  6653. },
  6654. /**
  6655. *
  6656. * @param {DownloadInfoDto} downloadInfoDto
  6657. * @param {string} [key]
  6658. * @param {*} [options] Override http request option.
  6659. * @throws {RequiredError}
  6660. */
  6661. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6662. // verify required parameter 'downloadInfoDto' is not null or undefined
  6663. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6664. const localVarPath = `/asset/download/info`;
  6665. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6666. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6667. let baseOptions;
  6668. if (configuration) {
  6669. baseOptions = configuration.baseOptions;
  6670. }
  6671. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6672. const localVarHeaderParameter = {} as any;
  6673. const localVarQueryParameter = {} as any;
  6674. // authentication cookie required
  6675. // authentication api_key required
  6676. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6677. // authentication bearer required
  6678. // http bearer authentication required
  6679. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6680. if (key !== undefined) {
  6681. localVarQueryParameter['key'] = key;
  6682. }
  6683. localVarHeaderParameter['Content-Type'] = 'application/json';
  6684. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6685. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6686. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6687. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6688. return {
  6689. url: toPathString(localVarUrlObj),
  6690. options: localVarRequestOptions,
  6691. };
  6692. },
  6693. /**
  6694. *
  6695. * @param {boolean} [isArchived]
  6696. * @param {boolean} [isFavorite]
  6697. * @param {string} [fileCreatedAfter]
  6698. * @param {string} [fileCreatedBefore]
  6699. * @param {*} [options] Override http request option.
  6700. * @throws {RequiredError}
  6701. */
  6702. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6703. const localVarPath = `/asset/map-marker`;
  6704. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6705. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6706. let baseOptions;
  6707. if (configuration) {
  6708. baseOptions = configuration.baseOptions;
  6709. }
  6710. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6711. const localVarHeaderParameter = {} as any;
  6712. const localVarQueryParameter = {} as any;
  6713. // authentication cookie required
  6714. // authentication api_key required
  6715. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6716. // authentication bearer required
  6717. // http bearer authentication required
  6718. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6719. if (isArchived !== undefined) {
  6720. localVarQueryParameter['isArchived'] = isArchived;
  6721. }
  6722. if (isFavorite !== undefined) {
  6723. localVarQueryParameter['isFavorite'] = isFavorite;
  6724. }
  6725. if (fileCreatedAfter !== undefined) {
  6726. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6727. (fileCreatedAfter as any).toISOString() :
  6728. fileCreatedAfter;
  6729. }
  6730. if (fileCreatedBefore !== undefined) {
  6731. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6732. (fileCreatedBefore as any).toISOString() :
  6733. fileCreatedBefore;
  6734. }
  6735. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6736. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6737. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6738. return {
  6739. url: toPathString(localVarUrlObj),
  6740. options: localVarRequestOptions,
  6741. };
  6742. },
  6743. /**
  6744. *
  6745. * @param {number} day
  6746. * @param {number} month
  6747. * @param {*} [options] Override http request option.
  6748. * @throws {RequiredError}
  6749. */
  6750. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6751. // verify required parameter 'day' is not null or undefined
  6752. assertParamExists('getMemoryLane', 'day', day)
  6753. // verify required parameter 'month' is not null or undefined
  6754. assertParamExists('getMemoryLane', 'month', month)
  6755. const localVarPath = `/asset/memory-lane`;
  6756. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6757. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6758. let baseOptions;
  6759. if (configuration) {
  6760. baseOptions = configuration.baseOptions;
  6761. }
  6762. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6763. const localVarHeaderParameter = {} as any;
  6764. const localVarQueryParameter = {} as any;
  6765. // authentication cookie required
  6766. // authentication api_key required
  6767. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6768. // authentication bearer required
  6769. // http bearer authentication required
  6770. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6771. if (day !== undefined) {
  6772. localVarQueryParameter['day'] = day;
  6773. }
  6774. if (month !== undefined) {
  6775. localVarQueryParameter['month'] = month;
  6776. }
  6777. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6778. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6779. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6780. return {
  6781. url: toPathString(localVarUrlObj),
  6782. options: localVarRequestOptions,
  6783. };
  6784. },
  6785. /**
  6786. *
  6787. * @param {number} [count]
  6788. * @param {*} [options] Override http request option.
  6789. * @throws {RequiredError}
  6790. */
  6791. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6792. const localVarPath = `/asset/random`;
  6793. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6794. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6795. let baseOptions;
  6796. if (configuration) {
  6797. baseOptions = configuration.baseOptions;
  6798. }
  6799. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6800. const localVarHeaderParameter = {} as any;
  6801. const localVarQueryParameter = {} as any;
  6802. // authentication cookie required
  6803. // authentication api_key required
  6804. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6805. // authentication bearer required
  6806. // http bearer authentication required
  6807. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6808. if (count !== undefined) {
  6809. localVarQueryParameter['count'] = count;
  6810. }
  6811. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6812. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6813. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6814. return {
  6815. url: toPathString(localVarUrlObj),
  6816. options: localVarRequestOptions,
  6817. };
  6818. },
  6819. /**
  6820. *
  6821. * @param {TimeBucketSize} size
  6822. * @param {string} timeBucket
  6823. * @param {string} [userId]
  6824. * @param {string} [albumId]
  6825. * @param {string} [personId]
  6826. * @param {boolean} [isArchived]
  6827. * @param {boolean} [isFavorite]
  6828. * @param {boolean} [isTrashed]
  6829. * @param {boolean} [withStacked]
  6830. * @param {boolean} [withPartners]
  6831. * @param {string} [key]
  6832. * @param {*} [options] Override http request option.
  6833. * @throws {RequiredError}
  6834. */
  6835. getTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6836. // verify required parameter 'size' is not null or undefined
  6837. assertParamExists('getTimeBucket', 'size', size)
  6838. // verify required parameter 'timeBucket' is not null or undefined
  6839. assertParamExists('getTimeBucket', 'timeBucket', timeBucket)
  6840. const localVarPath = `/asset/time-bucket`;
  6841. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6842. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6843. let baseOptions;
  6844. if (configuration) {
  6845. baseOptions = configuration.baseOptions;
  6846. }
  6847. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6848. const localVarHeaderParameter = {} as any;
  6849. const localVarQueryParameter = {} as any;
  6850. // authentication cookie required
  6851. // authentication api_key required
  6852. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6853. // authentication bearer required
  6854. // http bearer authentication required
  6855. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6856. if (size !== undefined) {
  6857. localVarQueryParameter['size'] = size;
  6858. }
  6859. if (userId !== undefined) {
  6860. localVarQueryParameter['userId'] = userId;
  6861. }
  6862. if (albumId !== undefined) {
  6863. localVarQueryParameter['albumId'] = albumId;
  6864. }
  6865. if (personId !== undefined) {
  6866. localVarQueryParameter['personId'] = personId;
  6867. }
  6868. if (isArchived !== undefined) {
  6869. localVarQueryParameter['isArchived'] = isArchived;
  6870. }
  6871. if (isFavorite !== undefined) {
  6872. localVarQueryParameter['isFavorite'] = isFavorite;
  6873. }
  6874. if (isTrashed !== undefined) {
  6875. localVarQueryParameter['isTrashed'] = isTrashed;
  6876. }
  6877. if (withStacked !== undefined) {
  6878. localVarQueryParameter['withStacked'] = withStacked;
  6879. }
  6880. if (withPartners !== undefined) {
  6881. localVarQueryParameter['withPartners'] = withPartners;
  6882. }
  6883. if (timeBucket !== undefined) {
  6884. localVarQueryParameter['timeBucket'] = timeBucket;
  6885. }
  6886. if (key !== undefined) {
  6887. localVarQueryParameter['key'] = key;
  6888. }
  6889. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6890. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6891. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6892. return {
  6893. url: toPathString(localVarUrlObj),
  6894. options: localVarRequestOptions,
  6895. };
  6896. },
  6897. /**
  6898. *
  6899. * @param {TimeBucketSize} size
  6900. * @param {string} [userId]
  6901. * @param {string} [albumId]
  6902. * @param {string} [personId]
  6903. * @param {boolean} [isArchived]
  6904. * @param {boolean} [isFavorite]
  6905. * @param {boolean} [isTrashed]
  6906. * @param {boolean} [withStacked]
  6907. * @param {boolean} [withPartners]
  6908. * @param {string} [key]
  6909. * @param {*} [options] Override http request option.
  6910. * @throws {RequiredError}
  6911. */
  6912. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6913. // verify required parameter 'size' is not null or undefined
  6914. assertParamExists('getTimeBuckets', 'size', size)
  6915. const localVarPath = `/asset/time-buckets`;
  6916. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6917. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6918. let baseOptions;
  6919. if (configuration) {
  6920. baseOptions = configuration.baseOptions;
  6921. }
  6922. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6923. const localVarHeaderParameter = {} as any;
  6924. const localVarQueryParameter = {} as any;
  6925. // authentication cookie required
  6926. // authentication api_key required
  6927. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6928. // authentication bearer required
  6929. // http bearer authentication required
  6930. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6931. if (size !== undefined) {
  6932. localVarQueryParameter['size'] = size;
  6933. }
  6934. if (userId !== undefined) {
  6935. localVarQueryParameter['userId'] = userId;
  6936. }
  6937. if (albumId !== undefined) {
  6938. localVarQueryParameter['albumId'] = albumId;
  6939. }
  6940. if (personId !== undefined) {
  6941. localVarQueryParameter['personId'] = personId;
  6942. }
  6943. if (isArchived !== undefined) {
  6944. localVarQueryParameter['isArchived'] = isArchived;
  6945. }
  6946. if (isFavorite !== undefined) {
  6947. localVarQueryParameter['isFavorite'] = isFavorite;
  6948. }
  6949. if (isTrashed !== undefined) {
  6950. localVarQueryParameter['isTrashed'] = isTrashed;
  6951. }
  6952. if (withStacked !== undefined) {
  6953. localVarQueryParameter['withStacked'] = withStacked;
  6954. }
  6955. if (withPartners !== undefined) {
  6956. localVarQueryParameter['withPartners'] = withPartners;
  6957. }
  6958. if (key !== undefined) {
  6959. localVarQueryParameter['key'] = key;
  6960. }
  6961. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6962. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6963. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6964. return {
  6965. url: toPathString(localVarUrlObj),
  6966. options: localVarRequestOptions,
  6967. };
  6968. },
  6969. /**
  6970. * Get all asset of a device that are in the database, ID only.
  6971. * @param {string} deviceId
  6972. * @param {*} [options] Override http request option.
  6973. * @throws {RequiredError}
  6974. */
  6975. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6976. // verify required parameter 'deviceId' is not null or undefined
  6977. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6978. const localVarPath = `/asset/{deviceId}`
  6979. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6980. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6981. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6982. let baseOptions;
  6983. if (configuration) {
  6984. baseOptions = configuration.baseOptions;
  6985. }
  6986. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6987. const localVarHeaderParameter = {} as any;
  6988. const localVarQueryParameter = {} as any;
  6989. // authentication cookie required
  6990. // authentication api_key required
  6991. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6992. // authentication bearer required
  6993. // http bearer authentication required
  6994. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6995. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6996. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6997. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6998. return {
  6999. url: toPathString(localVarUrlObj),
  7000. options: localVarRequestOptions,
  7001. };
  7002. },
  7003. /**
  7004. *
  7005. * @param {ImportAssetDto} importAssetDto
  7006. * @param {*} [options] Override http request option.
  7007. * @throws {RequiredError}
  7008. */
  7009. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7010. // verify required parameter 'importAssetDto' is not null or undefined
  7011. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  7012. const localVarPath = `/asset/import`;
  7013. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7014. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7015. let baseOptions;
  7016. if (configuration) {
  7017. baseOptions = configuration.baseOptions;
  7018. }
  7019. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7020. const localVarHeaderParameter = {} as any;
  7021. const localVarQueryParameter = {} as any;
  7022. // authentication cookie required
  7023. // authentication api_key required
  7024. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7025. // authentication bearer required
  7026. // http bearer authentication required
  7027. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7028. localVarHeaderParameter['Content-Type'] = 'application/json';
  7029. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7030. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7031. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7032. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  7033. return {
  7034. url: toPathString(localVarUrlObj),
  7035. options: localVarRequestOptions,
  7036. };
  7037. },
  7038. /**
  7039. *
  7040. * @param {BulkIdsDto} bulkIdsDto
  7041. * @param {*} [options] Override http request option.
  7042. * @throws {RequiredError}
  7043. */
  7044. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7045. // verify required parameter 'bulkIdsDto' is not null or undefined
  7046. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  7047. const localVarPath = `/asset/restore`;
  7048. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7049. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7050. let baseOptions;
  7051. if (configuration) {
  7052. baseOptions = configuration.baseOptions;
  7053. }
  7054. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7055. const localVarHeaderParameter = {} as any;
  7056. const localVarQueryParameter = {} as any;
  7057. // authentication cookie required
  7058. // authentication api_key required
  7059. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7060. // authentication bearer required
  7061. // http bearer authentication required
  7062. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7063. localVarHeaderParameter['Content-Type'] = 'application/json';
  7064. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7065. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7066. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7067. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  7068. return {
  7069. url: toPathString(localVarUrlObj),
  7070. options: localVarRequestOptions,
  7071. };
  7072. },
  7073. /**
  7074. *
  7075. * @param {*} [options] Override http request option.
  7076. * @throws {RequiredError}
  7077. */
  7078. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7079. const localVarPath = `/asset/trash/restore`;
  7080. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7081. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7082. let baseOptions;
  7083. if (configuration) {
  7084. baseOptions = configuration.baseOptions;
  7085. }
  7086. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7087. const localVarHeaderParameter = {} as any;
  7088. const localVarQueryParameter = {} as any;
  7089. // authentication cookie required
  7090. // authentication api_key required
  7091. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7092. // authentication bearer required
  7093. // http bearer authentication required
  7094. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7095. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7096. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7097. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7098. return {
  7099. url: toPathString(localVarUrlObj),
  7100. options: localVarRequestOptions,
  7101. };
  7102. },
  7103. /**
  7104. *
  7105. * @param {AssetJobsDto} assetJobsDto
  7106. * @param {*} [options] Override http request option.
  7107. * @throws {RequiredError}
  7108. */
  7109. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7110. // verify required parameter 'assetJobsDto' is not null or undefined
  7111. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  7112. const localVarPath = `/asset/jobs`;
  7113. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7114. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7115. let baseOptions;
  7116. if (configuration) {
  7117. baseOptions = configuration.baseOptions;
  7118. }
  7119. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7120. const localVarHeaderParameter = {} as any;
  7121. const localVarQueryParameter = {} as any;
  7122. // authentication cookie required
  7123. // authentication api_key required
  7124. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7125. // authentication bearer required
  7126. // http bearer authentication required
  7127. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7128. localVarHeaderParameter['Content-Type'] = 'application/json';
  7129. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7130. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7131. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7132. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  7133. return {
  7134. url: toPathString(localVarUrlObj),
  7135. options: localVarRequestOptions,
  7136. };
  7137. },
  7138. /**
  7139. *
  7140. * @param {SearchAssetDto} searchAssetDto
  7141. * @param {*} [options] Override http request option.
  7142. * @throws {RequiredError}
  7143. */
  7144. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7145. // verify required parameter 'searchAssetDto' is not null or undefined
  7146. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  7147. const localVarPath = `/asset/search`;
  7148. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7149. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7150. let baseOptions;
  7151. if (configuration) {
  7152. baseOptions = configuration.baseOptions;
  7153. }
  7154. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7155. const localVarHeaderParameter = {} as any;
  7156. const localVarQueryParameter = {} as any;
  7157. // authentication cookie required
  7158. // authentication api_key required
  7159. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7160. // authentication bearer required
  7161. // http bearer authentication required
  7162. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7163. localVarHeaderParameter['Content-Type'] = 'application/json';
  7164. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7165. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7166. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7167. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  7168. return {
  7169. url: toPathString(localVarUrlObj),
  7170. options: localVarRequestOptions,
  7171. };
  7172. },
  7173. /**
  7174. *
  7175. * @param {string} id
  7176. * @param {boolean} [isThumb]
  7177. * @param {boolean} [isWeb]
  7178. * @param {string} [key]
  7179. * @param {*} [options] Override http request option.
  7180. * @throws {RequiredError}
  7181. */
  7182. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7183. // verify required parameter 'id' is not null or undefined
  7184. assertParamExists('serveFile', 'id', id)
  7185. const localVarPath = `/asset/file/{id}`
  7186. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7187. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7188. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7189. let baseOptions;
  7190. if (configuration) {
  7191. baseOptions = configuration.baseOptions;
  7192. }
  7193. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7194. const localVarHeaderParameter = {} as any;
  7195. const localVarQueryParameter = {} as any;
  7196. // authentication cookie required
  7197. // authentication api_key required
  7198. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7199. // authentication bearer required
  7200. // http bearer authentication required
  7201. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7202. if (isThumb !== undefined) {
  7203. localVarQueryParameter['isThumb'] = isThumb;
  7204. }
  7205. if (isWeb !== undefined) {
  7206. localVarQueryParameter['isWeb'] = isWeb;
  7207. }
  7208. if (key !== undefined) {
  7209. localVarQueryParameter['key'] = key;
  7210. }
  7211. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7212. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7213. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7214. return {
  7215. url: toPathString(localVarUrlObj),
  7216. options: localVarRequestOptions,
  7217. };
  7218. },
  7219. /**
  7220. *
  7221. * @param {string} id
  7222. * @param {UpdateAssetDto} updateAssetDto
  7223. * @param {*} [options] Override http request option.
  7224. * @throws {RequiredError}
  7225. */
  7226. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7227. // verify required parameter 'id' is not null or undefined
  7228. assertParamExists('updateAsset', 'id', id)
  7229. // verify required parameter 'updateAssetDto' is not null or undefined
  7230. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  7231. const localVarPath = `/asset/{id}`
  7232. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7233. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7234. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7235. let baseOptions;
  7236. if (configuration) {
  7237. baseOptions = configuration.baseOptions;
  7238. }
  7239. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7240. const localVarHeaderParameter = {} as any;
  7241. const localVarQueryParameter = {} as any;
  7242. // authentication cookie required
  7243. // authentication api_key required
  7244. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7245. // authentication bearer required
  7246. // http bearer authentication required
  7247. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7248. localVarHeaderParameter['Content-Type'] = 'application/json';
  7249. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7250. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7251. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7252. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  7253. return {
  7254. url: toPathString(localVarUrlObj),
  7255. options: localVarRequestOptions,
  7256. };
  7257. },
  7258. /**
  7259. *
  7260. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7261. * @param {*} [options] Override http request option.
  7262. * @throws {RequiredError}
  7263. */
  7264. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7265. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  7266. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  7267. const localVarPath = `/asset`;
  7268. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7269. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7270. let baseOptions;
  7271. if (configuration) {
  7272. baseOptions = configuration.baseOptions;
  7273. }
  7274. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7275. const localVarHeaderParameter = {} as any;
  7276. const localVarQueryParameter = {} as any;
  7277. // authentication cookie required
  7278. // authentication api_key required
  7279. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7280. // authentication bearer required
  7281. // http bearer authentication required
  7282. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7283. localVarHeaderParameter['Content-Type'] = 'application/json';
  7284. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7285. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7286. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7287. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  7288. return {
  7289. url: toPathString(localVarUrlObj),
  7290. options: localVarRequestOptions,
  7291. };
  7292. },
  7293. /**
  7294. *
  7295. * @param {UpdateStackParentDto} updateStackParentDto
  7296. * @param {*} [options] Override http request option.
  7297. * @throws {RequiredError}
  7298. */
  7299. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7300. // verify required parameter 'updateStackParentDto' is not null or undefined
  7301. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  7302. const localVarPath = `/asset/stack/parent`;
  7303. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7304. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7305. let baseOptions;
  7306. if (configuration) {
  7307. baseOptions = configuration.baseOptions;
  7308. }
  7309. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7310. const localVarHeaderParameter = {} as any;
  7311. const localVarQueryParameter = {} as any;
  7312. // authentication cookie required
  7313. // authentication api_key required
  7314. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7315. // authentication bearer required
  7316. // http bearer authentication required
  7317. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7318. localVarHeaderParameter['Content-Type'] = 'application/json';
  7319. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7320. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7321. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7322. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  7323. return {
  7324. url: toPathString(localVarUrlObj),
  7325. options: localVarRequestOptions,
  7326. };
  7327. },
  7328. /**
  7329. *
  7330. * @param {File} assetData
  7331. * @param {string} deviceAssetId
  7332. * @param {string} deviceId
  7333. * @param {string} fileCreatedAt
  7334. * @param {string} fileModifiedAt
  7335. * @param {string} [key]
  7336. * @param {string} [duration]
  7337. * @param {boolean} [isArchived]
  7338. * @param {boolean} [isExternal]
  7339. * @param {boolean} [isFavorite]
  7340. * @param {boolean} [isOffline]
  7341. * @param {boolean} [isReadOnly]
  7342. * @param {boolean} [isVisible]
  7343. * @param {string} [libraryId]
  7344. * @param {File} [livePhotoData]
  7345. * @param {File} [sidecarData]
  7346. * @param {*} [options] Override http request option.
  7347. * @throws {RequiredError}
  7348. */
  7349. uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isFavorite?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7350. // verify required parameter 'assetData' is not null or undefined
  7351. assertParamExists('uploadFile', 'assetData', assetData)
  7352. // verify required parameter 'deviceAssetId' is not null or undefined
  7353. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  7354. // verify required parameter 'deviceId' is not null or undefined
  7355. assertParamExists('uploadFile', 'deviceId', deviceId)
  7356. // verify required parameter 'fileCreatedAt' is not null or undefined
  7357. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  7358. // verify required parameter 'fileModifiedAt' is not null or undefined
  7359. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  7360. const localVarPath = `/asset/upload`;
  7361. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7362. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7363. let baseOptions;
  7364. if (configuration) {
  7365. baseOptions = configuration.baseOptions;
  7366. }
  7367. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7368. const localVarHeaderParameter = {} as any;
  7369. const localVarQueryParameter = {} as any;
  7370. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  7371. // authentication cookie required
  7372. // authentication api_key required
  7373. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7374. // authentication bearer required
  7375. // http bearer authentication required
  7376. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7377. if (key !== undefined) {
  7378. localVarQueryParameter['key'] = key;
  7379. }
  7380. if (assetData !== undefined) {
  7381. localVarFormParams.append('assetData', assetData as any);
  7382. }
  7383. if (deviceAssetId !== undefined) {
  7384. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  7385. }
  7386. if (deviceId !== undefined) {
  7387. localVarFormParams.append('deviceId', deviceId as any);
  7388. }
  7389. if (duration !== undefined) {
  7390. localVarFormParams.append('duration', duration as any);
  7391. }
  7392. if (fileCreatedAt !== undefined) {
  7393. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  7394. }
  7395. if (fileModifiedAt !== undefined) {
  7396. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  7397. }
  7398. if (isArchived !== undefined) {
  7399. localVarFormParams.append('isArchived', isArchived as any);
  7400. }
  7401. if (isExternal !== undefined) {
  7402. localVarFormParams.append('isExternal', isExternal as any);
  7403. }
  7404. if (isFavorite !== undefined) {
  7405. localVarFormParams.append('isFavorite', isFavorite as any);
  7406. }
  7407. if (isOffline !== undefined) {
  7408. localVarFormParams.append('isOffline', isOffline as any);
  7409. }
  7410. if (isReadOnly !== undefined) {
  7411. localVarFormParams.append('isReadOnly', isReadOnly as any);
  7412. }
  7413. if (isVisible !== undefined) {
  7414. localVarFormParams.append('isVisible', isVisible as any);
  7415. }
  7416. if (libraryId !== undefined) {
  7417. localVarFormParams.append('libraryId', libraryId as any);
  7418. }
  7419. if (livePhotoData !== undefined) {
  7420. localVarFormParams.append('livePhotoData', livePhotoData as any);
  7421. }
  7422. if (sidecarData !== undefined) {
  7423. localVarFormParams.append('sidecarData', sidecarData as any);
  7424. }
  7425. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  7426. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7427. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7428. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7429. localVarRequestOptions.data = localVarFormParams;
  7430. return {
  7431. url: toPathString(localVarUrlObj),
  7432. options: localVarRequestOptions,
  7433. };
  7434. },
  7435. }
  7436. };
  7437. /**
  7438. * AssetApi - functional programming interface
  7439. * @export
  7440. */
  7441. export const AssetApiFp = function(configuration?: Configuration) {
  7442. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  7443. return {
  7444. /**
  7445. * Checks if assets exist by checksums
  7446. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  7447. * @param {*} [options] Override http request option.
  7448. * @throws {RequiredError}
  7449. */
  7450. async checkBulkUpload(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  7451. const localVarAxiosArgs = await localVarAxiosParamCreator.checkBulkUpload(assetBulkUploadCheckDto, options);
  7452. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7453. },
  7454. /**
  7455. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7456. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  7457. * @param {*} [options] Override http request option.
  7458. * @throws {RequiredError}
  7459. */
  7460. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  7461. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  7462. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7463. },
  7464. /**
  7465. *
  7466. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  7467. * @param {*} [options] Override http request option.
  7468. * @throws {RequiredError}
  7469. */
  7470. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7471. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  7472. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7473. },
  7474. /**
  7475. *
  7476. * @param {AssetIdsDto} assetIdsDto
  7477. * @param {string} [key]
  7478. * @param {*} [options] Override http request option.
  7479. * @throws {RequiredError}
  7480. */
  7481. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7482. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  7483. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7484. },
  7485. /**
  7486. *
  7487. * @param {string} id
  7488. * @param {string} [key]
  7489. * @param {*} [options] Override http request option.
  7490. * @throws {RequiredError}
  7491. */
  7492. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7493. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  7494. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7495. },
  7496. /**
  7497. *
  7498. * @param {*} [options] Override http request option.
  7499. * @throws {RequiredError}
  7500. */
  7501. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7502. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  7503. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7504. },
  7505. /**
  7506. * Get all AssetEntity belong to the user
  7507. * @param {number} [skip]
  7508. * @param {number} [take]
  7509. * @param {string} [userId]
  7510. * @param {boolean} [isFavorite]
  7511. * @param {boolean} [isArchived]
  7512. * @param {string} [updatedAfter]
  7513. * @param {string} [updatedBefore]
  7514. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  7515. * @param {*} [options] Override http request option.
  7516. * @throws {RequiredError}
  7517. */
  7518. async getAllAssets(skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7519. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(skip, take, userId, isFavorite, isArchived, updatedAfter, updatedBefore, ifNoneMatch, options);
  7520. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7521. },
  7522. /**
  7523. * Get a single asset\'s information
  7524. * @param {string} id
  7525. * @param {string} [key]
  7526. * @param {*} [options] Override http request option.
  7527. * @throws {RequiredError}
  7528. */
  7529. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7530. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  7531. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7532. },
  7533. /**
  7534. *
  7535. * @param {*} [options] Override http request option.
  7536. * @throws {RequiredError}
  7537. */
  7538. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7539. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  7540. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7541. },
  7542. /**
  7543. *
  7544. * @param {boolean} [isArchived]
  7545. * @param {boolean} [isFavorite]
  7546. * @param {boolean} [isTrashed]
  7547. * @param {*} [options] Override http request option.
  7548. * @throws {RequiredError}
  7549. */
  7550. async getAssetStatistics(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  7551. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStatistics(isArchived, isFavorite, isTrashed, options);
  7552. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7553. },
  7554. /**
  7555. *
  7556. * @param {string} id
  7557. * @param {ThumbnailFormat} [format]
  7558. * @param {string} [key]
  7559. * @param {*} [options] Override http request option.
  7560. * @throws {RequiredError}
  7561. */
  7562. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7563. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  7564. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7565. },
  7566. /**
  7567. *
  7568. * @param {*} [options] Override http request option.
  7569. * @throws {RequiredError}
  7570. */
  7571. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  7572. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  7573. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7574. },
  7575. /**
  7576. *
  7577. * @param {*} [options] Override http request option.
  7578. * @throws {RequiredError}
  7579. */
  7580. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  7581. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  7582. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7583. },
  7584. /**
  7585. *
  7586. * @param {DownloadInfoDto} downloadInfoDto
  7587. * @param {string} [key]
  7588. * @param {*} [options] Override http request option.
  7589. * @throws {RequiredError}
  7590. */
  7591. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  7592. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  7593. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7594. },
  7595. /**
  7596. *
  7597. * @param {boolean} [isArchived]
  7598. * @param {boolean} [isFavorite]
  7599. * @param {string} [fileCreatedAfter]
  7600. * @param {string} [fileCreatedBefore]
  7601. * @param {*} [options] Override http request option.
  7602. * @throws {RequiredError}
  7603. */
  7604. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  7605. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  7606. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7607. },
  7608. /**
  7609. *
  7610. * @param {number} day
  7611. * @param {number} month
  7612. * @param {*} [options] Override http request option.
  7613. * @throws {RequiredError}
  7614. */
  7615. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  7616. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  7617. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7618. },
  7619. /**
  7620. *
  7621. * @param {number} [count]
  7622. * @param {*} [options] Override http request option.
  7623. * @throws {RequiredError}
  7624. */
  7625. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7626. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  7627. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7628. },
  7629. /**
  7630. *
  7631. * @param {TimeBucketSize} size
  7632. * @param {string} timeBucket
  7633. * @param {string} [userId]
  7634. * @param {string} [albumId]
  7635. * @param {string} [personId]
  7636. * @param {boolean} [isArchived]
  7637. * @param {boolean} [isFavorite]
  7638. * @param {boolean} [isTrashed]
  7639. * @param {boolean} [withStacked]
  7640. * @param {boolean} [withPartners]
  7641. * @param {string} [key]
  7642. * @param {*} [options] Override http request option.
  7643. * @throws {RequiredError}
  7644. */
  7645. async getTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7646. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
  7647. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7648. },
  7649. /**
  7650. *
  7651. * @param {TimeBucketSize} size
  7652. * @param {string} [userId]
  7653. * @param {string} [albumId]
  7654. * @param {string} [personId]
  7655. * @param {boolean} [isArchived]
  7656. * @param {boolean} [isFavorite]
  7657. * @param {boolean} [isTrashed]
  7658. * @param {boolean} [withStacked]
  7659. * @param {boolean} [withPartners]
  7660. * @param {string} [key]
  7661. * @param {*} [options] Override http request option.
  7662. * @throws {RequiredError}
  7663. */
  7664. async getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
  7665. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
  7666. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7667. },
  7668. /**
  7669. * Get all asset of a device that are in the database, ID only.
  7670. * @param {string} deviceId
  7671. * @param {*} [options] Override http request option.
  7672. * @throws {RequiredError}
  7673. */
  7674. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7675. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  7676. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7677. },
  7678. /**
  7679. *
  7680. * @param {ImportAssetDto} importAssetDto
  7681. * @param {*} [options] Override http request option.
  7682. * @throws {RequiredError}
  7683. */
  7684. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7685. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  7686. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7687. },
  7688. /**
  7689. *
  7690. * @param {BulkIdsDto} bulkIdsDto
  7691. * @param {*} [options] Override http request option.
  7692. * @throws {RequiredError}
  7693. */
  7694. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7695. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  7696. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7697. },
  7698. /**
  7699. *
  7700. * @param {*} [options] Override http request option.
  7701. * @throws {RequiredError}
  7702. */
  7703. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7704. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7705. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7706. },
  7707. /**
  7708. *
  7709. * @param {AssetJobsDto} assetJobsDto
  7710. * @param {*} [options] Override http request option.
  7711. * @throws {RequiredError}
  7712. */
  7713. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7714. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7715. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7716. },
  7717. /**
  7718. *
  7719. * @param {SearchAssetDto} searchAssetDto
  7720. * @param {*} [options] Override http request option.
  7721. * @throws {RequiredError}
  7722. */
  7723. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7724. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  7725. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7726. },
  7727. /**
  7728. *
  7729. * @param {string} id
  7730. * @param {boolean} [isThumb]
  7731. * @param {boolean} [isWeb]
  7732. * @param {string} [key]
  7733. * @param {*} [options] Override http request option.
  7734. * @throws {RequiredError}
  7735. */
  7736. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7737. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7738. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7739. },
  7740. /**
  7741. *
  7742. * @param {string} id
  7743. * @param {UpdateAssetDto} updateAssetDto
  7744. * @param {*} [options] Override http request option.
  7745. * @throws {RequiredError}
  7746. */
  7747. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7748. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7749. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7750. },
  7751. /**
  7752. *
  7753. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7754. * @param {*} [options] Override http request option.
  7755. * @throws {RequiredError}
  7756. */
  7757. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7758. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7759. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7760. },
  7761. /**
  7762. *
  7763. * @param {UpdateStackParentDto} updateStackParentDto
  7764. * @param {*} [options] Override http request option.
  7765. * @throws {RequiredError}
  7766. */
  7767. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7768. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7769. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7770. },
  7771. /**
  7772. *
  7773. * @param {File} assetData
  7774. * @param {string} deviceAssetId
  7775. * @param {string} deviceId
  7776. * @param {string} fileCreatedAt
  7777. * @param {string} fileModifiedAt
  7778. * @param {string} [key]
  7779. * @param {string} [duration]
  7780. * @param {boolean} [isArchived]
  7781. * @param {boolean} [isExternal]
  7782. * @param {boolean} [isFavorite]
  7783. * @param {boolean} [isOffline]
  7784. * @param {boolean} [isReadOnly]
  7785. * @param {boolean} [isVisible]
  7786. * @param {string} [libraryId]
  7787. * @param {File} [livePhotoData]
  7788. * @param {File} [sidecarData]
  7789. * @param {*} [options] Override http request option.
  7790. * @throws {RequiredError}
  7791. */
  7792. async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isFavorite?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7793. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, key, duration, isArchived, isExternal, isFavorite, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7794. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7795. },
  7796. }
  7797. };
  7798. /**
  7799. * AssetApi - factory interface
  7800. * @export
  7801. */
  7802. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7803. const localVarFp = AssetApiFp(configuration)
  7804. return {
  7805. /**
  7806. * Checks if assets exist by checksums
  7807. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  7808. * @param {*} [options] Override http request option.
  7809. * @throws {RequiredError}
  7810. */
  7811. checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7812. return localVarFp.checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7813. },
  7814. /**
  7815. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7816. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7817. * @param {*} [options] Override http request option.
  7818. * @throws {RequiredError}
  7819. */
  7820. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7821. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7822. },
  7823. /**
  7824. *
  7825. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7826. * @param {*} [options] Override http request option.
  7827. * @throws {RequiredError}
  7828. */
  7829. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7830. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7831. },
  7832. /**
  7833. *
  7834. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7835. * @param {*} [options] Override http request option.
  7836. * @throws {RequiredError}
  7837. */
  7838. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7839. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7840. },
  7841. /**
  7842. *
  7843. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7844. * @param {*} [options] Override http request option.
  7845. * @throws {RequiredError}
  7846. */
  7847. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7848. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7849. },
  7850. /**
  7851. *
  7852. * @param {*} [options] Override http request option.
  7853. * @throws {RequiredError}
  7854. */
  7855. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7856. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7857. },
  7858. /**
  7859. * Get all AssetEntity belong to the user
  7860. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7861. * @param {*} [options] Override http request option.
  7862. * @throws {RequiredError}
  7863. */
  7864. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7865. return localVarFp.getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7866. },
  7867. /**
  7868. * Get a single asset\'s information
  7869. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7870. * @param {*} [options] Override http request option.
  7871. * @throws {RequiredError}
  7872. */
  7873. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7874. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7875. },
  7876. /**
  7877. *
  7878. * @param {*} [options] Override http request option.
  7879. * @throws {RequiredError}
  7880. */
  7881. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7882. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7883. },
  7884. /**
  7885. *
  7886. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  7887. * @param {*} [options] Override http request option.
  7888. * @throws {RequiredError}
  7889. */
  7890. getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7891. return localVarFp.getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7892. },
  7893. /**
  7894. *
  7895. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7896. * @param {*} [options] Override http request option.
  7897. * @throws {RequiredError}
  7898. */
  7899. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7900. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7901. },
  7902. /**
  7903. *
  7904. * @param {*} [options] Override http request option.
  7905. * @throws {RequiredError}
  7906. */
  7907. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7908. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7909. },
  7910. /**
  7911. *
  7912. * @param {*} [options] Override http request option.
  7913. * @throws {RequiredError}
  7914. */
  7915. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7916. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7917. },
  7918. /**
  7919. *
  7920. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7921. * @param {*} [options] Override http request option.
  7922. * @throws {RequiredError}
  7923. */
  7924. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7925. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7926. },
  7927. /**
  7928. *
  7929. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7930. * @param {*} [options] Override http request option.
  7931. * @throws {RequiredError}
  7932. */
  7933. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7934. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7935. },
  7936. /**
  7937. *
  7938. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7939. * @param {*} [options] Override http request option.
  7940. * @throws {RequiredError}
  7941. */
  7942. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7943. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7944. },
  7945. /**
  7946. *
  7947. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7948. * @param {*} [options] Override http request option.
  7949. * @throws {RequiredError}
  7950. */
  7951. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7952. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7953. },
  7954. /**
  7955. *
  7956. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  7957. * @param {*} [options] Override http request option.
  7958. * @throws {RequiredError}
  7959. */
  7960. getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7961. return localVarFp.getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(axios, basePath));
  7962. },
  7963. /**
  7964. *
  7965. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7966. * @param {*} [options] Override http request option.
  7967. * @throws {RequiredError}
  7968. */
  7969. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7970. return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(axios, basePath));
  7971. },
  7972. /**
  7973. * Get all asset of a device that are in the database, ID only.
  7974. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7975. * @param {*} [options] Override http request option.
  7976. * @throws {RequiredError}
  7977. */
  7978. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7979. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7980. },
  7981. /**
  7982. *
  7983. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7984. * @param {*} [options] Override http request option.
  7985. * @throws {RequiredError}
  7986. */
  7987. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7988. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7989. },
  7990. /**
  7991. *
  7992. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7993. * @param {*} [options] Override http request option.
  7994. * @throws {RequiredError}
  7995. */
  7996. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7997. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7998. },
  7999. /**
  8000. *
  8001. * @param {*} [options] Override http request option.
  8002. * @throws {RequiredError}
  8003. */
  8004. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  8005. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  8006. },
  8007. /**
  8008. *
  8009. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8010. * @param {*} [options] Override http request option.
  8011. * @throws {RequiredError}
  8012. */
  8013. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8014. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  8015. },
  8016. /**
  8017. *
  8018. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8019. * @param {*} [options] Override http request option.
  8020. * @throws {RequiredError}
  8021. */
  8022. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8023. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  8024. },
  8025. /**
  8026. *
  8027. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8028. * @param {*} [options] Override http request option.
  8029. * @throws {RequiredError}
  8030. */
  8031. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  8032. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  8033. },
  8034. /**
  8035. *
  8036. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8037. * @param {*} [options] Override http request option.
  8038. * @throws {RequiredError}
  8039. */
  8040. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  8041. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  8042. },
  8043. /**
  8044. *
  8045. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8046. * @param {*} [options] Override http request option.
  8047. * @throws {RequiredError}
  8048. */
  8049. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8050. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  8051. },
  8052. /**
  8053. *
  8054. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8055. * @param {*} [options] Override http request option.
  8056. * @throws {RequiredError}
  8057. */
  8058. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8059. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  8060. },
  8061. /**
  8062. *
  8063. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8064. * @param {*} [options] Override http request option.
  8065. * @throws {RequiredError}
  8066. */
  8067. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  8068. return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
  8069. },
  8070. };
  8071. };
  8072. /**
  8073. * Request parameters for checkBulkUpload operation in AssetApi.
  8074. * @export
  8075. * @interface AssetApiCheckBulkUploadRequest
  8076. */
  8077. export interface AssetApiCheckBulkUploadRequest {
  8078. /**
  8079. *
  8080. * @type {AssetBulkUploadCheckDto}
  8081. * @memberof AssetApiCheckBulkUpload
  8082. */
  8083. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  8084. }
  8085. /**
  8086. * Request parameters for checkExistingAssets operation in AssetApi.
  8087. * @export
  8088. * @interface AssetApiCheckExistingAssetsRequest
  8089. */
  8090. export interface AssetApiCheckExistingAssetsRequest {
  8091. /**
  8092. *
  8093. * @type {CheckExistingAssetsDto}
  8094. * @memberof AssetApiCheckExistingAssets
  8095. */
  8096. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  8097. }
  8098. /**
  8099. * Request parameters for deleteAssets operation in AssetApi.
  8100. * @export
  8101. * @interface AssetApiDeleteAssetsRequest
  8102. */
  8103. export interface AssetApiDeleteAssetsRequest {
  8104. /**
  8105. *
  8106. * @type {AssetBulkDeleteDto}
  8107. * @memberof AssetApiDeleteAssets
  8108. */
  8109. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  8110. }
  8111. /**
  8112. * Request parameters for downloadArchive operation in AssetApi.
  8113. * @export
  8114. * @interface AssetApiDownloadArchiveRequest
  8115. */
  8116. export interface AssetApiDownloadArchiveRequest {
  8117. /**
  8118. *
  8119. * @type {AssetIdsDto}
  8120. * @memberof AssetApiDownloadArchive
  8121. */
  8122. readonly assetIdsDto: AssetIdsDto
  8123. /**
  8124. *
  8125. * @type {string}
  8126. * @memberof AssetApiDownloadArchive
  8127. */
  8128. readonly key?: string
  8129. }
  8130. /**
  8131. * Request parameters for downloadFile operation in AssetApi.
  8132. * @export
  8133. * @interface AssetApiDownloadFileRequest
  8134. */
  8135. export interface AssetApiDownloadFileRequest {
  8136. /**
  8137. *
  8138. * @type {string}
  8139. * @memberof AssetApiDownloadFile
  8140. */
  8141. readonly id: string
  8142. /**
  8143. *
  8144. * @type {string}
  8145. * @memberof AssetApiDownloadFile
  8146. */
  8147. readonly key?: string
  8148. }
  8149. /**
  8150. * Request parameters for getAllAssets operation in AssetApi.
  8151. * @export
  8152. * @interface AssetApiGetAllAssetsRequest
  8153. */
  8154. export interface AssetApiGetAllAssetsRequest {
  8155. /**
  8156. *
  8157. * @type {number}
  8158. * @memberof AssetApiGetAllAssets
  8159. */
  8160. readonly skip?: number
  8161. /**
  8162. *
  8163. * @type {number}
  8164. * @memberof AssetApiGetAllAssets
  8165. */
  8166. readonly take?: number
  8167. /**
  8168. *
  8169. * @type {string}
  8170. * @memberof AssetApiGetAllAssets
  8171. */
  8172. readonly userId?: string
  8173. /**
  8174. *
  8175. * @type {boolean}
  8176. * @memberof AssetApiGetAllAssets
  8177. */
  8178. readonly isFavorite?: boolean
  8179. /**
  8180. *
  8181. * @type {boolean}
  8182. * @memberof AssetApiGetAllAssets
  8183. */
  8184. readonly isArchived?: boolean
  8185. /**
  8186. *
  8187. * @type {string}
  8188. * @memberof AssetApiGetAllAssets
  8189. */
  8190. readonly updatedAfter?: string
  8191. /**
  8192. *
  8193. * @type {string}
  8194. * @memberof AssetApiGetAllAssets
  8195. */
  8196. readonly updatedBefore?: string
  8197. /**
  8198. * ETag of data already cached on the client
  8199. * @type {string}
  8200. * @memberof AssetApiGetAllAssets
  8201. */
  8202. readonly ifNoneMatch?: string
  8203. }
  8204. /**
  8205. * Request parameters for getAssetById operation in AssetApi.
  8206. * @export
  8207. * @interface AssetApiGetAssetByIdRequest
  8208. */
  8209. export interface AssetApiGetAssetByIdRequest {
  8210. /**
  8211. *
  8212. * @type {string}
  8213. * @memberof AssetApiGetAssetById
  8214. */
  8215. readonly id: string
  8216. /**
  8217. *
  8218. * @type {string}
  8219. * @memberof AssetApiGetAssetById
  8220. */
  8221. readonly key?: string
  8222. }
  8223. /**
  8224. * Request parameters for getAssetStatistics operation in AssetApi.
  8225. * @export
  8226. * @interface AssetApiGetAssetStatisticsRequest
  8227. */
  8228. export interface AssetApiGetAssetStatisticsRequest {
  8229. /**
  8230. *
  8231. * @type {boolean}
  8232. * @memberof AssetApiGetAssetStatistics
  8233. */
  8234. readonly isArchived?: boolean
  8235. /**
  8236. *
  8237. * @type {boolean}
  8238. * @memberof AssetApiGetAssetStatistics
  8239. */
  8240. readonly isFavorite?: boolean
  8241. /**
  8242. *
  8243. * @type {boolean}
  8244. * @memberof AssetApiGetAssetStatistics
  8245. */
  8246. readonly isTrashed?: boolean
  8247. }
  8248. /**
  8249. * Request parameters for getAssetThumbnail operation in AssetApi.
  8250. * @export
  8251. * @interface AssetApiGetAssetThumbnailRequest
  8252. */
  8253. export interface AssetApiGetAssetThumbnailRequest {
  8254. /**
  8255. *
  8256. * @type {string}
  8257. * @memberof AssetApiGetAssetThumbnail
  8258. */
  8259. readonly id: string
  8260. /**
  8261. *
  8262. * @type {ThumbnailFormat}
  8263. * @memberof AssetApiGetAssetThumbnail
  8264. */
  8265. readonly format?: ThumbnailFormat
  8266. /**
  8267. *
  8268. * @type {string}
  8269. * @memberof AssetApiGetAssetThumbnail
  8270. */
  8271. readonly key?: string
  8272. }
  8273. /**
  8274. * Request parameters for getDownloadInfo operation in AssetApi.
  8275. * @export
  8276. * @interface AssetApiGetDownloadInfoRequest
  8277. */
  8278. export interface AssetApiGetDownloadInfoRequest {
  8279. /**
  8280. *
  8281. * @type {DownloadInfoDto}
  8282. * @memberof AssetApiGetDownloadInfo
  8283. */
  8284. readonly downloadInfoDto: DownloadInfoDto
  8285. /**
  8286. *
  8287. * @type {string}
  8288. * @memberof AssetApiGetDownloadInfo
  8289. */
  8290. readonly key?: string
  8291. }
  8292. /**
  8293. * Request parameters for getMapMarkers operation in AssetApi.
  8294. * @export
  8295. * @interface AssetApiGetMapMarkersRequest
  8296. */
  8297. export interface AssetApiGetMapMarkersRequest {
  8298. /**
  8299. *
  8300. * @type {boolean}
  8301. * @memberof AssetApiGetMapMarkers
  8302. */
  8303. readonly isArchived?: boolean
  8304. /**
  8305. *
  8306. * @type {boolean}
  8307. * @memberof AssetApiGetMapMarkers
  8308. */
  8309. readonly isFavorite?: boolean
  8310. /**
  8311. *
  8312. * @type {string}
  8313. * @memberof AssetApiGetMapMarkers
  8314. */
  8315. readonly fileCreatedAfter?: string
  8316. /**
  8317. *
  8318. * @type {string}
  8319. * @memberof AssetApiGetMapMarkers
  8320. */
  8321. readonly fileCreatedBefore?: string
  8322. }
  8323. /**
  8324. * Request parameters for getMemoryLane operation in AssetApi.
  8325. * @export
  8326. * @interface AssetApiGetMemoryLaneRequest
  8327. */
  8328. export interface AssetApiGetMemoryLaneRequest {
  8329. /**
  8330. *
  8331. * @type {number}
  8332. * @memberof AssetApiGetMemoryLane
  8333. */
  8334. readonly day: number
  8335. /**
  8336. *
  8337. * @type {number}
  8338. * @memberof AssetApiGetMemoryLane
  8339. */
  8340. readonly month: number
  8341. }
  8342. /**
  8343. * Request parameters for getRandom operation in AssetApi.
  8344. * @export
  8345. * @interface AssetApiGetRandomRequest
  8346. */
  8347. export interface AssetApiGetRandomRequest {
  8348. /**
  8349. *
  8350. * @type {number}
  8351. * @memberof AssetApiGetRandom
  8352. */
  8353. readonly count?: number
  8354. }
  8355. /**
  8356. * Request parameters for getTimeBucket operation in AssetApi.
  8357. * @export
  8358. * @interface AssetApiGetTimeBucketRequest
  8359. */
  8360. export interface AssetApiGetTimeBucketRequest {
  8361. /**
  8362. *
  8363. * @type {TimeBucketSize}
  8364. * @memberof AssetApiGetTimeBucket
  8365. */
  8366. readonly size: TimeBucketSize
  8367. /**
  8368. *
  8369. * @type {string}
  8370. * @memberof AssetApiGetTimeBucket
  8371. */
  8372. readonly timeBucket: string
  8373. /**
  8374. *
  8375. * @type {string}
  8376. * @memberof AssetApiGetTimeBucket
  8377. */
  8378. readonly userId?: string
  8379. /**
  8380. *
  8381. * @type {string}
  8382. * @memberof AssetApiGetTimeBucket
  8383. */
  8384. readonly albumId?: string
  8385. /**
  8386. *
  8387. * @type {string}
  8388. * @memberof AssetApiGetTimeBucket
  8389. */
  8390. readonly personId?: string
  8391. /**
  8392. *
  8393. * @type {boolean}
  8394. * @memberof AssetApiGetTimeBucket
  8395. */
  8396. readonly isArchived?: boolean
  8397. /**
  8398. *
  8399. * @type {boolean}
  8400. * @memberof AssetApiGetTimeBucket
  8401. */
  8402. readonly isFavorite?: boolean
  8403. /**
  8404. *
  8405. * @type {boolean}
  8406. * @memberof AssetApiGetTimeBucket
  8407. */
  8408. readonly isTrashed?: boolean
  8409. /**
  8410. *
  8411. * @type {boolean}
  8412. * @memberof AssetApiGetTimeBucket
  8413. */
  8414. readonly withStacked?: boolean
  8415. /**
  8416. *
  8417. * @type {boolean}
  8418. * @memberof AssetApiGetTimeBucket
  8419. */
  8420. readonly withPartners?: boolean
  8421. /**
  8422. *
  8423. * @type {string}
  8424. * @memberof AssetApiGetTimeBucket
  8425. */
  8426. readonly key?: string
  8427. }
  8428. /**
  8429. * Request parameters for getTimeBuckets operation in AssetApi.
  8430. * @export
  8431. * @interface AssetApiGetTimeBucketsRequest
  8432. */
  8433. export interface AssetApiGetTimeBucketsRequest {
  8434. /**
  8435. *
  8436. * @type {TimeBucketSize}
  8437. * @memberof AssetApiGetTimeBuckets
  8438. */
  8439. readonly size: TimeBucketSize
  8440. /**
  8441. *
  8442. * @type {string}
  8443. * @memberof AssetApiGetTimeBuckets
  8444. */
  8445. readonly userId?: string
  8446. /**
  8447. *
  8448. * @type {string}
  8449. * @memberof AssetApiGetTimeBuckets
  8450. */
  8451. readonly albumId?: string
  8452. /**
  8453. *
  8454. * @type {string}
  8455. * @memberof AssetApiGetTimeBuckets
  8456. */
  8457. readonly personId?: string
  8458. /**
  8459. *
  8460. * @type {boolean}
  8461. * @memberof AssetApiGetTimeBuckets
  8462. */
  8463. readonly isArchived?: boolean
  8464. /**
  8465. *
  8466. * @type {boolean}
  8467. * @memberof AssetApiGetTimeBuckets
  8468. */
  8469. readonly isFavorite?: boolean
  8470. /**
  8471. *
  8472. * @type {boolean}
  8473. * @memberof AssetApiGetTimeBuckets
  8474. */
  8475. readonly isTrashed?: boolean
  8476. /**
  8477. *
  8478. * @type {boolean}
  8479. * @memberof AssetApiGetTimeBuckets
  8480. */
  8481. readonly withStacked?: boolean
  8482. /**
  8483. *
  8484. * @type {boolean}
  8485. * @memberof AssetApiGetTimeBuckets
  8486. */
  8487. readonly withPartners?: boolean
  8488. /**
  8489. *
  8490. * @type {string}
  8491. * @memberof AssetApiGetTimeBuckets
  8492. */
  8493. readonly key?: string
  8494. }
  8495. /**
  8496. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  8497. * @export
  8498. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  8499. */
  8500. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  8501. /**
  8502. *
  8503. * @type {string}
  8504. * @memberof AssetApiGetUserAssetsByDeviceId
  8505. */
  8506. readonly deviceId: string
  8507. }
  8508. /**
  8509. * Request parameters for importFile operation in AssetApi.
  8510. * @export
  8511. * @interface AssetApiImportFileRequest
  8512. */
  8513. export interface AssetApiImportFileRequest {
  8514. /**
  8515. *
  8516. * @type {ImportAssetDto}
  8517. * @memberof AssetApiImportFile
  8518. */
  8519. readonly importAssetDto: ImportAssetDto
  8520. }
  8521. /**
  8522. * Request parameters for restoreAssets operation in AssetApi.
  8523. * @export
  8524. * @interface AssetApiRestoreAssetsRequest
  8525. */
  8526. export interface AssetApiRestoreAssetsRequest {
  8527. /**
  8528. *
  8529. * @type {BulkIdsDto}
  8530. * @memberof AssetApiRestoreAssets
  8531. */
  8532. readonly bulkIdsDto: BulkIdsDto
  8533. }
  8534. /**
  8535. * Request parameters for runAssetJobs operation in AssetApi.
  8536. * @export
  8537. * @interface AssetApiRunAssetJobsRequest
  8538. */
  8539. export interface AssetApiRunAssetJobsRequest {
  8540. /**
  8541. *
  8542. * @type {AssetJobsDto}
  8543. * @memberof AssetApiRunAssetJobs
  8544. */
  8545. readonly assetJobsDto: AssetJobsDto
  8546. }
  8547. /**
  8548. * Request parameters for searchAsset operation in AssetApi.
  8549. * @export
  8550. * @interface AssetApiSearchAssetRequest
  8551. */
  8552. export interface AssetApiSearchAssetRequest {
  8553. /**
  8554. *
  8555. * @type {SearchAssetDto}
  8556. * @memberof AssetApiSearchAsset
  8557. */
  8558. readonly searchAssetDto: SearchAssetDto
  8559. }
  8560. /**
  8561. * Request parameters for serveFile operation in AssetApi.
  8562. * @export
  8563. * @interface AssetApiServeFileRequest
  8564. */
  8565. export interface AssetApiServeFileRequest {
  8566. /**
  8567. *
  8568. * @type {string}
  8569. * @memberof AssetApiServeFile
  8570. */
  8571. readonly id: string
  8572. /**
  8573. *
  8574. * @type {boolean}
  8575. * @memberof AssetApiServeFile
  8576. */
  8577. readonly isThumb?: boolean
  8578. /**
  8579. *
  8580. * @type {boolean}
  8581. * @memberof AssetApiServeFile
  8582. */
  8583. readonly isWeb?: boolean
  8584. /**
  8585. *
  8586. * @type {string}
  8587. * @memberof AssetApiServeFile
  8588. */
  8589. readonly key?: string
  8590. }
  8591. /**
  8592. * Request parameters for updateAsset operation in AssetApi.
  8593. * @export
  8594. * @interface AssetApiUpdateAssetRequest
  8595. */
  8596. export interface AssetApiUpdateAssetRequest {
  8597. /**
  8598. *
  8599. * @type {string}
  8600. * @memberof AssetApiUpdateAsset
  8601. */
  8602. readonly id: string
  8603. /**
  8604. *
  8605. * @type {UpdateAssetDto}
  8606. * @memberof AssetApiUpdateAsset
  8607. */
  8608. readonly updateAssetDto: UpdateAssetDto
  8609. }
  8610. /**
  8611. * Request parameters for updateAssets operation in AssetApi.
  8612. * @export
  8613. * @interface AssetApiUpdateAssetsRequest
  8614. */
  8615. export interface AssetApiUpdateAssetsRequest {
  8616. /**
  8617. *
  8618. * @type {AssetBulkUpdateDto}
  8619. * @memberof AssetApiUpdateAssets
  8620. */
  8621. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  8622. }
  8623. /**
  8624. * Request parameters for updateStackParent operation in AssetApi.
  8625. * @export
  8626. * @interface AssetApiUpdateStackParentRequest
  8627. */
  8628. export interface AssetApiUpdateStackParentRequest {
  8629. /**
  8630. *
  8631. * @type {UpdateStackParentDto}
  8632. * @memberof AssetApiUpdateStackParent
  8633. */
  8634. readonly updateStackParentDto: UpdateStackParentDto
  8635. }
  8636. /**
  8637. * Request parameters for uploadFile operation in AssetApi.
  8638. * @export
  8639. * @interface AssetApiUploadFileRequest
  8640. */
  8641. export interface AssetApiUploadFileRequest {
  8642. /**
  8643. *
  8644. * @type {File}
  8645. * @memberof AssetApiUploadFile
  8646. */
  8647. readonly assetData: File
  8648. /**
  8649. *
  8650. * @type {string}
  8651. * @memberof AssetApiUploadFile
  8652. */
  8653. readonly deviceAssetId: string
  8654. /**
  8655. *
  8656. * @type {string}
  8657. * @memberof AssetApiUploadFile
  8658. */
  8659. readonly deviceId: string
  8660. /**
  8661. *
  8662. * @type {string}
  8663. * @memberof AssetApiUploadFile
  8664. */
  8665. readonly fileCreatedAt: string
  8666. /**
  8667. *
  8668. * @type {string}
  8669. * @memberof AssetApiUploadFile
  8670. */
  8671. readonly fileModifiedAt: string
  8672. /**
  8673. *
  8674. * @type {string}
  8675. * @memberof AssetApiUploadFile
  8676. */
  8677. readonly key?: string
  8678. /**
  8679. *
  8680. * @type {string}
  8681. * @memberof AssetApiUploadFile
  8682. */
  8683. readonly duration?: string
  8684. /**
  8685. *
  8686. * @type {boolean}
  8687. * @memberof AssetApiUploadFile
  8688. */
  8689. readonly isArchived?: boolean
  8690. /**
  8691. *
  8692. * @type {boolean}
  8693. * @memberof AssetApiUploadFile
  8694. */
  8695. readonly isExternal?: boolean
  8696. /**
  8697. *
  8698. * @type {boolean}
  8699. * @memberof AssetApiUploadFile
  8700. */
  8701. readonly isFavorite?: boolean
  8702. /**
  8703. *
  8704. * @type {boolean}
  8705. * @memberof AssetApiUploadFile
  8706. */
  8707. readonly isOffline?: boolean
  8708. /**
  8709. *
  8710. * @type {boolean}
  8711. * @memberof AssetApiUploadFile
  8712. */
  8713. readonly isReadOnly?: boolean
  8714. /**
  8715. *
  8716. * @type {boolean}
  8717. * @memberof AssetApiUploadFile
  8718. */
  8719. readonly isVisible?: boolean
  8720. /**
  8721. *
  8722. * @type {string}
  8723. * @memberof AssetApiUploadFile
  8724. */
  8725. readonly libraryId?: string
  8726. /**
  8727. *
  8728. * @type {File}
  8729. * @memberof AssetApiUploadFile
  8730. */
  8731. readonly livePhotoData?: File
  8732. /**
  8733. *
  8734. * @type {File}
  8735. * @memberof AssetApiUploadFile
  8736. */
  8737. readonly sidecarData?: File
  8738. }
  8739. /**
  8740. * AssetApi - object-oriented interface
  8741. * @export
  8742. * @class AssetApi
  8743. * @extends {BaseAPI}
  8744. */
  8745. export class AssetApi extends BaseAPI {
  8746. /**
  8747. * Checks if assets exist by checksums
  8748. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  8749. * @param {*} [options] Override http request option.
  8750. * @throws {RequiredError}
  8751. * @memberof AssetApi
  8752. */
  8753. public checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig) {
  8754. return AssetApiFp(this.configuration).checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  8755. }
  8756. /**
  8757. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  8758. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  8759. * @param {*} [options] Override http request option.
  8760. * @throws {RequiredError}
  8761. * @memberof AssetApi
  8762. */
  8763. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  8764. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  8765. }
  8766. /**
  8767. *
  8768. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  8769. * @param {*} [options] Override http request option.
  8770. * @throws {RequiredError}
  8771. * @memberof AssetApi
  8772. */
  8773. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  8774. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  8775. }
  8776. /**
  8777. *
  8778. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  8779. * @param {*} [options] Override http request option.
  8780. * @throws {RequiredError}
  8781. * @memberof AssetApi
  8782. */
  8783. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  8784. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8785. }
  8786. /**
  8787. *
  8788. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  8789. * @param {*} [options] Override http request option.
  8790. * @throws {RequiredError}
  8791. * @memberof AssetApi
  8792. */
  8793. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  8794. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8795. }
  8796. /**
  8797. *
  8798. * @param {*} [options] Override http request option.
  8799. * @throws {RequiredError}
  8800. * @memberof AssetApi
  8801. */
  8802. public emptyTrash(options?: AxiosRequestConfig) {
  8803. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  8804. }
  8805. /**
  8806. * Get all AssetEntity belong to the user
  8807. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  8808. * @param {*} [options] Override http request option.
  8809. * @throws {RequiredError}
  8810. * @memberof AssetApi
  8811. */
  8812. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  8813. return AssetApiFp(this.configuration).getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  8814. }
  8815. /**
  8816. * Get a single asset\'s information
  8817. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8818. * @param {*} [options] Override http request option.
  8819. * @throws {RequiredError}
  8820. * @memberof AssetApi
  8821. */
  8822. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  8823. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8824. }
  8825. /**
  8826. *
  8827. * @param {*} [options] Override http request option.
  8828. * @throws {RequiredError}
  8829. * @memberof AssetApi
  8830. */
  8831. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  8832. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  8833. }
  8834. /**
  8835. *
  8836. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  8837. * @param {*} [options] Override http request option.
  8838. * @throws {RequiredError}
  8839. * @memberof AssetApi
  8840. */
  8841. public getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig) {
  8842. return AssetApiFp(this.configuration).getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  8843. }
  8844. /**
  8845. *
  8846. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8847. * @param {*} [options] Override http request option.
  8848. * @throws {RequiredError}
  8849. * @memberof AssetApi
  8850. */
  8851. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  8852. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8853. }
  8854. /**
  8855. *
  8856. * @param {*} [options] Override http request option.
  8857. * @throws {RequiredError}
  8858. * @memberof AssetApi
  8859. */
  8860. public getCuratedLocations(options?: AxiosRequestConfig) {
  8861. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  8862. }
  8863. /**
  8864. *
  8865. * @param {*} [options] Override http request option.
  8866. * @throws {RequiredError}
  8867. * @memberof AssetApi
  8868. */
  8869. public getCuratedObjects(options?: AxiosRequestConfig) {
  8870. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  8871. }
  8872. /**
  8873. *
  8874. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8875. * @param {*} [options] Override http request option.
  8876. * @throws {RequiredError}
  8877. * @memberof AssetApi
  8878. */
  8879. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  8880. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8881. }
  8882. /**
  8883. *
  8884. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8885. * @param {*} [options] Override http request option.
  8886. * @throws {RequiredError}
  8887. * @memberof AssetApi
  8888. */
  8889. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  8890. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  8891. }
  8892. /**
  8893. *
  8894. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8895. * @param {*} [options] Override http request option.
  8896. * @throws {RequiredError}
  8897. * @memberof AssetApi
  8898. */
  8899. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  8900. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  8901. }
  8902. /**
  8903. *
  8904. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8905. * @param {*} [options] Override http request option.
  8906. * @throws {RequiredError}
  8907. * @memberof AssetApi
  8908. */
  8909. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  8910. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  8911. }
  8912. /**
  8913. *
  8914. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  8915. * @param {*} [options] Override http request option.
  8916. * @throws {RequiredError}
  8917. * @memberof AssetApi
  8918. */
  8919. public getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig) {
  8920. return AssetApiFp(this.configuration).getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8921. }
  8922. /**
  8923. *
  8924. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8925. * @param {*} [options] Override http request option.
  8926. * @throws {RequiredError}
  8927. * @memberof AssetApi
  8928. */
  8929. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  8930. return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8931. }
  8932. /**
  8933. * Get all asset of a device that are in the database, ID only.
  8934. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8935. * @param {*} [options] Override http request option.
  8936. * @throws {RequiredError}
  8937. * @memberof AssetApi
  8938. */
  8939. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  8940. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  8941. }
  8942. /**
  8943. *
  8944. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  8945. * @param {*} [options] Override http request option.
  8946. * @throws {RequiredError}
  8947. * @memberof AssetApi
  8948. */
  8949. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  8950. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8951. }
  8952. /**
  8953. *
  8954. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8955. * @param {*} [options] Override http request option.
  8956. * @throws {RequiredError}
  8957. * @memberof AssetApi
  8958. */
  8959. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8960. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8961. }
  8962. /**
  8963. *
  8964. * @param {*} [options] Override http request option.
  8965. * @throws {RequiredError}
  8966. * @memberof AssetApi
  8967. */
  8968. public restoreTrash(options?: AxiosRequestConfig) {
  8969. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8970. }
  8971. /**
  8972. *
  8973. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8974. * @param {*} [options] Override http request option.
  8975. * @throws {RequiredError}
  8976. * @memberof AssetApi
  8977. */
  8978. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8979. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8980. }
  8981. /**
  8982. *
  8983. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8984. * @param {*} [options] Override http request option.
  8985. * @throws {RequiredError}
  8986. * @memberof AssetApi
  8987. */
  8988. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8989. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8990. }
  8991. /**
  8992. *
  8993. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8994. * @param {*} [options] Override http request option.
  8995. * @throws {RequiredError}
  8996. * @memberof AssetApi
  8997. */
  8998. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8999. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9000. }
  9001. /**
  9002. *
  9003. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  9004. * @param {*} [options] Override http request option.
  9005. * @throws {RequiredError}
  9006. * @memberof AssetApi
  9007. */
  9008. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  9009. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  9010. }
  9011. /**
  9012. *
  9013. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  9014. * @param {*} [options] Override http request option.
  9015. * @throws {RequiredError}
  9016. * @memberof AssetApi
  9017. */
  9018. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  9019. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  9020. }
  9021. /**
  9022. *
  9023. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  9024. * @param {*} [options] Override http request option.
  9025. * @throws {RequiredError}
  9026. * @memberof AssetApi
  9027. */
  9028. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  9029. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  9030. }
  9031. /**
  9032. *
  9033. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  9034. * @param {*} [options] Override http request option.
  9035. * @throws {RequiredError}
  9036. * @memberof AssetApi
  9037. */
  9038. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  9039. return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
  9040. }
  9041. }
  9042. /**
  9043. * AuditApi - axios parameter creator
  9044. * @export
  9045. */
  9046. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  9047. return {
  9048. /**
  9049. *
  9050. * @param {FileReportFixDto} fileReportFixDto
  9051. * @param {*} [options] Override http request option.
  9052. * @throws {RequiredError}
  9053. */
  9054. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9055. // verify required parameter 'fileReportFixDto' is not null or undefined
  9056. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  9057. const localVarPath = `/audit/file-report/fix`;
  9058. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9059. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9060. let baseOptions;
  9061. if (configuration) {
  9062. baseOptions = configuration.baseOptions;
  9063. }
  9064. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9065. const localVarHeaderParameter = {} as any;
  9066. const localVarQueryParameter = {} as any;
  9067. // authentication cookie required
  9068. // authentication api_key required
  9069. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9070. // authentication bearer required
  9071. // http bearer authentication required
  9072. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9073. localVarHeaderParameter['Content-Type'] = 'application/json';
  9074. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9075. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9076. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9077. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  9078. return {
  9079. url: toPathString(localVarUrlObj),
  9080. options: localVarRequestOptions,
  9081. };
  9082. },
  9083. /**
  9084. *
  9085. * @param {EntityType} entityType
  9086. * @param {string} after
  9087. * @param {string} [userId]
  9088. * @param {*} [options] Override http request option.
  9089. * @throws {RequiredError}
  9090. */
  9091. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9092. // verify required parameter 'entityType' is not null or undefined
  9093. assertParamExists('getAuditDeletes', 'entityType', entityType)
  9094. // verify required parameter 'after' is not null or undefined
  9095. assertParamExists('getAuditDeletes', 'after', after)
  9096. const localVarPath = `/audit/deletes`;
  9097. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9098. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9099. let baseOptions;
  9100. if (configuration) {
  9101. baseOptions = configuration.baseOptions;
  9102. }
  9103. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9104. const localVarHeaderParameter = {} as any;
  9105. const localVarQueryParameter = {} as any;
  9106. // authentication cookie required
  9107. // authentication api_key required
  9108. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9109. // authentication bearer required
  9110. // http bearer authentication required
  9111. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9112. if (entityType !== undefined) {
  9113. localVarQueryParameter['entityType'] = entityType;
  9114. }
  9115. if (userId !== undefined) {
  9116. localVarQueryParameter['userId'] = userId;
  9117. }
  9118. if (after !== undefined) {
  9119. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  9120. (after as any).toISOString() :
  9121. after;
  9122. }
  9123. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9124. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9125. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9126. return {
  9127. url: toPathString(localVarUrlObj),
  9128. options: localVarRequestOptions,
  9129. };
  9130. },
  9131. /**
  9132. *
  9133. * @param {*} [options] Override http request option.
  9134. * @throws {RequiredError}
  9135. */
  9136. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9137. const localVarPath = `/audit/file-report`;
  9138. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9139. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9140. let baseOptions;
  9141. if (configuration) {
  9142. baseOptions = configuration.baseOptions;
  9143. }
  9144. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9145. const localVarHeaderParameter = {} as any;
  9146. const localVarQueryParameter = {} as any;
  9147. // authentication cookie required
  9148. // authentication api_key required
  9149. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9150. // authentication bearer required
  9151. // http bearer authentication required
  9152. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9153. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9154. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9155. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9156. return {
  9157. url: toPathString(localVarUrlObj),
  9158. options: localVarRequestOptions,
  9159. };
  9160. },
  9161. /**
  9162. *
  9163. * @param {FileChecksumDto} fileChecksumDto
  9164. * @param {*} [options] Override http request option.
  9165. * @throws {RequiredError}
  9166. */
  9167. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9168. // verify required parameter 'fileChecksumDto' is not null or undefined
  9169. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  9170. const localVarPath = `/audit/file-report/checksum`;
  9171. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9172. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9173. let baseOptions;
  9174. if (configuration) {
  9175. baseOptions = configuration.baseOptions;
  9176. }
  9177. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9178. const localVarHeaderParameter = {} as any;
  9179. const localVarQueryParameter = {} as any;
  9180. // authentication cookie required
  9181. // authentication api_key required
  9182. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9183. // authentication bearer required
  9184. // http bearer authentication required
  9185. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9186. localVarHeaderParameter['Content-Type'] = 'application/json';
  9187. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9188. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9189. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9190. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  9191. return {
  9192. url: toPathString(localVarUrlObj),
  9193. options: localVarRequestOptions,
  9194. };
  9195. },
  9196. }
  9197. };
  9198. /**
  9199. * AuditApi - functional programming interface
  9200. * @export
  9201. */
  9202. export const AuditApiFp = function(configuration?: Configuration) {
  9203. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  9204. return {
  9205. /**
  9206. *
  9207. * @param {FileReportFixDto} fileReportFixDto
  9208. * @param {*} [options] Override http request option.
  9209. * @throws {RequiredError}
  9210. */
  9211. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9212. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  9213. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9214. },
  9215. /**
  9216. *
  9217. * @param {EntityType} entityType
  9218. * @param {string} after
  9219. * @param {string} [userId]
  9220. * @param {*} [options] Override http request option.
  9221. * @throws {RequiredError}
  9222. */
  9223. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  9224. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  9225. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9226. },
  9227. /**
  9228. *
  9229. * @param {*} [options] Override http request option.
  9230. * @throws {RequiredError}
  9231. */
  9232. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  9233. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  9234. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9235. },
  9236. /**
  9237. *
  9238. * @param {FileChecksumDto} fileChecksumDto
  9239. * @param {*} [options] Override http request option.
  9240. * @throws {RequiredError}
  9241. */
  9242. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  9243. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  9244. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9245. },
  9246. }
  9247. };
  9248. /**
  9249. * AuditApi - factory interface
  9250. * @export
  9251. */
  9252. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9253. const localVarFp = AuditApiFp(configuration)
  9254. return {
  9255. /**
  9256. *
  9257. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9258. * @param {*} [options] Override http request option.
  9259. * @throws {RequiredError}
  9260. */
  9261. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9262. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  9263. },
  9264. /**
  9265. *
  9266. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9267. * @param {*} [options] Override http request option.
  9268. * @throws {RequiredError}
  9269. */
  9270. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  9271. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  9272. },
  9273. /**
  9274. *
  9275. * @param {*} [options] Override http request option.
  9276. * @throws {RequiredError}
  9277. */
  9278. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  9279. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  9280. },
  9281. /**
  9282. *
  9283. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9284. * @param {*} [options] Override http request option.
  9285. * @throws {RequiredError}
  9286. */
  9287. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  9288. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  9289. },
  9290. };
  9291. };
  9292. /**
  9293. * Request parameters for fixAuditFiles operation in AuditApi.
  9294. * @export
  9295. * @interface AuditApiFixAuditFilesRequest
  9296. */
  9297. export interface AuditApiFixAuditFilesRequest {
  9298. /**
  9299. *
  9300. * @type {FileReportFixDto}
  9301. * @memberof AuditApiFixAuditFiles
  9302. */
  9303. readonly fileReportFixDto: FileReportFixDto
  9304. }
  9305. /**
  9306. * Request parameters for getAuditDeletes operation in AuditApi.
  9307. * @export
  9308. * @interface AuditApiGetAuditDeletesRequest
  9309. */
  9310. export interface AuditApiGetAuditDeletesRequest {
  9311. /**
  9312. *
  9313. * @type {EntityType}
  9314. * @memberof AuditApiGetAuditDeletes
  9315. */
  9316. readonly entityType: EntityType
  9317. /**
  9318. *
  9319. * @type {string}
  9320. * @memberof AuditApiGetAuditDeletes
  9321. */
  9322. readonly after: string
  9323. /**
  9324. *
  9325. * @type {string}
  9326. * @memberof AuditApiGetAuditDeletes
  9327. */
  9328. readonly userId?: string
  9329. }
  9330. /**
  9331. * Request parameters for getFileChecksums operation in AuditApi.
  9332. * @export
  9333. * @interface AuditApiGetFileChecksumsRequest
  9334. */
  9335. export interface AuditApiGetFileChecksumsRequest {
  9336. /**
  9337. *
  9338. * @type {FileChecksumDto}
  9339. * @memberof AuditApiGetFileChecksums
  9340. */
  9341. readonly fileChecksumDto: FileChecksumDto
  9342. }
  9343. /**
  9344. * AuditApi - object-oriented interface
  9345. * @export
  9346. * @class AuditApi
  9347. * @extends {BaseAPI}
  9348. */
  9349. export class AuditApi extends BaseAPI {
  9350. /**
  9351. *
  9352. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9353. * @param {*} [options] Override http request option.
  9354. * @throws {RequiredError}
  9355. * @memberof AuditApi
  9356. */
  9357. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  9358. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  9359. }
  9360. /**
  9361. *
  9362. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9363. * @param {*} [options] Override http request option.
  9364. * @throws {RequiredError}
  9365. * @memberof AuditApi
  9366. */
  9367. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  9368. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  9369. }
  9370. /**
  9371. *
  9372. * @param {*} [options] Override http request option.
  9373. * @throws {RequiredError}
  9374. * @memberof AuditApi
  9375. */
  9376. public getAuditFiles(options?: AxiosRequestConfig) {
  9377. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  9378. }
  9379. /**
  9380. *
  9381. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9382. * @param {*} [options] Override http request option.
  9383. * @throws {RequiredError}
  9384. * @memberof AuditApi
  9385. */
  9386. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  9387. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  9388. }
  9389. }
  9390. /**
  9391. * AuthenticationApi - axios parameter creator
  9392. * @export
  9393. */
  9394. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  9395. return {
  9396. /**
  9397. *
  9398. * @param {ChangePasswordDto} changePasswordDto
  9399. * @param {*} [options] Override http request option.
  9400. * @throws {RequiredError}
  9401. */
  9402. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9403. // verify required parameter 'changePasswordDto' is not null or undefined
  9404. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  9405. const localVarPath = `/auth/change-password`;
  9406. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9407. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9408. let baseOptions;
  9409. if (configuration) {
  9410. baseOptions = configuration.baseOptions;
  9411. }
  9412. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9413. const localVarHeaderParameter = {} as any;
  9414. const localVarQueryParameter = {} as any;
  9415. // authentication cookie required
  9416. // authentication api_key required
  9417. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9418. // authentication bearer required
  9419. // http bearer authentication required
  9420. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9421. localVarHeaderParameter['Content-Type'] = 'application/json';
  9422. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9423. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9424. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9425. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  9426. return {
  9427. url: toPathString(localVarUrlObj),
  9428. options: localVarRequestOptions,
  9429. };
  9430. },
  9431. /**
  9432. *
  9433. * @param {*} [options] Override http request option.
  9434. * @throws {RequiredError}
  9435. */
  9436. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9437. const localVarPath = `/auth/devices`;
  9438. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9439. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9440. let baseOptions;
  9441. if (configuration) {
  9442. baseOptions = configuration.baseOptions;
  9443. }
  9444. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9445. const localVarHeaderParameter = {} as any;
  9446. const localVarQueryParameter = {} as any;
  9447. // authentication cookie required
  9448. // authentication api_key required
  9449. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9450. // authentication bearer required
  9451. // http bearer authentication required
  9452. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9453. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9454. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9455. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9456. return {
  9457. url: toPathString(localVarUrlObj),
  9458. options: localVarRequestOptions,
  9459. };
  9460. },
  9461. /**
  9462. *
  9463. * @param {LoginCredentialDto} loginCredentialDto
  9464. * @param {*} [options] Override http request option.
  9465. * @throws {RequiredError}
  9466. */
  9467. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9468. // verify required parameter 'loginCredentialDto' is not null or undefined
  9469. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  9470. const localVarPath = `/auth/login`;
  9471. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9472. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9473. let baseOptions;
  9474. if (configuration) {
  9475. baseOptions = configuration.baseOptions;
  9476. }
  9477. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9478. const localVarHeaderParameter = {} as any;
  9479. const localVarQueryParameter = {} as any;
  9480. localVarHeaderParameter['Content-Type'] = 'application/json';
  9481. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9482. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9483. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9484. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  9485. return {
  9486. url: toPathString(localVarUrlObj),
  9487. options: localVarRequestOptions,
  9488. };
  9489. },
  9490. /**
  9491. *
  9492. * @param {*} [options] Override http request option.
  9493. * @throws {RequiredError}
  9494. */
  9495. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9496. const localVarPath = `/auth/logout`;
  9497. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9498. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9499. let baseOptions;
  9500. if (configuration) {
  9501. baseOptions = configuration.baseOptions;
  9502. }
  9503. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9504. const localVarHeaderParameter = {} as any;
  9505. const localVarQueryParameter = {} as any;
  9506. // authentication cookie required
  9507. // authentication api_key required
  9508. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9509. // authentication bearer required
  9510. // http bearer authentication required
  9511. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9512. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9513. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9514. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9515. return {
  9516. url: toPathString(localVarUrlObj),
  9517. options: localVarRequestOptions,
  9518. };
  9519. },
  9520. /**
  9521. *
  9522. * @param {string} id
  9523. * @param {*} [options] Override http request option.
  9524. * @throws {RequiredError}
  9525. */
  9526. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9527. // verify required parameter 'id' is not null or undefined
  9528. assertParamExists('logoutAuthDevice', 'id', id)
  9529. const localVarPath = `/auth/devices/{id}`
  9530. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9531. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9532. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9533. let baseOptions;
  9534. if (configuration) {
  9535. baseOptions = configuration.baseOptions;
  9536. }
  9537. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9538. const localVarHeaderParameter = {} as any;
  9539. const localVarQueryParameter = {} as any;
  9540. // authentication cookie required
  9541. // authentication api_key required
  9542. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9543. // authentication bearer required
  9544. // http bearer authentication required
  9545. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9546. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9547. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9548. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9549. return {
  9550. url: toPathString(localVarUrlObj),
  9551. options: localVarRequestOptions,
  9552. };
  9553. },
  9554. /**
  9555. *
  9556. * @param {*} [options] Override http request option.
  9557. * @throws {RequiredError}
  9558. */
  9559. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9560. const localVarPath = `/auth/devices`;
  9561. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9562. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9563. let baseOptions;
  9564. if (configuration) {
  9565. baseOptions = configuration.baseOptions;
  9566. }
  9567. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9568. const localVarHeaderParameter = {} as any;
  9569. const localVarQueryParameter = {} as any;
  9570. // authentication cookie required
  9571. // authentication api_key required
  9572. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9573. // authentication bearer required
  9574. // http bearer authentication required
  9575. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9576. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9577. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9578. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9579. return {
  9580. url: toPathString(localVarUrlObj),
  9581. options: localVarRequestOptions,
  9582. };
  9583. },
  9584. /**
  9585. *
  9586. * @param {SignUpDto} signUpDto
  9587. * @param {*} [options] Override http request option.
  9588. * @throws {RequiredError}
  9589. */
  9590. signUpAdmin: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9591. // verify required parameter 'signUpDto' is not null or undefined
  9592. assertParamExists('signUpAdmin', 'signUpDto', signUpDto)
  9593. const localVarPath = `/auth/admin-sign-up`;
  9594. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9595. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9596. let baseOptions;
  9597. if (configuration) {
  9598. baseOptions = configuration.baseOptions;
  9599. }
  9600. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9601. const localVarHeaderParameter = {} as any;
  9602. const localVarQueryParameter = {} as any;
  9603. localVarHeaderParameter['Content-Type'] = 'application/json';
  9604. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9605. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9606. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9607. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  9608. return {
  9609. url: toPathString(localVarUrlObj),
  9610. options: localVarRequestOptions,
  9611. };
  9612. },
  9613. /**
  9614. *
  9615. * @param {*} [options] Override http request option.
  9616. * @throws {RequiredError}
  9617. */
  9618. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9619. const localVarPath = `/auth/validateToken`;
  9620. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9621. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9622. let baseOptions;
  9623. if (configuration) {
  9624. baseOptions = configuration.baseOptions;
  9625. }
  9626. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9627. const localVarHeaderParameter = {} as any;
  9628. const localVarQueryParameter = {} as any;
  9629. // authentication cookie required
  9630. // authentication api_key required
  9631. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9632. // authentication bearer required
  9633. // http bearer authentication required
  9634. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9635. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9636. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9637. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9638. return {
  9639. url: toPathString(localVarUrlObj),
  9640. options: localVarRequestOptions,
  9641. };
  9642. },
  9643. }
  9644. };
  9645. /**
  9646. * AuthenticationApi - functional programming interface
  9647. * @export
  9648. */
  9649. export const AuthenticationApiFp = function(configuration?: Configuration) {
  9650. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  9651. return {
  9652. /**
  9653. *
  9654. * @param {ChangePasswordDto} changePasswordDto
  9655. * @param {*} [options] Override http request option.
  9656. * @throws {RequiredError}
  9657. */
  9658. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9659. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  9660. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9661. },
  9662. /**
  9663. *
  9664. * @param {*} [options] Override http request option.
  9665. * @throws {RequiredError}
  9666. */
  9667. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  9668. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  9669. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9670. },
  9671. /**
  9672. *
  9673. * @param {LoginCredentialDto} loginCredentialDto
  9674. * @param {*} [options] Override http request option.
  9675. * @throws {RequiredError}
  9676. */
  9677. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  9678. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  9679. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9680. },
  9681. /**
  9682. *
  9683. * @param {*} [options] Override http request option.
  9684. * @throws {RequiredError}
  9685. */
  9686. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  9687. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  9688. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9689. },
  9690. /**
  9691. *
  9692. * @param {string} id
  9693. * @param {*} [options] Override http request option.
  9694. * @throws {RequiredError}
  9695. */
  9696. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9697. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  9698. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9699. },
  9700. /**
  9701. *
  9702. * @param {*} [options] Override http request option.
  9703. * @throws {RequiredError}
  9704. */
  9705. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9706. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  9707. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9708. },
  9709. /**
  9710. *
  9711. * @param {SignUpDto} signUpDto
  9712. * @param {*} [options] Override http request option.
  9713. * @throws {RequiredError}
  9714. */
  9715. async signUpAdmin(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9716. const localVarAxiosArgs = await localVarAxiosParamCreator.signUpAdmin(signUpDto, options);
  9717. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9718. },
  9719. /**
  9720. *
  9721. * @param {*} [options] Override http request option.
  9722. * @throws {RequiredError}
  9723. */
  9724. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  9725. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  9726. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9727. },
  9728. }
  9729. };
  9730. /**
  9731. * AuthenticationApi - factory interface
  9732. * @export
  9733. */
  9734. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9735. const localVarFp = AuthenticationApiFp(configuration)
  9736. return {
  9737. /**
  9738. *
  9739. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9740. * @param {*} [options] Override http request option.
  9741. * @throws {RequiredError}
  9742. */
  9743. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9744. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  9745. },
  9746. /**
  9747. *
  9748. * @param {*} [options] Override http request option.
  9749. * @throws {RequiredError}
  9750. */
  9751. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  9752. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  9753. },
  9754. /**
  9755. *
  9756. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9757. * @param {*} [options] Override http request option.
  9758. * @throws {RequiredError}
  9759. */
  9760. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9761. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  9762. },
  9763. /**
  9764. *
  9765. * @param {*} [options] Override http request option.
  9766. * @throws {RequiredError}
  9767. */
  9768. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  9769. return localVarFp.logout(options).then((request) => request(axios, basePath));
  9770. },
  9771. /**
  9772. *
  9773. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9774. * @param {*} [options] Override http request option.
  9775. * @throws {RequiredError}
  9776. */
  9777. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9778. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  9779. },
  9780. /**
  9781. *
  9782. * @param {*} [options] Override http request option.
  9783. * @throws {RequiredError}
  9784. */
  9785. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  9786. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  9787. },
  9788. /**
  9789. *
  9790. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  9791. * @param {*} [options] Override http request option.
  9792. * @throws {RequiredError}
  9793. */
  9794. signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9795. return localVarFp.signUpAdmin(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  9796. },
  9797. /**
  9798. *
  9799. * @param {*} [options] Override http request option.
  9800. * @throws {RequiredError}
  9801. */
  9802. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  9803. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  9804. },
  9805. };
  9806. };
  9807. /**
  9808. * Request parameters for changePassword operation in AuthenticationApi.
  9809. * @export
  9810. * @interface AuthenticationApiChangePasswordRequest
  9811. */
  9812. export interface AuthenticationApiChangePasswordRequest {
  9813. /**
  9814. *
  9815. * @type {ChangePasswordDto}
  9816. * @memberof AuthenticationApiChangePassword
  9817. */
  9818. readonly changePasswordDto: ChangePasswordDto
  9819. }
  9820. /**
  9821. * Request parameters for login operation in AuthenticationApi.
  9822. * @export
  9823. * @interface AuthenticationApiLoginRequest
  9824. */
  9825. export interface AuthenticationApiLoginRequest {
  9826. /**
  9827. *
  9828. * @type {LoginCredentialDto}
  9829. * @memberof AuthenticationApiLogin
  9830. */
  9831. readonly loginCredentialDto: LoginCredentialDto
  9832. }
  9833. /**
  9834. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  9835. * @export
  9836. * @interface AuthenticationApiLogoutAuthDeviceRequest
  9837. */
  9838. export interface AuthenticationApiLogoutAuthDeviceRequest {
  9839. /**
  9840. *
  9841. * @type {string}
  9842. * @memberof AuthenticationApiLogoutAuthDevice
  9843. */
  9844. readonly id: string
  9845. }
  9846. /**
  9847. * Request parameters for signUpAdmin operation in AuthenticationApi.
  9848. * @export
  9849. * @interface AuthenticationApiSignUpAdminRequest
  9850. */
  9851. export interface AuthenticationApiSignUpAdminRequest {
  9852. /**
  9853. *
  9854. * @type {SignUpDto}
  9855. * @memberof AuthenticationApiSignUpAdmin
  9856. */
  9857. readonly signUpDto: SignUpDto
  9858. }
  9859. /**
  9860. * AuthenticationApi - object-oriented interface
  9861. * @export
  9862. * @class AuthenticationApi
  9863. * @extends {BaseAPI}
  9864. */
  9865. export class AuthenticationApi extends BaseAPI {
  9866. /**
  9867. *
  9868. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9869. * @param {*} [options] Override http request option.
  9870. * @throws {RequiredError}
  9871. * @memberof AuthenticationApi
  9872. */
  9873. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  9874. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  9875. }
  9876. /**
  9877. *
  9878. * @param {*} [options] Override http request option.
  9879. * @throws {RequiredError}
  9880. * @memberof AuthenticationApi
  9881. */
  9882. public getAuthDevices(options?: AxiosRequestConfig) {
  9883. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9884. }
  9885. /**
  9886. *
  9887. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9888. * @param {*} [options] Override http request option.
  9889. * @throws {RequiredError}
  9890. * @memberof AuthenticationApi
  9891. */
  9892. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  9893. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  9894. }
  9895. /**
  9896. *
  9897. * @param {*} [options] Override http request option.
  9898. * @throws {RequiredError}
  9899. * @memberof AuthenticationApi
  9900. */
  9901. public logout(options?: AxiosRequestConfig) {
  9902. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  9903. }
  9904. /**
  9905. *
  9906. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9907. * @param {*} [options] Override http request option.
  9908. * @throws {RequiredError}
  9909. * @memberof AuthenticationApi
  9910. */
  9911. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  9912. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9913. }
  9914. /**
  9915. *
  9916. * @param {*} [options] Override http request option.
  9917. * @throws {RequiredError}
  9918. * @memberof AuthenticationApi
  9919. */
  9920. public logoutAuthDevices(options?: AxiosRequestConfig) {
  9921. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9922. }
  9923. /**
  9924. *
  9925. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  9926. * @param {*} [options] Override http request option.
  9927. * @throws {RequiredError}
  9928. * @memberof AuthenticationApi
  9929. */
  9930. public signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig) {
  9931. return AuthenticationApiFp(this.configuration).signUpAdmin(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  9932. }
  9933. /**
  9934. *
  9935. * @param {*} [options] Override http request option.
  9936. * @throws {RequiredError}
  9937. * @memberof AuthenticationApi
  9938. */
  9939. public validateAccessToken(options?: AxiosRequestConfig) {
  9940. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  9941. }
  9942. }
  9943. /**
  9944. * JobApi - axios parameter creator
  9945. * @export
  9946. */
  9947. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  9948. return {
  9949. /**
  9950. *
  9951. * @param {*} [options] Override http request option.
  9952. * @throws {RequiredError}
  9953. */
  9954. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9955. const localVarPath = `/jobs`;
  9956. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9957. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9958. let baseOptions;
  9959. if (configuration) {
  9960. baseOptions = configuration.baseOptions;
  9961. }
  9962. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9963. const localVarHeaderParameter = {} as any;
  9964. const localVarQueryParameter = {} as any;
  9965. // authentication cookie required
  9966. // authentication api_key required
  9967. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9968. // authentication bearer required
  9969. // http bearer authentication required
  9970. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9971. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9972. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9973. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9974. return {
  9975. url: toPathString(localVarUrlObj),
  9976. options: localVarRequestOptions,
  9977. };
  9978. },
  9979. /**
  9980. *
  9981. * @param {JobName} id
  9982. * @param {JobCommandDto} jobCommandDto
  9983. * @param {*} [options] Override http request option.
  9984. * @throws {RequiredError}
  9985. */
  9986. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9987. // verify required parameter 'id' is not null or undefined
  9988. assertParamExists('sendJobCommand', 'id', id)
  9989. // verify required parameter 'jobCommandDto' is not null or undefined
  9990. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  9991. const localVarPath = `/jobs/{id}`
  9992. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9993. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9994. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9995. let baseOptions;
  9996. if (configuration) {
  9997. baseOptions = configuration.baseOptions;
  9998. }
  9999. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10000. const localVarHeaderParameter = {} as any;
  10001. const localVarQueryParameter = {} as any;
  10002. // authentication cookie required
  10003. // authentication api_key required
  10004. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10005. // authentication bearer required
  10006. // http bearer authentication required
  10007. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10008. localVarHeaderParameter['Content-Type'] = 'application/json';
  10009. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10010. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10011. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10012. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  10013. return {
  10014. url: toPathString(localVarUrlObj),
  10015. options: localVarRequestOptions,
  10016. };
  10017. },
  10018. }
  10019. };
  10020. /**
  10021. * JobApi - functional programming interface
  10022. * @export
  10023. */
  10024. export const JobApiFp = function(configuration?: Configuration) {
  10025. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  10026. return {
  10027. /**
  10028. *
  10029. * @param {*} [options] Override http request option.
  10030. * @throws {RequiredError}
  10031. */
  10032. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  10033. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  10034. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10035. },
  10036. /**
  10037. *
  10038. * @param {JobName} id
  10039. * @param {JobCommandDto} jobCommandDto
  10040. * @param {*} [options] Override http request option.
  10041. * @throws {RequiredError}
  10042. */
  10043. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  10044. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  10045. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10046. },
  10047. }
  10048. };
  10049. /**
  10050. * JobApi - factory interface
  10051. * @export
  10052. */
  10053. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10054. const localVarFp = JobApiFp(configuration)
  10055. return {
  10056. /**
  10057. *
  10058. * @param {*} [options] Override http request option.
  10059. * @throws {RequiredError}
  10060. */
  10061. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  10062. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  10063. },
  10064. /**
  10065. *
  10066. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  10067. * @param {*} [options] Override http request option.
  10068. * @throws {RequiredError}
  10069. */
  10070. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  10071. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  10072. },
  10073. };
  10074. };
  10075. /**
  10076. * Request parameters for sendJobCommand operation in JobApi.
  10077. * @export
  10078. * @interface JobApiSendJobCommandRequest
  10079. */
  10080. export interface JobApiSendJobCommandRequest {
  10081. /**
  10082. *
  10083. * @type {JobName}
  10084. * @memberof JobApiSendJobCommand
  10085. */
  10086. readonly id: JobName
  10087. /**
  10088. *
  10089. * @type {JobCommandDto}
  10090. * @memberof JobApiSendJobCommand
  10091. */
  10092. readonly jobCommandDto: JobCommandDto
  10093. }
  10094. /**
  10095. * JobApi - object-oriented interface
  10096. * @export
  10097. * @class JobApi
  10098. * @extends {BaseAPI}
  10099. */
  10100. export class JobApi extends BaseAPI {
  10101. /**
  10102. *
  10103. * @param {*} [options] Override http request option.
  10104. * @throws {RequiredError}
  10105. * @memberof JobApi
  10106. */
  10107. public getAllJobsStatus(options?: AxiosRequestConfig) {
  10108. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  10109. }
  10110. /**
  10111. *
  10112. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  10113. * @param {*} [options] Override http request option.
  10114. * @throws {RequiredError}
  10115. * @memberof JobApi
  10116. */
  10117. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  10118. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  10119. }
  10120. }
  10121. /**
  10122. * LibraryApi - axios parameter creator
  10123. * @export
  10124. */
  10125. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  10126. return {
  10127. /**
  10128. *
  10129. * @param {CreateLibraryDto} createLibraryDto
  10130. * @param {*} [options] Override http request option.
  10131. * @throws {RequiredError}
  10132. */
  10133. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10134. // verify required parameter 'createLibraryDto' is not null or undefined
  10135. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  10136. const localVarPath = `/library`;
  10137. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10138. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10139. let baseOptions;
  10140. if (configuration) {
  10141. baseOptions = configuration.baseOptions;
  10142. }
  10143. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10144. const localVarHeaderParameter = {} as any;
  10145. const localVarQueryParameter = {} as any;
  10146. // authentication cookie required
  10147. // authentication api_key required
  10148. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10149. // authentication bearer required
  10150. // http bearer authentication required
  10151. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10152. localVarHeaderParameter['Content-Type'] = 'application/json';
  10153. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10154. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10155. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10156. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  10157. return {
  10158. url: toPathString(localVarUrlObj),
  10159. options: localVarRequestOptions,
  10160. };
  10161. },
  10162. /**
  10163. *
  10164. * @param {string} id
  10165. * @param {*} [options] Override http request option.
  10166. * @throws {RequiredError}
  10167. */
  10168. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10169. // verify required parameter 'id' is not null or undefined
  10170. assertParamExists('deleteLibrary', 'id', id)
  10171. const localVarPath = `/library/{id}`
  10172. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10173. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10174. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10175. let baseOptions;
  10176. if (configuration) {
  10177. baseOptions = configuration.baseOptions;
  10178. }
  10179. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10180. const localVarHeaderParameter = {} as any;
  10181. const localVarQueryParameter = {} as any;
  10182. // authentication cookie required
  10183. // authentication api_key required
  10184. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10185. // authentication bearer required
  10186. // http bearer authentication required
  10187. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10188. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10189. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10190. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10191. return {
  10192. url: toPathString(localVarUrlObj),
  10193. options: localVarRequestOptions,
  10194. };
  10195. },
  10196. /**
  10197. *
  10198. * @param {*} [options] Override http request option.
  10199. * @throws {RequiredError}
  10200. */
  10201. getLibraries: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10202. const localVarPath = `/library`;
  10203. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10204. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10205. let baseOptions;
  10206. if (configuration) {
  10207. baseOptions = configuration.baseOptions;
  10208. }
  10209. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10210. const localVarHeaderParameter = {} as any;
  10211. const localVarQueryParameter = {} as any;
  10212. // authentication cookie required
  10213. // authentication api_key required
  10214. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10215. // authentication bearer required
  10216. // http bearer authentication required
  10217. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10218. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10219. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10220. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10221. return {
  10222. url: toPathString(localVarUrlObj),
  10223. options: localVarRequestOptions,
  10224. };
  10225. },
  10226. /**
  10227. *
  10228. * @param {string} id
  10229. * @param {*} [options] Override http request option.
  10230. * @throws {RequiredError}
  10231. */
  10232. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10233. // verify required parameter 'id' is not null or undefined
  10234. assertParamExists('getLibraryInfo', 'id', id)
  10235. const localVarPath = `/library/{id}`
  10236. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10237. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10238. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10239. let baseOptions;
  10240. if (configuration) {
  10241. baseOptions = configuration.baseOptions;
  10242. }
  10243. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10244. const localVarHeaderParameter = {} as any;
  10245. const localVarQueryParameter = {} as any;
  10246. // authentication cookie required
  10247. // authentication api_key required
  10248. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10249. // authentication bearer required
  10250. // http bearer authentication required
  10251. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10252. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10253. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10254. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10255. return {
  10256. url: toPathString(localVarUrlObj),
  10257. options: localVarRequestOptions,
  10258. };
  10259. },
  10260. /**
  10261. *
  10262. * @param {string} id
  10263. * @param {*} [options] Override http request option.
  10264. * @throws {RequiredError}
  10265. */
  10266. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10267. // verify required parameter 'id' is not null or undefined
  10268. assertParamExists('getLibraryStatistics', 'id', id)
  10269. const localVarPath = `/library/{id}/statistics`
  10270. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10271. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10272. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10273. let baseOptions;
  10274. if (configuration) {
  10275. baseOptions = configuration.baseOptions;
  10276. }
  10277. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10278. const localVarHeaderParameter = {} as any;
  10279. const localVarQueryParameter = {} as any;
  10280. // authentication cookie required
  10281. // authentication api_key required
  10282. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10283. // authentication bearer required
  10284. // http bearer authentication required
  10285. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10286. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10287. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10288. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10289. return {
  10290. url: toPathString(localVarUrlObj),
  10291. options: localVarRequestOptions,
  10292. };
  10293. },
  10294. /**
  10295. *
  10296. * @param {string} id
  10297. * @param {*} [options] Override http request option.
  10298. * @throws {RequiredError}
  10299. */
  10300. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10301. // verify required parameter 'id' is not null or undefined
  10302. assertParamExists('removeOfflineFiles', 'id', id)
  10303. const localVarPath = `/library/{id}/removeOffline`
  10304. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10305. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10306. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10307. let baseOptions;
  10308. if (configuration) {
  10309. baseOptions = configuration.baseOptions;
  10310. }
  10311. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10312. const localVarHeaderParameter = {} as any;
  10313. const localVarQueryParameter = {} as any;
  10314. // authentication cookie required
  10315. // authentication api_key required
  10316. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10317. // authentication bearer required
  10318. // http bearer authentication required
  10319. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10320. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10321. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10322. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10323. return {
  10324. url: toPathString(localVarUrlObj),
  10325. options: localVarRequestOptions,
  10326. };
  10327. },
  10328. /**
  10329. *
  10330. * @param {string} id
  10331. * @param {ScanLibraryDto} scanLibraryDto
  10332. * @param {*} [options] Override http request option.
  10333. * @throws {RequiredError}
  10334. */
  10335. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10336. // verify required parameter 'id' is not null or undefined
  10337. assertParamExists('scanLibrary', 'id', id)
  10338. // verify required parameter 'scanLibraryDto' is not null or undefined
  10339. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  10340. const localVarPath = `/library/{id}/scan`
  10341. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10342. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10343. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10344. let baseOptions;
  10345. if (configuration) {
  10346. baseOptions = configuration.baseOptions;
  10347. }
  10348. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10349. const localVarHeaderParameter = {} as any;
  10350. const localVarQueryParameter = {} as any;
  10351. // authentication cookie required
  10352. // authentication api_key required
  10353. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10354. // authentication bearer required
  10355. // http bearer authentication required
  10356. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10357. localVarHeaderParameter['Content-Type'] = 'application/json';
  10358. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10359. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10360. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10361. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  10362. return {
  10363. url: toPathString(localVarUrlObj),
  10364. options: localVarRequestOptions,
  10365. };
  10366. },
  10367. /**
  10368. *
  10369. * @param {string} id
  10370. * @param {UpdateLibraryDto} updateLibraryDto
  10371. * @param {*} [options] Override http request option.
  10372. * @throws {RequiredError}
  10373. */
  10374. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10375. // verify required parameter 'id' is not null or undefined
  10376. assertParamExists('updateLibrary', 'id', id)
  10377. // verify required parameter 'updateLibraryDto' is not null or undefined
  10378. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  10379. const localVarPath = `/library/{id}`
  10380. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10381. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10382. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10383. let baseOptions;
  10384. if (configuration) {
  10385. baseOptions = configuration.baseOptions;
  10386. }
  10387. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10388. const localVarHeaderParameter = {} as any;
  10389. const localVarQueryParameter = {} as any;
  10390. // authentication cookie required
  10391. // authentication api_key required
  10392. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10393. // authentication bearer required
  10394. // http bearer authentication required
  10395. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10396. localVarHeaderParameter['Content-Type'] = 'application/json';
  10397. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10398. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10399. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10400. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  10401. return {
  10402. url: toPathString(localVarUrlObj),
  10403. options: localVarRequestOptions,
  10404. };
  10405. },
  10406. }
  10407. };
  10408. /**
  10409. * LibraryApi - functional programming interface
  10410. * @export
  10411. */
  10412. export const LibraryApiFp = function(configuration?: Configuration) {
  10413. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  10414. return {
  10415. /**
  10416. *
  10417. * @param {CreateLibraryDto} createLibraryDto
  10418. * @param {*} [options] Override http request option.
  10419. * @throws {RequiredError}
  10420. */
  10421. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10422. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  10423. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10424. },
  10425. /**
  10426. *
  10427. * @param {string} id
  10428. * @param {*} [options] Override http request option.
  10429. * @throws {RequiredError}
  10430. */
  10431. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10432. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  10433. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10434. },
  10435. /**
  10436. *
  10437. * @param {*} [options] Override http request option.
  10438. * @throws {RequiredError}
  10439. */
  10440. async getLibraries(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  10441. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraries(options);
  10442. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10443. },
  10444. /**
  10445. *
  10446. * @param {string} id
  10447. * @param {*} [options] Override http request option.
  10448. * @throws {RequiredError}
  10449. */
  10450. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10451. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  10452. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10453. },
  10454. /**
  10455. *
  10456. * @param {string} id
  10457. * @param {*} [options] Override http request option.
  10458. * @throws {RequiredError}
  10459. */
  10460. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  10461. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  10462. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10463. },
  10464. /**
  10465. *
  10466. * @param {string} id
  10467. * @param {*} [options] Override http request option.
  10468. * @throws {RequiredError}
  10469. */
  10470. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10471. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  10472. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10473. },
  10474. /**
  10475. *
  10476. * @param {string} id
  10477. * @param {ScanLibraryDto} scanLibraryDto
  10478. * @param {*} [options] Override http request option.
  10479. * @throws {RequiredError}
  10480. */
  10481. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10482. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  10483. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10484. },
  10485. /**
  10486. *
  10487. * @param {string} id
  10488. * @param {UpdateLibraryDto} updateLibraryDto
  10489. * @param {*} [options] Override http request option.
  10490. * @throws {RequiredError}
  10491. */
  10492. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10493. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  10494. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10495. },
  10496. }
  10497. };
  10498. /**
  10499. * LibraryApi - factory interface
  10500. * @export
  10501. */
  10502. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10503. const localVarFp = LibraryApiFp(configuration)
  10504. return {
  10505. /**
  10506. *
  10507. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10508. * @param {*} [options] Override http request option.
  10509. * @throws {RequiredError}
  10510. */
  10511. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10512. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  10513. },
  10514. /**
  10515. *
  10516. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10517. * @param {*} [options] Override http request option.
  10518. * @throws {RequiredError}
  10519. */
  10520. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10521. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  10522. },
  10523. /**
  10524. *
  10525. * @param {*} [options] Override http request option.
  10526. * @throws {RequiredError}
  10527. */
  10528. getLibraries(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  10529. return localVarFp.getLibraries(options).then((request) => request(axios, basePath));
  10530. },
  10531. /**
  10532. *
  10533. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10534. * @param {*} [options] Override http request option.
  10535. * @throws {RequiredError}
  10536. */
  10537. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10538. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  10539. },
  10540. /**
  10541. *
  10542. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10543. * @param {*} [options] Override http request option.
  10544. * @throws {RequiredError}
  10545. */
  10546. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  10547. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  10548. },
  10549. /**
  10550. *
  10551. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10552. * @param {*} [options] Override http request option.
  10553. * @throws {RequiredError}
  10554. */
  10555. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10556. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  10557. },
  10558. /**
  10559. *
  10560. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10561. * @param {*} [options] Override http request option.
  10562. * @throws {RequiredError}
  10563. */
  10564. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10565. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  10566. },
  10567. /**
  10568. *
  10569. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10570. * @param {*} [options] Override http request option.
  10571. * @throws {RequiredError}
  10572. */
  10573. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10574. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  10575. },
  10576. };
  10577. };
  10578. /**
  10579. * Request parameters for createLibrary operation in LibraryApi.
  10580. * @export
  10581. * @interface LibraryApiCreateLibraryRequest
  10582. */
  10583. export interface LibraryApiCreateLibraryRequest {
  10584. /**
  10585. *
  10586. * @type {CreateLibraryDto}
  10587. * @memberof LibraryApiCreateLibrary
  10588. */
  10589. readonly createLibraryDto: CreateLibraryDto
  10590. }
  10591. /**
  10592. * Request parameters for deleteLibrary operation in LibraryApi.
  10593. * @export
  10594. * @interface LibraryApiDeleteLibraryRequest
  10595. */
  10596. export interface LibraryApiDeleteLibraryRequest {
  10597. /**
  10598. *
  10599. * @type {string}
  10600. * @memberof LibraryApiDeleteLibrary
  10601. */
  10602. readonly id: string
  10603. }
  10604. /**
  10605. * Request parameters for getLibraryInfo operation in LibraryApi.
  10606. * @export
  10607. * @interface LibraryApiGetLibraryInfoRequest
  10608. */
  10609. export interface LibraryApiGetLibraryInfoRequest {
  10610. /**
  10611. *
  10612. * @type {string}
  10613. * @memberof LibraryApiGetLibraryInfo
  10614. */
  10615. readonly id: string
  10616. }
  10617. /**
  10618. * Request parameters for getLibraryStatistics operation in LibraryApi.
  10619. * @export
  10620. * @interface LibraryApiGetLibraryStatisticsRequest
  10621. */
  10622. export interface LibraryApiGetLibraryStatisticsRequest {
  10623. /**
  10624. *
  10625. * @type {string}
  10626. * @memberof LibraryApiGetLibraryStatistics
  10627. */
  10628. readonly id: string
  10629. }
  10630. /**
  10631. * Request parameters for removeOfflineFiles operation in LibraryApi.
  10632. * @export
  10633. * @interface LibraryApiRemoveOfflineFilesRequest
  10634. */
  10635. export interface LibraryApiRemoveOfflineFilesRequest {
  10636. /**
  10637. *
  10638. * @type {string}
  10639. * @memberof LibraryApiRemoveOfflineFiles
  10640. */
  10641. readonly id: string
  10642. }
  10643. /**
  10644. * Request parameters for scanLibrary operation in LibraryApi.
  10645. * @export
  10646. * @interface LibraryApiScanLibraryRequest
  10647. */
  10648. export interface LibraryApiScanLibraryRequest {
  10649. /**
  10650. *
  10651. * @type {string}
  10652. * @memberof LibraryApiScanLibrary
  10653. */
  10654. readonly id: string
  10655. /**
  10656. *
  10657. * @type {ScanLibraryDto}
  10658. * @memberof LibraryApiScanLibrary
  10659. */
  10660. readonly scanLibraryDto: ScanLibraryDto
  10661. }
  10662. /**
  10663. * Request parameters for updateLibrary operation in LibraryApi.
  10664. * @export
  10665. * @interface LibraryApiUpdateLibraryRequest
  10666. */
  10667. export interface LibraryApiUpdateLibraryRequest {
  10668. /**
  10669. *
  10670. * @type {string}
  10671. * @memberof LibraryApiUpdateLibrary
  10672. */
  10673. readonly id: string
  10674. /**
  10675. *
  10676. * @type {UpdateLibraryDto}
  10677. * @memberof LibraryApiUpdateLibrary
  10678. */
  10679. readonly updateLibraryDto: UpdateLibraryDto
  10680. }
  10681. /**
  10682. * LibraryApi - object-oriented interface
  10683. * @export
  10684. * @class LibraryApi
  10685. * @extends {BaseAPI}
  10686. */
  10687. export class LibraryApi extends BaseAPI {
  10688. /**
  10689. *
  10690. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10691. * @param {*} [options] Override http request option.
  10692. * @throws {RequiredError}
  10693. * @memberof LibraryApi
  10694. */
  10695. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  10696. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10697. }
  10698. /**
  10699. *
  10700. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10701. * @param {*} [options] Override http request option.
  10702. * @throws {RequiredError}
  10703. * @memberof LibraryApi
  10704. */
  10705. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  10706. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10707. }
  10708. /**
  10709. *
  10710. * @param {*} [options] Override http request option.
  10711. * @throws {RequiredError}
  10712. * @memberof LibraryApi
  10713. */
  10714. public getLibraries(options?: AxiosRequestConfig) {
  10715. return LibraryApiFp(this.configuration).getLibraries(options).then((request) => request(this.axios, this.basePath));
  10716. }
  10717. /**
  10718. *
  10719. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10720. * @param {*} [options] Override http request option.
  10721. * @throws {RequiredError}
  10722. * @memberof LibraryApi
  10723. */
  10724. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  10725. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10726. }
  10727. /**
  10728. *
  10729. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10730. * @param {*} [options] Override http request option.
  10731. * @throws {RequiredError}
  10732. * @memberof LibraryApi
  10733. */
  10734. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  10735. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10736. }
  10737. /**
  10738. *
  10739. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10740. * @param {*} [options] Override http request option.
  10741. * @throws {RequiredError}
  10742. * @memberof LibraryApi
  10743. */
  10744. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  10745. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10746. }
  10747. /**
  10748. *
  10749. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10750. * @param {*} [options] Override http request option.
  10751. * @throws {RequiredError}
  10752. * @memberof LibraryApi
  10753. */
  10754. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  10755. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10756. }
  10757. /**
  10758. *
  10759. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10760. * @param {*} [options] Override http request option.
  10761. * @throws {RequiredError}
  10762. * @memberof LibraryApi
  10763. */
  10764. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  10765. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10766. }
  10767. }
  10768. /**
  10769. * OAuthApi - axios parameter creator
  10770. * @export
  10771. */
  10772. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  10773. return {
  10774. /**
  10775. *
  10776. * @param {OAuthCallbackDto} oAuthCallbackDto
  10777. * @param {*} [options] Override http request option.
  10778. * @throws {RequiredError}
  10779. */
  10780. finishOAuth: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10781. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10782. assertParamExists('finishOAuth', 'oAuthCallbackDto', oAuthCallbackDto)
  10783. const localVarPath = `/oauth/callback`;
  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: 'POST', ...baseOptions, ...options};
  10791. const localVarHeaderParameter = {} as any;
  10792. const localVarQueryParameter = {} as any;
  10793. localVarHeaderParameter['Content-Type'] = 'application/json';
  10794. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10795. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10796. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10797. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10798. return {
  10799. url: toPathString(localVarUrlObj),
  10800. options: localVarRequestOptions,
  10801. };
  10802. },
  10803. /**
  10804. * @deprecated use feature flags and /oauth/authorize
  10805. * @param {OAuthConfigDto} oAuthConfigDto
  10806. * @param {*} [options] Override http request option.
  10807. * @deprecated
  10808. * @throws {RequiredError}
  10809. */
  10810. generateOAuthConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10811. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10812. assertParamExists('generateOAuthConfig', 'oAuthConfigDto', oAuthConfigDto)
  10813. const localVarPath = `/oauth/config`;
  10814. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10815. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10816. let baseOptions;
  10817. if (configuration) {
  10818. baseOptions = configuration.baseOptions;
  10819. }
  10820. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10821. const localVarHeaderParameter = {} as any;
  10822. const localVarQueryParameter = {} as any;
  10823. localVarHeaderParameter['Content-Type'] = 'application/json';
  10824. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10825. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10826. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10827. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10828. return {
  10829. url: toPathString(localVarUrlObj),
  10830. options: localVarRequestOptions,
  10831. };
  10832. },
  10833. /**
  10834. *
  10835. * @param {OAuthCallbackDto} oAuthCallbackDto
  10836. * @param {*} [options] Override http request option.
  10837. * @throws {RequiredError}
  10838. */
  10839. linkOAuthAccount: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10840. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10841. assertParamExists('linkOAuthAccount', 'oAuthCallbackDto', oAuthCallbackDto)
  10842. const localVarPath = `/oauth/link`;
  10843. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10844. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10845. let baseOptions;
  10846. if (configuration) {
  10847. baseOptions = configuration.baseOptions;
  10848. }
  10849. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10850. const localVarHeaderParameter = {} as any;
  10851. const localVarQueryParameter = {} as any;
  10852. // authentication cookie required
  10853. // authentication api_key required
  10854. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10855. // authentication bearer required
  10856. // http bearer authentication required
  10857. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10858. localVarHeaderParameter['Content-Type'] = 'application/json';
  10859. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10860. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10861. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10862. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10863. return {
  10864. url: toPathString(localVarUrlObj),
  10865. options: localVarRequestOptions,
  10866. };
  10867. },
  10868. /**
  10869. *
  10870. * @param {*} [options] Override http request option.
  10871. * @throws {RequiredError}
  10872. */
  10873. redirectOAuthToMobile: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10874. const localVarPath = `/oauth/mobile-redirect`;
  10875. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10876. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10877. let baseOptions;
  10878. if (configuration) {
  10879. baseOptions = configuration.baseOptions;
  10880. }
  10881. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10882. const localVarHeaderParameter = {} as any;
  10883. const localVarQueryParameter = {} as any;
  10884. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10885. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10886. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10887. return {
  10888. url: toPathString(localVarUrlObj),
  10889. options: localVarRequestOptions,
  10890. };
  10891. },
  10892. /**
  10893. *
  10894. * @param {OAuthConfigDto} oAuthConfigDto
  10895. * @param {*} [options] Override http request option.
  10896. * @throws {RequiredError}
  10897. */
  10898. startOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10899. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10900. assertParamExists('startOAuth', 'oAuthConfigDto', oAuthConfigDto)
  10901. const localVarPath = `/oauth/authorize`;
  10902. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10903. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10904. let baseOptions;
  10905. if (configuration) {
  10906. baseOptions = configuration.baseOptions;
  10907. }
  10908. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10909. const localVarHeaderParameter = {} as any;
  10910. const localVarQueryParameter = {} as any;
  10911. localVarHeaderParameter['Content-Type'] = 'application/json';
  10912. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10913. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10914. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10915. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10916. return {
  10917. url: toPathString(localVarUrlObj),
  10918. options: localVarRequestOptions,
  10919. };
  10920. },
  10921. /**
  10922. *
  10923. * @param {*} [options] Override http request option.
  10924. * @throws {RequiredError}
  10925. */
  10926. unlinkOAuthAccount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10927. const localVarPath = `/oauth/unlink`;
  10928. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10929. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10930. let baseOptions;
  10931. if (configuration) {
  10932. baseOptions = configuration.baseOptions;
  10933. }
  10934. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10935. const localVarHeaderParameter = {} as any;
  10936. const localVarQueryParameter = {} as any;
  10937. // authentication cookie required
  10938. // authentication api_key required
  10939. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10940. // authentication bearer required
  10941. // http bearer authentication required
  10942. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10943. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10944. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10945. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10946. return {
  10947. url: toPathString(localVarUrlObj),
  10948. options: localVarRequestOptions,
  10949. };
  10950. },
  10951. }
  10952. };
  10953. /**
  10954. * OAuthApi - functional programming interface
  10955. * @export
  10956. */
  10957. export const OAuthApiFp = function(configuration?: Configuration) {
  10958. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  10959. return {
  10960. /**
  10961. *
  10962. * @param {OAuthCallbackDto} oAuthCallbackDto
  10963. * @param {*} [options] Override http request option.
  10964. * @throws {RequiredError}
  10965. */
  10966. async finishOAuth(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10967. const localVarAxiosArgs = await localVarAxiosParamCreator.finishOAuth(oAuthCallbackDto, options);
  10968. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10969. },
  10970. /**
  10971. * @deprecated use feature flags and /oauth/authorize
  10972. * @param {OAuthConfigDto} oAuthConfigDto
  10973. * @param {*} [options] Override http request option.
  10974. * @deprecated
  10975. * @throws {RequiredError}
  10976. */
  10977. async generateOAuthConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  10978. const localVarAxiosArgs = await localVarAxiosParamCreator.generateOAuthConfig(oAuthConfigDto, options);
  10979. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10980. },
  10981. /**
  10982. *
  10983. * @param {OAuthCallbackDto} oAuthCallbackDto
  10984. * @param {*} [options] Override http request option.
  10985. * @throws {RequiredError}
  10986. */
  10987. async linkOAuthAccount(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10988. const localVarAxiosArgs = await localVarAxiosParamCreator.linkOAuthAccount(oAuthCallbackDto, options);
  10989. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10990. },
  10991. /**
  10992. *
  10993. * @param {*} [options] Override http request option.
  10994. * @throws {RequiredError}
  10995. */
  10996. async redirectOAuthToMobile(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10997. const localVarAxiosArgs = await localVarAxiosParamCreator.redirectOAuthToMobile(options);
  10998. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10999. },
  11000. /**
  11001. *
  11002. * @param {OAuthConfigDto} oAuthConfigDto
  11003. * @param {*} [options] Override http request option.
  11004. * @throws {RequiredError}
  11005. */
  11006. async startOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  11007. const localVarAxiosArgs = await localVarAxiosParamCreator.startOAuth(oAuthConfigDto, options);
  11008. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11009. },
  11010. /**
  11011. *
  11012. * @param {*} [options] Override http request option.
  11013. * @throws {RequiredError}
  11014. */
  11015. async unlinkOAuthAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11016. const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkOAuthAccount(options);
  11017. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11018. },
  11019. }
  11020. };
  11021. /**
  11022. * OAuthApi - factory interface
  11023. * @export
  11024. */
  11025. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11026. const localVarFp = OAuthApiFp(configuration)
  11027. return {
  11028. /**
  11029. *
  11030. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  11031. * @param {*} [options] Override http request option.
  11032. * @throws {RequiredError}
  11033. */
  11034. finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  11035. return localVarFp.finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  11036. },
  11037. /**
  11038. * @deprecated use feature flags and /oauth/authorize
  11039. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  11040. * @param {*} [options] Override http request option.
  11041. * @deprecated
  11042. * @throws {RequiredError}
  11043. */
  11044. generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  11045. return localVarFp.generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  11046. },
  11047. /**
  11048. *
  11049. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11050. * @param {*} [options] Override http request option.
  11051. * @throws {RequiredError}
  11052. */
  11053. linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11054. return localVarFp.linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  11055. },
  11056. /**
  11057. *
  11058. * @param {*} [options] Override http request option.
  11059. * @throws {RequiredError}
  11060. */
  11061. redirectOAuthToMobile(options?: AxiosRequestConfig): AxiosPromise<void> {
  11062. return localVarFp.redirectOAuthToMobile(options).then((request) => request(axios, basePath));
  11063. },
  11064. /**
  11065. *
  11066. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11067. * @param {*} [options] Override http request option.
  11068. * @throws {RequiredError}
  11069. */
  11070. startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  11071. return localVarFp.startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  11072. },
  11073. /**
  11074. *
  11075. * @param {*} [options] Override http request option.
  11076. * @throws {RequiredError}
  11077. */
  11078. unlinkOAuthAccount(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11079. return localVarFp.unlinkOAuthAccount(options).then((request) => request(axios, basePath));
  11080. },
  11081. };
  11082. };
  11083. /**
  11084. * Request parameters for finishOAuth operation in OAuthApi.
  11085. * @export
  11086. * @interface OAuthApiFinishOAuthRequest
  11087. */
  11088. export interface OAuthApiFinishOAuthRequest {
  11089. /**
  11090. *
  11091. * @type {OAuthCallbackDto}
  11092. * @memberof OAuthApiFinishOAuth
  11093. */
  11094. readonly oAuthCallbackDto: OAuthCallbackDto
  11095. }
  11096. /**
  11097. * Request parameters for generateOAuthConfig operation in OAuthApi.
  11098. * @export
  11099. * @interface OAuthApiGenerateOAuthConfigRequest
  11100. */
  11101. export interface OAuthApiGenerateOAuthConfigRequest {
  11102. /**
  11103. *
  11104. * @type {OAuthConfigDto}
  11105. * @memberof OAuthApiGenerateOAuthConfig
  11106. */
  11107. readonly oAuthConfigDto: OAuthConfigDto
  11108. }
  11109. /**
  11110. * Request parameters for linkOAuthAccount operation in OAuthApi.
  11111. * @export
  11112. * @interface OAuthApiLinkOAuthAccountRequest
  11113. */
  11114. export interface OAuthApiLinkOAuthAccountRequest {
  11115. /**
  11116. *
  11117. * @type {OAuthCallbackDto}
  11118. * @memberof OAuthApiLinkOAuthAccount
  11119. */
  11120. readonly oAuthCallbackDto: OAuthCallbackDto
  11121. }
  11122. /**
  11123. * Request parameters for startOAuth operation in OAuthApi.
  11124. * @export
  11125. * @interface OAuthApiStartOAuthRequest
  11126. */
  11127. export interface OAuthApiStartOAuthRequest {
  11128. /**
  11129. *
  11130. * @type {OAuthConfigDto}
  11131. * @memberof OAuthApiStartOAuth
  11132. */
  11133. readonly oAuthConfigDto: OAuthConfigDto
  11134. }
  11135. /**
  11136. * OAuthApi - object-oriented interface
  11137. * @export
  11138. * @class OAuthApi
  11139. * @extends {BaseAPI}
  11140. */
  11141. export class OAuthApi extends BaseAPI {
  11142. /**
  11143. *
  11144. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  11145. * @param {*} [options] Override http request option.
  11146. * @throws {RequiredError}
  11147. * @memberof OAuthApi
  11148. */
  11149. public finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig) {
  11150. return OAuthApiFp(this.configuration).finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11151. }
  11152. /**
  11153. * @deprecated use feature flags and /oauth/authorize
  11154. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  11155. * @param {*} [options] Override http request option.
  11156. * @deprecated
  11157. * @throws {RequiredError}
  11158. * @memberof OAuthApi
  11159. */
  11160. public generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig) {
  11161. return OAuthApiFp(this.configuration).generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11162. }
  11163. /**
  11164. *
  11165. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11166. * @param {*} [options] Override http request option.
  11167. * @throws {RequiredError}
  11168. * @memberof OAuthApi
  11169. */
  11170. public linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig) {
  11171. return OAuthApiFp(this.configuration).linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11172. }
  11173. /**
  11174. *
  11175. * @param {*} [options] Override http request option.
  11176. * @throws {RequiredError}
  11177. * @memberof OAuthApi
  11178. */
  11179. public redirectOAuthToMobile(options?: AxiosRequestConfig) {
  11180. return OAuthApiFp(this.configuration).redirectOAuthToMobile(options).then((request) => request(this.axios, this.basePath));
  11181. }
  11182. /**
  11183. *
  11184. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11185. * @param {*} [options] Override http request option.
  11186. * @throws {RequiredError}
  11187. * @memberof OAuthApi
  11188. */
  11189. public startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig) {
  11190. return OAuthApiFp(this.configuration).startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11191. }
  11192. /**
  11193. *
  11194. * @param {*} [options] Override http request option.
  11195. * @throws {RequiredError}
  11196. * @memberof OAuthApi
  11197. */
  11198. public unlinkOAuthAccount(options?: AxiosRequestConfig) {
  11199. return OAuthApiFp(this.configuration).unlinkOAuthAccount(options).then((request) => request(this.axios, this.basePath));
  11200. }
  11201. }
  11202. /**
  11203. * PartnerApi - axios parameter creator
  11204. * @export
  11205. */
  11206. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  11207. return {
  11208. /**
  11209. *
  11210. * @param {string} id
  11211. * @param {*} [options] Override http request option.
  11212. * @throws {RequiredError}
  11213. */
  11214. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11215. // verify required parameter 'id' is not null or undefined
  11216. assertParamExists('createPartner', 'id', id)
  11217. const localVarPath = `/partner/{id}`
  11218. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11219. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11220. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11221. let baseOptions;
  11222. if (configuration) {
  11223. baseOptions = configuration.baseOptions;
  11224. }
  11225. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11226. const localVarHeaderParameter = {} as any;
  11227. const localVarQueryParameter = {} as any;
  11228. // authentication cookie required
  11229. // authentication api_key required
  11230. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11231. // authentication bearer required
  11232. // http bearer authentication required
  11233. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11234. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11235. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11236. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11237. return {
  11238. url: toPathString(localVarUrlObj),
  11239. options: localVarRequestOptions,
  11240. };
  11241. },
  11242. /**
  11243. *
  11244. * @param {'shared-by' | 'shared-with'} direction
  11245. * @param {*} [options] Override http request option.
  11246. * @throws {RequiredError}
  11247. */
  11248. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11249. // verify required parameter 'direction' is not null or undefined
  11250. assertParamExists('getPartners', 'direction', direction)
  11251. const localVarPath = `/partner`;
  11252. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11253. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11254. let baseOptions;
  11255. if (configuration) {
  11256. baseOptions = configuration.baseOptions;
  11257. }
  11258. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11259. const localVarHeaderParameter = {} as any;
  11260. const localVarQueryParameter = {} as any;
  11261. // authentication cookie required
  11262. // authentication api_key required
  11263. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11264. // authentication bearer required
  11265. // http bearer authentication required
  11266. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11267. if (direction !== undefined) {
  11268. localVarQueryParameter['direction'] = direction;
  11269. }
  11270. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11271. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11272. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11273. return {
  11274. url: toPathString(localVarUrlObj),
  11275. options: localVarRequestOptions,
  11276. };
  11277. },
  11278. /**
  11279. *
  11280. * @param {string} id
  11281. * @param {*} [options] Override http request option.
  11282. * @throws {RequiredError}
  11283. */
  11284. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11285. // verify required parameter 'id' is not null or undefined
  11286. assertParamExists('removePartner', 'id', id)
  11287. const localVarPath = `/partner/{id}`
  11288. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11289. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11290. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11291. let baseOptions;
  11292. if (configuration) {
  11293. baseOptions = configuration.baseOptions;
  11294. }
  11295. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  11296. const localVarHeaderParameter = {} as any;
  11297. const localVarQueryParameter = {} as any;
  11298. // authentication cookie required
  11299. // authentication api_key required
  11300. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11301. // authentication bearer required
  11302. // http bearer authentication required
  11303. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11304. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11305. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11306. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11307. return {
  11308. url: toPathString(localVarUrlObj),
  11309. options: localVarRequestOptions,
  11310. };
  11311. },
  11312. /**
  11313. *
  11314. * @param {string} id
  11315. * @param {UpdatePartnerDto} updatePartnerDto
  11316. * @param {*} [options] Override http request option.
  11317. * @throws {RequiredError}
  11318. */
  11319. updatePartner: async (id: string, updatePartnerDto: UpdatePartnerDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11320. // verify required parameter 'id' is not null or undefined
  11321. assertParamExists('updatePartner', 'id', id)
  11322. // verify required parameter 'updatePartnerDto' is not null or undefined
  11323. assertParamExists('updatePartner', 'updatePartnerDto', updatePartnerDto)
  11324. const localVarPath = `/partner/{id}`
  11325. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11326. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11327. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11328. let baseOptions;
  11329. if (configuration) {
  11330. baseOptions = configuration.baseOptions;
  11331. }
  11332. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11333. const localVarHeaderParameter = {} as any;
  11334. const localVarQueryParameter = {} as any;
  11335. // authentication cookie required
  11336. // authentication api_key required
  11337. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11338. // authentication bearer required
  11339. // http bearer authentication required
  11340. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11341. localVarHeaderParameter['Content-Type'] = 'application/json';
  11342. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11343. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11344. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11345. localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerDto, localVarRequestOptions, configuration)
  11346. return {
  11347. url: toPathString(localVarUrlObj),
  11348. options: localVarRequestOptions,
  11349. };
  11350. },
  11351. }
  11352. };
  11353. /**
  11354. * PartnerApi - functional programming interface
  11355. * @export
  11356. */
  11357. export const PartnerApiFp = function(configuration?: Configuration) {
  11358. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  11359. return {
  11360. /**
  11361. *
  11362. * @param {string} id
  11363. * @param {*} [options] Override http request option.
  11364. * @throws {RequiredError}
  11365. */
  11366. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerResponseDto>> {
  11367. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  11368. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11369. },
  11370. /**
  11371. *
  11372. * @param {'shared-by' | 'shared-with'} direction
  11373. * @param {*} [options] Override http request option.
  11374. * @throws {RequiredError}
  11375. */
  11376. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PartnerResponseDto>>> {
  11377. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  11378. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11379. },
  11380. /**
  11381. *
  11382. * @param {string} id
  11383. * @param {*} [options] Override http request option.
  11384. * @throws {RequiredError}
  11385. */
  11386. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  11387. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  11388. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11389. },
  11390. /**
  11391. *
  11392. * @param {string} id
  11393. * @param {UpdatePartnerDto} updatePartnerDto
  11394. * @param {*} [options] Override http request option.
  11395. * @throws {RequiredError}
  11396. */
  11397. async updatePartner(id: string, updatePartnerDto: UpdatePartnerDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerResponseDto>> {
  11398. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartner(id, updatePartnerDto, options);
  11399. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11400. },
  11401. }
  11402. };
  11403. /**
  11404. * PartnerApi - factory interface
  11405. * @export
  11406. */
  11407. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11408. const localVarFp = PartnerApiFp(configuration)
  11409. return {
  11410. /**
  11411. *
  11412. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11413. * @param {*} [options] Override http request option.
  11414. * @throws {RequiredError}
  11415. */
  11416. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<PartnerResponseDto> {
  11417. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11418. },
  11419. /**
  11420. *
  11421. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11422. * @param {*} [options] Override http request option.
  11423. * @throws {RequiredError}
  11424. */
  11425. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PartnerResponseDto>> {
  11426. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  11427. },
  11428. /**
  11429. *
  11430. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11431. * @param {*} [options] Override http request option.
  11432. * @throws {RequiredError}
  11433. */
  11434. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  11435. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11436. },
  11437. /**
  11438. *
  11439. * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
  11440. * @param {*} [options] Override http request option.
  11441. * @throws {RequiredError}
  11442. */
  11443. updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<PartnerResponseDto> {
  11444. return localVarFp.updatePartner(requestParameters.id, requestParameters.updatePartnerDto, options).then((request) => request(axios, basePath));
  11445. },
  11446. };
  11447. };
  11448. /**
  11449. * Request parameters for createPartner operation in PartnerApi.
  11450. * @export
  11451. * @interface PartnerApiCreatePartnerRequest
  11452. */
  11453. export interface PartnerApiCreatePartnerRequest {
  11454. /**
  11455. *
  11456. * @type {string}
  11457. * @memberof PartnerApiCreatePartner
  11458. */
  11459. readonly id: string
  11460. }
  11461. /**
  11462. * Request parameters for getPartners operation in PartnerApi.
  11463. * @export
  11464. * @interface PartnerApiGetPartnersRequest
  11465. */
  11466. export interface PartnerApiGetPartnersRequest {
  11467. /**
  11468. *
  11469. * @type {'shared-by' | 'shared-with'}
  11470. * @memberof PartnerApiGetPartners
  11471. */
  11472. readonly direction: 'shared-by' | 'shared-with'
  11473. }
  11474. /**
  11475. * Request parameters for removePartner operation in PartnerApi.
  11476. * @export
  11477. * @interface PartnerApiRemovePartnerRequest
  11478. */
  11479. export interface PartnerApiRemovePartnerRequest {
  11480. /**
  11481. *
  11482. * @type {string}
  11483. * @memberof PartnerApiRemovePartner
  11484. */
  11485. readonly id: string
  11486. }
  11487. /**
  11488. * Request parameters for updatePartner operation in PartnerApi.
  11489. * @export
  11490. * @interface PartnerApiUpdatePartnerRequest
  11491. */
  11492. export interface PartnerApiUpdatePartnerRequest {
  11493. /**
  11494. *
  11495. * @type {string}
  11496. * @memberof PartnerApiUpdatePartner
  11497. */
  11498. readonly id: string
  11499. /**
  11500. *
  11501. * @type {UpdatePartnerDto}
  11502. * @memberof PartnerApiUpdatePartner
  11503. */
  11504. readonly updatePartnerDto: UpdatePartnerDto
  11505. }
  11506. /**
  11507. * PartnerApi - object-oriented interface
  11508. * @export
  11509. * @class PartnerApi
  11510. * @extends {BaseAPI}
  11511. */
  11512. export class PartnerApi extends BaseAPI {
  11513. /**
  11514. *
  11515. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11516. * @param {*} [options] Override http request option.
  11517. * @throws {RequiredError}
  11518. * @memberof PartnerApi
  11519. */
  11520. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  11521. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11522. }
  11523. /**
  11524. *
  11525. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11526. * @param {*} [options] Override http request option.
  11527. * @throws {RequiredError}
  11528. * @memberof PartnerApi
  11529. */
  11530. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  11531. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  11532. }
  11533. /**
  11534. *
  11535. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11536. * @param {*} [options] Override http request option.
  11537. * @throws {RequiredError}
  11538. * @memberof PartnerApi
  11539. */
  11540. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  11541. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11542. }
  11543. /**
  11544. *
  11545. * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
  11546. * @param {*} [options] Override http request option.
  11547. * @throws {RequiredError}
  11548. * @memberof PartnerApi
  11549. */
  11550. public updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
  11551. return PartnerApiFp(this.configuration).updatePartner(requestParameters.id, requestParameters.updatePartnerDto, options).then((request) => request(this.axios, this.basePath));
  11552. }
  11553. }
  11554. /**
  11555. * PersonApi - axios parameter creator
  11556. * @export
  11557. */
  11558. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  11559. return {
  11560. /**
  11561. *
  11562. * @param {boolean} [withHidden]
  11563. * @param {*} [options] Override http request option.
  11564. * @throws {RequiredError}
  11565. */
  11566. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11567. const localVarPath = `/person`;
  11568. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11569. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11570. let baseOptions;
  11571. if (configuration) {
  11572. baseOptions = configuration.baseOptions;
  11573. }
  11574. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11575. const localVarHeaderParameter = {} as any;
  11576. const localVarQueryParameter = {} as any;
  11577. // authentication cookie required
  11578. // authentication api_key required
  11579. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11580. // authentication bearer required
  11581. // http bearer authentication required
  11582. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11583. if (withHidden !== undefined) {
  11584. localVarQueryParameter['withHidden'] = withHidden;
  11585. }
  11586. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11587. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11588. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11589. return {
  11590. url: toPathString(localVarUrlObj),
  11591. options: localVarRequestOptions,
  11592. };
  11593. },
  11594. /**
  11595. *
  11596. * @param {string} id
  11597. * @param {*} [options] Override http request option.
  11598. * @throws {RequiredError}
  11599. */
  11600. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11601. // verify required parameter 'id' is not null or undefined
  11602. assertParamExists('getPerson', 'id', id)
  11603. const localVarPath = `/person/{id}`
  11604. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11605. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11606. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11607. let baseOptions;
  11608. if (configuration) {
  11609. baseOptions = configuration.baseOptions;
  11610. }
  11611. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11612. const localVarHeaderParameter = {} as any;
  11613. const localVarQueryParameter = {} as any;
  11614. // authentication cookie required
  11615. // authentication api_key required
  11616. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11617. // authentication bearer required
  11618. // http bearer authentication required
  11619. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11620. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11621. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11622. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11623. return {
  11624. url: toPathString(localVarUrlObj),
  11625. options: localVarRequestOptions,
  11626. };
  11627. },
  11628. /**
  11629. *
  11630. * @param {string} id
  11631. * @param {*} [options] Override http request option.
  11632. * @throws {RequiredError}
  11633. */
  11634. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11635. // verify required parameter 'id' is not null or undefined
  11636. assertParamExists('getPersonAssets', 'id', id)
  11637. const localVarPath = `/person/{id}/assets`
  11638. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11639. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11640. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11641. let baseOptions;
  11642. if (configuration) {
  11643. baseOptions = configuration.baseOptions;
  11644. }
  11645. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11646. const localVarHeaderParameter = {} as any;
  11647. const localVarQueryParameter = {} as any;
  11648. // authentication cookie required
  11649. // authentication api_key required
  11650. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11651. // authentication bearer required
  11652. // http bearer authentication required
  11653. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11654. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11655. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11656. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11657. return {
  11658. url: toPathString(localVarUrlObj),
  11659. options: localVarRequestOptions,
  11660. };
  11661. },
  11662. /**
  11663. *
  11664. * @param {string} id
  11665. * @param {*} [options] Override http request option.
  11666. * @throws {RequiredError}
  11667. */
  11668. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11669. // verify required parameter 'id' is not null or undefined
  11670. assertParamExists('getPersonStatistics', 'id', id)
  11671. const localVarPath = `/person/{id}/statistics`
  11672. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11673. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11674. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11675. let baseOptions;
  11676. if (configuration) {
  11677. baseOptions = configuration.baseOptions;
  11678. }
  11679. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11680. const localVarHeaderParameter = {} as any;
  11681. const localVarQueryParameter = {} as any;
  11682. // authentication cookie required
  11683. // authentication api_key required
  11684. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11685. // authentication bearer required
  11686. // http bearer authentication required
  11687. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11688. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11689. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11690. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11691. return {
  11692. url: toPathString(localVarUrlObj),
  11693. options: localVarRequestOptions,
  11694. };
  11695. },
  11696. /**
  11697. *
  11698. * @param {string} id
  11699. * @param {*} [options] Override http request option.
  11700. * @throws {RequiredError}
  11701. */
  11702. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11703. // verify required parameter 'id' is not null or undefined
  11704. assertParamExists('getPersonThumbnail', 'id', id)
  11705. const localVarPath = `/person/{id}/thumbnail`
  11706. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11707. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11708. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11709. let baseOptions;
  11710. if (configuration) {
  11711. baseOptions = configuration.baseOptions;
  11712. }
  11713. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11714. const localVarHeaderParameter = {} as any;
  11715. const localVarQueryParameter = {} as any;
  11716. // authentication cookie required
  11717. // authentication api_key required
  11718. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11719. // authentication bearer required
  11720. // http bearer authentication required
  11721. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11722. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11723. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11724. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11725. return {
  11726. url: toPathString(localVarUrlObj),
  11727. options: localVarRequestOptions,
  11728. };
  11729. },
  11730. /**
  11731. *
  11732. * @param {string} id
  11733. * @param {MergePersonDto} mergePersonDto
  11734. * @param {*} [options] Override http request option.
  11735. * @throws {RequiredError}
  11736. */
  11737. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11738. // verify required parameter 'id' is not null or undefined
  11739. assertParamExists('mergePerson', 'id', id)
  11740. // verify required parameter 'mergePersonDto' is not null or undefined
  11741. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  11742. const localVarPath = `/person/{id}/merge`
  11743. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11744. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11745. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11746. let baseOptions;
  11747. if (configuration) {
  11748. baseOptions = configuration.baseOptions;
  11749. }
  11750. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11751. const localVarHeaderParameter = {} as any;
  11752. const localVarQueryParameter = {} as any;
  11753. // authentication cookie required
  11754. // authentication api_key required
  11755. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11756. // authentication bearer required
  11757. // http bearer authentication required
  11758. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11759. localVarHeaderParameter['Content-Type'] = 'application/json';
  11760. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11761. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11762. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11763. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  11764. return {
  11765. url: toPathString(localVarUrlObj),
  11766. options: localVarRequestOptions,
  11767. };
  11768. },
  11769. /**
  11770. *
  11771. * @param {PeopleUpdateDto} peopleUpdateDto
  11772. * @param {*} [options] Override http request option.
  11773. * @throws {RequiredError}
  11774. */
  11775. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11776. // verify required parameter 'peopleUpdateDto' is not null or undefined
  11777. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  11778. const localVarPath = `/person`;
  11779. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11780. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11781. let baseOptions;
  11782. if (configuration) {
  11783. baseOptions = configuration.baseOptions;
  11784. }
  11785. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11786. const localVarHeaderParameter = {} as any;
  11787. const localVarQueryParameter = {} as any;
  11788. // authentication cookie required
  11789. // authentication api_key required
  11790. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11791. // authentication bearer required
  11792. // http bearer authentication required
  11793. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11794. localVarHeaderParameter['Content-Type'] = 'application/json';
  11795. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11796. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11797. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11798. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  11799. return {
  11800. url: toPathString(localVarUrlObj),
  11801. options: localVarRequestOptions,
  11802. };
  11803. },
  11804. /**
  11805. *
  11806. * @param {string} id
  11807. * @param {PersonUpdateDto} personUpdateDto
  11808. * @param {*} [options] Override http request option.
  11809. * @throws {RequiredError}
  11810. */
  11811. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11812. // verify required parameter 'id' is not null or undefined
  11813. assertParamExists('updatePerson', 'id', id)
  11814. // verify required parameter 'personUpdateDto' is not null or undefined
  11815. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  11816. const localVarPath = `/person/{id}`
  11817. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11818. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11819. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11820. let baseOptions;
  11821. if (configuration) {
  11822. baseOptions = configuration.baseOptions;
  11823. }
  11824. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11825. const localVarHeaderParameter = {} as any;
  11826. const localVarQueryParameter = {} as any;
  11827. // authentication cookie required
  11828. // authentication api_key required
  11829. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11830. // authentication bearer required
  11831. // http bearer authentication required
  11832. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11833. localVarHeaderParameter['Content-Type'] = 'application/json';
  11834. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11835. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11836. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11837. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  11838. return {
  11839. url: toPathString(localVarUrlObj),
  11840. options: localVarRequestOptions,
  11841. };
  11842. },
  11843. }
  11844. };
  11845. /**
  11846. * PersonApi - functional programming interface
  11847. * @export
  11848. */
  11849. export const PersonApiFp = function(configuration?: Configuration) {
  11850. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  11851. return {
  11852. /**
  11853. *
  11854. * @param {boolean} [withHidden]
  11855. * @param {*} [options] Override http request option.
  11856. * @throws {RequiredError}
  11857. */
  11858. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  11859. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  11860. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11861. },
  11862. /**
  11863. *
  11864. * @param {string} id
  11865. * @param {*} [options] Override http request option.
  11866. * @throws {RequiredError}
  11867. */
  11868. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11869. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  11870. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11871. },
  11872. /**
  11873. *
  11874. * @param {string} id
  11875. * @param {*} [options] Override http request option.
  11876. * @throws {RequiredError}
  11877. */
  11878. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  11879. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  11880. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11881. },
  11882. /**
  11883. *
  11884. * @param {string} id
  11885. * @param {*} [options] Override http request option.
  11886. * @throws {RequiredError}
  11887. */
  11888. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  11889. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  11890. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11891. },
  11892. /**
  11893. *
  11894. * @param {string} id
  11895. * @param {*} [options] Override http request option.
  11896. * @throws {RequiredError}
  11897. */
  11898. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  11899. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  11900. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11901. },
  11902. /**
  11903. *
  11904. * @param {string} id
  11905. * @param {MergePersonDto} mergePersonDto
  11906. * @param {*} [options] Override http request option.
  11907. * @throws {RequiredError}
  11908. */
  11909. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11910. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  11911. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11912. },
  11913. /**
  11914. *
  11915. * @param {PeopleUpdateDto} peopleUpdateDto
  11916. * @param {*} [options] Override http request option.
  11917. * @throws {RequiredError}
  11918. */
  11919. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11920. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  11921. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11922. },
  11923. /**
  11924. *
  11925. * @param {string} id
  11926. * @param {PersonUpdateDto} personUpdateDto
  11927. * @param {*} [options] Override http request option.
  11928. * @throws {RequiredError}
  11929. */
  11930. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11931. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  11932. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11933. },
  11934. }
  11935. };
  11936. /**
  11937. * PersonApi - factory interface
  11938. * @export
  11939. */
  11940. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11941. const localVarFp = PersonApiFp(configuration)
  11942. return {
  11943. /**
  11944. *
  11945. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11946. * @param {*} [options] Override http request option.
  11947. * @throws {RequiredError}
  11948. */
  11949. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  11950. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11951. },
  11952. /**
  11953. *
  11954. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11955. * @param {*} [options] Override http request option.
  11956. * @throws {RequiredError}
  11957. */
  11958. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11959. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  11960. },
  11961. /**
  11962. *
  11963. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11964. * @param {*} [options] Override http request option.
  11965. * @throws {RequiredError}
  11966. */
  11967. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  11968. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  11969. },
  11970. /**
  11971. *
  11972. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11973. * @param {*} [options] Override http request option.
  11974. * @throws {RequiredError}
  11975. */
  11976. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  11977. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  11978. },
  11979. /**
  11980. *
  11981. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11982. * @param {*} [options] Override http request option.
  11983. * @throws {RequiredError}
  11984. */
  11985. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  11986. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  11987. },
  11988. /**
  11989. *
  11990. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11991. * @param {*} [options] Override http request option.
  11992. * @throws {RequiredError}
  11993. */
  11994. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11995. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  11996. },
  11997. /**
  11998. *
  11999. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  12000. * @param {*} [options] Override http request option.
  12001. * @throws {RequiredError}
  12002. */
  12003. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  12004. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  12005. },
  12006. /**
  12007. *
  12008. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  12009. * @param {*} [options] Override http request option.
  12010. * @throws {RequiredError}
  12011. */
  12012. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  12013. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  12014. },
  12015. };
  12016. };
  12017. /**
  12018. * Request parameters for getAllPeople operation in PersonApi.
  12019. * @export
  12020. * @interface PersonApiGetAllPeopleRequest
  12021. */
  12022. export interface PersonApiGetAllPeopleRequest {
  12023. /**
  12024. *
  12025. * @type {boolean}
  12026. * @memberof PersonApiGetAllPeople
  12027. */
  12028. readonly withHidden?: boolean
  12029. }
  12030. /**
  12031. * Request parameters for getPerson operation in PersonApi.
  12032. * @export
  12033. * @interface PersonApiGetPersonRequest
  12034. */
  12035. export interface PersonApiGetPersonRequest {
  12036. /**
  12037. *
  12038. * @type {string}
  12039. * @memberof PersonApiGetPerson
  12040. */
  12041. readonly id: string
  12042. }
  12043. /**
  12044. * Request parameters for getPersonAssets operation in PersonApi.
  12045. * @export
  12046. * @interface PersonApiGetPersonAssetsRequest
  12047. */
  12048. export interface PersonApiGetPersonAssetsRequest {
  12049. /**
  12050. *
  12051. * @type {string}
  12052. * @memberof PersonApiGetPersonAssets
  12053. */
  12054. readonly id: string
  12055. }
  12056. /**
  12057. * Request parameters for getPersonStatistics operation in PersonApi.
  12058. * @export
  12059. * @interface PersonApiGetPersonStatisticsRequest
  12060. */
  12061. export interface PersonApiGetPersonStatisticsRequest {
  12062. /**
  12063. *
  12064. * @type {string}
  12065. * @memberof PersonApiGetPersonStatistics
  12066. */
  12067. readonly id: string
  12068. }
  12069. /**
  12070. * Request parameters for getPersonThumbnail operation in PersonApi.
  12071. * @export
  12072. * @interface PersonApiGetPersonThumbnailRequest
  12073. */
  12074. export interface PersonApiGetPersonThumbnailRequest {
  12075. /**
  12076. *
  12077. * @type {string}
  12078. * @memberof PersonApiGetPersonThumbnail
  12079. */
  12080. readonly id: string
  12081. }
  12082. /**
  12083. * Request parameters for mergePerson operation in PersonApi.
  12084. * @export
  12085. * @interface PersonApiMergePersonRequest
  12086. */
  12087. export interface PersonApiMergePersonRequest {
  12088. /**
  12089. *
  12090. * @type {string}
  12091. * @memberof PersonApiMergePerson
  12092. */
  12093. readonly id: string
  12094. /**
  12095. *
  12096. * @type {MergePersonDto}
  12097. * @memberof PersonApiMergePerson
  12098. */
  12099. readonly mergePersonDto: MergePersonDto
  12100. }
  12101. /**
  12102. * Request parameters for updatePeople operation in PersonApi.
  12103. * @export
  12104. * @interface PersonApiUpdatePeopleRequest
  12105. */
  12106. export interface PersonApiUpdatePeopleRequest {
  12107. /**
  12108. *
  12109. * @type {PeopleUpdateDto}
  12110. * @memberof PersonApiUpdatePeople
  12111. */
  12112. readonly peopleUpdateDto: PeopleUpdateDto
  12113. }
  12114. /**
  12115. * Request parameters for updatePerson operation in PersonApi.
  12116. * @export
  12117. * @interface PersonApiUpdatePersonRequest
  12118. */
  12119. export interface PersonApiUpdatePersonRequest {
  12120. /**
  12121. *
  12122. * @type {string}
  12123. * @memberof PersonApiUpdatePerson
  12124. */
  12125. readonly id: string
  12126. /**
  12127. *
  12128. * @type {PersonUpdateDto}
  12129. * @memberof PersonApiUpdatePerson
  12130. */
  12131. readonly personUpdateDto: PersonUpdateDto
  12132. }
  12133. /**
  12134. * PersonApi - object-oriented interface
  12135. * @export
  12136. * @class PersonApi
  12137. * @extends {BaseAPI}
  12138. */
  12139. export class PersonApi extends BaseAPI {
  12140. /**
  12141. *
  12142. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  12143. * @param {*} [options] Override http request option.
  12144. * @throws {RequiredError}
  12145. * @memberof PersonApi
  12146. */
  12147. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  12148. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12149. }
  12150. /**
  12151. *
  12152. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  12153. * @param {*} [options] Override http request option.
  12154. * @throws {RequiredError}
  12155. * @memberof PersonApi
  12156. */
  12157. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  12158. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12159. }
  12160. /**
  12161. *
  12162. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  12163. * @param {*} [options] Override http request option.
  12164. * @throws {RequiredError}
  12165. * @memberof PersonApi
  12166. */
  12167. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  12168. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12169. }
  12170. /**
  12171. *
  12172. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  12173. * @param {*} [options] Override http request option.
  12174. * @throws {RequiredError}
  12175. * @memberof PersonApi
  12176. */
  12177. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  12178. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12179. }
  12180. /**
  12181. *
  12182. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  12183. * @param {*} [options] Override http request option.
  12184. * @throws {RequiredError}
  12185. * @memberof PersonApi
  12186. */
  12187. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  12188. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12189. }
  12190. /**
  12191. *
  12192. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  12193. * @param {*} [options] Override http request option.
  12194. * @throws {RequiredError}
  12195. * @memberof PersonApi
  12196. */
  12197. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  12198. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  12199. }
  12200. /**
  12201. *
  12202. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  12203. * @param {*} [options] Override http request option.
  12204. * @throws {RequiredError}
  12205. * @memberof PersonApi
  12206. */
  12207. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  12208. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  12209. }
  12210. /**
  12211. *
  12212. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  12213. * @param {*} [options] Override http request option.
  12214. * @throws {RequiredError}
  12215. * @memberof PersonApi
  12216. */
  12217. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  12218. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  12219. }
  12220. }
  12221. /**
  12222. * SearchApi - axios parameter creator
  12223. * @export
  12224. */
  12225. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  12226. return {
  12227. /**
  12228. *
  12229. * @param {*} [options] Override http request option.
  12230. * @throws {RequiredError}
  12231. */
  12232. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12233. const localVarPath = `/search/explore`;
  12234. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12235. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12236. let baseOptions;
  12237. if (configuration) {
  12238. baseOptions = configuration.baseOptions;
  12239. }
  12240. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12241. const localVarHeaderParameter = {} as any;
  12242. const localVarQueryParameter = {} as any;
  12243. // authentication cookie required
  12244. // authentication api_key required
  12245. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12246. // authentication bearer required
  12247. // http bearer authentication required
  12248. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12249. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12250. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12251. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12252. return {
  12253. url: toPathString(localVarUrlObj),
  12254. options: localVarRequestOptions,
  12255. };
  12256. },
  12257. /**
  12258. *
  12259. * @param {string} [q]
  12260. * @param {string} [query]
  12261. * @param {boolean} [clip]
  12262. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12263. * @param {boolean} [isFavorite]
  12264. * @param {boolean} [isArchived]
  12265. * @param {string} [exifInfoCity]
  12266. * @param {string} [exifInfoState]
  12267. * @param {string} [exifInfoCountry]
  12268. * @param {string} [exifInfoMake]
  12269. * @param {string} [exifInfoModel]
  12270. * @param {string} [exifInfoProjectionType]
  12271. * @param {Array<string>} [smartInfoObjects]
  12272. * @param {Array<string>} [smartInfoTags]
  12273. * @param {boolean} [recent]
  12274. * @param {boolean} [motion]
  12275. * @param {*} [options] Override http request option.
  12276. * @throws {RequiredError}
  12277. */
  12278. 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> => {
  12279. const localVarPath = `/search`;
  12280. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12281. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12282. let baseOptions;
  12283. if (configuration) {
  12284. baseOptions = configuration.baseOptions;
  12285. }
  12286. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12287. const localVarHeaderParameter = {} as any;
  12288. const localVarQueryParameter = {} as any;
  12289. // authentication cookie required
  12290. // authentication api_key required
  12291. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12292. // authentication bearer required
  12293. // http bearer authentication required
  12294. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12295. if (q !== undefined) {
  12296. localVarQueryParameter['q'] = q;
  12297. }
  12298. if (query !== undefined) {
  12299. localVarQueryParameter['query'] = query;
  12300. }
  12301. if (clip !== undefined) {
  12302. localVarQueryParameter['clip'] = clip;
  12303. }
  12304. if (type !== undefined) {
  12305. localVarQueryParameter['type'] = type;
  12306. }
  12307. if (isFavorite !== undefined) {
  12308. localVarQueryParameter['isFavorite'] = isFavorite;
  12309. }
  12310. if (isArchived !== undefined) {
  12311. localVarQueryParameter['isArchived'] = isArchived;
  12312. }
  12313. if (exifInfoCity !== undefined) {
  12314. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  12315. }
  12316. if (exifInfoState !== undefined) {
  12317. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  12318. }
  12319. if (exifInfoCountry !== undefined) {
  12320. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  12321. }
  12322. if (exifInfoMake !== undefined) {
  12323. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  12324. }
  12325. if (exifInfoModel !== undefined) {
  12326. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  12327. }
  12328. if (exifInfoProjectionType !== undefined) {
  12329. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  12330. }
  12331. if (smartInfoObjects) {
  12332. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  12333. }
  12334. if (smartInfoTags) {
  12335. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  12336. }
  12337. if (recent !== undefined) {
  12338. localVarQueryParameter['recent'] = recent;
  12339. }
  12340. if (motion !== undefined) {
  12341. localVarQueryParameter['motion'] = motion;
  12342. }
  12343. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12344. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12345. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12346. return {
  12347. url: toPathString(localVarUrlObj),
  12348. options: localVarRequestOptions,
  12349. };
  12350. },
  12351. /**
  12352. *
  12353. * @param {string} name
  12354. * @param {boolean} [withHidden]
  12355. * @param {*} [options] Override http request option.
  12356. * @throws {RequiredError}
  12357. */
  12358. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12359. // verify required parameter 'name' is not null or undefined
  12360. assertParamExists('searchPerson', 'name', name)
  12361. const localVarPath = `/search/person`;
  12362. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12363. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12364. let baseOptions;
  12365. if (configuration) {
  12366. baseOptions = configuration.baseOptions;
  12367. }
  12368. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12369. const localVarHeaderParameter = {} as any;
  12370. const localVarQueryParameter = {} as any;
  12371. // authentication cookie required
  12372. // authentication api_key required
  12373. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12374. // authentication bearer required
  12375. // http bearer authentication required
  12376. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12377. if (name !== undefined) {
  12378. localVarQueryParameter['name'] = name;
  12379. }
  12380. if (withHidden !== undefined) {
  12381. localVarQueryParameter['withHidden'] = withHidden;
  12382. }
  12383. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12384. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12385. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12386. return {
  12387. url: toPathString(localVarUrlObj),
  12388. options: localVarRequestOptions,
  12389. };
  12390. },
  12391. }
  12392. };
  12393. /**
  12394. * SearchApi - functional programming interface
  12395. * @export
  12396. */
  12397. export const SearchApiFp = function(configuration?: Configuration) {
  12398. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  12399. return {
  12400. /**
  12401. *
  12402. * @param {*} [options] Override http request option.
  12403. * @throws {RequiredError}
  12404. */
  12405. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  12406. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  12407. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12408. },
  12409. /**
  12410. *
  12411. * @param {string} [q]
  12412. * @param {string} [query]
  12413. * @param {boolean} [clip]
  12414. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12415. * @param {boolean} [isFavorite]
  12416. * @param {boolean} [isArchived]
  12417. * @param {string} [exifInfoCity]
  12418. * @param {string} [exifInfoState]
  12419. * @param {string} [exifInfoCountry]
  12420. * @param {string} [exifInfoMake]
  12421. * @param {string} [exifInfoModel]
  12422. * @param {string} [exifInfoProjectionType]
  12423. * @param {Array<string>} [smartInfoObjects]
  12424. * @param {Array<string>} [smartInfoTags]
  12425. * @param {boolean} [recent]
  12426. * @param {boolean} [motion]
  12427. * @param {*} [options] Override http request option.
  12428. * @throws {RequiredError}
  12429. */
  12430. 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>> {
  12431. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  12432. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12433. },
  12434. /**
  12435. *
  12436. * @param {string} name
  12437. * @param {boolean} [withHidden]
  12438. * @param {*} [options] Override http request option.
  12439. * @throws {RequiredError}
  12440. */
  12441. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  12442. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  12443. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12444. },
  12445. }
  12446. };
  12447. /**
  12448. * SearchApi - factory interface
  12449. * @export
  12450. */
  12451. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12452. const localVarFp = SearchApiFp(configuration)
  12453. return {
  12454. /**
  12455. *
  12456. * @param {*} [options] Override http request option.
  12457. * @throws {RequiredError}
  12458. */
  12459. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  12460. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  12461. },
  12462. /**
  12463. *
  12464. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12465. * @param {*} [options] Override http request option.
  12466. * @throws {RequiredError}
  12467. */
  12468. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  12469. 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));
  12470. },
  12471. /**
  12472. *
  12473. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12474. * @param {*} [options] Override http request option.
  12475. * @throws {RequiredError}
  12476. */
  12477. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  12478. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  12479. },
  12480. };
  12481. };
  12482. /**
  12483. * Request parameters for search operation in SearchApi.
  12484. * @export
  12485. * @interface SearchApiSearchRequest
  12486. */
  12487. export interface SearchApiSearchRequest {
  12488. /**
  12489. *
  12490. * @type {string}
  12491. * @memberof SearchApiSearch
  12492. */
  12493. readonly q?: string
  12494. /**
  12495. *
  12496. * @type {string}
  12497. * @memberof SearchApiSearch
  12498. */
  12499. readonly query?: string
  12500. /**
  12501. *
  12502. * @type {boolean}
  12503. * @memberof SearchApiSearch
  12504. */
  12505. readonly clip?: boolean
  12506. /**
  12507. *
  12508. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  12509. * @memberof SearchApiSearch
  12510. */
  12511. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  12512. /**
  12513. *
  12514. * @type {boolean}
  12515. * @memberof SearchApiSearch
  12516. */
  12517. readonly isFavorite?: boolean
  12518. /**
  12519. *
  12520. * @type {boolean}
  12521. * @memberof SearchApiSearch
  12522. */
  12523. readonly isArchived?: boolean
  12524. /**
  12525. *
  12526. * @type {string}
  12527. * @memberof SearchApiSearch
  12528. */
  12529. readonly exifInfoCity?: string
  12530. /**
  12531. *
  12532. * @type {string}
  12533. * @memberof SearchApiSearch
  12534. */
  12535. readonly exifInfoState?: string
  12536. /**
  12537. *
  12538. * @type {string}
  12539. * @memberof SearchApiSearch
  12540. */
  12541. readonly exifInfoCountry?: string
  12542. /**
  12543. *
  12544. * @type {string}
  12545. * @memberof SearchApiSearch
  12546. */
  12547. readonly exifInfoMake?: string
  12548. /**
  12549. *
  12550. * @type {string}
  12551. * @memberof SearchApiSearch
  12552. */
  12553. readonly exifInfoModel?: string
  12554. /**
  12555. *
  12556. * @type {string}
  12557. * @memberof SearchApiSearch
  12558. */
  12559. readonly exifInfoProjectionType?: string
  12560. /**
  12561. *
  12562. * @type {Array<string>}
  12563. * @memberof SearchApiSearch
  12564. */
  12565. readonly smartInfoObjects?: Array<string>
  12566. /**
  12567. *
  12568. * @type {Array<string>}
  12569. * @memberof SearchApiSearch
  12570. */
  12571. readonly smartInfoTags?: Array<string>
  12572. /**
  12573. *
  12574. * @type {boolean}
  12575. * @memberof SearchApiSearch
  12576. */
  12577. readonly recent?: boolean
  12578. /**
  12579. *
  12580. * @type {boolean}
  12581. * @memberof SearchApiSearch
  12582. */
  12583. readonly motion?: boolean
  12584. }
  12585. /**
  12586. * Request parameters for searchPerson operation in SearchApi.
  12587. * @export
  12588. * @interface SearchApiSearchPersonRequest
  12589. */
  12590. export interface SearchApiSearchPersonRequest {
  12591. /**
  12592. *
  12593. * @type {string}
  12594. * @memberof SearchApiSearchPerson
  12595. */
  12596. readonly name: string
  12597. /**
  12598. *
  12599. * @type {boolean}
  12600. * @memberof SearchApiSearchPerson
  12601. */
  12602. readonly withHidden?: boolean
  12603. }
  12604. /**
  12605. * SearchApi - object-oriented interface
  12606. * @export
  12607. * @class SearchApi
  12608. * @extends {BaseAPI}
  12609. */
  12610. export class SearchApi extends BaseAPI {
  12611. /**
  12612. *
  12613. * @param {*} [options] Override http request option.
  12614. * @throws {RequiredError}
  12615. * @memberof SearchApi
  12616. */
  12617. public getExploreData(options?: AxiosRequestConfig) {
  12618. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  12619. }
  12620. /**
  12621. *
  12622. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12623. * @param {*} [options] Override http request option.
  12624. * @throws {RequiredError}
  12625. * @memberof SearchApi
  12626. */
  12627. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  12628. 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));
  12629. }
  12630. /**
  12631. *
  12632. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12633. * @param {*} [options] Override http request option.
  12634. * @throws {RequiredError}
  12635. * @memberof SearchApi
  12636. */
  12637. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  12638. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12639. }
  12640. }
  12641. /**
  12642. * ServerInfoApi - axios parameter creator
  12643. * @export
  12644. */
  12645. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  12646. return {
  12647. /**
  12648. *
  12649. * @param {*} [options] Override http request option.
  12650. * @throws {RequiredError}
  12651. */
  12652. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12653. const localVarPath = `/server-info/config`;
  12654. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12655. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12656. let baseOptions;
  12657. if (configuration) {
  12658. baseOptions = configuration.baseOptions;
  12659. }
  12660. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12661. const localVarHeaderParameter = {} as any;
  12662. const localVarQueryParameter = {} as any;
  12663. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12664. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12665. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12666. return {
  12667. url: toPathString(localVarUrlObj),
  12668. options: localVarRequestOptions,
  12669. };
  12670. },
  12671. /**
  12672. *
  12673. * @param {*} [options] Override http request option.
  12674. * @throws {RequiredError}
  12675. */
  12676. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12677. const localVarPath = `/server-info/features`;
  12678. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12679. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12680. let baseOptions;
  12681. if (configuration) {
  12682. baseOptions = configuration.baseOptions;
  12683. }
  12684. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12685. const localVarHeaderParameter = {} as any;
  12686. const localVarQueryParameter = {} as any;
  12687. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12688. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12689. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12690. return {
  12691. url: toPathString(localVarUrlObj),
  12692. options: localVarRequestOptions,
  12693. };
  12694. },
  12695. /**
  12696. *
  12697. * @param {*} [options] Override http request option.
  12698. * @throws {RequiredError}
  12699. */
  12700. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12701. const localVarPath = `/server-info`;
  12702. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12703. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12704. let baseOptions;
  12705. if (configuration) {
  12706. baseOptions = configuration.baseOptions;
  12707. }
  12708. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12709. const localVarHeaderParameter = {} as any;
  12710. const localVarQueryParameter = {} as any;
  12711. // authentication cookie required
  12712. // authentication api_key required
  12713. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12714. // authentication bearer required
  12715. // http bearer authentication required
  12716. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12717. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12718. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12719. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12720. return {
  12721. url: toPathString(localVarUrlObj),
  12722. options: localVarRequestOptions,
  12723. };
  12724. },
  12725. /**
  12726. *
  12727. * @param {*} [options] Override http request option.
  12728. * @throws {RequiredError}
  12729. */
  12730. getServerStatistics: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12731. const localVarPath = `/server-info/statistics`;
  12732. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12733. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12734. let baseOptions;
  12735. if (configuration) {
  12736. baseOptions = configuration.baseOptions;
  12737. }
  12738. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12739. const localVarHeaderParameter = {} as any;
  12740. const localVarQueryParameter = {} as any;
  12741. // authentication cookie required
  12742. // authentication api_key required
  12743. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12744. // authentication bearer required
  12745. // http bearer authentication required
  12746. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12747. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12748. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12749. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12750. return {
  12751. url: toPathString(localVarUrlObj),
  12752. options: localVarRequestOptions,
  12753. };
  12754. },
  12755. /**
  12756. *
  12757. * @param {*} [options] Override http request option.
  12758. * @throws {RequiredError}
  12759. */
  12760. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12761. const localVarPath = `/server-info/version`;
  12762. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12763. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12764. let baseOptions;
  12765. if (configuration) {
  12766. baseOptions = configuration.baseOptions;
  12767. }
  12768. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12769. const localVarHeaderParameter = {} as any;
  12770. const localVarQueryParameter = {} as any;
  12771. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12772. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12773. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12774. return {
  12775. url: toPathString(localVarUrlObj),
  12776. options: localVarRequestOptions,
  12777. };
  12778. },
  12779. /**
  12780. *
  12781. * @param {*} [options] Override http request option.
  12782. * @throws {RequiredError}
  12783. */
  12784. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12785. const localVarPath = `/server-info/media-types`;
  12786. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12787. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12788. let baseOptions;
  12789. if (configuration) {
  12790. baseOptions = configuration.baseOptions;
  12791. }
  12792. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12793. const localVarHeaderParameter = {} as any;
  12794. const localVarQueryParameter = {} as any;
  12795. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12796. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12797. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12798. return {
  12799. url: toPathString(localVarUrlObj),
  12800. options: localVarRequestOptions,
  12801. };
  12802. },
  12803. /**
  12804. *
  12805. * @param {*} [options] Override http request option.
  12806. * @throws {RequiredError}
  12807. */
  12808. getTheme: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12809. const localVarPath = `/server-info/theme`;
  12810. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12811. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12812. let baseOptions;
  12813. if (configuration) {
  12814. baseOptions = configuration.baseOptions;
  12815. }
  12816. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12817. const localVarHeaderParameter = {} as any;
  12818. const localVarQueryParameter = {} as any;
  12819. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12820. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12821. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12822. return {
  12823. url: toPathString(localVarUrlObj),
  12824. options: localVarRequestOptions,
  12825. };
  12826. },
  12827. /**
  12828. *
  12829. * @param {*} [options] Override http request option.
  12830. * @throws {RequiredError}
  12831. */
  12832. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12833. const localVarPath = `/server-info/ping`;
  12834. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12835. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12836. let baseOptions;
  12837. if (configuration) {
  12838. baseOptions = configuration.baseOptions;
  12839. }
  12840. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12841. const localVarHeaderParameter = {} as any;
  12842. const localVarQueryParameter = {} as any;
  12843. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12844. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12845. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12846. return {
  12847. url: toPathString(localVarUrlObj),
  12848. options: localVarRequestOptions,
  12849. };
  12850. },
  12851. }
  12852. };
  12853. /**
  12854. * ServerInfoApi - functional programming interface
  12855. * @export
  12856. */
  12857. export const ServerInfoApiFp = function(configuration?: Configuration) {
  12858. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  12859. return {
  12860. /**
  12861. *
  12862. * @param {*} [options] Override http request option.
  12863. * @throws {RequiredError}
  12864. */
  12865. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  12866. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  12867. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12868. },
  12869. /**
  12870. *
  12871. * @param {*} [options] Override http request option.
  12872. * @throws {RequiredError}
  12873. */
  12874. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  12875. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  12876. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12877. },
  12878. /**
  12879. *
  12880. * @param {*} [options] Override http request option.
  12881. * @throws {RequiredError}
  12882. */
  12883. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  12884. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  12885. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12886. },
  12887. /**
  12888. *
  12889. * @param {*} [options] Override http request option.
  12890. * @throws {RequiredError}
  12891. */
  12892. async getServerStatistics(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  12893. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerStatistics(options);
  12894. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12895. },
  12896. /**
  12897. *
  12898. * @param {*} [options] Override http request option.
  12899. * @throws {RequiredError}
  12900. */
  12901. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  12902. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  12903. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12904. },
  12905. /**
  12906. *
  12907. * @param {*} [options] Override http request option.
  12908. * @throws {RequiredError}
  12909. */
  12910. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  12911. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  12912. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12913. },
  12914. /**
  12915. *
  12916. * @param {*} [options] Override http request option.
  12917. * @throws {RequiredError}
  12918. */
  12919. async getTheme(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerThemeDto>> {
  12920. const localVarAxiosArgs = await localVarAxiosParamCreator.getTheme(options);
  12921. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12922. },
  12923. /**
  12924. *
  12925. * @param {*} [options] Override http request option.
  12926. * @throws {RequiredError}
  12927. */
  12928. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  12929. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  12930. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12931. },
  12932. }
  12933. };
  12934. /**
  12935. * ServerInfoApi - factory interface
  12936. * @export
  12937. */
  12938. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12939. const localVarFp = ServerInfoApiFp(configuration)
  12940. return {
  12941. /**
  12942. *
  12943. * @param {*} [options] Override http request option.
  12944. * @throws {RequiredError}
  12945. */
  12946. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  12947. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  12948. },
  12949. /**
  12950. *
  12951. * @param {*} [options] Override http request option.
  12952. * @throws {RequiredError}
  12953. */
  12954. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  12955. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  12956. },
  12957. /**
  12958. *
  12959. * @param {*} [options] Override http request option.
  12960. * @throws {RequiredError}
  12961. */
  12962. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  12963. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  12964. },
  12965. /**
  12966. *
  12967. * @param {*} [options] Override http request option.
  12968. * @throws {RequiredError}
  12969. */
  12970. getServerStatistics(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  12971. return localVarFp.getServerStatistics(options).then((request) => request(axios, basePath));
  12972. },
  12973. /**
  12974. *
  12975. * @param {*} [options] Override http request option.
  12976. * @throws {RequiredError}
  12977. */
  12978. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  12979. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  12980. },
  12981. /**
  12982. *
  12983. * @param {*} [options] Override http request option.
  12984. * @throws {RequiredError}
  12985. */
  12986. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  12987. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  12988. },
  12989. /**
  12990. *
  12991. * @param {*} [options] Override http request option.
  12992. * @throws {RequiredError}
  12993. */
  12994. getTheme(options?: AxiosRequestConfig): AxiosPromise<ServerThemeDto> {
  12995. return localVarFp.getTheme(options).then((request) => request(axios, basePath));
  12996. },
  12997. /**
  12998. *
  12999. * @param {*} [options] Override http request option.
  13000. * @throws {RequiredError}
  13001. */
  13002. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  13003. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  13004. },
  13005. };
  13006. };
  13007. /**
  13008. * ServerInfoApi - object-oriented interface
  13009. * @export
  13010. * @class ServerInfoApi
  13011. * @extends {BaseAPI}
  13012. */
  13013. export class ServerInfoApi extends BaseAPI {
  13014. /**
  13015. *
  13016. * @param {*} [options] Override http request option.
  13017. * @throws {RequiredError}
  13018. * @memberof ServerInfoApi
  13019. */
  13020. public getServerConfig(options?: AxiosRequestConfig) {
  13021. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  13022. }
  13023. /**
  13024. *
  13025. * @param {*} [options] Override http request option.
  13026. * @throws {RequiredError}
  13027. * @memberof ServerInfoApi
  13028. */
  13029. public getServerFeatures(options?: AxiosRequestConfig) {
  13030. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  13031. }
  13032. /**
  13033. *
  13034. * @param {*} [options] Override http request option.
  13035. * @throws {RequiredError}
  13036. * @memberof ServerInfoApi
  13037. */
  13038. public getServerInfo(options?: AxiosRequestConfig) {
  13039. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  13040. }
  13041. /**
  13042. *
  13043. * @param {*} [options] Override http request option.
  13044. * @throws {RequiredError}
  13045. * @memberof ServerInfoApi
  13046. */
  13047. public getServerStatistics(options?: AxiosRequestConfig) {
  13048. return ServerInfoApiFp(this.configuration).getServerStatistics(options).then((request) => request(this.axios, this.basePath));
  13049. }
  13050. /**
  13051. *
  13052. * @param {*} [options] Override http request option.
  13053. * @throws {RequiredError}
  13054. * @memberof ServerInfoApi
  13055. */
  13056. public getServerVersion(options?: AxiosRequestConfig) {
  13057. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  13058. }
  13059. /**
  13060. *
  13061. * @param {*} [options] Override http request option.
  13062. * @throws {RequiredError}
  13063. * @memberof ServerInfoApi
  13064. */
  13065. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  13066. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  13067. }
  13068. /**
  13069. *
  13070. * @param {*} [options] Override http request option.
  13071. * @throws {RequiredError}
  13072. * @memberof ServerInfoApi
  13073. */
  13074. public getTheme(options?: AxiosRequestConfig) {
  13075. return ServerInfoApiFp(this.configuration).getTheme(options).then((request) => request(this.axios, this.basePath));
  13076. }
  13077. /**
  13078. *
  13079. * @param {*} [options] Override http request option.
  13080. * @throws {RequiredError}
  13081. * @memberof ServerInfoApi
  13082. */
  13083. public pingServer(options?: AxiosRequestConfig) {
  13084. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  13085. }
  13086. }
  13087. /**
  13088. * SharedLinkApi - axios parameter creator
  13089. * @export
  13090. */
  13091. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  13092. return {
  13093. /**
  13094. *
  13095. * @param {string} id
  13096. * @param {AssetIdsDto} assetIdsDto
  13097. * @param {string} [key]
  13098. * @param {*} [options] Override http request option.
  13099. * @throws {RequiredError}
  13100. */
  13101. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13102. // verify required parameter 'id' is not null or undefined
  13103. assertParamExists('addSharedLinkAssets', 'id', id)
  13104. // verify required parameter 'assetIdsDto' is not null or undefined
  13105. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13106. const localVarPath = `/shared-link/{id}/assets`
  13107. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13108. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13109. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13110. let baseOptions;
  13111. if (configuration) {
  13112. baseOptions = configuration.baseOptions;
  13113. }
  13114. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13115. const localVarHeaderParameter = {} as any;
  13116. const localVarQueryParameter = {} as any;
  13117. // authentication cookie required
  13118. // authentication api_key required
  13119. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13120. // authentication bearer required
  13121. // http bearer authentication required
  13122. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13123. if (key !== undefined) {
  13124. localVarQueryParameter['key'] = key;
  13125. }
  13126. localVarHeaderParameter['Content-Type'] = 'application/json';
  13127. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13128. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13129. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13130. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13131. return {
  13132. url: toPathString(localVarUrlObj),
  13133. options: localVarRequestOptions,
  13134. };
  13135. },
  13136. /**
  13137. *
  13138. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13139. * @param {*} [options] Override http request option.
  13140. * @throws {RequiredError}
  13141. */
  13142. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13143. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  13144. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  13145. const localVarPath = `/shared-link`;
  13146. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13147. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13148. let baseOptions;
  13149. if (configuration) {
  13150. baseOptions = configuration.baseOptions;
  13151. }
  13152. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13153. const localVarHeaderParameter = {} as any;
  13154. const localVarQueryParameter = {} as any;
  13155. // authentication cookie required
  13156. // authentication api_key required
  13157. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13158. // authentication bearer required
  13159. // http bearer authentication required
  13160. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13161. localVarHeaderParameter['Content-Type'] = 'application/json';
  13162. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13163. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13164. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13165. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  13166. return {
  13167. url: toPathString(localVarUrlObj),
  13168. options: localVarRequestOptions,
  13169. };
  13170. },
  13171. /**
  13172. *
  13173. * @param {*} [options] Override http request option.
  13174. * @throws {RequiredError}
  13175. */
  13176. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13177. const localVarPath = `/shared-link`;
  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: 'GET', ...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 {string} [password]
  13204. * @param {string} [token]
  13205. * @param {string} [key]
  13206. * @param {*} [options] Override http request option.
  13207. * @throws {RequiredError}
  13208. */
  13209. getMySharedLink: async (password?: string, token?: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13210. const localVarPath = `/shared-link/me`;
  13211. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13212. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13213. let baseOptions;
  13214. if (configuration) {
  13215. baseOptions = configuration.baseOptions;
  13216. }
  13217. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13218. const localVarHeaderParameter = {} as any;
  13219. const localVarQueryParameter = {} as any;
  13220. // authentication cookie required
  13221. // authentication api_key required
  13222. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13223. // authentication bearer required
  13224. // http bearer authentication required
  13225. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13226. if (password !== undefined) {
  13227. localVarQueryParameter['password'] = password;
  13228. }
  13229. if (token !== undefined) {
  13230. localVarQueryParameter['token'] = token;
  13231. }
  13232. if (key !== undefined) {
  13233. localVarQueryParameter['key'] = key;
  13234. }
  13235. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13236. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13237. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13238. return {
  13239. url: toPathString(localVarUrlObj),
  13240. options: localVarRequestOptions,
  13241. };
  13242. },
  13243. /**
  13244. *
  13245. * @param {string} id
  13246. * @param {*} [options] Override http request option.
  13247. * @throws {RequiredError}
  13248. */
  13249. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13250. // verify required parameter 'id' is not null or undefined
  13251. assertParamExists('getSharedLinkById', 'id', id)
  13252. const localVarPath = `/shared-link/{id}`
  13253. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13254. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13255. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13256. let baseOptions;
  13257. if (configuration) {
  13258. baseOptions = configuration.baseOptions;
  13259. }
  13260. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13261. const localVarHeaderParameter = {} as any;
  13262. const localVarQueryParameter = {} as any;
  13263. // authentication cookie required
  13264. // authentication api_key required
  13265. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13266. // authentication bearer required
  13267. // http bearer authentication required
  13268. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13269. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13270. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13271. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13272. return {
  13273. url: toPathString(localVarUrlObj),
  13274. options: localVarRequestOptions,
  13275. };
  13276. },
  13277. /**
  13278. *
  13279. * @param {string} id
  13280. * @param {*} [options] Override http request option.
  13281. * @throws {RequiredError}
  13282. */
  13283. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13284. // verify required parameter 'id' is not null or undefined
  13285. assertParamExists('removeSharedLink', 'id', id)
  13286. const localVarPath = `/shared-link/{id}`
  13287. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13288. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13289. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13290. let baseOptions;
  13291. if (configuration) {
  13292. baseOptions = configuration.baseOptions;
  13293. }
  13294. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13295. const localVarHeaderParameter = {} as any;
  13296. const localVarQueryParameter = {} as any;
  13297. // authentication cookie required
  13298. // authentication api_key required
  13299. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13300. // authentication bearer required
  13301. // http bearer authentication required
  13302. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13303. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13304. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13305. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13306. return {
  13307. url: toPathString(localVarUrlObj),
  13308. options: localVarRequestOptions,
  13309. };
  13310. },
  13311. /**
  13312. *
  13313. * @param {string} id
  13314. * @param {AssetIdsDto} assetIdsDto
  13315. * @param {string} [key]
  13316. * @param {*} [options] Override http request option.
  13317. * @throws {RequiredError}
  13318. */
  13319. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13320. // verify required parameter 'id' is not null or undefined
  13321. assertParamExists('removeSharedLinkAssets', 'id', id)
  13322. // verify required parameter 'assetIdsDto' is not null or undefined
  13323. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13324. const localVarPath = `/shared-link/{id}/assets`
  13325. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13326. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13327. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13328. let baseOptions;
  13329. if (configuration) {
  13330. baseOptions = configuration.baseOptions;
  13331. }
  13332. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13333. const localVarHeaderParameter = {} as any;
  13334. const localVarQueryParameter = {} as any;
  13335. // authentication cookie required
  13336. // authentication api_key required
  13337. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13338. // authentication bearer required
  13339. // http bearer authentication required
  13340. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13341. if (key !== undefined) {
  13342. localVarQueryParameter['key'] = key;
  13343. }
  13344. localVarHeaderParameter['Content-Type'] = 'application/json';
  13345. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13346. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13347. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13348. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13349. return {
  13350. url: toPathString(localVarUrlObj),
  13351. options: localVarRequestOptions,
  13352. };
  13353. },
  13354. /**
  13355. *
  13356. * @param {string} id
  13357. * @param {SharedLinkEditDto} sharedLinkEditDto
  13358. * @param {*} [options] Override http request option.
  13359. * @throws {RequiredError}
  13360. */
  13361. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13362. // verify required parameter 'id' is not null or undefined
  13363. assertParamExists('updateSharedLink', 'id', id)
  13364. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  13365. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  13366. const localVarPath = `/shared-link/{id}`
  13367. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13368. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13369. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13370. let baseOptions;
  13371. if (configuration) {
  13372. baseOptions = configuration.baseOptions;
  13373. }
  13374. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13375. const localVarHeaderParameter = {} as any;
  13376. const localVarQueryParameter = {} as any;
  13377. // authentication cookie required
  13378. // authentication api_key required
  13379. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13380. // authentication bearer required
  13381. // http bearer authentication required
  13382. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13383. localVarHeaderParameter['Content-Type'] = 'application/json';
  13384. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13385. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13386. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13387. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  13388. return {
  13389. url: toPathString(localVarUrlObj),
  13390. options: localVarRequestOptions,
  13391. };
  13392. },
  13393. }
  13394. };
  13395. /**
  13396. * SharedLinkApi - functional programming interface
  13397. * @export
  13398. */
  13399. export const SharedLinkApiFp = function(configuration?: Configuration) {
  13400. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  13401. return {
  13402. /**
  13403. *
  13404. * @param {string} id
  13405. * @param {AssetIdsDto} assetIdsDto
  13406. * @param {string} [key]
  13407. * @param {*} [options] Override http request option.
  13408. * @throws {RequiredError}
  13409. */
  13410. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13411. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  13412. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13413. },
  13414. /**
  13415. *
  13416. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13417. * @param {*} [options] Override http request option.
  13418. * @throws {RequiredError}
  13419. */
  13420. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13421. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  13422. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13423. },
  13424. /**
  13425. *
  13426. * @param {*} [options] Override http request option.
  13427. * @throws {RequiredError}
  13428. */
  13429. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  13430. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  13431. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13432. },
  13433. /**
  13434. *
  13435. * @param {string} [password]
  13436. * @param {string} [token]
  13437. * @param {string} [key]
  13438. * @param {*} [options] Override http request option.
  13439. * @throws {RequiredError}
  13440. */
  13441. async getMySharedLink(password?: string, token?: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13442. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(password, token, key, options);
  13443. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13444. },
  13445. /**
  13446. *
  13447. * @param {string} id
  13448. * @param {*} [options] Override http request option.
  13449. * @throws {RequiredError}
  13450. */
  13451. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13452. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  13453. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13454. },
  13455. /**
  13456. *
  13457. * @param {string} id
  13458. * @param {*} [options] Override http request option.
  13459. * @throws {RequiredError}
  13460. */
  13461. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13462. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  13463. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13464. },
  13465. /**
  13466. *
  13467. * @param {string} id
  13468. * @param {AssetIdsDto} assetIdsDto
  13469. * @param {string} [key]
  13470. * @param {*} [options] Override http request option.
  13471. * @throws {RequiredError}
  13472. */
  13473. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13474. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  13475. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13476. },
  13477. /**
  13478. *
  13479. * @param {string} id
  13480. * @param {SharedLinkEditDto} sharedLinkEditDto
  13481. * @param {*} [options] Override http request option.
  13482. * @throws {RequiredError}
  13483. */
  13484. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13485. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  13486. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13487. },
  13488. }
  13489. };
  13490. /**
  13491. * SharedLinkApi - factory interface
  13492. * @export
  13493. */
  13494. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13495. const localVarFp = SharedLinkApiFp(configuration)
  13496. return {
  13497. /**
  13498. *
  13499. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13500. * @param {*} [options] Override http request option.
  13501. * @throws {RequiredError}
  13502. */
  13503. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13504. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13505. },
  13506. /**
  13507. *
  13508. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13509. * @param {*} [options] Override http request option.
  13510. * @throws {RequiredError}
  13511. */
  13512. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13513. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  13514. },
  13515. /**
  13516. *
  13517. * @param {*} [options] Override http request option.
  13518. * @throws {RequiredError}
  13519. */
  13520. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  13521. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  13522. },
  13523. /**
  13524. *
  13525. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13526. * @param {*} [options] Override http request option.
  13527. * @throws {RequiredError}
  13528. */
  13529. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13530. return localVarFp.getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(axios, basePath));
  13531. },
  13532. /**
  13533. *
  13534. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13535. * @param {*} [options] Override http request option.
  13536. * @throws {RequiredError}
  13537. */
  13538. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13539. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  13540. },
  13541. /**
  13542. *
  13543. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13544. * @param {*} [options] Override http request option.
  13545. * @throws {RequiredError}
  13546. */
  13547. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13548. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  13549. },
  13550. /**
  13551. *
  13552. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13553. * @param {*} [options] Override http request option.
  13554. * @throws {RequiredError}
  13555. */
  13556. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13557. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13558. },
  13559. /**
  13560. *
  13561. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13562. * @param {*} [options] Override http request option.
  13563. * @throws {RequiredError}
  13564. */
  13565. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13566. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  13567. },
  13568. };
  13569. };
  13570. /**
  13571. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  13572. * @export
  13573. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  13574. */
  13575. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  13576. /**
  13577. *
  13578. * @type {string}
  13579. * @memberof SharedLinkApiAddSharedLinkAssets
  13580. */
  13581. readonly id: string
  13582. /**
  13583. *
  13584. * @type {AssetIdsDto}
  13585. * @memberof SharedLinkApiAddSharedLinkAssets
  13586. */
  13587. readonly assetIdsDto: AssetIdsDto
  13588. /**
  13589. *
  13590. * @type {string}
  13591. * @memberof SharedLinkApiAddSharedLinkAssets
  13592. */
  13593. readonly key?: string
  13594. }
  13595. /**
  13596. * Request parameters for createSharedLink operation in SharedLinkApi.
  13597. * @export
  13598. * @interface SharedLinkApiCreateSharedLinkRequest
  13599. */
  13600. export interface SharedLinkApiCreateSharedLinkRequest {
  13601. /**
  13602. *
  13603. * @type {SharedLinkCreateDto}
  13604. * @memberof SharedLinkApiCreateSharedLink
  13605. */
  13606. readonly sharedLinkCreateDto: SharedLinkCreateDto
  13607. }
  13608. /**
  13609. * Request parameters for getMySharedLink operation in SharedLinkApi.
  13610. * @export
  13611. * @interface SharedLinkApiGetMySharedLinkRequest
  13612. */
  13613. export interface SharedLinkApiGetMySharedLinkRequest {
  13614. /**
  13615. *
  13616. * @type {string}
  13617. * @memberof SharedLinkApiGetMySharedLink
  13618. */
  13619. readonly password?: string
  13620. /**
  13621. *
  13622. * @type {string}
  13623. * @memberof SharedLinkApiGetMySharedLink
  13624. */
  13625. readonly token?: string
  13626. /**
  13627. *
  13628. * @type {string}
  13629. * @memberof SharedLinkApiGetMySharedLink
  13630. */
  13631. readonly key?: string
  13632. }
  13633. /**
  13634. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  13635. * @export
  13636. * @interface SharedLinkApiGetSharedLinkByIdRequest
  13637. */
  13638. export interface SharedLinkApiGetSharedLinkByIdRequest {
  13639. /**
  13640. *
  13641. * @type {string}
  13642. * @memberof SharedLinkApiGetSharedLinkById
  13643. */
  13644. readonly id: string
  13645. }
  13646. /**
  13647. * Request parameters for removeSharedLink operation in SharedLinkApi.
  13648. * @export
  13649. * @interface SharedLinkApiRemoveSharedLinkRequest
  13650. */
  13651. export interface SharedLinkApiRemoveSharedLinkRequest {
  13652. /**
  13653. *
  13654. * @type {string}
  13655. * @memberof SharedLinkApiRemoveSharedLink
  13656. */
  13657. readonly id: string
  13658. }
  13659. /**
  13660. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  13661. * @export
  13662. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  13663. */
  13664. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  13665. /**
  13666. *
  13667. * @type {string}
  13668. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13669. */
  13670. readonly id: string
  13671. /**
  13672. *
  13673. * @type {AssetIdsDto}
  13674. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13675. */
  13676. readonly assetIdsDto: AssetIdsDto
  13677. /**
  13678. *
  13679. * @type {string}
  13680. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13681. */
  13682. readonly key?: string
  13683. }
  13684. /**
  13685. * Request parameters for updateSharedLink operation in SharedLinkApi.
  13686. * @export
  13687. * @interface SharedLinkApiUpdateSharedLinkRequest
  13688. */
  13689. export interface SharedLinkApiUpdateSharedLinkRequest {
  13690. /**
  13691. *
  13692. * @type {string}
  13693. * @memberof SharedLinkApiUpdateSharedLink
  13694. */
  13695. readonly id: string
  13696. /**
  13697. *
  13698. * @type {SharedLinkEditDto}
  13699. * @memberof SharedLinkApiUpdateSharedLink
  13700. */
  13701. readonly sharedLinkEditDto: SharedLinkEditDto
  13702. }
  13703. /**
  13704. * SharedLinkApi - object-oriented interface
  13705. * @export
  13706. * @class SharedLinkApi
  13707. * @extends {BaseAPI}
  13708. */
  13709. export class SharedLinkApi extends BaseAPI {
  13710. /**
  13711. *
  13712. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13713. * @param {*} [options] Override http request option.
  13714. * @throws {RequiredError}
  13715. * @memberof SharedLinkApi
  13716. */
  13717. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  13718. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13719. }
  13720. /**
  13721. *
  13722. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13723. * @param {*} [options] Override http request option.
  13724. * @throws {RequiredError}
  13725. * @memberof SharedLinkApi
  13726. */
  13727. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  13728. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  13729. }
  13730. /**
  13731. *
  13732. * @param {*} [options] Override http request option.
  13733. * @throws {RequiredError}
  13734. * @memberof SharedLinkApi
  13735. */
  13736. public getAllSharedLinks(options?: AxiosRequestConfig) {
  13737. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  13738. }
  13739. /**
  13740. *
  13741. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13742. * @param {*} [options] Override http request option.
  13743. * @throws {RequiredError}
  13744. * @memberof SharedLinkApi
  13745. */
  13746. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  13747. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13748. }
  13749. /**
  13750. *
  13751. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13752. * @param {*} [options] Override http request option.
  13753. * @throws {RequiredError}
  13754. * @memberof SharedLinkApi
  13755. */
  13756. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  13757. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13758. }
  13759. /**
  13760. *
  13761. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13762. * @param {*} [options] Override http request option.
  13763. * @throws {RequiredError}
  13764. * @memberof SharedLinkApi
  13765. */
  13766. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  13767. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13768. }
  13769. /**
  13770. *
  13771. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13772. * @param {*} [options] Override http request option.
  13773. * @throws {RequiredError}
  13774. * @memberof SharedLinkApi
  13775. */
  13776. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  13777. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13778. }
  13779. /**
  13780. *
  13781. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13782. * @param {*} [options] Override http request option.
  13783. * @throws {RequiredError}
  13784. * @memberof SharedLinkApi
  13785. */
  13786. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  13787. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  13788. }
  13789. }
  13790. /**
  13791. * SystemConfigApi - axios parameter creator
  13792. * @export
  13793. */
  13794. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  13795. return {
  13796. /**
  13797. *
  13798. * @param {*} [options] Override http request option.
  13799. * @throws {RequiredError}
  13800. */
  13801. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13802. const localVarPath = `/system-config`;
  13803. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13804. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13805. let baseOptions;
  13806. if (configuration) {
  13807. baseOptions = configuration.baseOptions;
  13808. }
  13809. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13810. const localVarHeaderParameter = {} as any;
  13811. const localVarQueryParameter = {} as any;
  13812. // authentication cookie required
  13813. // authentication api_key required
  13814. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13815. // authentication bearer required
  13816. // http bearer authentication required
  13817. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13818. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13819. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13820. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13821. return {
  13822. url: toPathString(localVarUrlObj),
  13823. options: localVarRequestOptions,
  13824. };
  13825. },
  13826. /**
  13827. *
  13828. * @param {*} [options] Override http request option.
  13829. * @throws {RequiredError}
  13830. */
  13831. getConfigDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13832. const localVarPath = `/system-config/defaults`;
  13833. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13834. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13835. let baseOptions;
  13836. if (configuration) {
  13837. baseOptions = configuration.baseOptions;
  13838. }
  13839. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13840. const localVarHeaderParameter = {} as any;
  13841. const localVarQueryParameter = {} as any;
  13842. // authentication cookie required
  13843. // authentication api_key required
  13844. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13845. // authentication bearer required
  13846. // http bearer authentication required
  13847. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13848. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13849. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13850. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13851. return {
  13852. url: toPathString(localVarUrlObj),
  13853. options: localVarRequestOptions,
  13854. };
  13855. },
  13856. /**
  13857. *
  13858. * @param {MapTheme} theme
  13859. * @param {*} [options] Override http request option.
  13860. * @throws {RequiredError}
  13861. */
  13862. getMapStyle: async (theme: MapTheme, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13863. // verify required parameter 'theme' is not null or undefined
  13864. assertParamExists('getMapStyle', 'theme', theme)
  13865. const localVarPath = `/system-config/map/style.json`;
  13866. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13867. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13868. let baseOptions;
  13869. if (configuration) {
  13870. baseOptions = configuration.baseOptions;
  13871. }
  13872. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13873. const localVarHeaderParameter = {} as any;
  13874. const localVarQueryParameter = {} as any;
  13875. // authentication cookie required
  13876. // authentication api_key required
  13877. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13878. // authentication bearer required
  13879. // http bearer authentication required
  13880. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13881. if (theme !== undefined) {
  13882. localVarQueryParameter['theme'] = theme;
  13883. }
  13884. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13885. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13886. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13887. return {
  13888. url: toPathString(localVarUrlObj),
  13889. options: localVarRequestOptions,
  13890. };
  13891. },
  13892. /**
  13893. *
  13894. * @param {*} [options] Override http request option.
  13895. * @throws {RequiredError}
  13896. */
  13897. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13898. const localVarPath = `/system-config/storage-template-options`;
  13899. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13900. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13901. let baseOptions;
  13902. if (configuration) {
  13903. baseOptions = configuration.baseOptions;
  13904. }
  13905. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13906. const localVarHeaderParameter = {} as any;
  13907. const localVarQueryParameter = {} as any;
  13908. // authentication cookie required
  13909. // authentication api_key required
  13910. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13911. // authentication bearer required
  13912. // http bearer authentication required
  13913. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13914. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13915. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13916. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13917. return {
  13918. url: toPathString(localVarUrlObj),
  13919. options: localVarRequestOptions,
  13920. };
  13921. },
  13922. /**
  13923. *
  13924. * @param {SystemConfigDto} systemConfigDto
  13925. * @param {*} [options] Override http request option.
  13926. * @throws {RequiredError}
  13927. */
  13928. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13929. // verify required parameter 'systemConfigDto' is not null or undefined
  13930. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  13931. const localVarPath = `/system-config`;
  13932. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13933. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13934. let baseOptions;
  13935. if (configuration) {
  13936. baseOptions = configuration.baseOptions;
  13937. }
  13938. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13939. const localVarHeaderParameter = {} as any;
  13940. const localVarQueryParameter = {} as any;
  13941. // authentication cookie required
  13942. // authentication api_key required
  13943. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13944. // authentication bearer required
  13945. // http bearer authentication required
  13946. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13947. localVarHeaderParameter['Content-Type'] = 'application/json';
  13948. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13949. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13950. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13951. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  13952. return {
  13953. url: toPathString(localVarUrlObj),
  13954. options: localVarRequestOptions,
  13955. };
  13956. },
  13957. }
  13958. };
  13959. /**
  13960. * SystemConfigApi - functional programming interface
  13961. * @export
  13962. */
  13963. export const SystemConfigApiFp = function(configuration?: Configuration) {
  13964. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  13965. return {
  13966. /**
  13967. *
  13968. * @param {*} [options] Override http request option.
  13969. * @throws {RequiredError}
  13970. */
  13971. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13972. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  13973. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13974. },
  13975. /**
  13976. *
  13977. * @param {*} [options] Override http request option.
  13978. * @throws {RequiredError}
  13979. */
  13980. async getConfigDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13981. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfigDefaults(options);
  13982. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13983. },
  13984. /**
  13985. *
  13986. * @param {MapTheme} theme
  13987. * @param {*} [options] Override http request option.
  13988. * @throws {RequiredError}
  13989. */
  13990. async getMapStyle(theme: MapTheme, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  13991. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapStyle(theme, options);
  13992. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13993. },
  13994. /**
  13995. *
  13996. * @param {*} [options] Override http request option.
  13997. * @throws {RequiredError}
  13998. */
  13999. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  14000. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  14001. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14002. },
  14003. /**
  14004. *
  14005. * @param {SystemConfigDto} systemConfigDto
  14006. * @param {*} [options] Override http request option.
  14007. * @throws {RequiredError}
  14008. */
  14009. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  14010. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  14011. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14012. },
  14013. }
  14014. };
  14015. /**
  14016. * SystemConfigApi - factory interface
  14017. * @export
  14018. */
  14019. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14020. const localVarFp = SystemConfigApiFp(configuration)
  14021. return {
  14022. /**
  14023. *
  14024. * @param {*} [options] Override http request option.
  14025. * @throws {RequiredError}
  14026. */
  14027. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14028. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  14029. },
  14030. /**
  14031. *
  14032. * @param {*} [options] Override http request option.
  14033. * @throws {RequiredError}
  14034. */
  14035. getConfigDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14036. return localVarFp.getConfigDefaults(options).then((request) => request(axios, basePath));
  14037. },
  14038. /**
  14039. *
  14040. * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
  14041. * @param {*} [options] Override http request option.
  14042. * @throws {RequiredError}
  14043. */
  14044. getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14045. return localVarFp.getMapStyle(requestParameters.theme, options).then((request) => request(axios, basePath));
  14046. },
  14047. /**
  14048. *
  14049. * @param {*} [options] Override http request option.
  14050. * @throws {RequiredError}
  14051. */
  14052. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  14053. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  14054. },
  14055. /**
  14056. *
  14057. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  14058. * @param {*} [options] Override http request option.
  14059. * @throws {RequiredError}
  14060. */
  14061. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14062. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  14063. },
  14064. };
  14065. };
  14066. /**
  14067. * Request parameters for getMapStyle operation in SystemConfigApi.
  14068. * @export
  14069. * @interface SystemConfigApiGetMapStyleRequest
  14070. */
  14071. export interface SystemConfigApiGetMapStyleRequest {
  14072. /**
  14073. *
  14074. * @type {MapTheme}
  14075. * @memberof SystemConfigApiGetMapStyle
  14076. */
  14077. readonly theme: MapTheme
  14078. }
  14079. /**
  14080. * Request parameters for updateConfig operation in SystemConfigApi.
  14081. * @export
  14082. * @interface SystemConfigApiUpdateConfigRequest
  14083. */
  14084. export interface SystemConfigApiUpdateConfigRequest {
  14085. /**
  14086. *
  14087. * @type {SystemConfigDto}
  14088. * @memberof SystemConfigApiUpdateConfig
  14089. */
  14090. readonly systemConfigDto: SystemConfigDto
  14091. }
  14092. /**
  14093. * SystemConfigApi - object-oriented interface
  14094. * @export
  14095. * @class SystemConfigApi
  14096. * @extends {BaseAPI}
  14097. */
  14098. export class SystemConfigApi extends BaseAPI {
  14099. /**
  14100. *
  14101. * @param {*} [options] Override http request option.
  14102. * @throws {RequiredError}
  14103. * @memberof SystemConfigApi
  14104. */
  14105. public getConfig(options?: AxiosRequestConfig) {
  14106. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  14107. }
  14108. /**
  14109. *
  14110. * @param {*} [options] Override http request option.
  14111. * @throws {RequiredError}
  14112. * @memberof SystemConfigApi
  14113. */
  14114. public getConfigDefaults(options?: AxiosRequestConfig) {
  14115. return SystemConfigApiFp(this.configuration).getConfigDefaults(options).then((request) => request(this.axios, this.basePath));
  14116. }
  14117. /**
  14118. *
  14119. * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
  14120. * @param {*} [options] Override http request option.
  14121. * @throws {RequiredError}
  14122. * @memberof SystemConfigApi
  14123. */
  14124. public getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig) {
  14125. return SystemConfigApiFp(this.configuration).getMapStyle(requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
  14126. }
  14127. /**
  14128. *
  14129. * @param {*} [options] Override http request option.
  14130. * @throws {RequiredError}
  14131. * @memberof SystemConfigApi
  14132. */
  14133. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  14134. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  14135. }
  14136. /**
  14137. *
  14138. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  14139. * @param {*} [options] Override http request option.
  14140. * @throws {RequiredError}
  14141. * @memberof SystemConfigApi
  14142. */
  14143. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  14144. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  14145. }
  14146. }
  14147. /**
  14148. * TagApi - axios parameter creator
  14149. * @export
  14150. */
  14151. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  14152. return {
  14153. /**
  14154. *
  14155. * @param {CreateTagDto} createTagDto
  14156. * @param {*} [options] Override http request option.
  14157. * @throws {RequiredError}
  14158. */
  14159. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14160. // verify required parameter 'createTagDto' is not null or undefined
  14161. assertParamExists('createTag', 'createTagDto', createTagDto)
  14162. const localVarPath = `/tag`;
  14163. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14164. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14165. let baseOptions;
  14166. if (configuration) {
  14167. baseOptions = configuration.baseOptions;
  14168. }
  14169. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14170. const localVarHeaderParameter = {} as any;
  14171. const localVarQueryParameter = {} as any;
  14172. // authentication cookie required
  14173. // authentication api_key required
  14174. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14175. // authentication bearer required
  14176. // http bearer authentication required
  14177. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14178. localVarHeaderParameter['Content-Type'] = 'application/json';
  14179. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14180. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14181. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14182. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  14183. return {
  14184. url: toPathString(localVarUrlObj),
  14185. options: localVarRequestOptions,
  14186. };
  14187. },
  14188. /**
  14189. *
  14190. * @param {string} id
  14191. * @param {*} [options] Override http request option.
  14192. * @throws {RequiredError}
  14193. */
  14194. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14195. // verify required parameter 'id' is not null or undefined
  14196. assertParamExists('deleteTag', 'id', id)
  14197. const localVarPath = `/tag/{id}`
  14198. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14199. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14200. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14201. let baseOptions;
  14202. if (configuration) {
  14203. baseOptions = configuration.baseOptions;
  14204. }
  14205. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14206. const localVarHeaderParameter = {} as any;
  14207. const localVarQueryParameter = {} as any;
  14208. // authentication cookie required
  14209. // authentication api_key required
  14210. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14211. // authentication bearer required
  14212. // http bearer authentication required
  14213. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14214. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14215. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14216. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14217. return {
  14218. url: toPathString(localVarUrlObj),
  14219. options: localVarRequestOptions,
  14220. };
  14221. },
  14222. /**
  14223. *
  14224. * @param {*} [options] Override http request option.
  14225. * @throws {RequiredError}
  14226. */
  14227. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14228. const localVarPath = `/tag`;
  14229. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14230. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14231. let baseOptions;
  14232. if (configuration) {
  14233. baseOptions = configuration.baseOptions;
  14234. }
  14235. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14236. const localVarHeaderParameter = {} as any;
  14237. const localVarQueryParameter = {} as any;
  14238. // authentication cookie required
  14239. // authentication api_key required
  14240. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14241. // authentication bearer required
  14242. // http bearer authentication required
  14243. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14244. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14245. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14246. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14247. return {
  14248. url: toPathString(localVarUrlObj),
  14249. options: localVarRequestOptions,
  14250. };
  14251. },
  14252. /**
  14253. *
  14254. * @param {string} id
  14255. * @param {*} [options] Override http request option.
  14256. * @throws {RequiredError}
  14257. */
  14258. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14259. // verify required parameter 'id' is not null or undefined
  14260. assertParamExists('getTagAssets', 'id', id)
  14261. const localVarPath = `/tag/{id}/assets`
  14262. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14263. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14264. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14265. let baseOptions;
  14266. if (configuration) {
  14267. baseOptions = configuration.baseOptions;
  14268. }
  14269. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14270. const localVarHeaderParameter = {} as any;
  14271. const localVarQueryParameter = {} as any;
  14272. // authentication cookie required
  14273. // authentication api_key required
  14274. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14275. // authentication bearer required
  14276. // http bearer authentication required
  14277. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14278. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14279. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14280. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14281. return {
  14282. url: toPathString(localVarUrlObj),
  14283. options: localVarRequestOptions,
  14284. };
  14285. },
  14286. /**
  14287. *
  14288. * @param {string} id
  14289. * @param {*} [options] Override http request option.
  14290. * @throws {RequiredError}
  14291. */
  14292. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14293. // verify required parameter 'id' is not null or undefined
  14294. assertParamExists('getTagById', 'id', id)
  14295. const localVarPath = `/tag/{id}`
  14296. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14297. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14298. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14299. let baseOptions;
  14300. if (configuration) {
  14301. baseOptions = configuration.baseOptions;
  14302. }
  14303. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14304. const localVarHeaderParameter = {} as any;
  14305. const localVarQueryParameter = {} as any;
  14306. // authentication cookie required
  14307. // authentication api_key required
  14308. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14309. // authentication bearer required
  14310. // http bearer authentication required
  14311. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14312. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14313. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14314. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14315. return {
  14316. url: toPathString(localVarUrlObj),
  14317. options: localVarRequestOptions,
  14318. };
  14319. },
  14320. /**
  14321. *
  14322. * @param {string} id
  14323. * @param {AssetIdsDto} assetIdsDto
  14324. * @param {*} [options] Override http request option.
  14325. * @throws {RequiredError}
  14326. */
  14327. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14328. // verify required parameter 'id' is not null or undefined
  14329. assertParamExists('tagAssets', 'id', id)
  14330. // verify required parameter 'assetIdsDto' is not null or undefined
  14331. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  14332. const localVarPath = `/tag/{id}/assets`
  14333. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14334. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14335. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14336. let baseOptions;
  14337. if (configuration) {
  14338. baseOptions = configuration.baseOptions;
  14339. }
  14340. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14341. const localVarHeaderParameter = {} as any;
  14342. const localVarQueryParameter = {} as any;
  14343. // authentication cookie required
  14344. // authentication api_key required
  14345. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14346. // authentication bearer required
  14347. // http bearer authentication required
  14348. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14349. localVarHeaderParameter['Content-Type'] = 'application/json';
  14350. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14351. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14352. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14353. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14354. return {
  14355. url: toPathString(localVarUrlObj),
  14356. options: localVarRequestOptions,
  14357. };
  14358. },
  14359. /**
  14360. *
  14361. * @param {string} id
  14362. * @param {AssetIdsDto} assetIdsDto
  14363. * @param {*} [options] Override http request option.
  14364. * @throws {RequiredError}
  14365. */
  14366. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14367. // verify required parameter 'id' is not null or undefined
  14368. assertParamExists('untagAssets', 'id', id)
  14369. // verify required parameter 'assetIdsDto' is not null or undefined
  14370. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  14371. const localVarPath = `/tag/{id}/assets`
  14372. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14373. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14374. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14375. let baseOptions;
  14376. if (configuration) {
  14377. baseOptions = configuration.baseOptions;
  14378. }
  14379. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14380. const localVarHeaderParameter = {} as any;
  14381. const localVarQueryParameter = {} as any;
  14382. // authentication cookie required
  14383. // authentication api_key required
  14384. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14385. // authentication bearer required
  14386. // http bearer authentication required
  14387. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14388. localVarHeaderParameter['Content-Type'] = 'application/json';
  14389. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14390. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14391. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14392. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14393. return {
  14394. url: toPathString(localVarUrlObj),
  14395. options: localVarRequestOptions,
  14396. };
  14397. },
  14398. /**
  14399. *
  14400. * @param {string} id
  14401. * @param {UpdateTagDto} updateTagDto
  14402. * @param {*} [options] Override http request option.
  14403. * @throws {RequiredError}
  14404. */
  14405. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14406. // verify required parameter 'id' is not null or undefined
  14407. assertParamExists('updateTag', 'id', id)
  14408. // verify required parameter 'updateTagDto' is not null or undefined
  14409. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  14410. const localVarPath = `/tag/{id}`
  14411. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14412. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14413. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14414. let baseOptions;
  14415. if (configuration) {
  14416. baseOptions = configuration.baseOptions;
  14417. }
  14418. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  14419. const localVarHeaderParameter = {} as any;
  14420. const localVarQueryParameter = {} as any;
  14421. // authentication cookie required
  14422. // authentication api_key required
  14423. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14424. // authentication bearer required
  14425. // http bearer authentication required
  14426. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14427. localVarHeaderParameter['Content-Type'] = 'application/json';
  14428. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14429. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14430. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14431. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  14432. return {
  14433. url: toPathString(localVarUrlObj),
  14434. options: localVarRequestOptions,
  14435. };
  14436. },
  14437. }
  14438. };
  14439. /**
  14440. * TagApi - functional programming interface
  14441. * @export
  14442. */
  14443. export const TagApiFp = function(configuration?: Configuration) {
  14444. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  14445. return {
  14446. /**
  14447. *
  14448. * @param {CreateTagDto} createTagDto
  14449. * @param {*} [options] Override http request option.
  14450. * @throws {RequiredError}
  14451. */
  14452. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14453. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  14454. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14455. },
  14456. /**
  14457. *
  14458. * @param {string} id
  14459. * @param {*} [options] Override http request option.
  14460. * @throws {RequiredError}
  14461. */
  14462. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  14463. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  14464. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14465. },
  14466. /**
  14467. *
  14468. * @param {*} [options] Override http request option.
  14469. * @throws {RequiredError}
  14470. */
  14471. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  14472. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  14473. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14474. },
  14475. /**
  14476. *
  14477. * @param {string} id
  14478. * @param {*} [options] Override http request option.
  14479. * @throws {RequiredError}
  14480. */
  14481. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  14482. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  14483. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14484. },
  14485. /**
  14486. *
  14487. * @param {string} id
  14488. * @param {*} [options] Override http request option.
  14489. * @throws {RequiredError}
  14490. */
  14491. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14492. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  14493. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14494. },
  14495. /**
  14496. *
  14497. * @param {string} id
  14498. * @param {AssetIdsDto} assetIdsDto
  14499. * @param {*} [options] Override http request option.
  14500. * @throws {RequiredError}
  14501. */
  14502. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14503. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  14504. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14505. },
  14506. /**
  14507. *
  14508. * @param {string} id
  14509. * @param {AssetIdsDto} assetIdsDto
  14510. * @param {*} [options] Override http request option.
  14511. * @throws {RequiredError}
  14512. */
  14513. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14514. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  14515. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14516. },
  14517. /**
  14518. *
  14519. * @param {string} id
  14520. * @param {UpdateTagDto} updateTagDto
  14521. * @param {*} [options] Override http request option.
  14522. * @throws {RequiredError}
  14523. */
  14524. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14525. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  14526. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14527. },
  14528. }
  14529. };
  14530. /**
  14531. * TagApi - factory interface
  14532. * @export
  14533. */
  14534. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14535. const localVarFp = TagApiFp(configuration)
  14536. return {
  14537. /**
  14538. *
  14539. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14540. * @param {*} [options] Override http request option.
  14541. * @throws {RequiredError}
  14542. */
  14543. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14544. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  14545. },
  14546. /**
  14547. *
  14548. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14549. * @param {*} [options] Override http request option.
  14550. * @throws {RequiredError}
  14551. */
  14552. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  14553. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  14554. },
  14555. /**
  14556. *
  14557. * @param {*} [options] Override http request option.
  14558. * @throws {RequiredError}
  14559. */
  14560. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  14561. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  14562. },
  14563. /**
  14564. *
  14565. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14566. * @param {*} [options] Override http request option.
  14567. * @throws {RequiredError}
  14568. */
  14569. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  14570. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  14571. },
  14572. /**
  14573. *
  14574. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14575. * @param {*} [options] Override http request option.
  14576. * @throws {RequiredError}
  14577. */
  14578. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14579. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  14580. },
  14581. /**
  14582. *
  14583. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14584. * @param {*} [options] Override http request option.
  14585. * @throws {RequiredError}
  14586. */
  14587. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14588. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14589. },
  14590. /**
  14591. *
  14592. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14593. * @param {*} [options] Override http request option.
  14594. * @throws {RequiredError}
  14595. */
  14596. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14597. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14598. },
  14599. /**
  14600. *
  14601. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14602. * @param {*} [options] Override http request option.
  14603. * @throws {RequiredError}
  14604. */
  14605. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14606. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  14607. },
  14608. };
  14609. };
  14610. /**
  14611. * Request parameters for createTag operation in TagApi.
  14612. * @export
  14613. * @interface TagApiCreateTagRequest
  14614. */
  14615. export interface TagApiCreateTagRequest {
  14616. /**
  14617. *
  14618. * @type {CreateTagDto}
  14619. * @memberof TagApiCreateTag
  14620. */
  14621. readonly createTagDto: CreateTagDto
  14622. }
  14623. /**
  14624. * Request parameters for deleteTag operation in TagApi.
  14625. * @export
  14626. * @interface TagApiDeleteTagRequest
  14627. */
  14628. export interface TagApiDeleteTagRequest {
  14629. /**
  14630. *
  14631. * @type {string}
  14632. * @memberof TagApiDeleteTag
  14633. */
  14634. readonly id: string
  14635. }
  14636. /**
  14637. * Request parameters for getTagAssets operation in TagApi.
  14638. * @export
  14639. * @interface TagApiGetTagAssetsRequest
  14640. */
  14641. export interface TagApiGetTagAssetsRequest {
  14642. /**
  14643. *
  14644. * @type {string}
  14645. * @memberof TagApiGetTagAssets
  14646. */
  14647. readonly id: string
  14648. }
  14649. /**
  14650. * Request parameters for getTagById operation in TagApi.
  14651. * @export
  14652. * @interface TagApiGetTagByIdRequest
  14653. */
  14654. export interface TagApiGetTagByIdRequest {
  14655. /**
  14656. *
  14657. * @type {string}
  14658. * @memberof TagApiGetTagById
  14659. */
  14660. readonly id: string
  14661. }
  14662. /**
  14663. * Request parameters for tagAssets operation in TagApi.
  14664. * @export
  14665. * @interface TagApiTagAssetsRequest
  14666. */
  14667. export interface TagApiTagAssetsRequest {
  14668. /**
  14669. *
  14670. * @type {string}
  14671. * @memberof TagApiTagAssets
  14672. */
  14673. readonly id: string
  14674. /**
  14675. *
  14676. * @type {AssetIdsDto}
  14677. * @memberof TagApiTagAssets
  14678. */
  14679. readonly assetIdsDto: AssetIdsDto
  14680. }
  14681. /**
  14682. * Request parameters for untagAssets operation in TagApi.
  14683. * @export
  14684. * @interface TagApiUntagAssetsRequest
  14685. */
  14686. export interface TagApiUntagAssetsRequest {
  14687. /**
  14688. *
  14689. * @type {string}
  14690. * @memberof TagApiUntagAssets
  14691. */
  14692. readonly id: string
  14693. /**
  14694. *
  14695. * @type {AssetIdsDto}
  14696. * @memberof TagApiUntagAssets
  14697. */
  14698. readonly assetIdsDto: AssetIdsDto
  14699. }
  14700. /**
  14701. * Request parameters for updateTag operation in TagApi.
  14702. * @export
  14703. * @interface TagApiUpdateTagRequest
  14704. */
  14705. export interface TagApiUpdateTagRequest {
  14706. /**
  14707. *
  14708. * @type {string}
  14709. * @memberof TagApiUpdateTag
  14710. */
  14711. readonly id: string
  14712. /**
  14713. *
  14714. * @type {UpdateTagDto}
  14715. * @memberof TagApiUpdateTag
  14716. */
  14717. readonly updateTagDto: UpdateTagDto
  14718. }
  14719. /**
  14720. * TagApi - object-oriented interface
  14721. * @export
  14722. * @class TagApi
  14723. * @extends {BaseAPI}
  14724. */
  14725. export class TagApi extends BaseAPI {
  14726. /**
  14727. *
  14728. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14729. * @param {*} [options] Override http request option.
  14730. * @throws {RequiredError}
  14731. * @memberof TagApi
  14732. */
  14733. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  14734. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  14735. }
  14736. /**
  14737. *
  14738. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14739. * @param {*} [options] Override http request option.
  14740. * @throws {RequiredError}
  14741. * @memberof TagApi
  14742. */
  14743. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  14744. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14745. }
  14746. /**
  14747. *
  14748. * @param {*} [options] Override http request option.
  14749. * @throws {RequiredError}
  14750. * @memberof TagApi
  14751. */
  14752. public getAllTags(options?: AxiosRequestConfig) {
  14753. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  14754. }
  14755. /**
  14756. *
  14757. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14758. * @param {*} [options] Override http request option.
  14759. * @throws {RequiredError}
  14760. * @memberof TagApi
  14761. */
  14762. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  14763. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14764. }
  14765. /**
  14766. *
  14767. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14768. * @param {*} [options] Override http request option.
  14769. * @throws {RequiredError}
  14770. * @memberof TagApi
  14771. */
  14772. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  14773. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14774. }
  14775. /**
  14776. *
  14777. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14778. * @param {*} [options] Override http request option.
  14779. * @throws {RequiredError}
  14780. * @memberof TagApi
  14781. */
  14782. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  14783. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  14784. }
  14785. /**
  14786. *
  14787. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14788. * @param {*} [options] Override http request option.
  14789. * @throws {RequiredError}
  14790. * @memberof TagApi
  14791. */
  14792. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  14793. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  14794. }
  14795. /**
  14796. *
  14797. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14798. * @param {*} [options] Override http request option.
  14799. * @throws {RequiredError}
  14800. * @memberof TagApi
  14801. */
  14802. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  14803. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  14804. }
  14805. }
  14806. /**
  14807. * UserApi - axios parameter creator
  14808. * @export
  14809. */
  14810. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  14811. return {
  14812. /**
  14813. *
  14814. * @param {File} file
  14815. * @param {*} [options] Override http request option.
  14816. * @throws {RequiredError}
  14817. */
  14818. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14819. // verify required parameter 'file' is not null or undefined
  14820. assertParamExists('createProfileImage', 'file', file)
  14821. const localVarPath = `/user/profile-image`;
  14822. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14823. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14824. let baseOptions;
  14825. if (configuration) {
  14826. baseOptions = configuration.baseOptions;
  14827. }
  14828. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14829. const localVarHeaderParameter = {} as any;
  14830. const localVarQueryParameter = {} as any;
  14831. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  14832. // authentication cookie required
  14833. // authentication api_key required
  14834. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14835. // authentication bearer required
  14836. // http bearer authentication required
  14837. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14838. if (file !== undefined) {
  14839. localVarFormParams.append('file', file as any);
  14840. }
  14841. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  14842. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14843. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14844. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14845. localVarRequestOptions.data = localVarFormParams;
  14846. return {
  14847. url: toPathString(localVarUrlObj),
  14848. options: localVarRequestOptions,
  14849. };
  14850. },
  14851. /**
  14852. *
  14853. * @param {CreateUserDto} createUserDto
  14854. * @param {*} [options] Override http request option.
  14855. * @throws {RequiredError}
  14856. */
  14857. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14858. // verify required parameter 'createUserDto' is not null or undefined
  14859. assertParamExists('createUser', 'createUserDto', createUserDto)
  14860. const localVarPath = `/user`;
  14861. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14862. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14863. let baseOptions;
  14864. if (configuration) {
  14865. baseOptions = configuration.baseOptions;
  14866. }
  14867. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14868. const localVarHeaderParameter = {} as any;
  14869. const localVarQueryParameter = {} as any;
  14870. // authentication cookie required
  14871. // authentication api_key required
  14872. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14873. // authentication bearer required
  14874. // http bearer authentication required
  14875. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14876. localVarHeaderParameter['Content-Type'] = 'application/json';
  14877. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14878. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14879. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14880. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  14881. return {
  14882. url: toPathString(localVarUrlObj),
  14883. options: localVarRequestOptions,
  14884. };
  14885. },
  14886. /**
  14887. *
  14888. * @param {*} [options] Override http request option.
  14889. * @throws {RequiredError}
  14890. */
  14891. deleteProfileImage: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14892. const localVarPath = `/user/profile-image`;
  14893. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14894. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14895. let baseOptions;
  14896. if (configuration) {
  14897. baseOptions = configuration.baseOptions;
  14898. }
  14899. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14900. const localVarHeaderParameter = {} as any;
  14901. const localVarQueryParameter = {} as any;
  14902. // authentication cookie required
  14903. // authentication api_key required
  14904. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14905. // authentication bearer required
  14906. // http bearer authentication required
  14907. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14908. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14909. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14910. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14911. return {
  14912. url: toPathString(localVarUrlObj),
  14913. options: localVarRequestOptions,
  14914. };
  14915. },
  14916. /**
  14917. *
  14918. * @param {string} id
  14919. * @param {*} [options] Override http request option.
  14920. * @throws {RequiredError}
  14921. */
  14922. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14923. // verify required parameter 'id' is not null or undefined
  14924. assertParamExists('deleteUser', 'id', id)
  14925. const localVarPath = `/user/{id}`
  14926. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14927. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14928. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14929. let baseOptions;
  14930. if (configuration) {
  14931. baseOptions = configuration.baseOptions;
  14932. }
  14933. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14934. const localVarHeaderParameter = {} as any;
  14935. const localVarQueryParameter = {} as any;
  14936. // authentication cookie required
  14937. // authentication api_key required
  14938. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14939. // authentication bearer required
  14940. // http bearer authentication required
  14941. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14942. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14943. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14944. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14945. return {
  14946. url: toPathString(localVarUrlObj),
  14947. options: localVarRequestOptions,
  14948. };
  14949. },
  14950. /**
  14951. *
  14952. * @param {boolean} isAll
  14953. * @param {*} [options] Override http request option.
  14954. * @throws {RequiredError}
  14955. */
  14956. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14957. // verify required parameter 'isAll' is not null or undefined
  14958. assertParamExists('getAllUsers', 'isAll', isAll)
  14959. const localVarPath = `/user`;
  14960. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14961. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14962. let baseOptions;
  14963. if (configuration) {
  14964. baseOptions = configuration.baseOptions;
  14965. }
  14966. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14967. const localVarHeaderParameter = {} as any;
  14968. const localVarQueryParameter = {} as any;
  14969. // authentication cookie required
  14970. // authentication api_key required
  14971. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14972. // authentication bearer required
  14973. // http bearer authentication required
  14974. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14975. if (isAll !== undefined) {
  14976. localVarQueryParameter['isAll'] = isAll;
  14977. }
  14978. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14979. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14980. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14981. return {
  14982. url: toPathString(localVarUrlObj),
  14983. options: localVarRequestOptions,
  14984. };
  14985. },
  14986. /**
  14987. *
  14988. * @param {*} [options] Override http request option.
  14989. * @throws {RequiredError}
  14990. */
  14991. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14992. const localVarPath = `/user/me`;
  14993. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14994. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14995. let baseOptions;
  14996. if (configuration) {
  14997. baseOptions = configuration.baseOptions;
  14998. }
  14999. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15000. const localVarHeaderParameter = {} as any;
  15001. const localVarQueryParameter = {} as any;
  15002. // authentication cookie required
  15003. // authentication api_key required
  15004. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15005. // authentication bearer required
  15006. // http bearer authentication required
  15007. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15008. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15009. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15010. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15011. return {
  15012. url: toPathString(localVarUrlObj),
  15013. options: localVarRequestOptions,
  15014. };
  15015. },
  15016. /**
  15017. *
  15018. * @param {string} id
  15019. * @param {*} [options] Override http request option.
  15020. * @throws {RequiredError}
  15021. */
  15022. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15023. // verify required parameter 'id' is not null or undefined
  15024. assertParamExists('getProfileImage', 'id', id)
  15025. const localVarPath = `/user/profile-image/{id}`
  15026. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15027. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15028. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15029. let baseOptions;
  15030. if (configuration) {
  15031. baseOptions = configuration.baseOptions;
  15032. }
  15033. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15034. const localVarHeaderParameter = {} as any;
  15035. const localVarQueryParameter = {} as any;
  15036. // authentication cookie required
  15037. // authentication api_key required
  15038. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15039. // authentication bearer required
  15040. // http bearer authentication required
  15041. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15042. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15043. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15044. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15045. return {
  15046. url: toPathString(localVarUrlObj),
  15047. options: localVarRequestOptions,
  15048. };
  15049. },
  15050. /**
  15051. *
  15052. * @param {string} id
  15053. * @param {*} [options] Override http request option.
  15054. * @throws {RequiredError}
  15055. */
  15056. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15057. // verify required parameter 'id' is not null or undefined
  15058. assertParamExists('getUserById', 'id', id)
  15059. const localVarPath = `/user/info/{id}`
  15060. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15061. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15062. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15063. let baseOptions;
  15064. if (configuration) {
  15065. baseOptions = configuration.baseOptions;
  15066. }
  15067. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15068. const localVarHeaderParameter = {} as any;
  15069. const localVarQueryParameter = {} as any;
  15070. // authentication cookie required
  15071. // authentication api_key required
  15072. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15073. // authentication bearer required
  15074. // http bearer authentication required
  15075. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15076. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15077. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15078. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15079. return {
  15080. url: toPathString(localVarUrlObj),
  15081. options: localVarRequestOptions,
  15082. };
  15083. },
  15084. /**
  15085. *
  15086. * @param {string} id
  15087. * @param {*} [options] Override http request option.
  15088. * @throws {RequiredError}
  15089. */
  15090. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15091. // verify required parameter 'id' is not null or undefined
  15092. assertParamExists('restoreUser', 'id', id)
  15093. const localVarPath = `/user/{id}/restore`
  15094. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15095. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15096. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15097. let baseOptions;
  15098. if (configuration) {
  15099. baseOptions = configuration.baseOptions;
  15100. }
  15101. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15102. const localVarHeaderParameter = {} as any;
  15103. const localVarQueryParameter = {} as any;
  15104. // authentication cookie required
  15105. // authentication api_key required
  15106. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15107. // authentication bearer required
  15108. // http bearer authentication required
  15109. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15110. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15111. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15112. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15113. return {
  15114. url: toPathString(localVarUrlObj),
  15115. options: localVarRequestOptions,
  15116. };
  15117. },
  15118. /**
  15119. *
  15120. * @param {UpdateUserDto} updateUserDto
  15121. * @param {*} [options] Override http request option.
  15122. * @throws {RequiredError}
  15123. */
  15124. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15125. // verify required parameter 'updateUserDto' is not null or undefined
  15126. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  15127. const localVarPath = `/user`;
  15128. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15129. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15130. let baseOptions;
  15131. if (configuration) {
  15132. baseOptions = configuration.baseOptions;
  15133. }
  15134. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  15135. const localVarHeaderParameter = {} as any;
  15136. const localVarQueryParameter = {} as any;
  15137. // authentication cookie required
  15138. // authentication api_key required
  15139. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15140. // authentication bearer required
  15141. // http bearer authentication required
  15142. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15143. localVarHeaderParameter['Content-Type'] = 'application/json';
  15144. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15145. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15146. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15147. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  15148. return {
  15149. url: toPathString(localVarUrlObj),
  15150. options: localVarRequestOptions,
  15151. };
  15152. },
  15153. }
  15154. };
  15155. /**
  15156. * UserApi - functional programming interface
  15157. * @export
  15158. */
  15159. export const UserApiFp = function(configuration?: Configuration) {
  15160. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  15161. return {
  15162. /**
  15163. *
  15164. * @param {File} file
  15165. * @param {*} [options] Override http request option.
  15166. * @throws {RequiredError}
  15167. */
  15168. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  15169. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  15170. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15171. },
  15172. /**
  15173. *
  15174. * @param {CreateUserDto} createUserDto
  15175. * @param {*} [options] Override http request option.
  15176. * @throws {RequiredError}
  15177. */
  15178. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15179. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  15180. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15181. },
  15182. /**
  15183. *
  15184. * @param {*} [options] Override http request option.
  15185. * @throws {RequiredError}
  15186. */
  15187. async deleteProfileImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  15188. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProfileImage(options);
  15189. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15190. },
  15191. /**
  15192. *
  15193. * @param {string} id
  15194. * @param {*} [options] Override http request option.
  15195. * @throws {RequiredError}
  15196. */
  15197. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15198. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  15199. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15200. },
  15201. /**
  15202. *
  15203. * @param {boolean} isAll
  15204. * @param {*} [options] Override http request option.
  15205. * @throws {RequiredError}
  15206. */
  15207. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  15208. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  15209. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15210. },
  15211. /**
  15212. *
  15213. * @param {*} [options] Override http request option.
  15214. * @throws {RequiredError}
  15215. */
  15216. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15217. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  15218. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15219. },
  15220. /**
  15221. *
  15222. * @param {string} id
  15223. * @param {*} [options] Override http request option.
  15224. * @throws {RequiredError}
  15225. */
  15226. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  15227. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  15228. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15229. },
  15230. /**
  15231. *
  15232. * @param {string} id
  15233. * @param {*} [options] Override http request option.
  15234. * @throws {RequiredError}
  15235. */
  15236. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15237. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  15238. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15239. },
  15240. /**
  15241. *
  15242. * @param {string} id
  15243. * @param {*} [options] Override http request option.
  15244. * @throws {RequiredError}
  15245. */
  15246. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15247. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  15248. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15249. },
  15250. /**
  15251. *
  15252. * @param {UpdateUserDto} updateUserDto
  15253. * @param {*} [options] Override http request option.
  15254. * @throws {RequiredError}
  15255. */
  15256. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15257. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  15258. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15259. },
  15260. }
  15261. };
  15262. /**
  15263. * UserApi - factory interface
  15264. * @export
  15265. */
  15266. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  15267. const localVarFp = UserApiFp(configuration)
  15268. return {
  15269. /**
  15270. *
  15271. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15272. * @param {*} [options] Override http request option.
  15273. * @throws {RequiredError}
  15274. */
  15275. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  15276. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  15277. },
  15278. /**
  15279. *
  15280. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15281. * @param {*} [options] Override http request option.
  15282. * @throws {RequiredError}
  15283. */
  15284. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15285. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  15286. },
  15287. /**
  15288. *
  15289. * @param {*} [options] Override http request option.
  15290. * @throws {RequiredError}
  15291. */
  15292. deleteProfileImage(options?: AxiosRequestConfig): AxiosPromise<void> {
  15293. return localVarFp.deleteProfileImage(options).then((request) => request(axios, basePath));
  15294. },
  15295. /**
  15296. *
  15297. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15298. * @param {*} [options] Override http request option.
  15299. * @throws {RequiredError}
  15300. */
  15301. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15302. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  15303. },
  15304. /**
  15305. *
  15306. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15307. * @param {*} [options] Override http request option.
  15308. * @throws {RequiredError}
  15309. */
  15310. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  15311. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  15312. },
  15313. /**
  15314. *
  15315. * @param {*} [options] Override http request option.
  15316. * @throws {RequiredError}
  15317. */
  15318. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15319. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  15320. },
  15321. /**
  15322. *
  15323. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15324. * @param {*} [options] Override http request option.
  15325. * @throws {RequiredError}
  15326. */
  15327. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  15328. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  15329. },
  15330. /**
  15331. *
  15332. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15333. * @param {*} [options] Override http request option.
  15334. * @throws {RequiredError}
  15335. */
  15336. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15337. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  15338. },
  15339. /**
  15340. *
  15341. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15342. * @param {*} [options] Override http request option.
  15343. * @throws {RequiredError}
  15344. */
  15345. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15346. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  15347. },
  15348. /**
  15349. *
  15350. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15351. * @param {*} [options] Override http request option.
  15352. * @throws {RequiredError}
  15353. */
  15354. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15355. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  15356. },
  15357. };
  15358. };
  15359. /**
  15360. * Request parameters for createProfileImage operation in UserApi.
  15361. * @export
  15362. * @interface UserApiCreateProfileImageRequest
  15363. */
  15364. export interface UserApiCreateProfileImageRequest {
  15365. /**
  15366. *
  15367. * @type {File}
  15368. * @memberof UserApiCreateProfileImage
  15369. */
  15370. readonly file: File
  15371. }
  15372. /**
  15373. * Request parameters for createUser operation in UserApi.
  15374. * @export
  15375. * @interface UserApiCreateUserRequest
  15376. */
  15377. export interface UserApiCreateUserRequest {
  15378. /**
  15379. *
  15380. * @type {CreateUserDto}
  15381. * @memberof UserApiCreateUser
  15382. */
  15383. readonly createUserDto: CreateUserDto
  15384. }
  15385. /**
  15386. * Request parameters for deleteUser operation in UserApi.
  15387. * @export
  15388. * @interface UserApiDeleteUserRequest
  15389. */
  15390. export interface UserApiDeleteUserRequest {
  15391. /**
  15392. *
  15393. * @type {string}
  15394. * @memberof UserApiDeleteUser
  15395. */
  15396. readonly id: string
  15397. }
  15398. /**
  15399. * Request parameters for getAllUsers operation in UserApi.
  15400. * @export
  15401. * @interface UserApiGetAllUsersRequest
  15402. */
  15403. export interface UserApiGetAllUsersRequest {
  15404. /**
  15405. *
  15406. * @type {boolean}
  15407. * @memberof UserApiGetAllUsers
  15408. */
  15409. readonly isAll: boolean
  15410. }
  15411. /**
  15412. * Request parameters for getProfileImage operation in UserApi.
  15413. * @export
  15414. * @interface UserApiGetProfileImageRequest
  15415. */
  15416. export interface UserApiGetProfileImageRequest {
  15417. /**
  15418. *
  15419. * @type {string}
  15420. * @memberof UserApiGetProfileImage
  15421. */
  15422. readonly id: string
  15423. }
  15424. /**
  15425. * Request parameters for getUserById operation in UserApi.
  15426. * @export
  15427. * @interface UserApiGetUserByIdRequest
  15428. */
  15429. export interface UserApiGetUserByIdRequest {
  15430. /**
  15431. *
  15432. * @type {string}
  15433. * @memberof UserApiGetUserById
  15434. */
  15435. readonly id: string
  15436. }
  15437. /**
  15438. * Request parameters for restoreUser operation in UserApi.
  15439. * @export
  15440. * @interface UserApiRestoreUserRequest
  15441. */
  15442. export interface UserApiRestoreUserRequest {
  15443. /**
  15444. *
  15445. * @type {string}
  15446. * @memberof UserApiRestoreUser
  15447. */
  15448. readonly id: string
  15449. }
  15450. /**
  15451. * Request parameters for updateUser operation in UserApi.
  15452. * @export
  15453. * @interface UserApiUpdateUserRequest
  15454. */
  15455. export interface UserApiUpdateUserRequest {
  15456. /**
  15457. *
  15458. * @type {UpdateUserDto}
  15459. * @memberof UserApiUpdateUser
  15460. */
  15461. readonly updateUserDto: UpdateUserDto
  15462. }
  15463. /**
  15464. * UserApi - object-oriented interface
  15465. * @export
  15466. * @class UserApi
  15467. * @extends {BaseAPI}
  15468. */
  15469. export class UserApi extends BaseAPI {
  15470. /**
  15471. *
  15472. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15473. * @param {*} [options] Override http request option.
  15474. * @throws {RequiredError}
  15475. * @memberof UserApi
  15476. */
  15477. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  15478. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  15479. }
  15480. /**
  15481. *
  15482. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15483. * @param {*} [options] Override http request option.
  15484. * @throws {RequiredError}
  15485. * @memberof UserApi
  15486. */
  15487. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  15488. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  15489. }
  15490. /**
  15491. *
  15492. * @param {*} [options] Override http request option.
  15493. * @throws {RequiredError}
  15494. * @memberof UserApi
  15495. */
  15496. public deleteProfileImage(options?: AxiosRequestConfig) {
  15497. return UserApiFp(this.configuration).deleteProfileImage(options).then((request) => request(this.axios, this.basePath));
  15498. }
  15499. /**
  15500. *
  15501. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15502. * @param {*} [options] Override http request option.
  15503. * @throws {RequiredError}
  15504. * @memberof UserApi
  15505. */
  15506. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  15507. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15508. }
  15509. /**
  15510. *
  15511. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15512. * @param {*} [options] Override http request option.
  15513. * @throws {RequiredError}
  15514. * @memberof UserApi
  15515. */
  15516. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  15517. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  15518. }
  15519. /**
  15520. *
  15521. * @param {*} [options] Override http request option.
  15522. * @throws {RequiredError}
  15523. * @memberof UserApi
  15524. */
  15525. public getMyUserInfo(options?: AxiosRequestConfig) {
  15526. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  15527. }
  15528. /**
  15529. *
  15530. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15531. * @param {*} [options] Override http request option.
  15532. * @throws {RequiredError}
  15533. * @memberof UserApi
  15534. */
  15535. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  15536. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15537. }
  15538. /**
  15539. *
  15540. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15541. * @param {*} [options] Override http request option.
  15542. * @throws {RequiredError}
  15543. * @memberof UserApi
  15544. */
  15545. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  15546. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15547. }
  15548. /**
  15549. *
  15550. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15551. * @param {*} [options] Override http request option.
  15552. * @throws {RequiredError}
  15553. * @memberof UserApi
  15554. */
  15555. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  15556. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15557. }
  15558. /**
  15559. *
  15560. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15561. * @param {*} [options] Override http request option.
  15562. * @throws {RequiredError}
  15563. * @memberof UserApi
  15564. */
  15565. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  15566. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  15567. }
  15568. }